From 87e8e2800c54459142c85d6f5fe212a4b48c4dbd Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 22 Aug 2023 20:26:23 +0000 Subject: [PATCH 1/4] feat: Supported project-level-budgets in Public Budget API V1Beta Added `scope` for project scope filter in `ListBudgetsRequest`. When this field is set to a project's resource name, the budgets returned are tracking the costs for the given project. feat: Added `enable_project_level_recipients` for project owner budget emails Setting this field to true will enable email notification to project owners for project-level budgets. PiperOrigin-RevId: 559151636 Source-Link: https://github.com/googleapis/googleapis/commit/138b0f1265518d46c9f65403fe6ddd163f2757af Source-Link: https://github.com/googleapis/googleapis-gen/commit/41c0ba899f76cbbfacddeccf7c769747acafe26d Copy-Tag: eyJwIjoiamF2YS1iaWxsaW5nYnVkZ2V0cy8uT3dsQm90LnlhbWwiLCJoIjoiNDFjMGJhODk5Zjc2Y2JiZmFjZGRlY2NmN2M3Njk3NDdhY2FmZTI2ZCJ9 --- .../billing/budgets/v1/BudgetModelProto.java | 234 --- .../budgets/v1/BudgetServiceProto.java | 199 -- .../v1/CreateBudgetRequestOrBuilder.java | 97 - .../v1/DeleteBudgetRequestOrBuilder.java | 56 - .../budgets/v1/GetBudgetRequestOrBuilder.java | 56 - .../budgets/v1/LastPeriodAmountOrBuilder.java | 24 - .../billing/budgets/v1beta1/BudgetModel.java | 237 --- .../v1beta1/BudgetServiceOuterClass.java | 198 -- .../v1beta1/CreateBudgetRequestOrBuilder.java | 97 - .../v1beta1/DeleteBudgetRequestOrBuilder.java | 56 - .../v1beta1/GetBudgetRequestOrBuilder.java | 56 - .../v1beta1/LastPeriodAmountOrBuilder.java | 24 - .../budgets/v1/BudgetServiceClient.java | 0 .../budgets/v1/BudgetServiceSettings.java | 1 + .../billing/budgets/v1/gapic_metadata.json | 0 .../billing/budgets/v1/package-info.java | 0 .../budgets/v1/stub/BudgetServiceStub.java | 0 .../v1/stub/BudgetServiceStubSettings.java | 0 .../GrpcBudgetServiceCallableFactory.java | 0 .../v1/stub/GrpcBudgetServiceStub.java | 1 + .../HttpJsonBudgetServiceCallableFactory.java | 0 .../v1/stub/HttpJsonBudgetServiceStub.java | 0 .../reflect-config.json | 0 .../v1/BudgetServiceClientHttpJsonTest.java | 0 .../budgets/v1/BudgetServiceClientTest.java | 0 .../billing/budgets/v1/MockBudgetService.java | 0 .../budgets/v1/MockBudgetServiceImpl.java | 0 .../billing/budgets/v1/BudgetServiceGrpc.java | 583 +++--- .../budgets/v1/BillingAccountName.java | 0 .../cloud/billing/budgets/v1/Budget.java | 1136 ++++-------- .../billing/budgets/v1/BudgetAmount.java | 488 ++--- .../budgets/v1/BudgetAmountOrBuilder.java | 34 +- .../billing/budgets/v1/BudgetModelProto.java | 196 ++ .../cloud/billing/budgets/v1/BudgetName.java | 0 .../billing/budgets/v1/BudgetOrBuilder.java | 143 +- .../budgets/v1/BudgetServiceProto.java | 179 ++ .../billing/budgets/v1/CalendarPeriod.java | 93 +- .../budgets/v1/CreateBudgetRequest.java | 495 ++--- .../v1/CreateBudgetRequestOrBuilder.java | 58 + .../billing/budgets/v1/CustomPeriod.java | 404 ++-- .../budgets/v1/CustomPeriodOrBuilder.java | 34 +- .../budgets/v1/DeleteBudgetRequest.java | 350 ++-- .../v1/DeleteBudgetRequestOrBuilder.java | 31 + .../cloud/billing/budgets/v1/Filter.java | 1547 ++++++---------- .../billing/budgets/v1/FilterOrBuilder.java | 213 +-- .../billing/budgets/v1/GetBudgetRequest.java | 347 ++-- .../budgets/v1/GetBudgetRequestOrBuilder.java | 31 + .../billing/budgets/v1/LastPeriodAmount.java | 245 ++- .../budgets/v1/LastPeriodAmountOrBuilder.java | 9 + .../budgets/v1/ListBudgetsRequest.java | 453 ++--- .../v1/ListBudgetsRequestOrBuilder.java | 47 +- .../budgets/v1/ListBudgetsResponse.java | 483 ++--- .../v1/ListBudgetsResponseOrBuilder.java | 45 +- .../billing/budgets/v1/NotificationsRule.java | 595 +++--- .../v1/NotificationsRuleOrBuilder.java | 73 +- .../billing/budgets/v1/ThresholdRule.java | 444 ++--- .../budgets/v1/ThresholdRuleOrBuilder.java | 35 +- .../budgets/v1/UpdateBudgetRequest.java | 523 ++---- .../v1/UpdateBudgetRequestOrBuilder.java | 55 +- .../billing/budgets/v1/budget_model.proto | 0 .../billing/budgets/v1/budget_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbudget/AsyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 ...cCreateBudgetBillingaccountnameBudget.java | 0 .../SyncCreateBudgetStringBudget.java | 0 .../deletebudget/AsyncDeleteBudget.java | 0 .../deletebudget/SyncDeleteBudget.java | 0 .../SyncDeleteBudgetBudgetname.java | 0 .../deletebudget/SyncDeleteBudgetString.java | 0 .../getbudget/AsyncGetBudget.java | 0 .../getbudget/SyncGetBudget.java | 0 .../getbudget/SyncGetBudgetBudgetname.java | 0 .../getbudget/SyncGetBudgetString.java | 0 .../listbudgets/AsyncListBudgets.java | 0 .../listbudgets/AsyncListBudgetsPaged.java | 0 .../listbudgets/SyncListBudgets.java | 0 .../SyncListBudgetsBillingaccountname.java | 0 .../listbudgets/SyncListBudgetsString.java | 0 .../updatebudget/AsyncUpdateBudget.java | 0 .../updatebudget/SyncUpdateBudget.java | 0 .../SyncUpdateBudgetBudgetFieldmask.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../budgets/v1beta1/BudgetServiceClient.java | 3 + .../v1beta1/BudgetServiceSettings.java | 1 + .../budgets/v1beta1/gapic_metadata.json | 0 .../billing/budgets/v1beta1/package-info.java | 0 .../v1beta1/stub/BudgetServiceStub.java | 0 .../stub/BudgetServiceStubSettings.java | 0 .../GrpcBudgetServiceCallableFactory.java | 0 .../v1beta1/stub/GrpcBudgetServiceStub.java | 1 + .../reflect-config.json | 0 .../v1beta1/BudgetServiceClientTest.java | 3 + .../budgets/v1beta1/MockBudgetService.java | 0 .../v1beta1/MockBudgetServiceImpl.java | 0 .../budgets/v1beta1/BudgetServiceGrpc.java | 604 +++--- .../budgets/v1beta1/AllUpdatesRule.java | 700 ++++--- .../v1beta1/AllUpdatesRuleOrBuilder.java | 89 +- .../cloud/billing/budgets/v1beta1/Budget.java | 1154 ++++-------- .../billing/budgets/v1beta1/BudgetAmount.java | 500 ++--- .../v1beta1/BudgetAmountOrBuilder.java | 34 +- .../billing/budgets/v1beta1/BudgetModel.java | 198 ++ .../billing/budgets/v1beta1/BudgetName.java | 0 .../budgets/v1beta1/BudgetOrBuilder.java | 140 +- .../v1beta1/BudgetServiceOuterClass.java | 179 ++ .../budgets/v1beta1/CalendarPeriod.java | 93 +- .../budgets/v1beta1/CreateBudgetRequest.java | 502 ++--- .../v1beta1/CreateBudgetRequestOrBuilder.java | 58 + .../billing/budgets/v1beta1/CustomPeriod.java | 407 ++-- .../v1beta1/CustomPeriodOrBuilder.java | 34 +- .../budgets/v1beta1/DeleteBudgetRequest.java | 360 ++-- .../v1beta1/DeleteBudgetRequestOrBuilder.java | 31 + .../cloud/billing/budgets/v1beta1/Filter.java | 1635 ++++++----------- .../budgets/v1beta1/FilterOrBuilder.java | 237 +-- .../budgets/v1beta1/GetBudgetRequest.java | 350 ++-- .../v1beta1/GetBudgetRequestOrBuilder.java | 31 + .../budgets/v1beta1/LastPeriodAmount.java | 248 ++- .../v1beta1/LastPeriodAmountOrBuilder.java | 9 + .../budgets/v1beta1/ListBudgetsRequest.java | 664 ++++--- .../v1beta1/ListBudgetsRequestOrBuilder.java | 73 +- .../budgets/v1beta1/ListBudgetsResponse.java | 494 ++--- .../v1beta1/ListBudgetsResponseOrBuilder.java | 45 +- .../budgets/v1beta1/ThresholdRule.java | 452 ++--- .../v1beta1/ThresholdRuleOrBuilder.java | 35 +- .../budgets/v1beta1/UpdateBudgetRequest.java | 530 ++---- .../v1beta1/UpdateBudgetRequestOrBuilder.java | 55 +- .../budgets/v1beta1/budget_model.proto | 16 +- .../budgets/v1beta1/budget_service.proto | 8 + .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbudget/AsyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../deletebudget/AsyncDeleteBudget.java | 0 .../deletebudget/SyncDeleteBudget.java | 0 .../getbudget/AsyncGetBudget.java | 0 .../getbudget/SyncGetBudget.java | 0 .../listbudgets/AsyncListBudgets.java | 1 + .../listbudgets/AsyncListBudgetsPaged.java | 1 + .../listbudgets/SyncListBudgets.java | 1 + .../updatebudget/AsyncUpdateBudget.java | 0 .../updatebudget/SyncUpdateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 146 files changed, 7868 insertions(+), 12813 deletions(-) delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java (99%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java (99%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java (52%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java (67%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java (75%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java (66%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java (70%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java (61%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java (73%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java (75%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java (63%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java (75%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java (82%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java (64%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java (65%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java (68%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java (62%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java (72%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java (69%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java (82%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java (87%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java (69%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java (55%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java (67%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java (67%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java (99%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java (99%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java (99%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java (98%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java (50%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java (72%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java (80%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java (66%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java (74%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java (66%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java (70%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java (60%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java (73%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java (75%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java (62%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java (73%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java (80%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java (63%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java (65%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java (56%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java (51%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java (71%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java (71%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java (68%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java (55%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java (66%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java (67%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto (95%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto (92%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java (98%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java (98%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java (98%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java (100%) diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java deleted file mode 100644 index 029f1cb39e74..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_model.proto - -package com.google.cloud.billing.budgets.v1; - -public final class BudgetModelProto { - private BudgetModelProto() {} - - 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_budgets_v1_Budget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/billing/budgets/v1/budget" - + "_model.proto\022\037google.cloud.billing.budge" - + "ts.v1\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032\034google/protob" - + "uf/struct.proto\032\026google/type/date.proto\032" - + "\027google/type/money.proto\"\325\003\n\006Budget\022\022\n\004n" - + "ame\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\002 \001(\t\022D\n" - + "\rbudget_filter\030\003 \001(\0132\'.google.cloud.bill" - + "ing.budgets.v1.FilterB\004\342A\001\001\022C\n\006amount\030\004 " - + "\001(\0132-.google.cloud.billing.budgets.v1.Bu" - + "dgetAmountB\004\342A\001\002\022M\n\017threshold_rules\030\005 \003(" - + "\0132..google.cloud.billing.budgets.v1.Thre" - + "sholdRuleB\004\342A\001\001\022T\n\022notifications_rule\030\006 " - + "\001(\01322.google.cloud.billing.budgets.v1.No" - + "tificationsRuleB\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001" - + "\001:]\352AZ\n$billingbudgets.googleapis.com/Bu" - + "dget\0222billingAccounts/{billing_account}/" - + "budgets/{budget}\"\240\001\n\014BudgetAmount\022.\n\020spe" - + "cified_amount\030\001 \001(\0132\022.google.type.MoneyH" - + "\000\022O\n\022last_period_amount\030\002 \001(\01321.google.c" - + "loud.billing.budgets.v1.LastPeriodAmount" - + "H\000B\017\n\rbudget_amount\"\022\n\020LastPeriodAmount\"" - + "\312\001\n\rThresholdRule\022\037\n\021threshold_percent\030\001" - + " \001(\001B\004\342A\001\002\022O\n\013spend_basis\030\002 \001(\01624.google" - + ".cloud.billing.budgets.v1.ThresholdRule." - + "BasisB\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIE" - + "D\020\000\022\021\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPE" - + "ND\020\002\"\253\001\n\021NotificationsRule\022\032\n\014pubsub_top" - + "ic\030\001 \001(\tB\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004" - + "\342A\001\001\022.\n monitoring_notification_channels" - + "\030\003 \003(\tB\004\342A\001\001\022,\n\036disable_default_iam_reci" - + "pients\030\004 \001(\010B\004\342A\001\001\"\315\005\n\006Filter\022\026\n\010project" - + "s\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(" - + "\tB\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022b\n\026c" - + "redit_types_treatment\030\004 \001(\0162<.google.clo" - + "ud.billing.budgets.v1.Filter.CreditTypes" - + "TreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342A\001\001\022" - + "\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022I\n\006labels\030\006 \003" - + "(\01323.google.cloud.billing.budgets.v1.Fil" - + "ter.LabelsEntryB\004\342A\001\001\022P\n\017calendar_period" - + "\030\010 \001(\0162/.google.cloud.billing.budgets.v1" - + ".CalendarPeriodB\004\342A\001\001H\000\022L\n\rcustom_period" - + "\030\t \001(\0132-.google.cloud.billing.budgets.v1" - + ".CustomPeriodB\004\342A\001\001H\000\032I\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.protob" - + "uf.ListValue:\0028\001\"\217\001\n\024CreditTypesTreatmen" - + "t\022&\n\"CREDIT_TYPES_TREATMENT_UNSPECIFIED\020" - + "\000\022\027\n\023INCLUDE_ALL_CREDITS\020\001\022\027\n\023EXCLUDE_AL" - + "L_CREDITS\020\002\022\035\n\031INCLUDE_SPECIFIED_CREDITS" - + "\020\003B\016\n\014usage_period\"f\n\014CustomPeriod\022+\n\nst" - + "art_date\030\001 \001(\0132\021.google.type.DateB\004\342A\001\002\022" - + ")\n\010end_date\030\002 \001(\0132\021.google.type.DateB\004\342A" - + "\001\001*S\n\016CalendarPeriod\022\037\n\033CALENDAR_PERIOD_" - + "UNSPECIFIED\020\000\022\t\n\005MONTH\020\001\022\013\n\007QUARTER\020\002\022\010\n" - + "\004YEAR\020\003Bx\n#com.google.cloud.billing.budg" - + "ets.v1B\020BudgetModelProtoP\001Z=cloud.google" - + ".com/go/billing/budgets/apiv1/budgetspb;" - + "budgetspbb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1_Budget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Budget_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "BudgetFilter", - "Amount", - "ThresholdRules", - "NotificationsRule", - "Etag", - }); - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor, - new java.lang.String[] { - "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", - }); - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor, - new java.lang.String[] { - "ThresholdPercent", "SpendBasis", - }); - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor, - new java.lang.String[] { - "PubsubTopic", - "SchemaVersion", - "MonitoringNotificationChannels", - "DisableDefaultIamRecipients", - }); - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor, - new java.lang.String[] { - "Projects", - "ResourceAncestors", - "CreditTypes", - "CreditTypesTreatment", - "Services", - "Subaccounts", - "Labels", - "CalendarPeriod", - "CustomPeriod", - "UsagePeriod", - }); - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor = - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor, - new java.lang.String[] { - "StartDate", "EndDate", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java deleted file mode 100644 index 8e2f0bfff4e7..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public final class BudgetServiceProto { - private BudgetServiceProto() {} - - 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_budgets_v1_CreateBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/billing/budgets/v1/budget" - + "_service.proto\022\037google.cloud.billing.bud" - + "gets.v1\032\034google/api/annotations.proto\032\027g" - + "oogle/api/client.proto\032\037google/api/field" - + "_behavior.proto\032\031google/api/resource.pro" - + "to\0322google/cloud/billing/budgets/v1/budg" - + "et_model.proto\032\033google/protobuf/empty.pr" - + "oto\032 google/protobuf/field_mask.proto\"\223\001" - + "\n\023CreateBudgetRequest\022=\n\006parent\030\001 \001(\tB-\342" - + "A\001\002\372A&\022$billingbudgets.googleapis.com/Bu" - + "dget\022=\n\006budget\030\002 \001(\0132\'.google.cloud.bill" - + "ing.budgets.v1.BudgetB\004\342A\001\002\"\213\001\n\023UpdateBu" - + "dgetRequest\022=\n\006budget\030\001 \001(\0132\'.google.clo" - + "ud.billing.budgets.v1.BudgetB\004\342A\001\002\0225\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\004\342A\001\001\"O\n\020GetBudgetRequest\022;\n\004name\030\001 " - + "\001(\tB-\342A\001\002\372A&\n$billingbudgets.googleapis." - + "com/Budget\"\206\001\n\022ListBudgetsRequest\022=\n\006par" - + "ent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.googl" - + "eapis.com/Budget\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001" - + "\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"h\n\023ListBudge" - + "tsResponse\0228\n\007budgets\030\001 \003(\0132\'.google.clo" - + "ud.billing.budgets.v1.Budget\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"R\n\023DeleteBudgetRequest\022;\n\004" - + "name\030\001 \001(\tB-\342A\001\002\372A&\n$billingbudgets.goog" - + "leapis.com/Budget2\367\007\n\rBudgetService\022\265\001\n\014" - + "CreateBudget\0224.google.cloud.billing.budg" - + "ets.v1.CreateBudgetRequest\032\'.google.clou" - + "d.billing.budgets.v1.Budget\"F\332A\rparent,b" - + "udget\202\323\344\223\0020\"&/v1/{parent=billingAccounts" - + "/*}/budgets:\006budget\022\301\001\n\014UpdateBudget\0224.g" - + "oogle.cloud.billing.budgets.v1.UpdateBud" - + "getRequest\032\'.google.cloud.billing.budget" - + "s.v1.Budget\"R\332A\022budget,update_mask\202\323\344\223\0027" - + "2-/v1/{budget.name=billingAccounts/*/bud" - + "gets/*}:\006budget\022\236\001\n\tGetBudget\0221.google.c" - + "loud.billing.budgets.v1.GetBudgetRequest" - + "\032\'.google.cloud.billing.budgets.v1.Budge" - + "t\"5\332A\004name\202\323\344\223\002(\022&/v1/{name=billingAccou" - + "nts/*/budgets/*}\022\261\001\n\013ListBudgets\0223.googl" - + "e.cloud.billing.budgets.v1.ListBudgetsRe" - + "quest\0324.google.cloud.billing.budgets.v1." - + "ListBudgetsResponse\"7\332A\006parent\202\323\344\223\002(\022&/v" - + "1/{parent=billingAccounts/*}/budgets\022\223\001\n" - + "\014DeleteBudget\0224.google.cloud.billing.bud" - + "gets.v1.DeleteBudgetRequest\032\026.google.pro" - + "tobuf.Empty\"5\332A\004name\202\323\344\223\002(*&/v1/{name=bi" - + "llingAccounts/*/budgets/*}\032\177\312A\035billingbu" - + "dgets.googleapis.com\322A\\https://www.googl" - + "eapis.com/auth/cloud-billing,https://www" - + ".googleapis.com/auth/cloud-platformBz\n#c" - + "om.google.cloud.billing.budgets.v1B\022Budg" - + "etServiceProtoP\001Z=cloud.google.com/go/bi" - + "lling/budgets/apiv1/budgetspb;budgetspbb" - + "\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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor, - new java.lang.String[] { - "Parent", "Budget", - }); - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor, - new java.lang.String[] { - "Budget", "UpdateMask", - }); - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor, - new java.lang.String[] { - "Budgets", "NextPageToken", - }); - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - 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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java deleted file mode 100644 index e0cc805bfb54..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface CreateBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CreateBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the budget field is set. - */ - boolean hasBudget(); - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The budget. - */ - com.google.cloud.billing.budgets.v1.Budget getBudget(); - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java deleted file mode 100644 index 4801b06da438..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface DeleteBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.DeleteBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java deleted file mode 100644 index b5c42e0da212..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface GetBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.GetBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java deleted file mode 100644 index 673b35957419..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_model.proto - -package com.google.cloud.billing.budgets.v1; - -public interface LastPeriodAmountOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.LastPeriodAmount) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java deleted file mode 100644 index 4c1e1c0e415e..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_model.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public final class BudgetModel { - private BudgetModel() {} - - 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_budgets_v1beta1_Budget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/billing/budgets/v1beta1/b" - + "udget_model.proto\022$google.cloud.billing." - + "budgets.v1beta1\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032\034goo" - + "gle/protobuf/struct.proto\032\026google/type/d" - + "ate.proto\032\027google/type/money.proto\"\344\003\n\006B" - + "udget\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_nam" - + "e\030\002 \001(\t\022I\n\rbudget_filter\030\003 \001(\0132,.google." - + "cloud.billing.budgets.v1beta1.FilterB\004\342A" - + "\001\001\022H\n\006amount\030\004 \001(\01322.google.cloud.billin" - + "g.budgets.v1beta1.BudgetAmountB\004\342A\001\002\022R\n\017" - + "threshold_rules\030\005 \003(\01323.google.cloud.bil" - + "ling.budgets.v1beta1.ThresholdRuleB\004\342A\001\001" - + "\022T\n\020all_updates_rule\030\006 \001(\01324.google.clou" - + "d.billing.budgets.v1beta1.AllUpdatesRule" - + "B\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001\001:]\352AZ\n$billing" - + "budgets.googleapis.com/Budget\0222billingAc" - + "counts/{billing_account}/budgets/{budget" - + "}\"\245\001\n\014BudgetAmount\022.\n\020specified_amount\030\001" - + " \001(\0132\022.google.type.MoneyH\000\022T\n\022last_perio" - + "d_amount\030\002 \001(\01326.google.cloud.billing.bu" - + "dgets.v1beta1.LastPeriodAmountH\000B\017\n\rbudg" - + "et_amount\"\022\n\020LastPeriodAmount\"\317\001\n\rThresh" - + "oldRule\022\037\n\021threshold_percent\030\001 \001(\001B\004\342A\001\002" - + "\022T\n\013spend_basis\030\002 \001(\01629.google.cloud.bil" - + "ling.budgets.v1beta1.ThresholdRule.Basis" - + "B\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021" - + "\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\"" - + "\250\001\n\016AllUpdatesRule\022\032\n\014pubsub_topic\030\001 \001(\t" - + "B\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004\342A\001\001\022.\n " - + "monitoring_notification_channels\030\003 \003(\tB\004" - + "\342A\001\001\022,\n\036disable_default_iam_recipients\030\004" - + " \001(\010B\004\342A\001\001\"\341\005\n\006Filter\022\026\n\010projects\030\001 \003(\tB" - + "\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(\tB\004\342A\001\001\022" - + "\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022g\n\026credit_ty" - + "pes_treatment\030\004 \001(\0162A.google.cloud.billi" - + "ng.budgets.v1beta1.Filter.CreditTypesTre" - + "atmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342A\001\001\022\031\n\013" - + "subaccounts\030\005 \003(\tB\004\342A\001\001\022N\n\006labels\030\006 \003(\0132" - + "8.google.cloud.billing.budgets.v1beta1.F" - + "ilter.LabelsEntryB\004\342A\001\001\022U\n\017calendar_peri" - + "od\030\010 \001(\01624.google.cloud.billing.budgets." - + "v1beta1.CalendarPeriodB\004\342A\001\001H\000\022Q\n\rcustom" - + "_period\030\t \001(\01322.google.cloud.billing.bud" - + "gets.v1beta1.CustomPeriodB\004\342A\001\001H\000\032I\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.g" - + "oogle.protobuf.ListValue:\0028\001\"\217\001\n\024CreditT" - + "ypesTreatment\022&\n\"CREDIT_TYPES_TREATMENT_" - + "UNSPECIFIED\020\000\022\027\n\023INCLUDE_ALL_CREDITS\020\001\022\027" - + "\n\023EXCLUDE_ALL_CREDITS\020\002\022\035\n\031INCLUDE_SPECI" - + "FIED_CREDITS\020\003B\016\n\014usage_period\"f\n\014Custom" - + "Period\022+\n\nstart_date\030\001 \001(\0132\021.google.type" - + ".DateB\004\342A\001\002\022)\n\010end_date\030\002 \001(\0132\021.google.t" - + "ype.DateB\004\342A\001\001*S\n\016CalendarPeriod\022\037\n\033CALE" - + "NDAR_PERIOD_UNSPECIFIED\020\000\022\t\n\005MONTH\020\001\022\013\n\007" - + "QUARTER\020\002\022\010\n\004YEAR\020\003Bp\n(com.google.cloud." - + "billing.budgets.v1beta1P\001ZBcloud.google." - + "com/go/billing/budgets/apiv1beta1/budget" - + "spb;budgetspbb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "BudgetFilter", - "Amount", - "ThresholdRules", - "AllUpdatesRule", - "Etag", - }); - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor, - new java.lang.String[] { - "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", - }); - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor, - new java.lang.String[] { - "ThresholdPercent", "SpendBasis", - }); - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor, - new java.lang.String[] { - "PubsubTopic", - "SchemaVersion", - "MonitoringNotificationChannels", - "DisableDefaultIamRecipients", - }); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor, - new java.lang.String[] { - "Projects", - "ResourceAncestors", - "CreditTypes", - "CreditTypesTreatment", - "Services", - "Subaccounts", - "Labels", - "CalendarPeriod", - "CustomPeriod", - "UsagePeriod", - }); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor = - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor, - new java.lang.String[] { - "StartDate", "EndDate", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java deleted file mode 100644 index 8bd2751ca5fb..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public final class BudgetServiceOuterClass { - private BudgetServiceOuterClass() {} - - 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_budgets_v1beta1_CreateBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/billing/budgets/v1beta1/b" - + "udget_service.proto\022$google.cloud.billin" - + "g.budgets.v1beta1\032\034google/api/annotation" - + "s.proto\032\027google/api/client.proto\032\037google" - + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\0327google/cloud/billing/budge" - + "ts/v1beta1/budget_model.proto\032\033google/pr" - + "otobuf/empty.proto\032 google/protobuf/fiel" - + "d_mask.proto\"\230\001\n\023CreateBudgetRequest\022=\n\006" - + "parent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.go" - + "ogleapis.com/Budget\022B\n\006budget\030\002 \001(\0132,.go" - + "ogle.cloud.billing.budgets.v1beta1.Budge" - + "tB\004\342A\001\002\"\220\001\n\023UpdateBudgetRequest\022B\n\006budge" - + "t\030\001 \001(\0132,.google.cloud.billing.budgets.v" - + "1beta1.BudgetB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\004\342A\001\001\"O\n\020Ge" - + "tBudgetRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$b" - + "illingbudgets.googleapis.com/Budget\"\206\001\n\022" - + "ListBudgetsRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002" - + "\372A&\022$billingbudgets.googleapis.com/Budge" - + "t\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token" - + "\030\003 \001(\tB\004\342A\001\001\"m\n\023ListBudgetsResponse\022=\n\007b" - + "udgets\030\001 \003(\0132,.google.cloud.billing.budg" - + "ets.v1beta1.Budget\022\027\n\017next_page_token\030\002 " - + "\001(\t\"R\n\023DeleteBudgetRequest\022;\n\004name\030\001 \001(\t" - + "B-\342A\001\002\372A&\n$billingbudgets.googleapis.com" - + "/Budget2\367\007\n\rBudgetService\022\257\001\n\014CreateBudg" - + "et\0229.google.cloud.billing.budgets.v1beta" - + "1.CreateBudgetRequest\032,.google.cloud.bil" - + "ling.budgets.v1beta1.Budget\"6\202\323\344\223\0020\"+/v1" - + "beta1/{parent=billingAccounts/*}/budgets" - + ":\001*\022\266\001\n\014UpdateBudget\0229.google.cloud.bill" - + "ing.budgets.v1beta1.UpdateBudgetRequest\032" - + ",.google.cloud.billing.budgets.v1beta1.B" - + "udget\"=\202\323\344\223\002722/v1beta1/{budget.name=bil" - + "lingAccounts/*/budgets/*}:\001*\022\246\001\n\tGetBudg" - + "et\0226.google.cloud.billing.budgets.v1beta" - + "1.GetBudgetRequest\032,.google.cloud.billin" - + "g.budgets.v1beta1.Budget\"3\202\323\344\223\002-\022+/v1bet" - + "a1/{name=billingAccounts/*/budgets/*}\022\267\001" - + "\n\013ListBudgets\0228.google.cloud.billing.bud" - + "gets.v1beta1.ListBudgetsRequest\0329.google" - + ".cloud.billing.budgets.v1beta1.ListBudge" - + "tsResponse\"3\202\323\344\223\002-\022+/v1beta1/{parent=bil" - + "lingAccounts/*}/budgets\022\226\001\n\014DeleteBudget" - + "\0229.google.cloud.billing.budgets.v1beta1." - + "DeleteBudgetRequest\032\026.google.protobuf.Em" - + "pty\"3\202\323\344\223\002-*+/v1beta1/{name=billingAccou" - + "nts/*/budgets/*}\032\177\312A\035billingbudgets.goog" - + "leapis.com\322A\\https://www.googleapis.com/" - + "auth/cloud-billing,https://www.googleapi" - + "s.com/auth/cloud-platformBp\n(com.google." - + "cloud.billing.budgets.v1beta1P\001ZBcloud.g" - + "oogle.com/go/billing/budgets/apiv1beta1/" - + "budgetspb;budgetspbb\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.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor, - new java.lang.String[] { - "Parent", "Budget", - }); - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor, - new java.lang.String[] { - "Budget", "UpdateMask", - }); - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor, - new java.lang.String[] { - "Budgets", "NextPageToken", - }); - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - 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.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.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java deleted file mode 100644 index 3e0000fbe7f5..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface CreateBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the budget field is set. - */ - boolean hasBudget(); - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The budget. - */ - com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java deleted file mode 100644 index fa9463f8a928..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface DeleteBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java deleted file mode 100644 index fd66ff6cf720..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface GetBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java deleted file mode 100644 index 5d7bf6ca43df..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_model.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface LastPeriodAmountOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.LastPeriodAmount) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java similarity index 99% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java index 2c4366092d95..226f074161e3 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java +++ b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.billing.budgets.v1.stub.BudgetServiceStubSettings; diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java similarity index 99% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java index c0b7eae1f516..2faf2b586325 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java +++ b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java @@ -37,6 +37,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java b/owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java similarity index 52% rename from java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java rename to owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java index b9ff2840f9fc..f9432bd17118 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java +++ b/owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.billing.budgets.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * BudgetService stores Cloud Billing budgets, which define a
  * budget plan and rules to execute as we track spend against that plan.
@@ -36,276 +19,206 @@ private BudgetServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.billing.budgets.v1.BudgetService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getCreateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateBudget",
       requestType = com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getCreateBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
-            com.google.cloud.billing.budgets.v1.Budget>
-        getCreateBudgetMethod;
+  public static io.grpc.MethodDescriptor getCreateBudgetMethod() {
+    io.grpc.MethodDescriptor getCreateBudgetMethod;
     if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
-          BudgetServiceGrpc.getCreateBudgetMethod =
-              getCreateBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.CreateBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
-                      .build();
+          BudgetServiceGrpc.getCreateBudgetMethod = getCreateBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
+              .build();
         }
       }
     }
     return getCreateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getUpdateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateBudget",
       requestType = com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getUpdateBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
-            com.google.cloud.billing.budgets.v1.Budget>
-        getUpdateBudgetMethod;
+  public static io.grpc.MethodDescriptor getUpdateBudgetMethod() {
+    io.grpc.MethodDescriptor getUpdateBudgetMethod;
     if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
-          BudgetServiceGrpc.getUpdateBudgetMethod =
-              getUpdateBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.UpdateBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
-                      .build();
+          BudgetServiceGrpc.getUpdateBudgetMethod = getUpdateBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
+              .build();
         }
       }
     }
     return getUpdateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.GetBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getGetBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getGetBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetBudget",
       requestType = com.google.cloud.billing.budgets.v1.GetBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.GetBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getGetBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1.GetBudgetRequest,
-            com.google.cloud.billing.budgets.v1.Budget>
-        getGetBudgetMethod;
+  public static io.grpc.MethodDescriptor getGetBudgetMethod() {
+    io.grpc.MethodDescriptor getGetBudgetMethod;
     if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
-          BudgetServiceGrpc.getGetBudgetMethod =
-              getGetBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.GetBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
-                      .build();
+          BudgetServiceGrpc.getGetBudgetMethod = getGetBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
+              .build();
         }
       }
     }
     return getGetBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
-          com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
-      getListBudgetsMethod;
+  private static volatile io.grpc.MethodDescriptor getListBudgetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListBudgets",
       requestType = com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
-          com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
-      getListBudgetsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
-            com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
-        getListBudgetsMethod;
+  public static io.grpc.MethodDescriptor getListBudgetsMethod() {
+    io.grpc.MethodDescriptor getListBudgetsMethod;
     if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
-          BudgetServiceGrpc.getListBudgetsMethod =
-              getListBudgetsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.ListBudgetsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.ListBudgetsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
-                      .build();
+          BudgetServiceGrpc.getListBudgetsMethod = getListBudgetsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
+              .build();
         }
       }
     }
     return getListBudgetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
-      getDeleteBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteBudget",
       requestType = com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
-      getDeleteBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
-        getDeleteBudgetMethod;
+  public static io.grpc.MethodDescriptor getDeleteBudgetMethod() {
+    io.grpc.MethodDescriptor getDeleteBudgetMethod;
     if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
-          BudgetServiceGrpc.getDeleteBudgetMethod =
-              getDeleteBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.DeleteBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
-                      .build();
+          BudgetServiceGrpc.getDeleteBudgetMethod = getDeleteBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
+              .build();
         }
       }
     }
     return getDeleteBudgetMethod;
   }
 
-  /** 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 BudgetServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceStub(channel, callOptions);
+        }
+      };
     return BudgetServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BudgetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static BudgetServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceBlockingStub(channel, callOptions);
+        }
+      };
     return BudgetServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static BudgetServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static BudgetServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceFutureStub(channel, callOptions);
+        }
+      };
     return BudgetServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -314,24 +227,18 @@ public BudgetServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - default void createBudget( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, + default void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBudgetMethod(), responseObserver); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -339,16 +246,12 @@ default void createBudget(
      * this API will not be changed by this method.
      * 
*/ - default void updateBudget( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, + default void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBudgetMethod(), responseObserver); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -357,15 +260,12 @@ default void updateBudget(
      * in the Cloud Console.
      * 
*/ - default void getBudget( - com.google.cloud.billing.budgets.v1.GetBudgetRequest request, + default void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBudgetMethod(), responseObserver); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -374,49 +274,39 @@ default void getBudget(
      * in the Cloud Console.
      * 
*/ - default void listBudgets( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBudgetsMethod(), responseObserver); + default void listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBudgetsMethod(), responseObserver); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - default void deleteBudget( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, + default void deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBudgetMethod(), responseObserver); } } /** * Base class for the server implementation of the service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
    * 
*/ - public abstract static class BudgetServiceImplBase + public static abstract class BudgetServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return BudgetServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -424,36 +314,31 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class BudgetServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private BudgetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected BudgetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected BudgetServiceStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new BudgetServiceStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public void createBudget( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, + public void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -461,18 +346,13 @@ public void createBudget(
      * this API will not be changed by this method.
      * 
*/ - public void updateBudget( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, + public void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -481,16 +361,13 @@ public void updateBudget(
      * in the Cloud Console.
      * 
*/ - public void getBudget( - com.google.cloud.billing.budgets.v1.GetBudgetRequest request, + public void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -499,36 +376,26 @@ public void getBudget(
      * in the Cloud Console.
      * 
*/ - public void listBudgets( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBudgetsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public void deleteBudget( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, + public void deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -536,7 +403,8 @@ public void deleteBudget(
    */
   public static final class BudgetServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private BudgetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -547,23 +415,18 @@ protected BudgetServiceBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget createBudget( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -571,15 +434,12 @@ public com.google.cloud.billing.budgets.v1.Budget createBudget(
      * this API will not be changed by this method.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget updateBudget( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -588,15 +448,12 @@ public com.google.cloud.billing.budgets.v1.Budget updateBudget(
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget getBudget( - com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -605,21 +462,17 @@ public com.google.cloud.billing.budgets.v1.Budget getBudget(
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1.ListBudgetsResponse listBudgets( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { + public com.google.cloud.billing.budgets.v1.ListBudgetsResponse listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBudgetsMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.protobuf.Empty deleteBudget( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { + public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); } @@ -627,7 +480,6 @@ public com.google.protobuf.Empty deleteBudget( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -635,7 +487,8 @@ public com.google.protobuf.Empty deleteBudget(
    */
   public static final class BudgetServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private BudgetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -646,24 +499,19 @@ protected BudgetServiceFutureStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1.Budget> - createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture createBudget( + com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -671,16 +519,13 @@ protected BudgetServiceFutureStub build(
      * this API will not be changed by this method.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1.Budget> - updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateBudget( + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -689,16 +534,13 @@ protected BudgetServiceFutureStub build(
      * in the Cloud Console.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1.Budget> - getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture getBudget( + com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -707,22 +549,19 @@ protected BudgetServiceFutureStub build(
      * in the Cloud Console.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1.ListBudgetsResponse> - listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listBudgets( + com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteBudget( + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request); } @@ -734,11 +573,11 @@ protected BudgetServiceFutureStub build( private static final int METHODID_LIST_BUDGETS = 3; private static final int METHODID_DELETE_BUDGET = 4; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -752,32 +591,23 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_BUDGET: - serviceImpl.createBudget( - (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createBudget((com.google.cloud.billing.budgets.v1.CreateBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_BUDGET: - serviceImpl.updateBudget( - (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateBudget((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BUDGET: - serviceImpl.getBudget( - (com.google.cloud.billing.budgets.v1.GetBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getBudget((com.google.cloud.billing.budgets.v1.GetBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BUDGETS: - serviceImpl.listBudgets( - (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listBudgets((com.google.cloud.billing.budgets.v1.ListBudgetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_BUDGET: - serviceImpl.deleteBudget( - (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) request, + serviceImpl.deleteBudget((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -799,42 +629,45 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.CreateBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_CREATE_BUDGET))) + getCreateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.CreateBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>( + service, METHODID_CREATE_BUDGET))) .addMethod( - getUpdateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_UPDATE_BUDGET))) + getUpdateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>( + service, METHODID_UPDATE_BUDGET))) .addMethod( - getGetBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.GetBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_GET_BUDGET))) + getGetBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.GetBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>( + service, METHODID_GET_BUDGET))) .addMethod( - getListBudgetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.ListBudgetsRequest, - com.google.cloud.billing.budgets.v1.ListBudgetsResponse>( - service, METHODID_LIST_BUDGETS))) + getListBudgetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.ListBudgetsRequest, + com.google.cloud.billing.budgets.v1.ListBudgetsResponse>( + service, METHODID_LIST_BUDGETS))) .addMethod( - getDeleteBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_BUDGET))) + getDeleteBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_BUDGET))) .build(); } - private abstract static class BudgetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class BudgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { BudgetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -876,16 +709,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BudgetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) - .addMethod(getCreateBudgetMethod()) - .addMethod(getUpdateBudgetMethod()) - .addMethod(getGetBudgetMethod()) - .addMethod(getListBudgetsMethod()) - .addMethod(getDeleteBudgetMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) + .addMethod(getCreateBudgetMethod()) + .addMethod(getUpdateBudgetMethod()) + .addMethod(getGetBudgetMethod()) + .addMethod(getListBudgetsMethod()) + .addMethod(getDeleteBudgetMethod()) + .build(); } } } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java similarity index 100% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java similarity index 67% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java index cc9908d846ca..fd6004206b3d 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * A budget is a plan that describes what you expect to spend on Cloud
  * projects, plus the rules to execute as spend is tracked against that plan,
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.Budget}
  */
-public final class Budget extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Budget extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.Budget)
     BudgetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Budget.newBuilder() to construct.
   private Budget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Budget() {
     name_ = "";
     displayName_ = "";
@@ -50,32 +32,28 @@ private Budget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Budget();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.Budget.class,
-            com.google.cloud.billing.budgets.v1.Budget.Builder.class);
+            com.google.cloud.billing.budgets.v1.Budget.class, com.google.cloud.billing.budgets.v1.Budget.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -92,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -108,15 +84,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,19 +102,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -146,30 +119,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; } } /** - * - * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; - * * @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 { @@ -180,18 +153,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int BUDGET_FILTER_FIELD_NUMBER = 3; private com.google.cloud.billing.budgets.v1.Filter budgetFilter_; /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ @java.lang.Override @@ -199,59 +167,41 @@ public boolean hasBudgetFilter() { return budgetFilter_ != null; } /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter getBudgetFilter() { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; } /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder() { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; } public static final int AMOUNT_FIELD_NUMBER = 4; private com.google.cloud.billing.budgets.v1.BudgetAmount amount_; /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ @java.lang.Override @@ -259,49 +209,33 @@ public boolean hasAmount() { return amount_ != null; } /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmount getAmount() { - return amount_ == null - ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; } /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder() { - return amount_ == null - ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; } public static final int THRESHOLD_RULES_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List thresholdRules_; /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -311,17 +245,13 @@ public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuil
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getThresholdRulesList() { return thresholdRules_; } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -331,18 +261,14 @@ public java.util.List getThre
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getThresholdRulesOrBuilderList() { return thresholdRules_; } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -352,17 +278,13 @@ public java.util.List getThre
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getThresholdRulesCount() { return thresholdRules_.size(); } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -372,17 +294,13 @@ public int getThresholdRulesCount() {
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index) { return thresholdRules_.get(index); } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -392,9 +310,7 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( @@ -405,17 +321,12 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu public static final int NOTIFICATIONS_RULE_FIELD_NUMBER = 6; private com.google.cloud.billing.budgets.v1.NotificationsRule notificationsRule_; /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the notificationsRule field is set. */ @java.lang.Override @@ -423,52 +334,35 @@ public boolean hasNotificationsRule() { return notificationsRule_ != null; } /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The notificationsRule. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule() { - return notificationsRule_ == null - ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() - : notificationsRule_; + return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; } /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder - getNotificationsRuleOrBuilder() { - return notificationsRule_ == null - ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() - : notificationsRule_; + public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder() { + return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; } public static final int ETAG_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -476,7 +370,6 @@ public com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRul
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -485,15 +378,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -501,15 +393,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -518,7 +411,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -530,7 +422,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_); } @@ -568,16 +461,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (budgetFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBudgetFilter()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBudgetFilter()); } if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAmount()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAmount()); } for (int i = 0; i < thresholdRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, thresholdRules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, thresholdRules_.get(i)); } if (notificationsRule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNotificationsRule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getNotificationsRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); @@ -590,30 +487,36 @@ 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.budgets.v1.Budget)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.Budget other = - (com.google.cloud.billing.budgets.v1.Budget) obj; + com.google.cloud.billing.budgets.v1.Budget other = (com.google.cloud.billing.budgets.v1.Budget) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasBudgetFilter() != other.hasBudgetFilter()) return false; if (hasBudgetFilter()) { - if (!getBudgetFilter().equals(other.getBudgetFilter())) return false; + if (!getBudgetFilter() + .equals(other.getBudgetFilter())) return false; } if (hasAmount() != other.hasAmount()) return false; if (hasAmount()) { - if (!getAmount().equals(other.getAmount())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; } - if (!getThresholdRulesList().equals(other.getThresholdRulesList())) return false; + if (!getThresholdRulesList() + .equals(other.getThresholdRulesList())) return false; if (hasNotificationsRule() != other.hasNotificationsRule()) return false; if (hasNotificationsRule()) { - if (!getNotificationsRule().equals(other.getNotificationsRule())) return false; + if (!getNotificationsRule() + .equals(other.getNotificationsRule())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -652,104 +555,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1.Budget parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1.Budget parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.Budget parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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 budget is a plan that describes what you expect to spend on Cloud
    * projects, plus the rules to execute as spend is tracked against that plan,
@@ -760,32 +658,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.Budget}
    */
-  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.budgets.v1.Budget)
       com.google.cloud.billing.budgets.v1.BudgetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.Budget.class,
-              com.google.cloud.billing.budgets.v1.Budget.Builder.class);
+              com.google.cloud.billing.budgets.v1.Budget.class, com.google.cloud.billing.budgets.v1.Budget.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.Budget.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -819,9 +718,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
     }
 
     @java.lang.Override
@@ -840,12 +739,9 @@ public com.google.cloud.billing.budgets.v1.Budget build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.Budget buildPartial() {
-      com.google.cloud.billing.budgets.v1.Budget result =
-          new com.google.cloud.billing.budgets.v1.Budget(this);
+      com.google.cloud.billing.budgets.v1.Budget result = new com.google.cloud.billing.budgets.v1.Budget(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -871,17 +767,19 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Budget result) {
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.budgetFilter_ =
-            budgetFilterBuilder_ == null ? budgetFilter_ : budgetFilterBuilder_.build();
+        result.budgetFilter_ = budgetFilterBuilder_ == null
+            ? budgetFilter_
+            : budgetFilterBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.amount_ = amountBuilder_ == null ? amount_ : amountBuilder_.build();
+        result.amount_ = amountBuilder_ == null
+            ? amount_
+            : amountBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.notificationsRule_ =
-            notificationsRuleBuilder_ == null
-                ? notificationsRule_
-                : notificationsRuleBuilder_.build();
+        result.notificationsRule_ = notificationsRuleBuilder_ == null
+            ? notificationsRule_
+            : notificationsRuleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.etag_ = etag_;
@@ -892,39 +790,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Budget result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.budgets.v1.Budget) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.Budget) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.Budget)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -967,10 +864,9 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.Budget other) {
             thresholdRulesBuilder_ = null;
             thresholdRules_ = other.thresholdRules_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            thresholdRulesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getThresholdRulesFieldBuilder()
-                    : null;
+            thresholdRulesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getThresholdRulesFieldBuilder() : null;
           } else {
             thresholdRulesBuilder_.addAllMessages(other.thresholdRules_);
           }
@@ -1010,64 +906,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getBudgetFilterFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.cloud.billing.budgets.v1.ThresholdRule m =
-                    input.readMessage(
-                        com.google.cloud.billing.budgets.v1.ThresholdRule.parser(),
-                        extensionRegistry);
-                if (thresholdRulesBuilder_ == null) {
-                  ensureThresholdRulesIsMutable();
-                  thresholdRules_.add(m);
-                } else {
-                  thresholdRulesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(
-                    getNotificationsRuleFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getBudgetFilterFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getAmountFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              com.google.cloud.billing.budgets.v1.ThresholdRule m =
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1.ThresholdRule.parser(),
+                      extensionRegistry);
+              if (thresholdRulesBuilder_ == null) {
+                ensureThresholdRulesIsMutable();
+                thresholdRules_.add(m);
+              } else {
+                thresholdRulesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getNotificationsRuleFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1077,13 +970,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1091,13 +981,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1106,8 +996,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1115,14 +1003,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1130,8 +1019,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1139,22 +1026,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1162,7 +1045,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1172,8 +1054,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1181,14 +1061,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1198,21 +1076,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; - * * @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; @@ -1221,22 +1097,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; - * * @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 { @@ -1244,37 +1119,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1284,22 +1152,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1309,64 +1173,45 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.budgets.v1.Filter budgetFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, - com.google.cloud.billing.budgets.v1.Filter.Builder, - com.google.cloud.billing.budgets.v1.FilterOrBuilder> - budgetFilterBuilder_; + com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder> budgetFilterBuilder_; /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ public boolean hasBudgetFilter() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ public com.google.cloud.billing.budgets.v1.Filter getBudgetFilter() { if (budgetFilterBuilder_ == null) { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; } else { return budgetFilterBuilder_.getMessage(); } } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) { if (budgetFilterBuilder_ == null) { @@ -1382,17 +1227,13 @@ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBudgetFilter( com.google.cloud.billing.budgets.v1.Filter.Builder builderForValue) { @@ -1406,23 +1247,19 @@ public Builder setBudgetFilter( return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) { if (budgetFilterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && budgetFilter_ != null - && budgetFilter_ != com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + budgetFilter_ != null && + budgetFilter_ != com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance()) { getBudgetFilterBuilder().mergeFrom(value); } else { budgetFilter_ = value; @@ -1435,17 +1272,13 @@ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1.Filter valu return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBudgetFilter() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1458,17 +1291,13 @@ public Builder clearBudgetFilter() { return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.Filter.Builder getBudgetFilterBuilder() { bitField0_ |= 0x00000004; @@ -1476,52 +1305,40 @@ public com.google.cloud.billing.budgets.v1.Filter.Builder getBudgetFilterBuilder return getBudgetFilterFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder() { if (budgetFilterBuilder_ != null) { return budgetFilterBuilder_.getMessageOrBuilder(); } else { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? + com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; } } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, - com.google.cloud.billing.budgets.v1.Filter.Builder, - com.google.cloud.billing.budgets.v1.FilterOrBuilder> + com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder> getBudgetFilterFieldBuilder() { if (budgetFilterBuilder_ == null) { - budgetFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, - com.google.cloud.billing.budgets.v1.Filter.Builder, - com.google.cloud.billing.budgets.v1.FilterOrBuilder>( - getBudgetFilter(), getParentForChildren(), isClean()); + budgetFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder>( + getBudgetFilter(), + getParentForChildren(), + isClean()); budgetFilter_ = null; } return budgetFilterBuilder_; @@ -1529,58 +1346,39 @@ public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuil private com.google.cloud.billing.budgets.v1.BudgetAmount amount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, - com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> - amountBuilder_; + com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> amountBuilder_; /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ public boolean hasAmount() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ public com.google.cloud.billing.budgets.v1.BudgetAmount getAmount() { if (amountBuilder_ == null) { - return amount_ == null - ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; } else { return amountBuilder_.getMessage(); } } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) { if (amountBuilder_ == null) { @@ -1596,15 +1394,11 @@ public Builder setAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAmount( com.google.cloud.billing.budgets.v1.BudgetAmount.Builder builderForValue) { @@ -1618,21 +1412,17 @@ public Builder setAmount( return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) { if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && amount_ != null - && amount_ != com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + amount_ != null && + amount_ != com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) { getAmountBuilder().mergeFrom(value); } else { amount_ = value; @@ -1645,15 +1435,11 @@ public Builder mergeAmount(com.google.cloud.billing.budgets.v1.BudgetAmount valu return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1666,15 +1452,11 @@ public Builder clearAmount() { return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.BudgetAmount.Builder getAmountBuilder() { bitField0_ |= 0x00000008; @@ -1682,74 +1464,54 @@ public com.google.cloud.billing.budgets.v1.BudgetAmount.Builder getAmountBuilder return getAmountFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { - return amount_ == null - ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? + com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; } } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, - com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> + com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { - amountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, - com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder>( - getAmount(), getParentForChildren(), isClean()); + amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder>( + getAmount(), + getParentForChildren(), + isClean()); amount_ = null; } return amountBuilder_; } private java.util.List thresholdRules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureThresholdRulesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - thresholdRules_ = - new java.util.ArrayList( - thresholdRules_); + thresholdRules_ = new java.util.ArrayList(thresholdRules_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, - com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> - thresholdRulesBuilder_; + com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> thresholdRulesBuilder_; /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1759,12 +1521,9 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesList() { + public java.util.List getThresholdRulesList() { if (thresholdRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(thresholdRules_); } else { @@ -1772,8 +1531,6 @@ private void ensureThresholdRulesIsMutable() { } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1783,9 +1540,7 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getThresholdRulesCount() { if (thresholdRulesBuilder_ == null) { @@ -1795,8 +1550,6 @@ public int getThresholdRulesCount() { } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1806,9 +1559,7 @@ public int getThresholdRulesCount() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1818,8 +1569,6 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1829,9 +1578,7 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule value) { @@ -1848,8 +1595,6 @@ public Builder setThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1859,9 +1604,7 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1875,8 +1618,6 @@ public Builder setThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1886,9 +1627,7 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRule value) { if (thresholdRulesBuilder_ == null) { @@ -1904,8 +1643,6 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRu return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1915,9 +1652,7 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRu
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule value) { @@ -1934,8 +1669,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1945,9 +1678,7 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1961,8 +1692,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1972,9 +1701,7 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1988,8 +1715,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1999,15 +1724,14 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllThresholdRules( java.lang.Iterable values) { if (thresholdRulesBuilder_ == null) { ensureThresholdRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholdRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, thresholdRules_); onChanged(); } else { thresholdRulesBuilder_.addAllMessages(values); @@ -2015,8 +1739,6 @@ public Builder addAllThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2026,9 +1748,7 @@ public Builder addAllThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearThresholdRules() { if (thresholdRulesBuilder_ == null) { @@ -2041,8 +1761,6 @@ public Builder clearThresholdRules() { return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2052,9 +1770,7 @@ public Builder clearThresholdRules() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -2067,8 +1783,6 @@ public Builder removeThresholdRules(int index) { return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2078,17 +1792,13 @@ public Builder removeThresholdRules(int index) {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder getThresholdRulesBuilder( int index) { return getThresholdRulesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2098,21 +1808,16 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder getThresholdRul
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( int index) { if (thresholdRulesBuilder_ == null) { - return thresholdRules_.get(index); - } else { + return thresholdRules_.get(index); } else { return thresholdRulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2122,12 +1827,10 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesOrBuilderList() { + public java.util.List + getThresholdRulesOrBuilderList() { if (thresholdRulesBuilder_ != null) { return thresholdRulesBuilder_.getMessageOrBuilderList(); } else { @@ -2135,8 +1838,6 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2146,17 +1847,13 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRulesBuilder() { - return getThresholdRulesFieldBuilder() - .addBuilder(com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder().addBuilder( + com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2166,19 +1863,14 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRulesBuilder( int index) { - return getThresholdRulesFieldBuilder() - .addBuilder( - index, com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder().addBuilder( + index, com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2188,26 +1880,18 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesBuilderList() { + public java.util.List + getThresholdRulesBuilderList() { return getThresholdRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, - com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> + com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> getThresholdRulesFieldBuilder() { if (thresholdRulesBuilder_ == null) { - thresholdRulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, - com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder>( + thresholdRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder>( thresholdRules_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -2219,64 +1903,44 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul private com.google.cloud.billing.budgets.v1.NotificationsRule notificationsRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, - com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, - com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> - notificationsRuleBuilder_; + com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> notificationsRuleBuilder_; /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the notificationsRule field is set. */ public boolean hasNotificationsRule() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The notificationsRule. */ public com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule() { if (notificationsRuleBuilder_ == null) { - return notificationsRule_ == null - ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() - : notificationsRule_; + return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; } else { return notificationsRuleBuilder_.getMessage(); } } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setNotificationsRule( - com.google.cloud.billing.budgets.v1.NotificationsRule value) { + public Builder setNotificationsRule(com.google.cloud.billing.budgets.v1.NotificationsRule value) { if (notificationsRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2290,16 +1954,12 @@ public Builder setNotificationsRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setNotificationsRule( com.google.cloud.billing.budgets.v1.NotificationsRule.Builder builderForValue) { @@ -2313,24 +1973,18 @@ public Builder setNotificationsRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeNotificationsRule( - com.google.cloud.billing.budgets.v1.NotificationsRule value) { + public Builder mergeNotificationsRule(com.google.cloud.billing.budgets.v1.NotificationsRule value) { if (notificationsRuleBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && notificationsRule_ != null - && notificationsRule_ - != com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + notificationsRule_ != null && + notificationsRule_ != com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) { getNotificationsRuleBuilder().mergeFrom(value); } else { notificationsRule_ = value; @@ -2343,16 +1997,12 @@ public Builder mergeNotificationsRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearNotificationsRule() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2365,69 +2015,51 @@ public Builder clearNotificationsRule() { return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1.NotificationsRule.Builder - getNotificationsRuleBuilder() { + public com.google.cloud.billing.budgets.v1.NotificationsRule.Builder getNotificationsRuleBuilder() { bitField0_ |= 0x00000020; onChanged(); return getNotificationsRuleFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder - getNotificationsRuleOrBuilder() { + public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder() { if (notificationsRuleBuilder_ != null) { return notificationsRuleBuilder_.getMessageOrBuilder(); } else { - return notificationsRule_ == null - ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() - : notificationsRule_; + return notificationsRule_ == null ? + com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; } } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, - com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, - com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> + com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> getNotificationsRuleFieldBuilder() { if (notificationsRuleBuilder_ == null) { - notificationsRuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, - com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, - com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder>( - getNotificationsRule(), getParentForChildren(), isClean()); + notificationsRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder>( + getNotificationsRule(), + getParentForChildren(), + isClean()); notificationsRule_ = null; } return notificationsRuleBuilder_; @@ -2435,8 +2067,6 @@ public Builder clearNotificationsRule() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2444,13 +2074,13 @@ public Builder clearNotificationsRule() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -2459,8 +2089,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2468,14 +2096,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -2483,8 +2112,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2492,22 +2119,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2515,7 +2138,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2525,8 +2147,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2534,23 +2154,21 @@ public Builder clearEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000040; 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); } @@ -2560,12 +2178,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.Budget) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.Budget) private static final com.google.cloud.billing.budgets.v1.Budget DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.Budget(); } @@ -2574,27 +2192,27 @@ public static com.google.cloud.billing.budgets.v1.Budget getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Budget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Budget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2609,4 +2227,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.Budget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java similarity index 75% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java index a020eaa55bb5..8a191ce5a0fc 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java @@ -1,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * The budgeted amount for each usage period.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.BudgetAmount} */ -public final class BudgetAmount extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BudgetAmount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.BudgetAmount) BudgetAmountOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BudgetAmount.newBuilder() to construct. private BudgetAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BudgetAmount() {} + private BudgetAmount() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BudgetAmount(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.BudgetAmount.class, - com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1.BudgetAmount.class, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); } private int budgetAmountCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object budgetAmount_; - public enum BudgetAmountCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SPECIFIED_AMOUNT(1), LAST_PERIOD_AMOUNT(2), BUDGETAMOUNT_NOT_SET(0); private final int value; - private BudgetAmountCase(int value) { this.value = value; } @@ -89,30 +67,25 @@ public static BudgetAmountCase valueOf(int value) { public static BudgetAmountCase forNumber(int value) { switch (value) { - case 1: - return SPECIFIED_AMOUNT; - case 2: - return LAST_PERIOD_AMOUNT; - case 0: - return BUDGETAMOUNT_NOT_SET; - default: - return null; + case 1: return SPECIFIED_AMOUNT; + case 2: return LAST_PERIOD_AMOUNT; + case 0: return BUDGETAMOUNT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public BudgetAmountCase getBudgetAmountCase() { - return BudgetAmountCase.forNumber(budgetAmountCase_); + public BudgetAmountCase + getBudgetAmountCase() { + return BudgetAmountCase.forNumber( + budgetAmountCase_); } public static final int SPECIFIED_AMOUNT_FIELD_NUMBER = 1; /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -122,7 +95,6 @@ public BudgetAmountCase getBudgetAmountCase() {
    * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -130,8 +102,6 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -141,19 +111,16 @@ public boolean hasSpecifiedAmount() {
    * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ @java.lang.Override public com.google.type.Money getSpecifiedAmount() { if (budgetAmountCase_ == 1) { - return (com.google.type.Money) budgetAmount_; + return (com.google.type.Money) budgetAmount_; } return com.google.type.Money.getDefaultInstance(); } /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -167,15 +134,13 @@ public com.google.type.Money getSpecifiedAmount() {
   @java.lang.Override
   public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     if (budgetAmountCase_ == 1) {
-      return (com.google.type.Money) budgetAmount_;
+       return (com.google.type.Money) budgetAmount_;
     }
     return com.google.type.Money.getDefaultInstance();
   }
 
   public static final int LAST_PERIOD_AMOUNT_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -185,7 +150,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -193,8 +157,6 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -204,19 +166,16 @@ public boolean hasLastPeriodAmount() {
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount() { if (budgetAmountCase_ == 2) { - return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_; + return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_; } return com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance(); } /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -228,16 +187,14 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount(
    * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
    */
   @java.lang.Override
-  public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder
-      getLastPeriodAmountOrBuilder() {
+  public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
     if (budgetAmountCase_ == 2) {
-      return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_;
+       return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_;
     }
     return com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -249,7 +206,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 (budgetAmountCase_ == 1) {
       output.writeMessage(1, (com.google.type.Money) budgetAmount_);
     }
@@ -266,14 +224,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (budgetAmountCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.type.Money) budgetAmount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -283,21 +239,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.budgets.v1.BudgetAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.BudgetAmount other =
-        (com.google.cloud.billing.budgets.v1.BudgetAmount) obj;
+    com.google.cloud.billing.budgets.v1.BudgetAmount other = (com.google.cloud.billing.budgets.v1.BudgetAmount) obj;
 
     if (!getBudgetAmountCase().equals(other.getBudgetAmountCase())) return false;
     switch (budgetAmountCase_) {
       case 1:
-        if (!getSpecifiedAmount().equals(other.getSpecifiedAmount())) return false;
+        if (!getSpecifiedAmount()
+            .equals(other.getSpecifiedAmount())) return false;
         break;
       case 2:
-        if (!getLastPeriodAmount().equals(other.getLastPeriodAmount())) return false;
+        if (!getLastPeriodAmount()
+            .equals(other.getLastPeriodAmount())) return false;
         break;
       case 0:
       default:
@@ -330,136 +287,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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;
   }
   /**
-   *
-   *
    * 
    * The budgeted amount for each usage period.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.BudgetAmount} */ - 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.budgets.v1.BudgetAmount) com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.BudgetAmount.class, - com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1.BudgetAmount.class, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.BudgetAmount.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override @@ -497,11 +450,8 @@ public com.google.cloud.billing.budgets.v1.BudgetAmount build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmount buildPartial() { - com.google.cloud.billing.budgets.v1.BudgetAmount result = - new com.google.cloud.billing.budgets.v1.BudgetAmount(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.BudgetAmount result = new com.google.cloud.billing.budgets.v1.BudgetAmount(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -514,10 +464,12 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.BudgetAmount resu private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.BudgetAmount result) { result.budgetAmountCase_ = budgetAmountCase_; result.budgetAmount_ = this.budgetAmount_; - if (budgetAmountCase_ == 1 && specifiedAmountBuilder_ != null) { + if (budgetAmountCase_ == 1 && + specifiedAmountBuilder_ != null) { result.budgetAmount_ = specifiedAmountBuilder_.build(); } - if (budgetAmountCase_ == 2 && lastPeriodAmountBuilder_ != null) { + if (budgetAmountCase_ == 2 && + lastPeriodAmountBuilder_ != null) { result.budgetAmount_ = lastPeriodAmountBuilder_.build(); } } @@ -526,39 +478,38 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount) { - return mergeFrom((com.google.cloud.billing.budgets.v1.BudgetAmount) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.BudgetAmount)other); } else { super.mergeFrom(other); return this; @@ -566,23 +517,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.BudgetAmount other) { - if (other == com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) return this; switch (other.getBudgetAmountCase()) { - case SPECIFIED_AMOUNT: - { - mergeSpecifiedAmount(other.getSpecifiedAmount()); - break; - } - case LAST_PERIOD_AMOUNT: - { - mergeLastPeriodAmount(other.getLastPeriodAmount()); - break; - } - case BUDGETAMOUNT_NOT_SET: - { - break; - } + case SPECIFIED_AMOUNT: { + mergeSpecifiedAmount(other.getSpecifiedAmount()); + break; + } + case LAST_PERIOD_AMOUNT: { + mergeLastPeriodAmount(other.getLastPeriodAmount()); + break; + } + case BUDGETAMOUNT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -610,26 +557,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSpecifiedAmountFieldBuilder().getBuilder(), extensionRegistry); - budgetAmountCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getLastPeriodAmountFieldBuilder().getBuilder(), extensionRegistry); - budgetAmountCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSpecifiedAmountFieldBuilder().getBuilder(), + extensionRegistry); + budgetAmountCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getLastPeriodAmountFieldBuilder().getBuilder(), + extensionRegistry); + budgetAmountCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -639,12 +586,12 @@ public Builder mergeFrom( } // finally return this; } - private int budgetAmountCase_ = 0; private java.lang.Object budgetAmount_; - - public BudgetAmountCase getBudgetAmountCase() { - return BudgetAmountCase.forNumber(budgetAmountCase_); + public BudgetAmountCase + getBudgetAmountCase() { + return BudgetAmountCase.forNumber( + budgetAmountCase_); } public Builder clearBudgetAmount() { @@ -657,11 +604,8 @@ public Builder clearBudgetAmount() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - specifiedAmountBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> specifiedAmountBuilder_; /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -671,7 +615,6 @@ public Builder clearBudgetAmount() {
      * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -679,8 +622,6 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -690,7 +631,6 @@ public boolean hasSpecifiedAmount() {
      * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ @java.lang.Override @@ -708,8 +648,6 @@ public com.google.type.Money getSpecifiedAmount() { } } /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -734,8 +672,6 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -746,7 +682,8 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
      *
      * .google.type.Money specified_amount = 1;
      */
-    public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue) {
+    public Builder setSpecifiedAmount(
+        com.google.type.Money.Builder builderForValue) {
       if (specifiedAmountBuilder_ == null) {
         budgetAmount_ = builderForValue.build();
         onChanged();
@@ -757,8 +694,6 @@ public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -771,11 +706,10 @@ public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
      */
     public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       if (specifiedAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 1 && budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
-          budgetAmount_ =
-              com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (budgetAmountCase_ == 1 &&
+            budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
+          budgetAmount_ = com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
+              .mergeFrom(value).buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -791,8 +725,6 @@ public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -820,8 +752,6 @@ public Builder clearSpecifiedAmount() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -836,8 +766,6 @@ public com.google.type.Money.Builder getSpecifiedAmountBuilder() {
       return getSpecifiedAmountFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -860,8 +788,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -873,18 +799,17 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * .google.type.Money specified_amount = 1;
      */
     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> 
         getSpecifiedAmountFieldBuilder() {
       if (specifiedAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 1)) {
           budgetAmount_ = com.google.type.Money.getDefaultInstance();
         }
-        specifiedAmountBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Money,
-                com.google.type.Money.Builder,
-                com.google.type.MoneyOrBuilder>(
-                (com.google.type.Money) budgetAmount_, getParentForChildren(), isClean());
+        specifiedAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
+                (com.google.type.Money) budgetAmount_,
+                getParentForChildren(),
+                isClean());
         budgetAmount_ = null;
       }
       budgetAmountCase_ = 1;
@@ -893,13 +818,8 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount,
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
-            com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>
-        lastPeriodAmountBuilder_;
+        com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder> lastPeriodAmountBuilder_;
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -909,7 +829,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -917,8 +836,6 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** - * - * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -928,7 +845,6 @@ public boolean hasLastPeriodAmount() {
      * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ @java.lang.Override @@ -946,8 +862,6 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount( } } /** - * - * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -972,8 +886,6 @@ public Builder setLastPeriodAmount(com.google.cloud.billing.budgets.v1.LastPerio
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -996,8 +908,6 @@ public Builder setLastPeriodAmount(
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1008,17 +918,12 @@ public Builder setLastPeriodAmount(
      *
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder mergeLastPeriodAmount(
-        com.google.cloud.billing.budgets.v1.LastPeriodAmount value) {
+    public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 2
-            && budgetAmount_
-                != com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) {
-          budgetAmount_ =
-              com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder(
-                      (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (budgetAmountCase_ == 2 &&
+            budgetAmount_ != com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) {
+          budgetAmount_ = com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder((com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_)
+              .mergeFrom(value).buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -1034,8 +939,6 @@ public Builder mergeLastPeriodAmount(
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1063,8 +966,6 @@ public Builder clearLastPeriodAmount() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1075,13 +976,10 @@ public Builder clearLastPeriodAmount() {
      *
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
-    public com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder
-        getLastPeriodAmountBuilder() {
+    public com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder getLastPeriodAmountBuilder() {
       return getLastPeriodAmountFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1093,8 +991,7 @@ public Builder clearLastPeriodAmount() {
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
     @java.lang.Override
-    public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder
-        getLastPeriodAmountOrBuilder() {
+    public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
       if ((budgetAmountCase_ == 2) && (lastPeriodAmountBuilder_ != null)) {
         return lastPeriodAmountBuilder_.getMessageOrBuilder();
       } else {
@@ -1105,8 +1002,6 @@ public Builder clearLastPeriodAmount() {
       }
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1118,19 +1013,14 @@ public Builder clearLastPeriodAmount() {
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount,
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
-            com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>
+        com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder> 
         getLastPeriodAmountFieldBuilder() {
       if (lastPeriodAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 2)) {
           budgetAmount_ = com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance();
         }
-        lastPeriodAmountBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.billing.budgets.v1.LastPeriodAmount,
-                com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
-                com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>(
+        lastPeriodAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>(
                 (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_,
                 getParentForChildren(),
                 isClean());
@@ -1140,9 +1030,9 @@ public Builder clearLastPeriodAmount() {
       onChanged();
       return lastPeriodAmountBuilder_;
     }
-
     @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);
     }
 
@@ -1152,12 +1042,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.BudgetAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.BudgetAmount)
   private static final com.google.cloud.billing.budgets.v1.BudgetAmount DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.BudgetAmount();
   }
@@ -1166,27 +1056,27 @@ public static com.google.cloud.billing.budgets.v1.BudgetAmount getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BudgetAmount parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BudgetAmount parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1201,4 +1091,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.BudgetAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
similarity index 83%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
index a85cbf0038c9..4df69f28b1b1 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface BudgetAmountOrBuilder
-    extends
+public interface BudgetAmountOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.BudgetAmount)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -35,13 +17,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ boolean hasSpecifiedAmount(); /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -51,13 +30,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ com.google.type.Money getSpecifiedAmount(); /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -71,8 +47,6 @@ public interface BudgetAmountOrBuilder
   com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder();
 
   /**
-   *
-   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -82,13 +56,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ boolean hasLastPeriodAmount(); /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -98,13 +69,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount(); /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java
new file mode 100644
index 000000000000..39b067d2968a
--- /dev/null
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java
@@ -0,0 +1,196 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1;
+
+public final class BudgetModelProto {
+  private BudgetModelProto() {}
+  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_budgets_v1_Budget_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_Filter_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n2google/cloud/billing/budgets/v1/budget" +
+      "_model.proto\022\037google.cloud.billing.budge" +
+      "ts.v1\032\037google/api/field_behavior.proto\032\031" +
+      "google/api/resource.proto\032\034google/protob" +
+      "uf/struct.proto\032\026google/type/date.proto\032" +
+      "\027google/type/money.proto\"\325\003\n\006Budget\022\022\n\004n" +
+      "ame\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\002 \001(\t\022D\n" +
+      "\rbudget_filter\030\003 \001(\0132\'.google.cloud.bill" +
+      "ing.budgets.v1.FilterB\004\342A\001\001\022C\n\006amount\030\004 " +
+      "\001(\0132-.google.cloud.billing.budgets.v1.Bu" +
+      "dgetAmountB\004\342A\001\002\022M\n\017threshold_rules\030\005 \003(" +
+      "\0132..google.cloud.billing.budgets.v1.Thre" +
+      "sholdRuleB\004\342A\001\001\022T\n\022notifications_rule\030\006 " +
+      "\001(\01322.google.cloud.billing.budgets.v1.No" +
+      "tificationsRuleB\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001" +
+      "\001:]\352AZ\n$billingbudgets.googleapis.com/Bu" +
+      "dget\0222billingAccounts/{billing_account}/" +
+      "budgets/{budget}\"\240\001\n\014BudgetAmount\022.\n\020spe" +
+      "cified_amount\030\001 \001(\0132\022.google.type.MoneyH" +
+      "\000\022O\n\022last_period_amount\030\002 \001(\01321.google.c" +
+      "loud.billing.budgets.v1.LastPeriodAmount" +
+      "H\000B\017\n\rbudget_amount\"\022\n\020LastPeriodAmount\"" +
+      "\312\001\n\rThresholdRule\022\037\n\021threshold_percent\030\001" +
+      " \001(\001B\004\342A\001\002\022O\n\013spend_basis\030\002 \001(\01624.google" +
+      ".cloud.billing.budgets.v1.ThresholdRule." +
+      "BasisB\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIE" +
+      "D\020\000\022\021\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPE" +
+      "ND\020\002\"\253\001\n\021NotificationsRule\022\032\n\014pubsub_top" +
+      "ic\030\001 \001(\tB\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004" +
+      "\342A\001\001\022.\n monitoring_notification_channels" +
+      "\030\003 \003(\tB\004\342A\001\001\022,\n\036disable_default_iam_reci" +
+      "pients\030\004 \001(\010B\004\342A\001\001\"\315\005\n\006Filter\022\026\n\010project" +
+      "s\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(" +
+      "\tB\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022b\n\026c" +
+      "redit_types_treatment\030\004 \001(\0162<.google.clo" +
+      "ud.billing.budgets.v1.Filter.CreditTypes" +
+      "TreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342A\001\001\022" +
+      "\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022I\n\006labels\030\006 \003" +
+      "(\01323.google.cloud.billing.budgets.v1.Fil" +
+      "ter.LabelsEntryB\004\342A\001\001\022P\n\017calendar_period" +
+      "\030\010 \001(\0162/.google.cloud.billing.budgets.v1" +
+      ".CalendarPeriodB\004\342A\001\001H\000\022L\n\rcustom_period" +
+      "\030\t \001(\0132-.google.cloud.billing.budgets.v1" +
+      ".CustomPeriodB\004\342A\001\001H\000\032I\n\013LabelsEntry\022\013\n\003" +
+      "key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.protob" +
+      "uf.ListValue:\0028\001\"\217\001\n\024CreditTypesTreatmen" +
+      "t\022&\n\"CREDIT_TYPES_TREATMENT_UNSPECIFIED\020" +
+      "\000\022\027\n\023INCLUDE_ALL_CREDITS\020\001\022\027\n\023EXCLUDE_AL" +
+      "L_CREDITS\020\002\022\035\n\031INCLUDE_SPECIFIED_CREDITS" +
+      "\020\003B\016\n\014usage_period\"f\n\014CustomPeriod\022+\n\nst" +
+      "art_date\030\001 \001(\0132\021.google.type.DateB\004\342A\001\002\022" +
+      ")\n\010end_date\030\002 \001(\0132\021.google.type.DateB\004\342A" +
+      "\001\001*S\n\016CalendarPeriod\022\037\n\033CALENDAR_PERIOD_" +
+      "UNSPECIFIED\020\000\022\t\n\005MONTH\020\001\022\013\n\007QUARTER\020\002\022\010\n" +
+      "\004YEAR\020\003Bx\n#com.google.cloud.billing.budg" +
+      "ets.v1B\020BudgetModelProtoP\001Z=cloud.google" +
+      ".com/go/billing/budgets/apiv1/budgetspb;" +
+      "budgetspbb\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.protobuf.StructProto.getDescriptor(),
+          com.google.type.DateProto.getDescriptor(),
+          com.google.type.MoneyProto.getDescriptor(),
+        });
+    internal_static_google_cloud_billing_budgets_v1_Budget_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_Budget_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "BudgetFilter", "Amount", "ThresholdRules", "NotificationsRule", "Etag", });
+    internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor,
+        new java.lang.String[] { "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", });
+    internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor,
+        new java.lang.String[] { });
+    internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor,
+        new java.lang.String[] { "ThresholdPercent", "SpendBasis", });
+    internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor,
+        new java.lang.String[] { "PubsubTopic", "SchemaVersion", "MonitoringNotificationChannels", "DisableDefaultIamRecipients", });
+    internal_static_google_cloud_billing_budgets_v1_Filter_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_Filter_descriptor,
+        new java.lang.String[] { "Projects", "ResourceAncestors", "CreditTypes", "CreditTypesTreatment", "Services", "Subaccounts", "Labels", "CalendarPeriod", "CustomPeriod", "UsagePeriod", });
+    internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor =
+      internal_static_google_cloud_billing_budgets_v1_Filter_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor,
+        new java.lang.String[] { "StartDate", "EndDate", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.type.DateProto.getDescriptor();
+    com.google.type.MoneyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
similarity index 100%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
similarity index 66%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
index 0d257e227b36..f3693adf8d87 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface BudgetOrBuilder
-    extends
+public interface BudgetOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.Budget)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -33,13 +15,10 @@ public interface BudgetOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -47,129 +26,94 @@ public interface BudgetOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ boolean hasBudgetFilter(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ com.google.cloud.billing.budgets.v1.Filter getBudgetFilter(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ boolean hasAmount(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ com.google.cloud.billing.budgets.v1.BudgetAmount getAmount(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -179,14 +123,11 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getThresholdRulesList(); + java.util.List + getThresholdRulesList(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -196,14 +137,10 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -213,14 +150,10 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getThresholdRulesCount(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -230,15 +163,11 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getThresholdRulesOrBuilderList(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -248,59 +177,42 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder(int index); + com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( + int index); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the notificationsRule field is set. */ boolean hasNotificationsRule(); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The notificationsRule. */ com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule(); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder(); /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -308,13 +220,10 @@ public interface BudgetOrBuilder
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -322,8 +231,8 @@ public interface BudgetOrBuilder
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java new file mode 100644 index 000000000000..5b6fe8d2fd92 --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java @@ -0,0 +1,179 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public final class BudgetServiceProto { + private BudgetServiceProto() {} + 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_budgets_v1_CreateBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/billing/budgets/v1/budget" + + "_service.proto\022\037google.cloud.billing.bud" + + "gets.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\0322google/cloud/billing/budgets/v1/budg" + + "et_model.proto\032\033google/protobuf/empty.pr" + + "oto\032 google/protobuf/field_mask.proto\"\223\001" + + "\n\023CreateBudgetRequest\022=\n\006parent\030\001 \001(\tB-\342" + + "A\001\002\372A&\022$billingbudgets.googleapis.com/Bu" + + "dget\022=\n\006budget\030\002 \001(\0132\'.google.cloud.bill" + + "ing.budgets.v1.BudgetB\004\342A\001\002\"\213\001\n\023UpdateBu" + + "dgetRequest\022=\n\006budget\030\001 \001(\0132\'.google.clo" + + "ud.billing.budgets.v1.BudgetB\004\342A\001\002\0225\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\004\342A\001\001\"O\n\020GetBudgetRequest\022;\n\004name\030\001 " + + "\001(\tB-\342A\001\002\372A&\n$billingbudgets.googleapis." + + "com/Budget\"\206\001\n\022ListBudgetsRequest\022=\n\006par" + + "ent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.googl" + + "eapis.com/Budget\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001" + + "\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"h\n\023ListBudge" + + "tsResponse\0228\n\007budgets\030\001 \003(\0132\'.google.clo" + + "ud.billing.budgets.v1.Budget\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"R\n\023DeleteBudgetRequest\022;\n\004" + + "name\030\001 \001(\tB-\342A\001\002\372A&\n$billingbudgets.goog" + + "leapis.com/Budget2\367\007\n\rBudgetService\022\265\001\n\014" + + "CreateBudget\0224.google.cloud.billing.budg" + + "ets.v1.CreateBudgetRequest\032\'.google.clou" + + "d.billing.budgets.v1.Budget\"F\332A\rparent,b" + + "udget\202\323\344\223\0020\"&/v1/{parent=billingAccounts" + + "/*}/budgets:\006budget\022\301\001\n\014UpdateBudget\0224.g" + + "oogle.cloud.billing.budgets.v1.UpdateBud" + + "getRequest\032\'.google.cloud.billing.budget" + + "s.v1.Budget\"R\332A\022budget,update_mask\202\323\344\223\0027" + + "2-/v1/{budget.name=billingAccounts/*/bud" + + "gets/*}:\006budget\022\236\001\n\tGetBudget\0221.google.c" + + "loud.billing.budgets.v1.GetBudgetRequest" + + "\032\'.google.cloud.billing.budgets.v1.Budge" + + "t\"5\332A\004name\202\323\344\223\002(\022&/v1/{name=billingAccou" + + "nts/*/budgets/*}\022\261\001\n\013ListBudgets\0223.googl" + + "e.cloud.billing.budgets.v1.ListBudgetsRe" + + "quest\0324.google.cloud.billing.budgets.v1." + + "ListBudgetsResponse\"7\332A\006parent\202\323\344\223\002(\022&/v" + + "1/{parent=billingAccounts/*}/budgets\022\223\001\n" + + "\014DeleteBudget\0224.google.cloud.billing.bud" + + "gets.v1.DeleteBudgetRequest\032\026.google.pro" + + "tobuf.Empty\"5\332A\004name\202\323\344\223\002(*&/v1/{name=bi" + + "llingAccounts/*/budgets/*}\032\177\312A\035billingbu" + + "dgets.googleapis.com\322A\\https://www.googl" + + "eapis.com/auth/cloud-billing,https://www" + + ".googleapis.com/auth/cloud-platformBz\n#c" + + "om.google.cloud.billing.budgets.v1B\022Budg" + + "etServiceProtoP\001Z=cloud.google.com/go/bi" + + "lling/budgets/apiv1/budgetspb;budgetspbb" + + "\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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor, + new java.lang.String[] { "Parent", "Budget", }); + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor, + new java.lang.String[] { "Budget", "UpdateMask", }); + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor, + new java.lang.String[] { "Budgets", "NextPageToken", }); + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor, + new java.lang.String[] { "Name", }); + 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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java similarity index 70% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java index 491c95765080..33880f22bcab 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * A `CalendarPeriod` represents the abstract concept of a time period that
  * has a canonical start. Grammatically, "the start of the current
@@ -30,10 +13,9 @@
  *
  * Protobuf enum {@code google.cloud.billing.budgets.v1.CalendarPeriod}
  */
-public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
+public enum CalendarPeriod
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -43,8 +25,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   CALENDAR_PERIOD_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -54,8 +34,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   MONTH(1),
   /**
-   *
-   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -65,8 +43,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   QUARTER(2),
   /**
-   *
-   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -78,8 +54,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -89,8 +63,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int CALENDAR_PERIOD_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -100,8 +72,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MONTH_VALUE = 1;
   /**
-   *
-   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -111,8 +81,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int QUARTER_VALUE = 2;
   /**
-   *
-   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -121,6 +89,7 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int YEAR_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -145,53 +114,50 @@ public static CalendarPeriod valueOf(int value) { */ public static CalendarPeriod forNumber(int value) { switch (value) { - case 0: - return CALENDAR_PERIOD_UNSPECIFIED; - case 1: - return MONTH; - case 2: - return QUARTER; - case 3: - return YEAR; - default: - return null; + case 0: return CALENDAR_PERIOD_UNSPECIFIED; + case 1: return MONTH; + case 2: return QUARTER; + case 3: return YEAR; + 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 internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CalendarPeriod findValueByNumber(int number) { - return CalendarPeriod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + CalendarPeriod> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CalendarPeriod findValueByNumber(int number) { + return CalendarPeriod.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() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor().getEnumTypes().get(0); } private static final CalendarPeriod[] VALUES = values(); - public static CalendarPeriod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CalendarPeriod 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; @@ -207,3 +173,4 @@ private CalendarPeriod(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.billing.budgets.v1.CalendarPeriod) } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java similarity index 61% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java index d77555c3db95..4b9a17386873 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * Request for CreateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CreateBudgetRequest} */ -public final class CreateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.CreateBudgetRequest) CreateBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBudgetRequest.newBuilder() to construct. private CreateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBudgetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 @@ -86,32 +61,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 billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 { @@ -122,16 +95,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BUDGET_FIELD_NUMBER = 2; private com.google.cloud.billing.budgets.v1.Budget budget_; /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ @java.lang.Override @@ -139,44 +107,30 @@ public boolean hasBudget() { return budget_ != null; } /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Budget getBudget() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +142,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_); } @@ -208,7 +163,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBudget()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBudget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +174,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.budgets.v1.CreateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.CreateBudgetRequest other = - (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.CreateBudgetRequest other = (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget().equals(other.getBudget())) return false; + if (!getBudget() + .equals(other.getBudget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,136 +211,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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 for CreateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CreateBudgetRequest} */ - 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.budgets.v1.CreateBudgetRequest) com.google.cloud.billing.budgets.v1.CreateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.CreateBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override @@ -419,11 +371,8 @@ public com.google.cloud.billing.budgets.v1.CreateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.CreateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.CreateBudgetRequest result = - new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.CreateBudgetRequest result = new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -434,7 +383,9 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CreateBudgetReque result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null + ? budget_ + : budgetBuilder_.build(); } } @@ -442,39 +393,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CreateBudgetReque 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.budgets.v1.CreateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.CreateBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.CreateBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -482,8 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.CreateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -518,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getBudgetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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; @@ -576,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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 { @@ -601,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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() { @@ -645,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -672,58 +595,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.budgets.v1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> - budgetBuilder_; + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetBuilder_; /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ public com.google.cloud.billing.budgets.v1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } else { return budgetBuilder_.getMessage(); } } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { @@ -739,17 +643,14 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder setBudget( + com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetBuilder_ == null) { budget_ = builderForValue.build(); } else { @@ -760,21 +661,17 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder buil return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && budget_ != null - && budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + budget_ != null && + budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -787,15 +684,11 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000002); @@ -808,15 +701,11 @@ public Builder clearBudget() { return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000002; @@ -824,55 +713,43 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { return getBudgetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? + com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - getBudget(), getParentForChildren(), isClean()); + budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + getBudget(), + getParentForChildren(), + isClean()); budget_ = null; } return budgetBuilder_; } - @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); } @@ -882,12 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.CreateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.CreateBudgetRequest) private static final com.google.cloud.billing.budgets.v1.CreateBudgetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(); } @@ -896,27 +773,27 @@ public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -931,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.CreateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..03e39726fb18 --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface CreateBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CreateBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the budget field is set. + */ + boolean hasBudget(); + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The budget. + */ + com.google.cloud.billing.budgets.v1.Budget getBudget(); + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java similarity index 73% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java index 198536b90b3d..7c3c6e7047da 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CustomPeriod} */ -public final class CustomPeriod extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CustomPeriod extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.CustomPeriod) CustomPeriodOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CustomPeriod.newBuilder() to construct. private CustomPeriod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CustomPeriod() {} + private CustomPeriod() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomPeriod(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CustomPeriod.class, - com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1.CustomPeriod.class, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); } public static final int START_DATE_FIELD_NUMBER = 1; private com.google.type.Date startDate_; /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasStartDate() { return startDate_ != null; } /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.type.Date getStartDate() { return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -109,8 +83,6 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { public static final int END_DATE_FIELD_NUMBER = 2; private com.google.type.Date endDate_; /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -118,7 +90,6 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ @java.lang.Override @@ -126,8 +97,6 @@ public boolean hasEndDate() { return endDate_ != null; } /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -135,7 +104,6 @@ public boolean hasEndDate() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ @java.lang.Override @@ -143,8 +111,6 @@ public com.google.type.Date getEndDate() { return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; } /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -159,7 +125,6 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -171,7 +136,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 (startDate_ != null) {
       output.writeMessage(1, getStartDate());
     }
@@ -188,10 +154,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (startDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getStartDate());
     }
     if (endDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getEndDate());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -201,21 +169,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.budgets.v1.CustomPeriod)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.CustomPeriod other =
-        (com.google.cloud.billing.budgets.v1.CustomPeriod) obj;
+    com.google.cloud.billing.budgets.v1.CustomPeriod other = (com.google.cloud.billing.budgets.v1.CustomPeriod) obj;
 
     if (hasStartDate() != other.hasStartDate()) return false;
     if (hasStartDate()) {
-      if (!getStartDate().equals(other.getStartDate())) return false;
+      if (!getStartDate()
+          .equals(other.getStartDate())) return false;
     }
     if (hasEndDate() != other.hasEndDate()) return false;
     if (hasEndDate()) {
-      if (!getEndDate().equals(other.getEndDate())) return false;
+      if (!getEndDate()
+          .equals(other.getEndDate())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -241,136 +210,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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;
   }
   /**
-   *
-   *
    * 
    * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CustomPeriod} */ - 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.budgets.v1.CustomPeriod) com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CustomPeriod.class, - com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1.CustomPeriod.class, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +354,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override @@ -410,11 +375,8 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriod buildPartial() { - com.google.cloud.billing.budgets.v1.CustomPeriod result = - new com.google.cloud.billing.budgets.v1.CustomPeriod(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.CustomPeriod result = new com.google.cloud.billing.budgets.v1.CustomPeriod(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -422,10 +384,14 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1.CustomPeriod result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); + result.startDate_ = startDateBuilder_ == null + ? startDate_ + : startDateBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); + result.endDate_ = endDateBuilder_ == null + ? endDate_ + : endDateBuilder_.build(); } } @@ -433,39 +399,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CustomPeriod resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.budgets.v1.CustomPeriod) { - return mergeFrom((com.google.cloud.billing.budgets.v1.CustomPeriod) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.CustomPeriod)other); } else { super.mergeFrom(other); return this; @@ -473,8 +438,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.CustomPeriod other) { - if (other == com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) return this; if (other.hasStartDate()) { mergeStartDate(other.getStartDate()); } @@ -507,25 +471,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,36 +500,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.type.Date startDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - startDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> startDateBuilder_; /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ public boolean hasStartDate() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ public com.google.type.Date getStartDate() { @@ -575,8 +532,6 @@ public com.google.type.Date getStartDate() { } } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -597,15 +552,14 @@ public Builder setStartDate(com.google.type.Date value) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + public Builder setStartDate( + com.google.type.Date.Builder builderForValue) { if (startDateBuilder_ == null) { startDate_ = builderForValue.build(); } else { @@ -616,8 +570,6 @@ public Builder setStartDate(com.google.type.Date.Builder builderForValue) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -626,9 +578,9 @@ public Builder setStartDate(com.google.type.Date.Builder builderForValue) { */ public Builder mergeStartDate(com.google.type.Date value) { if (startDateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startDate_ != null - && startDate_ != com.google.type.Date.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + startDate_ != null && + startDate_ != com.google.type.Date.getDefaultInstance()) { getStartDateBuilder().mergeFrom(value); } else { startDate_ = value; @@ -641,8 +593,6 @@ public Builder mergeStartDate(com.google.type.Date value) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -660,8 +610,6 @@ public Builder clearStartDate() { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -674,8 +622,6 @@ public com.google.type.Date.Builder getStartDateBuilder() { return getStartDateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -686,12 +632,11 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { if (startDateBuilder_ != null) { return startDateBuilder_.getMessageOrBuilder(); } else { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + return startDate_ == null ? + com.google.type.Date.getDefaultInstance() : startDate_; } } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -699,13 +644,14 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getStartDateFieldBuilder() { if (startDateBuilder_ == null) { - startDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), getParentForChildren(), isClean()); + startDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), + getParentForChildren(), + isClean()); startDate_ = null; } return startDateBuilder_; @@ -713,11 +659,8 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { private com.google.type.Date endDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - endDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> endDateBuilder_; /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -725,15 +668,12 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ public boolean hasEndDate() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -741,7 +681,6 @@ public boolean hasEndDate() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ public com.google.type.Date getEndDate() { @@ -752,8 +691,6 @@ public com.google.type.Date getEndDate() { } } /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -776,8 +713,6 @@ public Builder setEndDate(com.google.type.Date value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -786,7 +721,8 @@ public Builder setEndDate(com.google.type.Date value) {
      *
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
+    public Builder setEndDate(
+        com.google.type.Date.Builder builderForValue) {
       if (endDateBuilder_ == null) {
         endDate_ = builderForValue.build();
       } else {
@@ -797,8 +733,6 @@ public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -809,9 +743,9 @@ public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
      */
     public Builder mergeEndDate(com.google.type.Date value) {
       if (endDateBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endDate_ != null
-            && endDate_ != com.google.type.Date.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endDate_ != null &&
+          endDate_ != com.google.type.Date.getDefaultInstance()) {
           getEndDateBuilder().mergeFrom(value);
         } else {
           endDate_ = value;
@@ -824,8 +758,6 @@ public Builder mergeEndDate(com.google.type.Date value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -845,8 +777,6 @@ public Builder clearEndDate() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -861,8 +791,6 @@ public com.google.type.Date.Builder getEndDateBuilder() {
       return getEndDateFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -875,12 +803,11 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
       if (endDateBuilder_ != null) {
         return endDateBuilder_.getMessageOrBuilder();
       } else {
-        return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_;
+        return endDate_ == null ?
+            com.google.type.Date.getDefaultInstance() : endDate_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -890,20 +817,21 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
+        com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
         getEndDateFieldBuilder() {
       if (endDateBuilder_ == null) {
-        endDateBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
-                getEndDate(), getParentForChildren(), isClean());
+        endDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+                getEndDate(),
+                getParentForChildren(),
+                isClean());
         endDate_ = null;
       }
       return endDateBuilder_;
     }
-
     @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);
     }
 
@@ -913,12 +841,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.CustomPeriod)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.CustomPeriod)
   private static final com.google.cloud.billing.budgets.v1.CustomPeriod DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.CustomPeriod();
   }
@@ -927,27 +855,27 @@ public static com.google.cloud.billing.budgets.v1.CustomPeriod getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CustomPeriod parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CustomPeriod parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -962,4 +890,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.CustomPeriod getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
similarity index 75%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
index e44ef33f30ef..b758ff7812e8 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface CustomPeriodOrBuilder
-    extends
+public interface CustomPeriodOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CustomPeriod)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ boolean hasStartDate(); /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ com.google.type.Date getStartDate(); /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -59,8 +35,6 @@ public interface CustomPeriodOrBuilder com.google.type.DateOrBuilder getStartDateOrBuilder(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -68,13 +42,10 @@ public interface CustomPeriodOrBuilder
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ boolean hasEndDate(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -82,13 +53,10 @@ public interface CustomPeriodOrBuilder
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ com.google.type.Date getEndDate(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
similarity index 63%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
index e6cd1296e88d..281e6530bc01 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
@@ -1,83 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1;
 
 /**
- *
- *
  * 
  * Request for DeleteBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.DeleteBudgetRequest} */ -public final class DeleteBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.DeleteBudgetRequest) DeleteBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBudgetRequest.newBuilder() to construct. private DeleteBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1.DeleteBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other = - (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other = (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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 for DeleteBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.DeleteBudgetRequest} */ - 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.budgets.v1.DeleteBudgetRequest) com.google.cloud.billing.budgets.v1.DeleteBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override @@ -344,11 +312,8 @@ public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest result = - new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest result = new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +329,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.DeleteBudgetReque 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.budgets.v1.DeleteBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -404,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -437,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -489,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -558,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.DeleteBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.DeleteBudgetRequest) private static final com.google.cloud.billing.budgets.v1.DeleteBudgetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(); } @@ -608,27 +544,27 @@ public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..3d3e4a03f3b0 --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface DeleteBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.DeleteBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java similarity index 75% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java index 60534e20378a..a6ad7274465d 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java @@ -1,86 +1,71 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * A filter for a budget, limiting the scope of the cost to calculate.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.Filter} */ -public final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Filter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.Filter) FilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Filter() { - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Filter(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.Filter.class, - com.google.cloud.billing.budgets.v1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1.Filter.class, com.google.cloud.billing.budgets.v1.Filter.Builder.class); } /** - * - * *
    * Specifies how credits are applied when determining the spend for
    * threshold calculations. Budgets track the total cost minus any applicable
@@ -91,12 +76,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment}
    */
-  public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageEnum {
-    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
+  public enum CreditTypesTreatment
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
+     */
     CREDIT_TYPES_TREATMENT_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -106,8 +92,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     INCLUDE_ALL_CREDITS(1),
     /**
-     *
-     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -117,8 +101,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     EXCLUDE_ALL_CREDITS(2),
     /**
-     *
-     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -132,11 +114,11 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
     UNRECOGNIZED(-1),
     ;
 
-    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
+    /**
+     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
+     */
     public static final int CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -146,8 +128,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int INCLUDE_ALL_CREDITS_VALUE = 1;
     /**
-     *
-     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -157,8 +137,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int EXCLUDE_ALL_CREDITS_VALUE = 2;
     /**
-     *
-     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -170,6 +148,7 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int INCLUDE_SPECIFIED_CREDITS_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -194,16 +173,11 @@ public static CreditTypesTreatment valueOf(int value) {
      */
     public static CreditTypesTreatment forNumber(int value) {
       switch (value) {
-        case 0:
-          return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
-        case 1:
-          return INCLUDE_ALL_CREDITS;
-        case 2:
-          return EXCLUDE_ALL_CREDITS;
-        case 3:
-          return INCLUDE_SPECIFIED_CREDITS;
-        default:
-          return null;
+        case 0: return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
+        case 1: return INCLUDE_ALL_CREDITS;
+        case 2: return EXCLUDE_ALL_CREDITS;
+        case 3: return INCLUDE_SPECIFIED_CREDITS;
+        default: return null;
       }
     }
 
@@ -211,28 +185,28 @@ public static CreditTypesTreatment forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        CreditTypesTreatment> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public CreditTypesTreatment findValueByNumber(int number) {
+              return CreditTypesTreatment.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public CreditTypesTreatment findValueByNumber(int number) {
-                return CreditTypesTreatment.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.budgets.v1.Filter.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -241,7 +215,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static CreditTypesTreatment 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;
@@ -259,19 +234,15 @@ private CreditTypesTreatment(int value) {
   }
 
   private int usagePeriodCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object usagePeriod_;
-
   public enum UsagePeriodCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CALENDAR_PERIOD(8),
     CUSTOM_PERIOD(9),
     USAGEPERIOD_NOT_SET(0);
     private final int value;
-
     private UsagePeriodCase(int value) {
       this.value = value;
     }
@@ -287,34 +258,28 @@ public static UsagePeriodCase valueOf(int value) {
 
     public static UsagePeriodCase forNumber(int value) {
       switch (value) {
-        case 8:
-          return CALENDAR_PERIOD;
-        case 9:
-          return CUSTOM_PERIOD;
-        case 0:
-          return USAGEPERIOD_NOT_SET;
-        default:
-          return null;
+        case 8: return CALENDAR_PERIOD;
+        case 9: return CUSTOM_PERIOD;
+        case 0: return USAGEPERIOD_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public UsagePeriodCase getUsagePeriodCase() {
-    return UsagePeriodCase.forNumber(usagePeriodCase_);
+  public UsagePeriodCase
+  getUsagePeriodCase() {
+    return UsagePeriodCase.forNumber(
+        usagePeriodCase_);
   }
 
   public static final int PROJECTS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList projects_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -323,15 +288,13 @@ public UsagePeriodCase getUsagePeriodCase() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList getProjectsList() { + public com.google.protobuf.ProtocolStringList + getProjectsList() { return projects_; } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -340,15 +303,12 @@ public com.google.protobuf.ProtocolStringList getProjectsList() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -357,7 +317,6 @@ public int getProjectsCount() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -365,8 +324,6 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -375,22 +332,19 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString getProjectsBytes(int index) { + public com.google.protobuf.ByteString + getProjectsBytes(int index) { return projects_.getByteString(index); } public static final int RESOURCE_ANCESTORS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -400,15 +354,13 @@ public com.google.protobuf.ByteString getProjectsBytes(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList + getResourceAncestorsList() { return resourceAncestors_; } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -418,15 +370,12 @@ public com.google.protobuf.ProtocolStringList getResourceAncestorsList() {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -436,7 +385,6 @@ public int getResourceAncestorsCount() {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -444,8 +392,6 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -455,22 +401,19 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } public static final int CREDIT_TYPES_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -485,15 +428,13 @@ public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList getCreditTypesList() { + public com.google.protobuf.ProtocolStringList + getCreditTypesList() { return creditTypes_; } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -508,15 +449,12 @@ public com.google.protobuf.ProtocolStringList getCreditTypesList() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -531,7 +469,6 @@ public int getCreditTypesCount() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -539,8 +476,6 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -555,64 +490,45 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString + getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } public static final int CREDIT_TYPES_TREATMENT_FIELD_NUMBER = 4; private int creditTypesTreatment_ = 0; /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override - public int getCreditTypesTreatmentValue() { + @java.lang.Override public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ - @java.lang.Override - public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber( - creditTypesTreatment_); - return result == null - ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); + return result == null ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; } public static final int SERVICES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -623,15 +539,13 @@ public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCredit
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList getServicesList() { + public com.google.protobuf.ProtocolStringList + getServicesList() { return services_; } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -642,15 +556,12 @@ public com.google.protobuf.ProtocolStringList getServicesList() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -661,7 +572,6 @@ public int getServicesCount() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ @@ -669,8 +579,6 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -681,22 +589,19 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString getServicesBytes(int index) { + public com.google.protobuf.ByteString + getServicesBytes(int index) { return services_.getByteString(index); } public static final int SUBACCOUNTS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -707,15 +612,13 @@ public com.google.protobuf.ByteString getServicesBytes(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList getSubaccountsList() { + public com.google.protobuf.ProtocolStringList + getSubaccountsList() { return subaccounts_; } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -726,15 +629,12 @@ public com.google.protobuf.ProtocolStringList getSubaccountsList() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -745,7 +645,6 @@ public int getSubaccountsCount() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -753,8 +652,6 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -765,46 +662,41 @@ public java.lang.String getSubaccounts(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString + getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.ListValue> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.ListValue.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.ListValue.getDefaultInstance()); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ListValue> labels_; private com.google.protobuf.MapField - internalGetLabels() { + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -817,26 +709,23 @@ public int getLabelsCount() {
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -849,17 +738,13 @@ public java.util.Map getLabels(
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -872,25 +757,20 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.protobuf.ListValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -903,15 +783,12 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -922,8 +799,6 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { public static final int CALENDAR_PERIOD_FIELD_NUMBER = 8; /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -933,18 +808,13 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -954,10 +824,7 @@ public boolean hasCalendarPeriod() {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ public int getCalendarPeriodValue() { @@ -967,8 +834,6 @@ public int getCalendarPeriodValue() { return 0; } /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -978,37 +843,26 @@ public int getCalendarPeriodValue() {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1.CalendarPeriod result = - com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null - ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1.CalendarPeriod result = com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED : result; } return com.google.cloud.billing.budgets.v1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } public static final int CUSTOM_PERIOD_FIELD_NUMBER = 9; /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -1016,48 +870,38 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1069,7 +913,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 < projects_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projects_.getRaw(i)); } @@ -1079,17 +924,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < services_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, services_.getRaw(i)); } - if (creditTypesTreatment_ - != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment - .CREDIT_TYPES_TREATMENT_UNSPECIFIED - .getNumber()) { + if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { output.writeEnum(4, creditTypesTreatment_); } for (int i = 0; i < subaccounts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subaccounts_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); for (int i = 0; i < creditTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, creditTypes_.getRaw(i)); } @@ -1132,11 +978,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getServicesList().size(); } - if (creditTypesTreatment_ - != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment - .CREDIT_TYPES_TREATMENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, creditTypesTreatment_); + if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, creditTypesTreatment_); } { int dataSize = 0; @@ -1146,15 +990,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSubaccountsList().size(); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); } { int dataSize = 0; @@ -1165,14 +1009,12 @@ public int getSerializedSize() { size += 1 * getCreditTypesList().size(); } if (usagePeriodCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 8, ((java.lang.Integer) usagePeriod_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, ((java.lang.Integer) usagePeriod_)); } if (usagePeriodCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1182,28 +1024,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1.Filter)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.Filter other = - (com.google.cloud.billing.budgets.v1.Filter) obj; + com.google.cloud.billing.budgets.v1.Filter other = (com.google.cloud.billing.budgets.v1.Filter) obj; - if (!getProjectsList().equals(other.getProjectsList())) return false; - if (!getResourceAncestorsList().equals(other.getResourceAncestorsList())) return false; - if (!getCreditTypesList().equals(other.getCreditTypesList())) return false; + if (!getProjectsList() + .equals(other.getProjectsList())) return false; + if (!getResourceAncestorsList() + .equals(other.getResourceAncestorsList())) return false; + if (!getCreditTypesList() + .equals(other.getCreditTypesList())) return false; if (creditTypesTreatment_ != other.creditTypesTreatment_) return false; - if (!getServicesList().equals(other.getServicesList())) return false; - if (!getSubaccountsList().equals(other.getSubaccountsList())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getServicesList() + .equals(other.getServicesList())) return false; + if (!getSubaccountsList() + .equals(other.getSubaccountsList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!getUsagePeriodCase().equals(other.getUsagePeriodCase())) return false; switch (usagePeriodCase_) { case 8: - if (getCalendarPeriodValue() != other.getCalendarPeriodValue()) return false; + if (getCalendarPeriodValue() + != other.getCalendarPeriodValue()) return false; break; case 9: - if (!getCustomPeriod().equals(other.getCustomPeriod())) return false; + if (!getCustomPeriod() + .equals(other.getCustomPeriod())) return false; break; case 0: default: @@ -1262,166 +1111,169 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1.Filter parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1.Filter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.Filter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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 filter for a budget, limiting the scope of the cost to calculate.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.Filter} */ - 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.budgets.v1.Filter) com.google.cloud.billing.budgets.v1.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.Filter.class, - com.google.cloud.billing.budgets.v1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1.Filter.class, com.google.cloud.billing.budgets.v1.Filter.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.Filter.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableLabels().clear(); if (customPeriodBuilder_ != null) { customPeriodBuilder_.clear(); @@ -1432,9 +1284,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @java.lang.Override @@ -1453,11 +1305,8 @@ public com.google.cloud.billing.budgets.v1.Filter build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter buildPartial() { - com.google.cloud.billing.budgets.v1.Filter result = - new com.google.cloud.billing.budgets.v1.Filter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.Filter result = new com.google.cloud.billing.budgets.v1.Filter(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1497,7 +1346,8 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Filter result) { private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.Filter result) { result.usagePeriodCase_ = usagePeriodCase_; result.usagePeriod_ = this.usagePeriod_; - if (usagePeriodCase_ == 9 && customPeriodBuilder_ != null) { + if (usagePeriodCase_ == 9 && + customPeriodBuilder_ != null) { result.usagePeriod_ = customPeriodBuilder_.build(); } } @@ -1506,39 +1356,38 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.Filter resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.budgets.v1.Filter) { - return mergeFrom((com.google.cloud.billing.budgets.v1.Filter) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.Filter)other); } else { super.mergeFrom(other); return this; @@ -1600,23 +1449,21 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.Filter other) { } onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000040; switch (other.getUsagePeriodCase()) { - case CALENDAR_PERIOD: - { - setCalendarPeriodValue(other.getCalendarPeriodValue()); - break; - } - case CUSTOM_PERIOD: - { - mergeCustomPeriod(other.getCustomPeriod()); - break; - } - case USAGEPERIOD_NOT_SET: - { - break; - } + case CALENDAR_PERIOD: { + setCalendarPeriodValue(other.getCalendarPeriodValue()); + break; + } + case CUSTOM_PERIOD: { + mergeCustomPeriod(other.getCustomPeriod()); + break; + } + case USAGEPERIOD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1644,80 +1491,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureProjectsIsMutable(); - projects_.add(s); - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceAncestorsIsMutable(); - resourceAncestors_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureServicesIsMutable(); - services_.add(s); - break; - } // case 26 - case 32: - { - creditTypesTreatment_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubaccountsIsMutable(); - subaccounts_.add(s); - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry - labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCreditTypesIsMutable(); - creditTypes_.add(s); - break; - } // case 58 - case 64: - { - int rawValue = input.readEnum(); - usagePeriodCase_ = 8; - usagePeriod_ = rawValue; - break; - } // case 64 - case 74: - { - input.readMessage(getCustomPeriodFieldBuilder().getBuilder(), extensionRegistry); - usagePeriodCase_ = 9; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectsIsMutable(); + projects_.add(s); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceAncestorsIsMutable(); + resourceAncestors_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureServicesIsMutable(); + services_.add(s); + break; + } // case 26 + case 32: { + creditTypesTreatment_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubaccountsIsMutable(); + subaccounts_.add(s); + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCreditTypesIsMutable(); + creditTypes_.add(s); + break; + } // case 58 + case 64: { + int rawValue = input.readEnum(); + usagePeriodCase_ = 8; + usagePeriod_ = rawValue; + break; + } // case 64 + case 74: { + input.readMessage( + getCustomPeriodFieldBuilder().getBuilder(), + extensionRegistry); + usagePeriodCase_ = 9; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1727,12 +1563,12 @@ public Builder mergeFrom( } // finally return this; } - private int usagePeriodCase_ = 0; private java.lang.Object usagePeriod_; - - public UsagePeriodCase getUsagePeriodCase() { - return UsagePeriodCase.forNumber(usagePeriodCase_); + public UsagePeriodCase + getUsagePeriodCase() { + return UsagePeriodCase.forNumber( + usagePeriodCase_); } public Builder clearUsagePeriod() { @@ -1746,7 +1582,6 @@ public Builder clearUsagePeriod() { private com.google.protobuf.LazyStringArrayList projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureProjectsIsMutable() { if (!projects_.isModifiable()) { projects_ = new com.google.protobuf.LazyStringArrayList(projects_); @@ -1754,8 +1589,6 @@ private void ensureProjectsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1764,16 +1597,14 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList getProjectsList() { + public com.google.protobuf.ProtocolStringList + getProjectsList() { projects_.makeImmutable(); return projects_; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1782,15 +1613,12 @@ public com.google.protobuf.ProtocolStringList getProjectsList() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1799,7 +1627,6 @@ public int getProjectsCount() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -1807,8 +1634,6 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1817,16 +1642,14 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString getProjectsBytes(int index) { + public com.google.protobuf.ByteString + getProjectsBytes(int index) { return projects_.getByteString(index); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1835,15 +1658,13 @@ public com.google.protobuf.ByteString getProjectsBytes(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The projects to set. * @return This builder for chaining. */ - public Builder setProjects(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjects( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureProjectsIsMutable(); projects_.set(index, value); bitField0_ |= 0x00000001; @@ -1851,8 +1672,6 @@ public Builder setProjects(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1861,14 +1680,12 @@ public Builder setProjects(int index, java.lang.String value) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The projects to add. * @return This builder for chaining. */ - public Builder addProjects(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addProjects( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureProjectsIsMutable(); projects_.add(value); bitField0_ |= 0x00000001; @@ -1876,8 +1693,6 @@ public Builder addProjects(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1886,20 +1701,19 @@ public Builder addProjects(java.lang.String value) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The projects to add. * @return This builder for chaining. */ - public Builder addAllProjects(java.lang.Iterable values) { + public Builder addAllProjects( + java.lang.Iterable values) { ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projects_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1908,19 +1722,16 @@ public Builder addAllProjects(java.lang.Iterable values) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearProjects() { - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1929,14 +1740,12 @@ public Builder clearProjects() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the projects to add. * @return This builder for chaining. */ - public Builder addProjectsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addProjectsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureProjectsIsMutable(); projects_.add(value); @@ -1947,7 +1756,6 @@ public Builder addProjectsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResourceAncestorsIsMutable() { if (!resourceAncestors_.isModifiable()) { resourceAncestors_ = new com.google.protobuf.LazyStringArrayList(resourceAncestors_); @@ -1955,8 +1763,6 @@ private void ensureResourceAncestorsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1965,18 +1771,15 @@ private void ensureResourceAncestorsIsMutable() {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList + getResourceAncestorsList() { resourceAncestors_.makeImmutable(); return resourceAncestors_; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1985,17 +1788,13 @@ public com.google.protobuf.ProtocolStringList getResourceAncestorsList() {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2004,9 +1803,7 @@ public int getResourceAncestorsCount() {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -2014,8 +1811,6 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2024,18 +1819,15 @@ public java.lang.String getResourceAncestors(int index) {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2044,17 +1836,14 @@ public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The resourceAncestors to set. * @return This builder for chaining. */ - public Builder setResourceAncestors(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceAncestors( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceAncestorsIsMutable(); resourceAncestors_.set(index, value); bitField0_ |= 0x00000002; @@ -2062,8 +1851,6 @@ public Builder setResourceAncestors(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2072,16 +1859,13 @@ public Builder setResourceAncestors(int index, java.lang.String value) {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestors(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceAncestors( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); bitField0_ |= 0x00000002; @@ -2089,8 +1873,6 @@ public Builder addResourceAncestors(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2099,22 +1881,20 @@ public Builder addResourceAncestors(java.lang.String value) {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param values The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addAllResourceAncestors(java.lang.Iterable values) { + public Builder addAllResourceAncestors( + java.lang.Iterable values) { ensureResourceAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceAncestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceAncestors_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2123,21 +1903,17 @@ public Builder addAllResourceAncestors(java.lang.Iterable valu
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearResourceAncestors() { - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2146,16 +1922,13 @@ public Builder clearResourceAncestors() {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceAncestorsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); @@ -2166,7 +1939,6 @@ public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureCreditTypesIsMutable() { if (!creditTypes_.isModifiable()) { creditTypes_ = new com.google.protobuf.LazyStringArrayList(creditTypes_); @@ -2174,8 +1946,6 @@ private void ensureCreditTypesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2190,16 +1960,14 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList getCreditTypesList() { + public com.google.protobuf.ProtocolStringList + getCreditTypesList() { creditTypes_.makeImmutable(); return creditTypes_; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2214,15 +1982,12 @@ public com.google.protobuf.ProtocolStringList getCreditTypesList() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2237,7 +2002,6 @@ public int getCreditTypesCount() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -2245,8 +2009,6 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2261,16 +2023,14 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString + getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2285,15 +2045,13 @@ public com.google.protobuf.ByteString getCreditTypesBytes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The creditTypes to set. * @return This builder for chaining. */ - public Builder setCreditTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCreditTypes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCreditTypesIsMutable(); creditTypes_.set(index, value); bitField0_ |= 0x00000004; @@ -2301,8 +2059,6 @@ public Builder setCreditTypes(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2317,14 +2073,12 @@ public Builder setCreditTypes(int index, java.lang.String value) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCreditTypes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCreditTypesIsMutable(); creditTypes_.add(value); bitField0_ |= 0x00000004; @@ -2332,8 +2086,6 @@ public Builder addCreditTypes(java.lang.String value) { return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2348,20 +2100,19 @@ public Builder addCreditTypes(java.lang.String value) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The creditTypes to add. * @return This builder for chaining. */ - public Builder addAllCreditTypes(java.lang.Iterable values) { + public Builder addAllCreditTypes( + java.lang.Iterable values) { ensureCreditTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creditTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, creditTypes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2376,19 +2127,16 @@ public Builder addAllCreditTypes(java.lang.Iterable values) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCreditTypes() { - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2403,14 +2151,12 @@ public Builder clearCreditTypes() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCreditTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCreditTypesIsMutable(); creditTypes_.add(value); @@ -2421,33 +2167,22 @@ public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { private int creditTypesTreatment_ = 0; /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override - public int getCreditTypesTreatmentValue() { + @java.lang.Override public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for creditTypesTreatment to set. * @return This builder for chaining. */ @@ -2458,44 +2193,28 @@ public Builder setCreditTypesTreatmentValue(int value) { return this; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment - getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber( - creditTypesTreatment_); - return result == null - ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED - : result; + public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); + return result == null ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The creditTypesTreatment to set. * @return This builder for chaining. */ - public Builder setCreditTypesTreatment( - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment value) { + public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment value) { if (value == null) { throw new NullPointerException(); } @@ -2505,16 +2224,11 @@ public Builder setCreditTypesTreatment( return this; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCreditTypesTreatment() { @@ -2526,7 +2240,6 @@ public Builder clearCreditTypesTreatment() { private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureServicesIsMutable() { if (!services_.isModifiable()) { services_ = new com.google.protobuf.LazyStringArrayList(services_); @@ -2534,8 +2247,6 @@ private void ensureServicesIsMutable() { bitField0_ |= 0x00000010; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2546,16 +2257,14 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList getServicesList() { + public com.google.protobuf.ProtocolStringList + getServicesList() { services_.makeImmutable(); return services_; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2566,15 +2275,12 @@ public com.google.protobuf.ProtocolStringList getServicesList() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2585,7 +2291,6 @@ public int getServicesCount() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ @@ -2593,8 +2298,6 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2605,16 +2308,14 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString getServicesBytes(int index) { + public com.google.protobuf.ByteString + getServicesBytes(int index) { return services_.getByteString(index); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2625,15 +2326,13 @@ public com.google.protobuf.ByteString getServicesBytes(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The services to set. * @return This builder for chaining. */ - public Builder setServices(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServices( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.set(index, value); bitField0_ |= 0x00000010; @@ -2641,8 +2340,6 @@ public Builder setServices(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2653,14 +2350,12 @@ public Builder setServices(int index, java.lang.String value) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The services to add. * @return This builder for chaining. */ - public Builder addServices(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServices( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.add(value); bitField0_ |= 0x00000010; @@ -2668,8 +2363,6 @@ public Builder addServices(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2680,20 +2373,19 @@ public Builder addServices(java.lang.String value) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The services to add. * @return This builder for chaining. */ - public Builder addAllServices(java.lang.Iterable values) { + public Builder addAllServices( + java.lang.Iterable values) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, services_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2704,19 +2396,16 @@ public Builder addAllServices(java.lang.Iterable values) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearServices() { - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2727,14 +2416,12 @@ public Builder clearServices() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the services to add. * @return This builder for chaining. */ - public Builder addServicesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServicesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureServicesIsMutable(); services_.add(value); @@ -2745,7 +2432,6 @@ public Builder addServicesBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureSubaccountsIsMutable() { if (!subaccounts_.isModifiable()) { subaccounts_ = new com.google.protobuf.LazyStringArrayList(subaccounts_); @@ -2753,8 +2439,6 @@ private void ensureSubaccountsIsMutable() { bitField0_ |= 0x00000020; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2765,16 +2449,14 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList getSubaccountsList() { + public com.google.protobuf.ProtocolStringList + getSubaccountsList() { subaccounts_.makeImmutable(); return subaccounts_; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2785,15 +2467,12 @@ public com.google.protobuf.ProtocolStringList getSubaccountsList() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2804,7 +2483,6 @@ public int getSubaccountsCount() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -2812,8 +2490,6 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2824,16 +2500,14 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString + getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2844,15 +2518,13 @@ public com.google.protobuf.ByteString getSubaccountsBytes(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The subaccounts to set. * @return This builder for chaining. */ - public Builder setSubaccounts(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubaccounts( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubaccountsIsMutable(); subaccounts_.set(index, value); bitField0_ |= 0x00000020; @@ -2860,8 +2532,6 @@ public Builder setSubaccounts(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2872,14 +2542,12 @@ public Builder setSubaccounts(int index, java.lang.String value) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccounts(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubaccounts( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubaccountsIsMutable(); subaccounts_.add(value); bitField0_ |= 0x00000020; @@ -2887,8 +2555,6 @@ public Builder addSubaccounts(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2899,20 +2565,19 @@ public Builder addSubaccounts(java.lang.String value) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The subaccounts to add. * @return This builder for chaining. */ - public Builder addAllSubaccounts(java.lang.Iterable values) { + public Builder addAllSubaccounts( + java.lang.Iterable values) { ensureSubaccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subaccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subaccounts_); bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2923,19 +2588,16 @@ public Builder addAllSubaccounts(java.lang.Iterable values) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSubaccounts() { - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - ; + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020);; onChanged(); return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2946,14 +2608,12 @@ public Builder clearSubaccounts() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubaccountsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSubaccountsIsMutable(); subaccounts_.add(value); @@ -2962,20 +2622,21 @@ public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField labels_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ListValue> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2984,13 +2645,10 @@ public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3003,26 +2661,23 @@ public int getLabelsCount() {
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3035,17 +2690,13 @@ public java.util.Map getLabels(
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3058,25 +2709,20 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.protobuf.ListValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3089,15 +2735,12 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3105,15 +2748,13 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3126,26 +2767,25 @@ public Builder clearLabels() {
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3158,24 +2798,19 @@ public java.util.Map getMutable
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + com.google.protobuf.ListValue value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3188,20 +2823,17 @@ public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue val
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels( java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3211,10 +2843,7 @@ public Builder putAllLabels(
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ @java.lang.Override @@ -3222,8 +2851,6 @@ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3233,10 +2860,7 @@ public boolean hasCalendarPeriod() {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ @java.lang.Override @@ -3247,8 +2871,6 @@ public int getCalendarPeriodValue() { return 0; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3258,10 +2880,7 @@ public int getCalendarPeriodValue() {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for calendarPeriod to set. * @return This builder for chaining. */ @@ -3272,8 +2891,6 @@ public Builder setCalendarPeriodValue(int value) { return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3283,27 +2900,19 @@ public Builder setCalendarPeriodValue(int value) {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1.CalendarPeriod result = - com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null - ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1.CalendarPeriod result = com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED : result; } return com.google.cloud.billing.budgets.v1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3313,10 +2922,7 @@ public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param value The calendarPeriod to set. * @return This builder for chaining. */ @@ -3330,8 +2936,6 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1.CalendarPer return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3341,10 +2945,7 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1.CalendarPer
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCalendarPeriod() { @@ -3357,22 +2958,14 @@ public Builder clearCalendarPeriod() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, - com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> - customPeriodBuilder_; + com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> customPeriodBuilder_; /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -3380,17 +2973,12 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ @java.lang.Override @@ -3408,16 +2996,12 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod() { } } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod value) { if (customPeriodBuilder_ == null) { @@ -3433,16 +3017,12 @@ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomPeriod( com.google.cloud.billing.budgets.v1.CustomPeriod.Builder builderForValue) { @@ -3456,27 +3036,19 @@ public Builder setCustomPeriod( return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod value) { if (customPeriodBuilder_ == null) { - if (usagePeriodCase_ == 9 - && usagePeriod_ - != com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) { - usagePeriod_ = - com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder( - (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_) - .mergeFrom(value) - .buildPartial(); + if (usagePeriodCase_ == 9 && + usagePeriod_ != com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) { + usagePeriod_ = com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder((com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_) + .mergeFrom(value).buildPartial(); } else { usagePeriod_ = value; } @@ -3492,16 +3064,12 @@ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPerio return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCustomPeriod() { if (customPeriodBuilder_ == null) { @@ -3520,31 +3088,23 @@ public Builder clearCustomPeriod() { return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.CustomPeriod.Builder getCustomPeriodBuilder() { return getCustomPeriodFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { @@ -3558,31 +3118,22 @@ public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriod } } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, - com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> + com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> getCustomPeriodFieldBuilder() { if (customPeriodBuilder_ == null) { if (!(usagePeriodCase_ == 9)) { usagePeriod_ = com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } - customPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, - com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder>( + customPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder>( (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_, getParentForChildren(), isClean()); @@ -3592,9 +3143,9 @@ public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriod onChanged(); return customPeriodBuilder_; } - @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); } @@ -3604,12 +3155,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.Filter) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.Filter) private static final com.google.cloud.billing.budgets.v1.Filter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.Filter(); } @@ -3618,27 +3169,27 @@ public static com.google.cloud.billing.budgets.v1.Filter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3653,4 +3204,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java similarity index 82% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java index 4ce92d816a6f..af1c23f5e4c0 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface FilterOrBuilder - extends +public interface FilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.Filter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -34,13 +16,11 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - java.util.List getProjectsList(); + java.util.List + getProjectsList(); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -49,13 +29,10 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ int getProjectsCount(); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -64,14 +41,11 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ java.lang.String getProjects(int index); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -80,15 +54,13 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - com.google.protobuf.ByteString getProjectsBytes(int index); + com.google.protobuf.ByteString + getProjectsBytes(int index); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -98,13 +70,11 @@ public interface FilterOrBuilder
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the resourceAncestors. */ - java.util.List getResourceAncestorsList(); + java.util.List + getResourceAncestorsList(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -114,13 +84,10 @@ public interface FilterOrBuilder
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of resourceAncestors. */ int getResourceAncestorsCount(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -130,14 +97,11 @@ public interface FilterOrBuilder
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ java.lang.String getResourceAncestors(int index); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -147,15 +111,13 @@ public interface FilterOrBuilder
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - com.google.protobuf.ByteString getResourceAncestorsBytes(int index); + com.google.protobuf.ByteString + getResourceAncestorsBytes(int index); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -170,13 +132,11 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - java.util.List getCreditTypesList(); + java.util.List + getCreditTypesList(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -191,13 +151,10 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ int getCreditTypesCount(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -212,14 +169,11 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ java.lang.String getCreditTypes(int index); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -234,44 +188,32 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - com.google.protobuf.ByteString getCreditTypesBytes(int index); + com.google.protobuf.ByteString + getCreditTypesBytes(int index); /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ int getCreditTypesTreatmentValue(); /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -282,13 +224,11 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - java.util.List getServicesList(); + java.util.List + getServicesList(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -299,13 +239,10 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ int getServicesCount(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -316,14 +253,11 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ java.lang.String getServices(int index); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -334,15 +268,13 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - com.google.protobuf.ByteString getServicesBytes(int index); + com.google.protobuf.ByteString + getServicesBytes(int index); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -353,13 +285,11 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - java.util.List getSubaccountsList(); + java.util.List + getSubaccountsList(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -370,13 +300,10 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ int getSubaccountsCount(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -387,14 +314,11 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ java.lang.String getSubaccounts(int index); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -405,15 +329,13 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - com.google.protobuf.ByteString getSubaccountsBytes(int index); + com.google.protobuf.ByteString + getSubaccountsBytes(int index); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -426,14 +348,10 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -446,17 +364,17 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -469,14 +387,11 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -489,18 +404,14 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.protobuf.ListValue getLabelsOrDefault( +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue); +com.google.protobuf.ListValue defaultValue); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -513,15 +424,12 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key); + com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -531,16 +439,11 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ boolean hasCalendarPeriod(); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -550,16 +453,11 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ int getCalendarPeriodValue(); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -569,55 +467,38 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ boolean hasCustomPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder(); diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java similarity index 64% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java index 5d1a7979a072..af75b502f7f6 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * Request for GetBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.GetBudgetRequest} */ -public final class GetBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.GetBudgetRequest) GetBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBudgetRequest.newBuilder() to construct. private GetBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, - com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1.GetBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.GetBudgetRequest other = - (com.google.cloud.billing.budgets.v1.GetBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.GetBudgetRequest other = (com.google.cloud.billing.budgets.v1.GetBudgetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,135 +157,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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 for GetBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.GetBudgetRequest} */ - 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.budgets.v1.GetBudgetRequest) com.google.cloud.billing.budgets.v1.GetBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, - com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.GetBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override @@ -343,11 +312,8 @@ public com.google.cloud.billing.budgets.v1.GetBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.GetBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.GetBudgetRequest result = - new com.google.cloud.billing.budgets.v1.GetBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.GetBudgetRequest result = new com.google.cloud.billing.budgets.v1.GetBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +329,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.GetBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.GetBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -403,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.GetBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -436,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -488,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -513,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -593,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.GetBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.GetBudgetRequest) private static final com.google.cloud.billing.budgets.v1.GetBudgetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.GetBudgetRequest(); } @@ -607,27 +544,27 @@ public static com.google.cloud.billing.budgets.v1.GetBudgetRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.GetBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..5a7d4e94ab25 --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface GetBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.GetBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java similarity index 65% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java index 6d1e95c3a861..9966d2ae4d72 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * Describes a budget amount targeted to the last
  * [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period]
@@ -33,41 +16,39 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.LastPeriodAmount}
  */
-public final class LastPeriodAmount extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LastPeriodAmount extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.LastPeriodAmount)
     LastPeriodAmountOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LastPeriodAmount.newBuilder() to construct.
   private LastPeriodAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private LastPeriodAmount() {}
+  private LastPeriodAmount() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LastPeriodAmount();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount.class,
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -79,7 +60,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -97,13 +79,12 @@ 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.budgets.v1.LastPeriodAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.LastPeriodAmount other =
-        (com.google.cloud.billing.budgets.v1.LastPeriodAmount) obj;
+    com.google.cloud.billing.budgets.v1.LastPeriodAmount other = (com.google.cloud.billing.budgets.v1.LastPeriodAmount) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -122,103 +103,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.LastPeriodAmount parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.LastPeriodAmount parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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;
   }
   /**
-   *
-   *
    * 
    * Describes a budget amount targeted to the last
    * [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period]
@@ -231,32 +207,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.LastPeriodAmount}
    */
-  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.budgets.v1.LastPeriodAmount)
       com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.LastPeriodAmount.class,
-              com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
+              com.google.cloud.billing.budgets.v1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -264,9 +241,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
@@ -285,8 +262,7 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.LastPeriodAmount buildPartial() {
-      com.google.cloud.billing.budgets.v1.LastPeriodAmount result =
-          new com.google.cloud.billing.budgets.v1.LastPeriodAmount(this);
+      com.google.cloud.billing.budgets.v1.LastPeriodAmount result = new com.google.cloud.billing.budgets.v1.LastPeriodAmount(this);
       onBuilt();
       return result;
     }
@@ -295,39 +271,38 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.LastPeriodAmount) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.LastPeriodAmount)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -335,8 +310,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.LastPeriodAmount other) {
-      if (other == com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -363,13 +337,12 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -379,9 +352,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -391,12 +364,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.LastPeriodAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.LastPeriodAmount)
   private static final com.google.cloud.billing.budgets.v1.LastPeriodAmount DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.LastPeriodAmount();
   }
@@ -405,27 +378,27 @@ public static com.google.cloud.billing.budgets.v1.LastPeriodAmount getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public LastPeriodAmount parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public LastPeriodAmount parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -440,4 +413,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.LastPeriodAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java
new file mode 100644
index 000000000000..e2b52259f1a2
--- /dev/null
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1;
+
+public interface LastPeriodAmountOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.LastPeriodAmount)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
similarity index 68%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
index ff2831c668fc..8a044e45c282 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1;
 
 /**
- *
- *
  * 
  * Request for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsRequest} */ -public final class ListBudgetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBudgetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ListBudgetsRequest) ListBudgetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBudgetsRequest.newBuilder() to construct. private ListBudgetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBudgetsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,41 +26,34 @@ private ListBudgetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBudgetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 @@ -87,32 +62,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. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 { @@ -123,15 +96,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -140,12 +110,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -153,7 +120,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -162,15 +128,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; } } /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -178,15 +143,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -195,7 +161,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +172,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_); } @@ -230,7 +196,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -243,17 +210,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.budgets.v1.ListBudgetsRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ListBudgetsRequest other = - (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) obj; + com.google.cloud.billing.budgets.v1.ListBudgetsRequest other = (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,136 +246,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsRequest} */ - 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.budgets.v1.ListBudgetsRequest) com.google.cloud.billing.budgets.v1.ListBudgetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.ListBudgetsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override @@ -439,11 +403,8 @@ public com.google.cloud.billing.budgets.v1.ListBudgetsRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.ListBudgetsRequest buildPartial() { - com.google.cloud.billing.budgets.v1.ListBudgetsRequest result = - new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.ListBudgetsRequest result = new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -465,39 +426,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ListBudgetsReques 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.budgets.v1.ListBudgetsRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsRequest)other); } else { super.mergeFrom(other); return this; @@ -505,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsRequest other) { - if (other == com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -546,31 +505,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -580,28 +535,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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; @@ -610,24 +560,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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 { @@ -635,41 +582,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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() { @@ -679,24 +615,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -704,17 +634,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -722,15 +649,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -742,15 +666,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -762,8 +683,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -771,13 +690,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -786,8 +705,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -795,14 +712,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -810,8 +728,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -819,22 +735,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -842,7 +754,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -852,8 +763,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -861,23 +770,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +794,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ListBudgetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ListBudgetsRequest) private static final com.google.cloud.billing.budgets.v1.ListBudgetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(); } @@ -901,27 +808,27 @@ public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,4 +843,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ListBudgetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java similarity index 62% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java index 4eb473317be1..679127882752 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java @@ -1,76 +1,46 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface ListBudgetsRequestOrBuilder - extends +public interface ListBudgetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ListBudgetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -78,13 +48,10 @@ public interface ListBudgetsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -92,8 +59,8 @@ public interface ListBudgetsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java similarity index 72% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java index a8a8d6f7838b..1c43e0a50670 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * Response for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsResponse} */ -public final class ListBudgetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBudgetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ListBudgetsResponse) ListBudgetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBudgetsResponse.newBuilder() to construct. private ListBudgetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBudgetsResponse() { budgets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListBudgetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBudgetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); } public static final int BUDGETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List budgets_; /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -81,8 +59,6 @@ public java.util.List getBudgetsList return budgets_; } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -90,13 +66,11 @@ public java.util.List getBudgetsList * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBudgetsOrBuilderList() { return budgets_; } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -108,8 +82,6 @@ public int getBudgetsCount() { return budgets_.size(); } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { return budgets_.get(index); } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -130,24 +100,21 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index) { + public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( + int index) { return budgets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,30 +123,30 @@ 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; } } /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * 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 { @@ -188,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +166,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 < budgets_.size(); i++) { output.writeMessage(1, budgets_.get(i)); } @@ -217,7 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < budgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, budgets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, budgets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -230,16 +198,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.budgets.v1.ListBudgetsResponse)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ListBudgetsResponse other = - (com.google.cloud.billing.budgets.v1.ListBudgetsResponse) obj; + com.google.cloud.billing.budgets.v1.ListBudgetsResponse other = (com.google.cloud.billing.budgets.v1.ListBudgetsResponse) obj; - if (!getBudgetsList().equals(other.getBudgetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getBudgetsList() + .equals(other.getBudgetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +232,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsResponse} */ - 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.budgets.v1.ListBudgetsResponse) com.google.cloud.billing.budgets.v1.ListBudgetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.ListBudgetsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override @@ -430,18 +394,14 @@ public com.google.cloud.billing.budgets.v1.ListBudgetsResponse build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.ListBudgetsResponse buildPartial() { - com.google.cloud.billing.budgets.v1.ListBudgetsResponse result = - new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(this); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse result = new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.billing.budgets.v1.ListBudgetsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1.ListBudgetsResponse result) { if (budgetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { budgets_ = java.util.Collections.unmodifiableList(budgets_); @@ -464,39 +424,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ListBudgetsRespon 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.budgets.v1.ListBudgetsResponse) { - return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsResponse) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsResponse)other); } else { super.mergeFrom(other); return this; @@ -504,8 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsResponse other) { - if (other == com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()) return this; if (budgetsBuilder_ == null) { if (!other.budgets_.isEmpty()) { if (budgets_.isEmpty()) { @@ -524,10 +482,9 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsResponse budgetsBuilder_ = null; budgets_ = other.budgets_; bitField0_ = (bitField0_ & ~0x00000001); - budgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBudgetsFieldBuilder() - : null; + budgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBudgetsFieldBuilder() : null; } else { budgetsBuilder_.addAllMessages(other.budgets_); } @@ -564,32 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.billing.budgets.v1.Budget m = - input.readMessage( - com.google.cloud.billing.budgets.v1.Budget.parser(), extensionRegistry); - if (budgetsBuilder_ == null) { - ensureBudgetsIsMutable(); - budgets_.add(m); - } else { - budgetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.billing.budgets.v1.Budget m = + input.readMessage( + com.google.cloud.billing.budgets.v1.Budget.parser(), + extensionRegistry); + if (budgetsBuilder_ == null) { + ensureBudgetsIsMutable(); + budgets_.add(m); + } else { + budgetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,28 +554,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List budgets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBudgetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { budgets_ = new java.util.ArrayList(budgets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> - budgetsBuilder_; + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetsBuilder_; /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -635,8 +583,6 @@ public java.util.List getBudgetsList } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -651,8 +597,6 @@ public int getBudgetsCount() { } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -667,15 +611,14 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1.Budget value) { + public Builder setBudgets( + int index, com.google.cloud.billing.budgets.v1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -689,8 +632,6 @@ public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1.Budget return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -709,8 +650,6 @@ public Builder setBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -731,15 +670,14 @@ public Builder addBudgets(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1.Budget value) { + public Builder addBudgets( + int index, com.google.cloud.billing.budgets.v1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -753,15 +691,14 @@ public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1.Budget return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder addBudgets(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder addBudgets( + com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); budgets_.add(builderForValue.build()); @@ -772,8 +709,6 @@ public Builder addBudgets(com.google.cloud.billing.budgets.v1.Budget.Builder bui return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -792,8 +727,6 @@ public Builder addBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -804,7 +737,8 @@ public Builder addAllBudgets( java.lang.Iterable values) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, budgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, budgets_); onChanged(); } else { budgetsBuilder_.addAllMessages(values); @@ -812,8 +746,6 @@ public Builder addAllBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -831,8 +763,6 @@ public Builder clearBudgets() { return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -850,44 +780,39 @@ public Builder removeBudgets(int index) { return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetsBuilder(int index) { + public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetsBuilder( + int index) { return getBudgetsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index) { + public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( + int index) { if (budgetsBuilder_ == null) { - return budgets_.get(index); - } else { + return budgets_.get(index); } else { return budgetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public java.util.List - getBudgetsOrBuilderList() { + public java.util.List + getBudgetsOrBuilderList() { if (budgetsBuilder_ != null) { return budgetsBuilder_.getMessageOrBuilderList(); } else { @@ -895,8 +820,6 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(i } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -904,48 +827,42 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(i * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder() { - return getBudgetsFieldBuilder() - .addBuilder(com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); + return getBudgetsFieldBuilder().addBuilder( + com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder(int index) { - return getBudgetsFieldBuilder() - .addBuilder(index, com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder( + int index) { + return getBudgetsFieldBuilder().addBuilder( + index, com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public java.util.List - getBudgetsBuilderList() { + public java.util.List + getBudgetsBuilderList() { return getBudgetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetsFieldBuilder() { if (budgetsBuilder_ == null) { - budgetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - budgets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + budgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + budgets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); budgets_ = null; } return budgetsBuilder_; @@ -953,21 +870,19 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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; @@ -976,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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 { @@ -999,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1039,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1073,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ListBudgetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ListBudgetsResponse) private static final com.google.cloud.billing.budgets.v1.ListBudgetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(); } @@ -1087,27 +990,27 @@ public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1122,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ListBudgetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java similarity index 69% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java index fc912b35c8a2..85cae48ff761 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface ListBudgetsResponseOrBuilder - extends +public interface ListBudgetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ListBudgetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - java.util.List getBudgetsList(); + java.util.List + getBudgetsList(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -44,8 +25,6 @@ public interface ListBudgetsResponseOrBuilder */ com.google.cloud.billing.budgets.v1.Budget getBudgets(int index); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -54,51 +33,43 @@ public interface ListBudgetsResponseOrBuilder */ int getBudgetsCount(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - java.util.List + java.util.List getBudgetsOrBuilderList(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index); + com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java similarity index 82% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java index 615997bdd8b8..bcb704df66d1 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * NotificationsRule defines notifications that are sent based on budget spend
  * and thresholds.
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.NotificationsRule}
  */
-public final class NotificationsRule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NotificationsRule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.NotificationsRule)
     NotificationsRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NotificationsRule.newBuilder() to construct.
   private NotificationsRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private NotificationsRule() {
     pubsubTopic_ = "";
     schemaVersion_ = "";
-    monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    monitoringNotificationChannels_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NotificationsRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.NotificationsRule.class,
-            com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
+            com.google.cloud.billing.budgets.v1.NotificationsRule.class, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
   }
 
   public static final int PUBSUB_TOPIC_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object pubsubTopic_ = "";
   /**
-   *
-   *
    * 
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -102,7 +81,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ @java.lang.Override @@ -111,15 +89,14 @@ public java.lang.String getPubsubTopic() { 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(); pubsubTopic_ = s; return s; } } /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -150,15 +127,16 @@ public java.lang.String getPubsubTopic() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -167,12 +145,9 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object schemaVersion_ = ""; /** - * - * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -183,7 +158,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ @java.lang.Override @@ -192,15 +166,14 @@ public java.lang.String getSchemaVersion() { 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(); schemaVersion_ = s; return s; } } /** - * - * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -211,15 +184,16 @@ public java.lang.String getSchemaVersion() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaVersionBytes() { + public com.google.protobuf.ByteString + getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -228,13 +202,10 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() { } public static final int MONITORING_NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -260,18 +231,14 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList + getMonitoringNotificationChannelsList() { return monitoringNotificationChannels_; } /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -297,18 +264,13 @@ public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsL
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -334,10 +296,7 @@ public int getMonitoringNotificationChannelsCount() {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -345,8 +304,6 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -372,22 +329,18 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } public static final int DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER = 4; private boolean disableDefaultIamRecipients_ = false; /** - * - * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -396,7 +349,6 @@ public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -405,7 +357,6 @@ public boolean getDisableDefaultIamRecipients() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -417,7 +368,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(pubsubTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopic_); } @@ -425,8 +377,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaVersion_); } for (int i = 0; i < monitoringNotificationChannels_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, monitoringNotificationChannels_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, monitoringNotificationChannels_.getRaw(i)); } if (disableDefaultIamRecipients_ != false) { output.writeBool(4, disableDefaultIamRecipients_); @@ -455,8 +406,8 @@ public int getSerializedSize() { size += 1 * getMonitoringNotificationChannelsList().size(); } if (disableDefaultIamRecipients_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableDefaultIamRecipients_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, disableDefaultIamRecipients_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -466,19 +417,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.budgets.v1.NotificationsRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.NotificationsRule other = - (com.google.cloud.billing.budgets.v1.NotificationsRule) obj; + com.google.cloud.billing.budgets.v1.NotificationsRule other = (com.google.cloud.billing.budgets.v1.NotificationsRule) obj; - if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; - if (!getSchemaVersion().equals(other.getSchemaVersion())) return false; + if (!getPubsubTopic() + .equals(other.getPubsubTopic())) return false; + if (!getSchemaVersion() + .equals(other.getSchemaVersion())) return false; if (!getMonitoringNotificationChannelsList() .equals(other.getMonitoringNotificationChannelsList())) return false; - if (getDisableDefaultIamRecipients() != other.getDisableDefaultIamRecipients()) return false; + if (getDisableDefaultIamRecipients() + != other.getDisableDefaultIamRecipients()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -499,111 +452,106 @@ public int hashCode() { hash = (53 * hash) + getMonitoringNotificationChannelsList().hashCode(); } hash = (37 * hash) + DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDefaultIamRecipients()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableDefaultIamRecipients()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.NotificationsRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.NotificationsRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.NotificationsRule 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; } /** - * - * *
    * NotificationsRule defines notifications that are sent based on budget spend
    * and thresholds.
@@ -611,47 +559,49 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.NotificationsRule}
    */
-  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.budgets.v1.NotificationsRule)
       com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.NotificationsRule.class,
-              com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
+              com.google.cloud.billing.budgets.v1.NotificationsRule.class, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.NotificationsRule.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       pubsubTopic_ = "";
       schemaVersion_ = "";
-      monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      monitoringNotificationChannels_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       disableDefaultIamRecipients_ = false;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
     }
 
     @java.lang.Override
@@ -670,11 +620,8 @@ public com.google.cloud.billing.budgets.v1.NotificationsRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.NotificationsRule buildPartial() {
-      com.google.cloud.billing.budgets.v1.NotificationsRule result =
-          new com.google.cloud.billing.budgets.v1.NotificationsRule(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.billing.budgets.v1.NotificationsRule result = new com.google.cloud.billing.budgets.v1.NotificationsRule(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -700,39 +647,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.NotificationsRule
     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.budgets.v1.NotificationsRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.NotificationsRule) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.NotificationsRule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -740,8 +686,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.NotificationsRule other) {
-      if (other == com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) return this;
       if (!other.getPubsubTopic().isEmpty()) {
         pubsubTopic_ = other.pubsubTopic_;
         bitField0_ |= 0x00000001;
@@ -791,38 +736,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                pubsubTopic_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                schemaVersion_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureMonitoringNotificationChannelsIsMutable();
-                monitoringNotificationChannels_.add(s);
-                break;
-              } // case 26
-            case 32:
-              {
-                disableDefaultIamRecipients_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              pubsubTopic_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              schemaVersion_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureMonitoringNotificationChannelsIsMutable();
+              monitoringNotificationChannels_.add(s);
+              break;
+            } // case 26
+            case 32: {
+              disableDefaultIamRecipients_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -832,13 +772,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object pubsubTopic_ = "";
     /**
-     *
-     *
      * 
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -869,13 +806,13 @@ public Builder mergeFrom(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; 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(); pubsubTopic_ = s; return s; @@ -884,8 +821,6 @@ public java.lang.String getPubsubTopic() { } } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -916,14 +851,15 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -931,8 +867,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -963,22 +897,18 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPubsubTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pubsubTopic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -1009,7 +939,6 @@ public Builder setPubsubTopic(java.lang.String value) {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPubsubTopic() { @@ -1019,8 +948,6 @@ public Builder clearPubsubTopic() { return this; } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -1051,14 +978,12 @@ public Builder clearPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPubsubTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pubsubTopic_ = value; bitField0_ |= 0x00000001; @@ -1068,8 +993,6 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { private java.lang.Object schemaVersion_ = ""; /** - * - * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1080,13 +1003,13 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ public java.lang.String getSchemaVersion() { java.lang.Object ref = schemaVersion_; 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(); schemaVersion_ = s; return s; @@ -1095,8 +1018,6 @@ public java.lang.String getSchemaVersion() { } } /** - * - * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1107,14 +1028,15 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ - public com.google.protobuf.ByteString getSchemaVersionBytes() { + public com.google.protobuf.ByteString + getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -1122,8 +1044,6 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() { } } /** - * - * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1134,22 +1054,18 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1160,7 +1076,6 @@ public Builder setSchemaVersion(java.lang.String value) {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSchemaVersion() { @@ -1170,8 +1085,6 @@ public Builder clearSchemaVersion() { return this; } /** - * - * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1182,14 +1095,12 @@ public Builder clearSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaVersion_ = value; bitField0_ |= 0x00000002; @@ -1199,17 +1110,13 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMonitoringNotificationChannelsIsMutable() { if (!monitoringNotificationChannels_.isModifiable()) { - monitoringNotificationChannels_ = - new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); + monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); } bitField0_ |= 0x00000004; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1235,19 +1142,15 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList + getMonitoringNotificationChannelsList() { monitoringNotificationChannels_.makeImmutable(); return monitoringNotificationChannels_; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1273,18 +1176,13 @@ public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsL
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1310,10 +1208,7 @@ public int getMonitoringNotificationChannelsCount() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -1321,8 +1216,6 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1348,19 +1241,15 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1386,18 +1275,14 @@ public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The monitoringNotificationChannels to set. * @return This builder for chaining. */ - public Builder setMonitoringNotificationChannels(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMonitoringNotificationChannels( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.set(index, value); bitField0_ |= 0x00000004; @@ -1405,8 +1290,6 @@ public Builder setMonitoringNotificationChannels(int index, java.lang.String val return this; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1432,17 +1315,13 @@ public Builder setMonitoringNotificationChannels(int index, java.lang.String val
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannels(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMonitoringNotificationChannels( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); bitField0_ |= 0x00000004; @@ -1450,8 +1329,6 @@ public Builder addMonitoringNotificationChannels(java.lang.String value) { return this; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1477,10 +1354,7 @@ public Builder addMonitoringNotificationChannels(java.lang.String value) {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The monitoringNotificationChannels to add. * @return This builder for chaining. */ @@ -1494,8 +1368,6 @@ public Builder addAllMonitoringNotificationChannels( return this; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1521,22 +1393,17 @@ public Builder addAllMonitoringNotificationChannels(
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearMonitoringNotificationChannels() { - monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + monitoringNotificationChannels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1562,17 +1429,13 @@ public Builder clearMonitoringNotificationChannels() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMonitoringNotificationChannelsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); @@ -1581,10 +1444,8 @@ public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteSt return this; } - private boolean disableDefaultIamRecipients_; + private boolean disableDefaultIamRecipients_ ; /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1592,9 +1453,7 @@ public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteSt
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -1602,8 +1461,6 @@ public boolean getDisableDefaultIamRecipients() { return disableDefaultIamRecipients_; } /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1611,9 +1468,7 @@ public boolean getDisableDefaultIamRecipients() {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The disableDefaultIamRecipients to set. * @return This builder for chaining. */ @@ -1625,8 +1480,6 @@ public Builder setDisableDefaultIamRecipients(boolean value) { return this; } /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1634,9 +1487,7 @@ public Builder setDisableDefaultIamRecipients(boolean value) {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDisableDefaultIamRecipients() { @@ -1645,9 +1496,9 @@ public Builder clearDisableDefaultIamRecipients() { 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); } @@ -1657,12 +1508,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.NotificationsRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.NotificationsRule) private static final com.google.cloud.billing.budgets.v1.NotificationsRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.NotificationsRule(); } @@ -1671,27 +1522,27 @@ public static com.google.cloud.billing.budgets.v1.NotificationsRule getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationsRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationsRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1706,4 +1557,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.NotificationsRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java similarity index 87% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java index 438aced5f877..5f589ecfe3a1 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface NotificationsRuleOrBuilder - extends +public interface NotificationsRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.NotificationsRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -56,13 +38,10 @@ public interface NotificationsRuleOrBuilder
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -93,14 +72,12 @@ public interface NotificationsRuleOrBuilder
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString getPubsubTopicBytes(); + com.google.protobuf.ByteString + getPubsubTopicBytes(); /** - * - * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -111,13 +88,10 @@ public interface NotificationsRuleOrBuilder
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ java.lang.String getSchemaVersion(); /** - * - * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -128,14 +102,12 @@ public interface NotificationsRuleOrBuilder
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ - com.google.protobuf.ByteString getSchemaVersionBytes(); + com.google.protobuf.ByteString + getSchemaVersionBytes(); /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -161,16 +133,12 @@ public interface NotificationsRuleOrBuilder
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - java.util.List getMonitoringNotificationChannelsList(); + java.util.List + getMonitoringNotificationChannelsList(); /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -196,16 +164,11 @@ public interface NotificationsRuleOrBuilder
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ int getMonitoringNotificationChannelsCount(); /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -231,17 +194,12 @@ public interface NotificationsRuleOrBuilder
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ java.lang.String getMonitoringNotificationChannels(int index); /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -267,18 +225,14 @@ public interface NotificationsRuleOrBuilder
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index); + com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index); /** - * - * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -287,7 +241,6 @@ public interface NotificationsRuleOrBuilder
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultIamRecipients. */ boolean getDisableDefaultIamRecipients(); diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java similarity index 69% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java index 93ee469e3bac..9c3a03a0b652 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * ThresholdRule contains the definition of a threshold. Threshold rules define
  * the triggering events used to generate a budget notification email. When a
@@ -48,54 +31,49 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.ThresholdRule}
  */
-public final class ThresholdRule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ThresholdRule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ThresholdRule)
     ThresholdRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ThresholdRule.newBuilder() to construct.
   private ThresholdRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ThresholdRule() {
     spendBasis_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ThresholdRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.ThresholdRule.class,
-            com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
+            com.google.cloud.billing.budgets.v1.ThresholdRule.class, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of basis used to determine if spend has passed the threshold.
    * 
* * Protobuf enum {@code google.cloud.billing.budgets.v1.ThresholdRule.Basis} */ - public enum Basis implements com.google.protobuf.ProtocolMessageEnum { + public enum Basis + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified threshold basis.
      * 
@@ -104,8 +82,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ BASIS_UNSPECIFIED(0), /** - * - * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -114,8 +90,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ CURRENT_SPEND(1), /** - * - * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -132,8 +106,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified threshold basis.
      * 
@@ -142,8 +114,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BASIS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -152,8 +122,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CURRENT_SPEND_VALUE = 1; /** - * - * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -167,6 +135,7 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FORECASTED_SPEND_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -191,51 +160,49 @@ public static Basis valueOf(int value) {
      */
     public static Basis forNumber(int value) {
       switch (value) {
-        case 0:
-          return BASIS_UNSPECIFIED;
-        case 1:
-          return CURRENT_SPEND;
-        case 2:
-          return FORECASTED_SPEND;
-        default:
-          return null;
+        case 0: return BASIS_UNSPECIFIED;
+        case 1: return CURRENT_SPEND;
+        case 2: return FORECASTED_SPEND;
+        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<
+        Basis> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Basis findValueByNumber(int number) {
+              return Basis.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Basis findValueByNumber(int number) {
-            return Basis.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() {
-      return com.google.cloud.billing.budgets.v1.ThresholdRule.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.ThresholdRule.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Basis[] VALUES = values();
 
-    public static Basis valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Basis 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;
@@ -255,8 +222,6 @@ private Basis(int value) {
   public static final int THRESHOLD_PERCENT_FIELD_NUMBER = 1;
   private double thresholdPercent_ = 0D;
   /**
-   *
-   *
    * 
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -264,7 +229,6 @@ private Basis(int value) {
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ @java.lang.Override @@ -275,48 +239,32 @@ public double getThresholdPercent() { public static final int SPEND_BASIS_FIELD_NUMBER = 2; private int spendBasis_ = 0; /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override - public int getSpendBasisValue() { + @java.lang.Override public int getSpendBasisValue() { return spendBasis_; } /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ - @java.lang.Override - public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null - ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,12 +276,12 @@ 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(thresholdPercent_) != 0) { output.writeDouble(1, thresholdPercent_); } - if (spendBasis_ - != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + if (spendBasis_ != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { output.writeEnum(2, spendBasis_); } getUnknownFields().writeTo(output); @@ -346,11 +294,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(thresholdPercent_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, thresholdPercent_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, thresholdPercent_); } - if (spendBasis_ - != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spendBasis_); + if (spendBasis_ != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, spendBasis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -360,16 +309,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.budgets.v1.ThresholdRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ThresholdRule other = - (com.google.cloud.billing.budgets.v1.ThresholdRule) obj; + com.google.cloud.billing.budgets.v1.ThresholdRule other = (com.google.cloud.billing.budgets.v1.ThresholdRule) obj; if (java.lang.Double.doubleToLongBits(getThresholdPercent()) - != java.lang.Double.doubleToLongBits(other.getThresholdPercent())) return false; + != java.lang.Double.doubleToLongBits( + other.getThresholdPercent())) return false; if (spendBasis_ != other.spendBasis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -383,10 +332,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THRESHOLD_PERCENT_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThresholdPercent())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThresholdPercent())); hash = (37 * hash) + SPEND_BASIS_FIELD_NUMBER; hash = (53 * hash) + spendBasis_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -395,103 +342,98 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ThresholdRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ThresholdRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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; } /** - * - * *
    * ThresholdRule contains the definition of a threshold. Threshold rules define
    * the triggering events used to generate a budget notification email. When a
@@ -519,32 +461,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.ThresholdRule}
    */
-  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.budgets.v1.ThresholdRule)
       com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.ThresholdRule.class,
-              com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
+              com.google.cloud.billing.budgets.v1.ThresholdRule.class, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.ThresholdRule.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -555,9 +498,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
@@ -576,11 +519,8 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.ThresholdRule buildPartial() {
-      com.google.cloud.billing.budgets.v1.ThresholdRule result =
-          new com.google.cloud.billing.budgets.v1.ThresholdRule(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.billing.budgets.v1.ThresholdRule result = new com.google.cloud.billing.budgets.v1.ThresholdRule(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -599,39 +539,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ThresholdRule res
     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.budgets.v1.ThresholdRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.ThresholdRule) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.ThresholdRule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -639,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ThresholdRule other) {
-      if (other == com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()) return this;
       if (other.getThresholdPercent() != 0D) {
         setThresholdPercent(other.getThresholdPercent());
       }
@@ -673,25 +611,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 9:
-              {
-                thresholdPercent_ = input.readDouble();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 9
-            case 16:
-              {
-                spendBasis_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 9: {
+              thresholdPercent_ = input.readDouble();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 9
+            case 16: {
+              spendBasis_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -701,13 +636,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private double thresholdPercent_;
+    private double thresholdPercent_ ;
     /**
-     *
-     *
      * 
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -715,7 +647,6 @@ public Builder mergeFrom(
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ @java.lang.Override @@ -723,8 +654,6 @@ public double getThresholdPercent() { return thresholdPercent_; } /** - * - * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -732,7 +661,6 @@ public double getThresholdPercent() {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The thresholdPercent to set. * @return This builder for chaining. */ @@ -744,8 +672,6 @@ public Builder setThresholdPercent(double value) { return this; } /** - * - * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -753,7 +679,6 @@ public Builder setThresholdPercent(double value) {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearThresholdPercent() { @@ -765,35 +690,24 @@ public Builder clearThresholdPercent() { private int spendBasis_ = 0; /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override - public int getSpendBasisValue() { + @java.lang.Override public int getSpendBasisValue() { return spendBasis_; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for spendBasis to set. * @return This builder for chaining. */ @@ -804,39 +718,26 @@ public Builder setSpendBasisValue(int value) { return this; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null - ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The spendBasis to set. * @return This builder for chaining. */ @@ -850,17 +751,12 @@ public Builder setSpendBasis(com.google.cloud.billing.budgets.v1.ThresholdRule.B return this; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearSpendBasis() { @@ -869,9 +765,9 @@ public Builder clearSpendBasis() { 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); } @@ -881,12 +777,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ThresholdRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ThresholdRule) private static final com.google.cloud.billing.budgets.v1.ThresholdRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ThresholdRule(); } @@ -895,27 +791,27 @@ public static com.google.cloud.billing.budgets.v1.ThresholdRule getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThresholdRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThresholdRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,4 +826,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ThresholdRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java similarity index 55% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java index 2b672e710e60..7fecaa5cf0e3 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface ThresholdRuleOrBuilder - extends +public interface ThresholdRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ThresholdRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -33,38 +15,27 @@ public interface ThresholdRuleOrBuilder
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ double getThresholdPercent(); /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ int getSpendBasisValue(); /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis(); diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java similarity index 67% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java index 0012712b609c..0a96a306e40e 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java @@ -1,79 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * Request for UpdateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.UpdateBudgetRequest} */ -public final class UpdateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.UpdateBudgetRequest) UpdateBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBudgetRequest.newBuilder() to construct. private UpdateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateBudgetRequest() {} + private UpdateBudgetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); } public static final int BUDGET_FIELD_NUMBER = 1; private com.google.cloud.billing.budgets.v1.Budget budget_; /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ @java.lang.Override @@ -81,49 +58,34 @@ public boolean hasBudget() { return budget_ != null; } /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Budget getBudget() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -133,9 +95,7 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder()
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -143,8 +103,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -154,9 +112,7 @@ public boolean hasUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -164,8 +120,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -175,8 +129,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -184,7 +137,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,7 +148,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 (budget_ != null) { output.writeMessage(1, getBudget()); } @@ -213,10 +166,12 @@ public int getSerializedSize() { size = 0; if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBudget()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBudget()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -226,21 +181,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.budgets.v1.UpdateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other = - (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other = (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) obj; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget().equals(other.getBudget())) return false; + if (!getBudget() + .equals(other.getBudget())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -267,136 +223,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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 for UpdateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.UpdateBudgetRequest} */ - 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.budgets.v1.UpdateBudgetRequest) com.google.cloud.billing.budgets.v1.UpdateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +366,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override @@ -436,11 +387,8 @@ public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result = - new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result = new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -448,10 +396,14 @@ public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null + ? budget_ + : budgetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -459,39 +411,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.UpdateBudgetReque 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.budgets.v1.UpdateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -499,8 +450,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()) return this; if (other.hasBudget()) { mergeBudget(other.getBudget()); } @@ -533,25 +483,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBudgetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -561,66 +512,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.billing.budgets.v1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> - budgetBuilder_; + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetBuilder_; /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ public com.google.cloud.billing.budgets.v1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } else { return budgetBuilder_.getMessage(); } } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { @@ -636,18 +567,15 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder setBudget( + com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetBuilder_ == null) { budget_ = builderForValue.build(); } else { @@ -658,22 +586,18 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder buil return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && budget_ != null - && budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + budget_ != null && + budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -686,16 +610,12 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000001); @@ -708,16 +628,12 @@ public Builder clearBudget() { return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000001; @@ -725,50 +641,38 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { return getBudgetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? + com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - getBudget(), getParentForChildren(), isClean()); + budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + getBudget(), + getParentForChildren(), + isClean()); budget_ = null; } return budgetBuilder_; @@ -776,13 +680,8 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() 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_; /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -792,17 +691,13 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder()
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -812,23 +707,17 @@ public boolean hasUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @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(); } } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -838,8 +727,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -855,8 +743,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -866,10 +752,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -880,8 +766,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -891,14 +775,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -911,8 +794,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -922,8 +803,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -936,8 +816,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -947,8 +825,7 @@ public Builder clearUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -956,8 +833,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -967,21 +842,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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_; } } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -991,28 +862,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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); } @@ -1022,12 +889,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.UpdateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.UpdateBudgetRequest) private static final com.google.cloud.billing.budgets.v1.UpdateBudgetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(); } @@ -1036,27 +903,27 @@ public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1071,4 +938,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java similarity index 67% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java index 89ef02418063..e2af918a88d8 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java @@ -1,75 +1,43 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface UpdateBudgetRequestOrBuilder - extends +public interface UpdateBudgetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.UpdateBudgetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ boolean hasBudget(); /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ com.google.cloud.billing.budgets.v1.Budget getBudget(); /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -79,15 +47,11 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -97,15 +61,11 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -115,8 +75,7 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto similarity index 100% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto similarity index 100% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java similarity index 99% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java index b99f4ece8fb9..7b15cfcc1592 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java @@ -370,6 +370,7 @@ public final UnaryCallable getBudgetCallable() { * ListBudgetsRequest request = * ListBudgetsRequest.newBuilder() * .setParent(BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]").toString()) + * .setScope("scope109264468") * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -406,6 +407,7 @@ public final ListBudgetsPagedResponse listBudgets(ListBudgetsRequest request) { * ListBudgetsRequest request = * ListBudgetsRequest.newBuilder() * .setParent(BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]").toString()) + * .setScope("scope109264468") * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -442,6 +444,7 @@ public final ListBudgetsPagedResponse listBudgets(ListBudgetsRequest request) { * ListBudgetsRequest request = * ListBudgetsRequest.newBuilder() * .setParent(BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]").toString()) + * .setScope("scope109264468") * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java similarity index 99% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java index a611a80c3bbe..54f7fab4ea61 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.billing.budgets.v1beta1.stub.BudgetServiceStubSettings; diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java similarity index 99% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java index b0cd886f6b40..3fe00906ecd4 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java @@ -38,6 +38,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java similarity index 98% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java index 173ee5ff85b7..76604772ed37 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java @@ -250,6 +250,7 @@ public void listBudgetsTest() throws Exception { ListBudgetsRequest request = ListBudgetsRequest.newBuilder() .setParent(BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]").toString()) + .setScope("scope109264468") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); @@ -266,6 +267,7 @@ public void listBudgetsTest() throws Exception { ListBudgetsRequest actualRequest = ((ListBudgetsRequest) actualRequests.get(0)); Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getScope(), actualRequest.getScope()); Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); Assert.assertTrue( @@ -283,6 +285,7 @@ public void listBudgetsExceptionTest() throws Exception { ListBudgetsRequest request = ListBudgetsRequest.newBuilder() .setParent(BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]").toString()) + .setScope("scope109264468") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java b/owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java similarity index 50% rename from java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java rename to owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java index 27a4c429a154..617511713473 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.billing.budgets.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * BudgetService stores Cloud Billing budgets, which define a
  * budget plan and rules to execute as we track spend against that plan.
@@ -36,276 +19,206 @@ private BudgetServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.billing.budgets.v1beta1.BudgetService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getCreateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getCreateBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
-            com.google.cloud.billing.budgets.v1beta1.Budget>
-        getCreateBudgetMethod;
+  public static io.grpc.MethodDescriptor getCreateBudgetMethod() {
+    io.grpc.MethodDescriptor getCreateBudgetMethod;
     if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
-          BudgetServiceGrpc.getCreateBudgetMethod =
-              getCreateBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
-                      .build();
+          BudgetServiceGrpc.getCreateBudgetMethod = getCreateBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
+              .build();
         }
       }
     }
     return getCreateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getUpdateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getUpdateBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
-            com.google.cloud.billing.budgets.v1beta1.Budget>
-        getUpdateBudgetMethod;
+  public static io.grpc.MethodDescriptor getUpdateBudgetMethod() {
+    io.grpc.MethodDescriptor getUpdateBudgetMethod;
     if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
-          BudgetServiceGrpc.getUpdateBudgetMethod =
-              getUpdateBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
-                      .build();
+          BudgetServiceGrpc.getUpdateBudgetMethod = getUpdateBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
+              .build();
         }
       }
     }
     return getUpdateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getGetBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getGetBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getGetBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
-            com.google.cloud.billing.budgets.v1beta1.Budget>
-        getGetBudgetMethod;
+  public static io.grpc.MethodDescriptor getGetBudgetMethod() {
+    io.grpc.MethodDescriptor getGetBudgetMethod;
     if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
-          BudgetServiceGrpc.getGetBudgetMethod =
-              getGetBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
-                      .build();
+          BudgetServiceGrpc.getGetBudgetMethod = getGetBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
+              .build();
         }
       }
     }
     return getGetBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
-          com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
-      getListBudgetsMethod;
+  private static volatile io.grpc.MethodDescriptor getListBudgetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListBudgets",
       requestType = com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
-          com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
-      getListBudgetsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
-            com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
-        getListBudgetsMethod;
+  public static io.grpc.MethodDescriptor getListBudgetsMethod() {
+    io.grpc.MethodDescriptor getListBudgetsMethod;
     if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
-          BudgetServiceGrpc.getListBudgetsMethod =
-              getListBudgetsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
-                      .build();
+          BudgetServiceGrpc.getListBudgetsMethod = getListBudgetsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
+              .build();
         }
       }
     }
     return getListBudgetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
-      getDeleteBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
-      getDeleteBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
-        getDeleteBudgetMethod;
+  public static io.grpc.MethodDescriptor getDeleteBudgetMethod() {
+    io.grpc.MethodDescriptor getDeleteBudgetMethod;
     if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
-          BudgetServiceGrpc.getDeleteBudgetMethod =
-              getDeleteBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
-                      .build();
+          BudgetServiceGrpc.getDeleteBudgetMethod = getDeleteBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
+              .build();
         }
       }
     }
     return getDeleteBudgetMethod;
   }
 
-  /** 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 BudgetServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceStub(channel, callOptions);
+        }
+      };
     return BudgetServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BudgetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static BudgetServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceBlockingStub(channel, callOptions);
+        }
+      };
     return BudgetServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static BudgetServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static BudgetServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceFutureStub(channel, callOptions);
+        }
+      };
     return BudgetServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -314,25 +227,18 @@ public BudgetServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - default void createBudget( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBudgetMethod(), responseObserver); + default void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBudgetMethod(), responseObserver); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -340,17 +246,12 @@ default void createBudget(
      * this API will not be changed by this method.
      * 
*/ - default void updateBudget( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBudgetMethod(), responseObserver); + default void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBudgetMethod(), responseObserver); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -359,16 +260,12 @@ default void updateBudget(
      * in the Cloud Console.
      * 
*/ - default void getBudget( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + default void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBudgetMethod(), responseObserver); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -377,49 +274,39 @@ default void getBudget(
      * in the Cloud Console.
      * 
*/ - default void listBudgets( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBudgetsMethod(), responseObserver); + default void listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBudgetsMethod(), responseObserver); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - default void deleteBudget( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, + default void deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBudgetMethod(), responseObserver); } } /** * Base class for the server implementation of the service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
    * 
*/ - public abstract static class BudgetServiceImplBase + public static abstract class BudgetServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return BudgetServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -427,37 +314,31 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class BudgetServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private BudgetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected BudgetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected BudgetServiceStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new BudgetServiceStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public void createBudget( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -465,19 +346,13 @@ public void createBudget(
      * this API will not be changed by this method.
      * 
*/ - public void updateBudget( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -486,17 +361,13 @@ public void updateBudget(
      * in the Cloud Console.
      * 
*/ - public void getBudget( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -505,36 +376,26 @@ public void getBudget(
      * in the Cloud Console.
      * 
*/ - public void listBudgets( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBudgetsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public void deleteBudget( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, + public void deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -542,7 +403,8 @@ public void deleteBudget(
    */
   public static final class BudgetServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private BudgetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -553,23 +415,18 @@ protected BudgetServiceBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget createBudget( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -577,15 +434,12 @@ public com.google.cloud.billing.budgets.v1beta1.Budget createBudget(
      * this API will not be changed by this method.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -594,15 +448,12 @@ public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget(
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget getBudget( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -611,21 +462,17 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget(
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse listBudgets( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { + public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBudgetsMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.protobuf.Empty deleteBudget( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { + public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); } @@ -633,7 +480,6 @@ public com.google.protobuf.Empty deleteBudget( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -641,7 +487,8 @@ public com.google.protobuf.Empty deleteBudget(
    */
   public static final class BudgetServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private BudgetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -652,24 +499,19 @@ protected BudgetServiceFutureStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1beta1.Budget> - createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture createBudget( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -677,16 +519,13 @@ protected BudgetServiceFutureStub build(
      * this API will not be changed by this method.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1beta1.Budget> - updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateBudget( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -695,16 +534,13 @@ protected BudgetServiceFutureStub build(
      * in the Cloud Console.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1beta1.Budget> - getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture getBudget( + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -713,22 +549,19 @@ protected BudgetServiceFutureStub build(
      * in the Cloud Console.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse> - listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listBudgets( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteBudget( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request); } @@ -740,11 +573,11 @@ protected BudgetServiceFutureStub build( private static final int METHODID_LIST_BUDGETS = 3; private static final int METHODID_DELETE_BUDGET = 4; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -758,33 +591,23 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_BUDGET: - serviceImpl.createBudget( - (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createBudget((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_BUDGET: - serviceImpl.updateBudget( - (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateBudget((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BUDGET: - serviceImpl.getBudget( - (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getBudget((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BUDGETS: - serviceImpl.listBudgets( - (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>) - responseObserver); + serviceImpl.listBudgets((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_BUDGET: - serviceImpl.deleteBudget( - (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) request, + serviceImpl.deleteBudget((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -806,44 +629,45 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>( - service, METHODID_CREATE_BUDGET))) + getCreateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>( + service, METHODID_CREATE_BUDGET))) .addMethod( - getUpdateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>( - service, METHODID_UPDATE_BUDGET))) + getUpdateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>( + service, METHODID_UPDATE_BUDGET))) .addMethod( - getGetBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>(service, METHODID_GET_BUDGET))) + getGetBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>( + service, METHODID_GET_BUDGET))) .addMethod( - getListBudgetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>( - service, METHODID_LIST_BUDGETS))) + getListBudgetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>( + service, METHODID_LIST_BUDGETS))) .addMethod( - getDeleteBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_BUDGET))) + getDeleteBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_BUDGET))) .build(); } - private abstract static class BudgetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class BudgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { BudgetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -885,16 +709,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BudgetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) - .addMethod(getCreateBudgetMethod()) - .addMethod(getUpdateBudgetMethod()) - .addMethod(getGetBudgetMethod()) - .addMethod(getListBudgetsMethod()) - .addMethod(getDeleteBudgetMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) + .addMethod(getCreateBudgetMethod()) + .addMethod(getUpdateBudgetMethod()) + .addMethod(getGetBudgetMethod()) + .addMethod(getListBudgetsMethod()) + .addMethod(getDeleteBudgetMethod()) + .build(); } } } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java similarity index 72% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java index 562f78417bed..a6787a95f0d6 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * AllUpdatesRule defines notifications that are sent based on budget spend
  * and thresholds.
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.AllUpdatesRule}
  */
-public final class AllUpdatesRule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AllUpdatesRule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.AllUpdatesRule)
     AllUpdatesRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AllUpdatesRule.newBuilder() to construct.
   private AllUpdatesRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AllUpdatesRule() {
     pubsubTopic_ = "";
     schemaVersion_ = "";
-    monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    monitoringNotificationChannels_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AllUpdatesRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class,
-            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
   }
 
   public static final int PUBSUB_TOPIC_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object pubsubTopic_ = "";
   /**
-   *
-   *
    * 
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -87,7 +66,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ @java.lang.Override @@ -96,15 +74,14 @@ public java.lang.String getPubsubTopic() { 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(); pubsubTopic_ = s; return s; } } /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -120,15 +97,16 @@ public java.lang.String getPubsubTopic() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -137,12 +115,9 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object schemaVersion_ = ""; /** - * - * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -153,7 +128,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ @java.lang.Override @@ -162,15 +136,14 @@ public java.lang.String getSchemaVersion() { 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(); schemaVersion_ = s; return s; } } /** - * - * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -181,15 +154,16 @@ public java.lang.String getSchemaVersion() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaVersionBytes() { + public com.google.protobuf.ByteString + getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -198,13 +172,10 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() { } public static final int MONITORING_NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -216,18 +187,14 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() {
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList + getMonitoringNotificationChannelsList() { return monitoringNotificationChannels_; } /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -239,18 +206,13 @@ public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsL
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -262,10 +224,7 @@ public int getMonitoringNotificationChannelsCount() {
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -273,8 +232,6 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -286,22 +243,18 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } public static final int DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER = 4; private boolean disableDefaultIamRecipients_ = false; /** - * - * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -310,7 +263,6 @@ public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -318,8 +270,28 @@ public boolean getDisableDefaultIamRecipients() { return disableDefaultIamRecipients_; } - private byte memoizedIsInitialized = -1; + public static final int ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER = 5; + private boolean enableProjectLevelRecipients_ = false; + /** + *
+   * Optional. When set to true, and when the budget has a single project
+   * configured, notifications will be sent to project level recipients of that
+   * project. This field will be ignored if the budget has multiple or no
+   * project configured.
+   *
+   * Currently, project level recipients are the users with `Owner` role on a
+   * cloud project.
+   * 
+ * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enableProjectLevelRecipients. + */ + @java.lang.Override + public boolean getEnableProjectLevelRecipients() { + return enableProjectLevelRecipients_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,7 +303,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(pubsubTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopic_); } @@ -339,12 +312,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaVersion_); } for (int i = 0; i < monitoringNotificationChannels_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, monitoringNotificationChannels_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, monitoringNotificationChannels_.getRaw(i)); } if (disableDefaultIamRecipients_ != false) { output.writeBool(4, disableDefaultIamRecipients_); } + if (enableProjectLevelRecipients_ != false) { + output.writeBool(5, enableProjectLevelRecipients_); + } getUnknownFields().writeTo(output); } @@ -369,8 +344,12 @@ public int getSerializedSize() { size += 1 * getMonitoringNotificationChannelsList().size(); } if (disableDefaultIamRecipients_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableDefaultIamRecipients_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, disableDefaultIamRecipients_); + } + if (enableProjectLevelRecipients_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, enableProjectLevelRecipients_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -380,19 +359,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.budgets.v1beta1.AllUpdatesRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other = - (com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) obj; + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other = (com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) obj; - if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; - if (!getSchemaVersion().equals(other.getSchemaVersion())) return false; + if (!getPubsubTopic() + .equals(other.getPubsubTopic())) return false; + if (!getSchemaVersion() + .equals(other.getSchemaVersion())) return false; if (!getMonitoringNotificationChannelsList() .equals(other.getMonitoringNotificationChannelsList())) return false; - if (getDisableDefaultIamRecipients() != other.getDisableDefaultIamRecipients()) return false; + if (getDisableDefaultIamRecipients() + != other.getDisableDefaultIamRecipients()) return false; + if (getEnableProjectLevelRecipients() + != other.getEnableProjectLevelRecipients()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,111 +396,109 @@ public int hashCode() { hash = (53 * hash) + getMonitoringNotificationChannelsList().hashCode(); } hash = (37 * hash) + DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDefaultIamRecipients()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableDefaultIamRecipients()); + hash = (37 * hash) + ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableProjectLevelRecipients()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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; } /** - * - * *
    * AllUpdatesRule defines notifications that are sent based on budget spend
    * and thresholds.
@@ -525,47 +506,50 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.AllUpdatesRule}
    */
-  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.budgets.v1beta1.AllUpdatesRule)
       com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class,
-              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       pubsubTopic_ = "";
       schemaVersion_ = "";
-      monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      monitoringNotificationChannels_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       disableDefaultIamRecipients_ = false;
+      enableProjectLevelRecipients_ = false;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
     }
 
     @java.lang.Override
@@ -584,11 +568,8 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule result =
-          new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule result = new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -608,45 +589,47 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRu
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.disableDefaultIamRecipients_ = disableDefaultIamRecipients_;
       }
+      if (((from_bitField0_ & 0x00000010) != 0)) {
+        result.enableProjectLevelRecipients_ = enableProjectLevelRecipients_;
+      }
     }
 
     @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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.budgets.v1beta1.AllUpdatesRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -654,8 +637,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) return this;
       if (!other.getPubsubTopic().isEmpty()) {
         pubsubTopic_ = other.pubsubTopic_;
         bitField0_ |= 0x00000001;
@@ -679,6 +661,9 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule
       if (other.getDisableDefaultIamRecipients() != false) {
         setDisableDefaultIamRecipients(other.getDisableDefaultIamRecipients());
       }
+      if (other.getEnableProjectLevelRecipients() != false) {
+        setEnableProjectLevelRecipients(other.getEnableProjectLevelRecipients());
+      }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -705,38 +690,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                pubsubTopic_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                schemaVersion_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureMonitoringNotificationChannelsIsMutable();
-                monitoringNotificationChannels_.add(s);
-                break;
-              } // case 26
-            case 32:
-              {
-                disableDefaultIamRecipients_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              pubsubTopic_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              schemaVersion_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureMonitoringNotificationChannelsIsMutable();
+              monitoringNotificationChannels_.add(s);
+              break;
+            } // case 26
+            case 32: {
+              disableDefaultIamRecipients_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              enableProjectLevelRecipients_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -746,13 +731,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object pubsubTopic_ = "";
     /**
-     *
-     *
      * 
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -768,13 +750,13 @@ public Builder mergeFrom(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; 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(); pubsubTopic_ = s; return s; @@ -783,8 +765,6 @@ public java.lang.String getPubsubTopic() { } } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -800,14 +780,15 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -815,8 +796,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -832,22 +811,18 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPubsubTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pubsubTopic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -863,7 +838,6 @@ public Builder setPubsubTopic(java.lang.String value) {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPubsubTopic() { @@ -873,8 +847,6 @@ public Builder clearPubsubTopic() { return this; } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -890,14 +862,12 @@ public Builder clearPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPubsubTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pubsubTopic_ = value; bitField0_ |= 0x00000001; @@ -907,8 +877,6 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { private java.lang.Object schemaVersion_ = ""; /** - * - * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -919,13 +887,13 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ public java.lang.String getSchemaVersion() { java.lang.Object ref = schemaVersion_; 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(); schemaVersion_ = s; return s; @@ -934,8 +902,6 @@ public java.lang.String getSchemaVersion() { } } /** - * - * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -946,14 +912,15 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ - public com.google.protobuf.ByteString getSchemaVersionBytes() { + public com.google.protobuf.ByteString + getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -961,8 +928,6 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() { } } /** - * - * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -973,22 +938,18 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -999,7 +960,6 @@ public Builder setSchemaVersion(java.lang.String value) {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSchemaVersion() { @@ -1009,8 +969,6 @@ public Builder clearSchemaVersion() { return this; } /** - * - * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -1021,14 +979,12 @@ public Builder clearSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaVersion_ = value; bitField0_ |= 0x00000002; @@ -1038,17 +994,13 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMonitoringNotificationChannelsIsMutable() { if (!monitoringNotificationChannels_.isModifiable()) { - monitoringNotificationChannels_ = - new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); + monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); } bitField0_ |= 0x00000004; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1060,19 +1012,15 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList + getMonitoringNotificationChannelsList() { monitoringNotificationChannels_.makeImmutable(); return monitoringNotificationChannels_; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1084,18 +1032,13 @@ public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsL
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1107,10 +1050,7 @@ public int getMonitoringNotificationChannelsCount() {
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -1118,8 +1058,6 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1131,19 +1069,15 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1155,18 +1089,14 @@ public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The monitoringNotificationChannels to set. * @return This builder for chaining. */ - public Builder setMonitoringNotificationChannels(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMonitoringNotificationChannels( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.set(index, value); bitField0_ |= 0x00000004; @@ -1174,8 +1104,6 @@ public Builder setMonitoringNotificationChannels(int index, java.lang.String val return this; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1187,17 +1115,13 @@ public Builder setMonitoringNotificationChannels(int index, java.lang.String val
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannels(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMonitoringNotificationChannels( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); bitField0_ |= 0x00000004; @@ -1205,8 +1129,6 @@ public Builder addMonitoringNotificationChannels(java.lang.String value) { return this; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1218,10 +1140,7 @@ public Builder addMonitoringNotificationChannels(java.lang.String value) {
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The monitoringNotificationChannels to add. * @return This builder for chaining. */ @@ -1235,8 +1154,6 @@ public Builder addAllMonitoringNotificationChannels( return this; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1248,22 +1165,17 @@ public Builder addAllMonitoringNotificationChannels(
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearMonitoringNotificationChannels() { - monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + monitoringNotificationChannels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1275,17 +1187,13 @@ public Builder clearMonitoringNotificationChannels() {
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMonitoringNotificationChannelsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); @@ -1294,10 +1202,8 @@ public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteSt return this; } - private boolean disableDefaultIamRecipients_; + private boolean disableDefaultIamRecipients_ ; /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1305,9 +1211,7 @@ public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteSt
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -1315,8 +1219,6 @@ public boolean getDisableDefaultIamRecipients() { return disableDefaultIamRecipients_; } /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1324,9 +1226,7 @@ public boolean getDisableDefaultIamRecipients() {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The disableDefaultIamRecipients to set. * @return This builder for chaining. */ @@ -1338,8 +1238,6 @@ public Builder setDisableDefaultIamRecipients(boolean value) { return this; } /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1347,9 +1245,7 @@ public Builder setDisableDefaultIamRecipients(boolean value) {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDisableDefaultIamRecipients() { @@ -1359,8 +1255,70 @@ public Builder clearDisableDefaultIamRecipients() { return this; } + private boolean enableProjectLevelRecipients_ ; + /** + *
+     * Optional. When set to true, and when the budget has a single project
+     * configured, notifications will be sent to project level recipients of that
+     * project. This field will be ignored if the budget has multiple or no
+     * project configured.
+     *
+     * Currently, project level recipients are the users with `Owner` role on a
+     * cloud project.
+     * 
+ * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enableProjectLevelRecipients. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public boolean getEnableProjectLevelRecipients() { + return enableProjectLevelRecipients_; + } + /** + *
+     * Optional. When set to true, and when the budget has a single project
+     * configured, notifications will be sent to project level recipients of that
+     * project. This field will be ignored if the budget has multiple or no
+     * project configured.
+     *
+     * Currently, project level recipients are the users with `Owner` role on a
+     * cloud project.
+     * 
+ * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The enableProjectLevelRecipients to set. + * @return This builder for chaining. + */ + public Builder setEnableProjectLevelRecipients(boolean value) { + + enableProjectLevelRecipients_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Optional. When set to true, and when the budget has a single project
+     * configured, notifications will be sent to project level recipients of that
+     * project. This field will be ignored if the budget has multiple or no
+     * project configured.
+     *
+     * Currently, project level recipients are the users with `Owner` role on a
+     * cloud project.
+     * 
+ * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearEnableProjectLevelRecipients() { + bitField0_ = (bitField0_ & ~0x00000010); + enableProjectLevelRecipients_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1370,12 +1328,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) private static final com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(); } @@ -1384,27 +1342,27 @@ public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllUpdatesRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllUpdatesRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1419,4 +1377,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java similarity index 80% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java index b94803a1b3a4..2be133261c7c 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface AllUpdatesRuleOrBuilder - extends +public interface AllUpdatesRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -41,13 +23,10 @@ public interface AllUpdatesRuleOrBuilder
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -63,14 +42,12 @@ public interface AllUpdatesRuleOrBuilder
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString getPubsubTopicBytes(); + com.google.protobuf.ByteString + getPubsubTopicBytes(); /** - * - * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -81,13 +58,10 @@ public interface AllUpdatesRuleOrBuilder
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ java.lang.String getSchemaVersion(); /** - * - * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -98,14 +72,12 @@ public interface AllUpdatesRuleOrBuilder
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ - com.google.protobuf.ByteString getSchemaVersionBytes(); + com.google.protobuf.ByteString + getSchemaVersionBytes(); /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -117,16 +89,12 @@ public interface AllUpdatesRuleOrBuilder
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - java.util.List getMonitoringNotificationChannelsList(); + java.util.List + getMonitoringNotificationChannelsList(); /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -138,16 +106,11 @@ public interface AllUpdatesRuleOrBuilder
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ int getMonitoringNotificationChannelsCount(); /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -159,17 +122,12 @@ public interface AllUpdatesRuleOrBuilder
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ java.lang.String getMonitoringNotificationChannels(int index); /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -181,18 +139,14 @@ public interface AllUpdatesRuleOrBuilder
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index); + com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index); /** - * - * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -201,8 +155,23 @@ public interface AllUpdatesRuleOrBuilder
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultIamRecipients. */ boolean getDisableDefaultIamRecipients(); + + /** + *
+   * Optional. When set to true, and when the budget has a single project
+   * configured, notifications will be sent to project level recipients of that
+   * project. This field will be ignored if the budget has multiple or no
+   * project configured.
+   *
+   * Currently, project level recipients are the users with `Owner` role on a
+   * cloud project.
+   * 
+ * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enableProjectLevelRecipients. + */ + boolean getEnableProjectLevelRecipients(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java similarity index 66% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java index 1ef9e5a7b882..135a870ba672 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * A budget is a plan that describes what you expect to spend on Cloud
  * projects, plus the rules to execute as spend is tracked against that plan,
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Budget}
  */
-public final class Budget extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Budget extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.Budget)
     BudgetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Budget.newBuilder() to construct.
   private Budget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Budget() {
     name_ = "";
     displayName_ = "";
@@ -50,32 +32,28 @@ private Budget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Budget();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.Budget.class,
-            com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.Budget.class, com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -92,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -108,15 +84,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,19 +102,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -146,30 +119,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; } } /** - * - * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; - * * @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 { @@ -180,18 +153,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int BUDGET_FILTER_FIELD_NUMBER = 3; private com.google.cloud.billing.budgets.v1beta1.Filter budgetFilter_; /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ @java.lang.Override @@ -199,59 +167,41 @@ public boolean hasBudgetFilter() { return budgetFilter_ != null; } /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter() { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; } /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder() { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; } public static final int AMOUNT_FIELD_NUMBER = 4; private com.google.cloud.billing.budgets.v1beta1.BudgetAmount amount_; /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ @java.lang.Override @@ -259,49 +209,33 @@ public boolean hasAmount() { return amount_ != null; } /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount() { - return amount_ == null - ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; } /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder() { - return amount_ == null - ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; } public static final int THRESHOLD_RULES_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List thresholdRules_; /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -311,18 +245,13 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountO
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getThresholdRulesList() { + public java.util.List getThresholdRulesList() { return thresholdRules_; } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -332,18 +261,14 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountO
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getThresholdRulesOrBuilderList() { return thresholdRules_; } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -353,17 +278,13 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountO
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getThresholdRulesCount() { return thresholdRules_.size(); } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -373,17 +294,13 @@ public int getThresholdRulesCount() {
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index) { return thresholdRules_.get(index); } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -393,9 +310,7 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( @@ -406,17 +321,12 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresh public static final int ALL_UPDATES_RULE_FIELD_NUMBER = 6; private com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule allUpdatesRule_; /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allUpdatesRule field is set. */ @java.lang.Override @@ -424,52 +334,35 @@ public boolean hasAllUpdatesRule() { return allUpdatesRule_ != null; } /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The allUpdatesRule. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule() { - return allUpdatesRule_ == null - ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() - : allUpdatesRule_; + return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; } /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder - getAllUpdatesRuleOrBuilder() { - return allUpdatesRule_ == null - ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() - : allUpdatesRule_; + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder() { + return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; } public static final int ETAG_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -477,7 +370,6 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -486,15 +378,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -502,15 +393,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -519,7 +411,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -531,7 +422,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_); } @@ -569,16 +461,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (budgetFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBudgetFilter()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBudgetFilter()); } if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAmount()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAmount()); } for (int i = 0; i < thresholdRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, thresholdRules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, thresholdRules_.get(i)); } if (allUpdatesRule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAllUpdatesRule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getAllUpdatesRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); @@ -591,30 +487,36 @@ 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.budgets.v1beta1.Budget)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.Budget other = - (com.google.cloud.billing.budgets.v1beta1.Budget) obj; + com.google.cloud.billing.budgets.v1beta1.Budget other = (com.google.cloud.billing.budgets.v1beta1.Budget) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasBudgetFilter() != other.hasBudgetFilter()) return false; if (hasBudgetFilter()) { - if (!getBudgetFilter().equals(other.getBudgetFilter())) return false; + if (!getBudgetFilter() + .equals(other.getBudgetFilter())) return false; } if (hasAmount() != other.hasAmount()) return false; if (hasAmount()) { - if (!getAmount().equals(other.getAmount())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; } - if (!getThresholdRulesList().equals(other.getThresholdRulesList())) return false; + if (!getThresholdRulesList() + .equals(other.getThresholdRulesList())) return false; if (hasAllUpdatesRule() != other.hasAllUpdatesRule()) return false; if (hasAllUpdatesRule()) { - if (!getAllUpdatesRule().equals(other.getAllUpdatesRule())) return false; + if (!getAllUpdatesRule() + .equals(other.getAllUpdatesRule())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -653,104 +555,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1beta1.Budget parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1beta1.Budget parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.Budget parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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 budget is a plan that describes what you expect to spend on Cloud
    * projects, plus the rules to execute as spend is tracked against that plan,
@@ -761,32 +658,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Budget}
    */
-  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.budgets.v1beta1.Budget)
       com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.Budget.class,
-              com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.Budget.class, com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.Budget.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -820,9 +718,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
     }
 
     @java.lang.Override
@@ -841,18 +739,14 @@ public com.google.cloud.billing.budgets.v1beta1.Budget build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.Budget buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.Budget result =
-          new com.google.cloud.billing.budgets.v1beta1.Budget(this);
+      com.google.cloud.billing.budgets.v1beta1.Budget result = new com.google.cloud.billing.budgets.v1beta1.Budget(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.billing.budgets.v1beta1.Budget result) {
+    private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1beta1.Budget result) {
       if (thresholdRulesBuilder_ == null) {
         if (((bitField0_ & 0x00000010) != 0)) {
           thresholdRules_ = java.util.Collections.unmodifiableList(thresholdRules_);
@@ -873,15 +767,19 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Budget resul
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.budgetFilter_ =
-            budgetFilterBuilder_ == null ? budgetFilter_ : budgetFilterBuilder_.build();
+        result.budgetFilter_ = budgetFilterBuilder_ == null
+            ? budgetFilter_
+            : budgetFilterBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.amount_ = amountBuilder_ == null ? amount_ : amountBuilder_.build();
+        result.amount_ = amountBuilder_ == null
+            ? amount_
+            : amountBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.allUpdatesRule_ =
-            allUpdatesRuleBuilder_ == null ? allUpdatesRule_ : allUpdatesRuleBuilder_.build();
+        result.allUpdatesRule_ = allUpdatesRuleBuilder_ == null
+            ? allUpdatesRule_
+            : allUpdatesRuleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.etag_ = etag_;
@@ -892,39 +790,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Budget resul
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.budgets.v1beta1.Budget) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Budget) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Budget)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -932,8 +829,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Budget other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -968,10 +864,9 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Budget other)
             thresholdRulesBuilder_ = null;
             thresholdRules_ = other.thresholdRules_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            thresholdRulesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getThresholdRulesFieldBuilder()
-                    : null;
+            thresholdRulesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getThresholdRulesFieldBuilder() : null;
           } else {
             thresholdRulesBuilder_.addAllMessages(other.thresholdRules_);
           }
@@ -1011,63 +906,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getBudgetFilterFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.cloud.billing.budgets.v1beta1.ThresholdRule m =
-                    input.readMessage(
-                        com.google.cloud.billing.budgets.v1beta1.ThresholdRule.parser(),
-                        extensionRegistry);
-                if (thresholdRulesBuilder_ == null) {
-                  ensureThresholdRulesIsMutable();
-                  thresholdRules_.add(m);
-                } else {
-                  thresholdRulesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getAllUpdatesRuleFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getBudgetFilterFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getAmountFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              com.google.cloud.billing.budgets.v1beta1.ThresholdRule m =
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1beta1.ThresholdRule.parser(),
+                      extensionRegistry);
+              if (thresholdRulesBuilder_ == null) {
+                ensureThresholdRulesIsMutable();
+                thresholdRules_.add(m);
+              } else {
+                thresholdRulesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getAllUpdatesRuleFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1077,13 +970,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1091,13 +981,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1106,8 +996,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1115,14 +1003,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1130,8 +1019,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1139,22 +1026,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1162,7 +1045,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1172,8 +1054,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1181,14 +1061,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1198,21 +1076,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; - * * @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; @@ -1221,22 +1097,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; - * * @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 { @@ -1244,37 +1119,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1284,22 +1152,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1309,64 +1173,45 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.budgets.v1beta1.Filter budgetFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, - com.google.cloud.billing.budgets.v1beta1.Filter.Builder, - com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> - budgetFilterBuilder_; + com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> budgetFilterBuilder_; /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ public boolean hasBudgetFilter() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ public com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter() { if (budgetFilterBuilder_ == null) { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; } else { return budgetFilterBuilder_.getMessage(); } } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter value) { if (budgetFilterBuilder_ == null) { @@ -1382,17 +1227,13 @@ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter v return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBudgetFilter( com.google.cloud.billing.budgets.v1beta1.Filter.Builder builderForValue) { @@ -1406,24 +1247,19 @@ public Builder setBudgetFilter( return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter value) { if (budgetFilterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && budgetFilter_ != null - && budgetFilter_ - != com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + budgetFilter_ != null && + budgetFilter_ != com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) { getBudgetFilterBuilder().mergeFrom(value); } else { budgetFilter_ = value; @@ -1436,17 +1272,13 @@ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBudgetFilter() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1459,17 +1291,13 @@ public Builder clearBudgetFilter() { return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.Filter.Builder getBudgetFilterBuilder() { bitField0_ |= 0x00000004; @@ -1477,52 +1305,40 @@ public com.google.cloud.billing.budgets.v1beta1.Filter.Builder getBudgetFilterBu return getBudgetFilterFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder() { if (budgetFilterBuilder_ != null) { return budgetFilterBuilder_.getMessageOrBuilder(); } else { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? + com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; } } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, - com.google.cloud.billing.budgets.v1beta1.Filter.Builder, - com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> getBudgetFilterFieldBuilder() { if (budgetFilterBuilder_ == null) { - budgetFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, - com.google.cloud.billing.budgets.v1beta1.Filter.Builder, - com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder>( - getBudgetFilter(), getParentForChildren(), isClean()); + budgetFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder>( + getBudgetFilter(), + getParentForChildren(), + isClean()); budgetFilter_ = null; } return budgetFilterBuilder_; @@ -1530,58 +1346,39 @@ public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterO private com.google.cloud.billing.budgets.v1beta1.BudgetAmount amount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> - amountBuilder_; + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> amountBuilder_; /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ public boolean hasAmount() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount() { if (amountBuilder_ == null) { - return amount_ == null - ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; } else { return amountBuilder_.getMessage(); } } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount value) { if (amountBuilder_ == null) { @@ -1597,15 +1394,11 @@ public Builder setAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount v return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAmount( com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder builderForValue) { @@ -1619,22 +1412,17 @@ public Builder setAmount( return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount value) { if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && amount_ != null - && amount_ - != com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + amount_ != null && + amount_ != com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) { getAmountBuilder().mergeFrom(value); } else { amount_ = value; @@ -1647,15 +1435,11 @@ public Builder mergeAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1668,15 +1452,11 @@ public Builder clearAmount() { return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder getAmountBuilder() { bitField0_ |= 0x00000008; @@ -1684,74 +1464,54 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder getAmountBu return getAmountFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { - return amount_ == null - ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; } } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { - amountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder>( - getAmount(), getParentForChildren(), isClean()); + amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder>( + getAmount(), + getParentForChildren(), + isClean()); amount_ = null; } return amountBuilder_; } private java.util.List thresholdRules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureThresholdRulesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - thresholdRules_ = - new java.util.ArrayList( - thresholdRules_); + thresholdRules_ = new java.util.ArrayList(thresholdRules_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> - thresholdRulesBuilder_; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> thresholdRulesBuilder_; /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1761,12 +1521,9 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesList() { + public java.util.List getThresholdRulesList() { if (thresholdRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(thresholdRules_); } else { @@ -1774,8 +1531,6 @@ private void ensureThresholdRulesIsMutable() { } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1785,9 +1540,7 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getThresholdRulesCount() { if (thresholdRulesBuilder_ == null) { @@ -1797,8 +1550,6 @@ public int getThresholdRulesCount() { } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1808,9 +1559,7 @@ public int getThresholdRulesCount() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1820,8 +1569,6 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules( } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1831,9 +1578,7 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { @@ -1850,8 +1595,6 @@ public Builder setThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1861,9 +1604,7 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1877,8 +1618,6 @@ public Builder setThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1888,9 +1627,7 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { if (thresholdRulesBuilder_ == null) { @@ -1906,8 +1643,6 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.Thresh return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1917,9 +1652,7 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.Thresh
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { @@ -1936,8 +1669,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1947,9 +1678,7 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1963,8 +1692,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1974,9 +1701,7 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1990,8 +1715,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2001,16 +1724,14 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllThresholdRules( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (thresholdRulesBuilder_ == null) { ensureThresholdRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholdRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, thresholdRules_); onChanged(); } else { thresholdRulesBuilder_.addAllMessages(values); @@ -2018,8 +1739,6 @@ public Builder addAllThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2029,9 +1748,7 @@ public Builder addAllThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearThresholdRules() { if (thresholdRulesBuilder_ == null) { @@ -2044,8 +1761,6 @@ public Builder clearThresholdRules() { return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2055,9 +1770,7 @@ public Builder clearThresholdRules() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -2070,8 +1783,6 @@ public Builder removeThresholdRules(int index) { return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2081,17 +1792,13 @@ public Builder removeThresholdRules(int index) {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresholdRulesBuilder( int index) { return getThresholdRulesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2101,21 +1808,16 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder - getThresholdRulesOrBuilder(int index) { + public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( + int index) { if (thresholdRulesBuilder_ == null) { - return thresholdRules_.get(index); - } else { + return thresholdRules_.get(index); } else { return thresholdRulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2125,12 +1827,10 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesOrBuilderList() { + public java.util.List + getThresholdRulesOrBuilderList() { if (thresholdRulesBuilder_ != null) { return thresholdRulesBuilder_.getMessageOrBuilderList(); } else { @@ -2138,8 +1838,6 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2149,18 +1847,13 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder - addThresholdRulesBuilder() { - return getThresholdRulesFieldBuilder() - .addBuilder(com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresholdRulesBuilder() { + return getThresholdRulesFieldBuilder().addBuilder( + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2170,19 +1863,14 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresholdRulesBuilder( int index) { - return getThresholdRulesFieldBuilder() - .addBuilder( - index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder().addBuilder( + index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2192,26 +1880,18 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresho
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesBuilderList() { + public java.util.List + getThresholdRulesBuilderList() { return getThresholdRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> getThresholdRulesFieldBuilder() { if (thresholdRulesBuilder_ == null) { - thresholdRulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder>( + thresholdRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder>( thresholdRules_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -2223,64 +1903,44 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresho private com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule allUpdatesRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> - allUpdatesRuleBuilder_; + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> allUpdatesRuleBuilder_; /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allUpdatesRule field is set. */ public boolean hasAllUpdatesRule() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The allUpdatesRule. */ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule() { if (allUpdatesRuleBuilder_ == null) { - return allUpdatesRule_ == null - ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() - : allUpdatesRule_; + return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; } else { return allUpdatesRuleBuilder_.getMessage(); } } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAllUpdatesRule( - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { + public Builder setAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { if (allUpdatesRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2294,16 +1954,12 @@ public Builder setAllUpdatesRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAllUpdatesRule( com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder builderForValue) { @@ -2317,24 +1973,18 @@ public Builder setAllUpdatesRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeAllUpdatesRule( - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { + public Builder mergeAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { if (allUpdatesRuleBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && allUpdatesRule_ != null - && allUpdatesRule_ - != com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + allUpdatesRule_ != null && + allUpdatesRule_ != com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) { getAllUpdatesRuleBuilder().mergeFrom(value); } else { allUpdatesRule_ = value; @@ -2347,16 +1997,12 @@ public Builder mergeAllUpdatesRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAllUpdatesRule() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2369,69 +2015,51 @@ public Builder clearAllUpdatesRule() { return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder - getAllUpdatesRuleBuilder() { + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder getAllUpdatesRuleBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAllUpdatesRuleFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder - getAllUpdatesRuleOrBuilder() { + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder() { if (allUpdatesRuleBuilder_ != null) { return allUpdatesRuleBuilder_.getMessageOrBuilder(); } else { - return allUpdatesRule_ == null - ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() - : allUpdatesRule_; + return allUpdatesRule_ == null ? + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; } } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> getAllUpdatesRuleFieldBuilder() { if (allUpdatesRuleBuilder_ == null) { - allUpdatesRuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder>( - getAllUpdatesRule(), getParentForChildren(), isClean()); + allUpdatesRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder>( + getAllUpdatesRule(), + getParentForChildren(), + isClean()); allUpdatesRule_ = null; } return allUpdatesRuleBuilder_; @@ -2439,8 +2067,6 @@ public Builder clearAllUpdatesRule() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2448,13 +2074,13 @@ public Builder clearAllUpdatesRule() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -2463,8 +2089,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2472,14 +2096,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -2487,8 +2112,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2496,22 +2119,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2519,7 +2138,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2529,8 +2147,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2538,23 +2154,21 @@ public Builder clearEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000040; 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); } @@ -2564,12 +2178,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.Budget) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.Budget) private static final com.google.cloud.billing.budgets.v1beta1.Budget DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.Budget(); } @@ -2578,27 +2192,27 @@ public static com.google.cloud.billing.budgets.v1beta1.Budget getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Budget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Budget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2613,4 +2227,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.Budget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java similarity index 74% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java index be8073e99642..13de2cab0510 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java @@ -1,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * The budgeted amount for each usage period.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.BudgetAmount} */ -public final class BudgetAmount extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BudgetAmount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.BudgetAmount) BudgetAmountOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BudgetAmount.newBuilder() to construct. private BudgetAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BudgetAmount() {} + private BudgetAmount() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BudgetAmount(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); } private int budgetAmountCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object budgetAmount_; - public enum BudgetAmountCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SPECIFIED_AMOUNT(1), LAST_PERIOD_AMOUNT(2), BUDGETAMOUNT_NOT_SET(0); private final int value; - private BudgetAmountCase(int value) { this.value = value; } @@ -89,30 +67,25 @@ public static BudgetAmountCase valueOf(int value) { public static BudgetAmountCase forNumber(int value) { switch (value) { - case 1: - return SPECIFIED_AMOUNT; - case 2: - return LAST_PERIOD_AMOUNT; - case 0: - return BUDGETAMOUNT_NOT_SET; - default: - return null; + case 1: return SPECIFIED_AMOUNT; + case 2: return LAST_PERIOD_AMOUNT; + case 0: return BUDGETAMOUNT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public BudgetAmountCase getBudgetAmountCase() { - return BudgetAmountCase.forNumber(budgetAmountCase_); + public BudgetAmountCase + getBudgetAmountCase() { + return BudgetAmountCase.forNumber( + budgetAmountCase_); } public static final int SPECIFIED_AMOUNT_FIELD_NUMBER = 1; /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -122,7 +95,6 @@ public BudgetAmountCase getBudgetAmountCase() {
    * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -130,8 +102,6 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -141,19 +111,16 @@ public boolean hasSpecifiedAmount() {
    * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ @java.lang.Override public com.google.type.Money getSpecifiedAmount() { if (budgetAmountCase_ == 1) { - return (com.google.type.Money) budgetAmount_; + return (com.google.type.Money) budgetAmount_; } return com.google.type.Money.getDefaultInstance(); } /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -167,15 +134,13 @@ public com.google.type.Money getSpecifiedAmount() {
   @java.lang.Override
   public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     if (budgetAmountCase_ == 1) {
-      return (com.google.type.Money) budgetAmount_;
+       return (com.google.type.Money) budgetAmount_;
     }
     return com.google.type.Money.getDefaultInstance();
   }
 
   public static final int LAST_PERIOD_AMOUNT_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -185,7 +150,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -193,8 +157,6 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -204,19 +166,16 @@ public boolean hasLastPeriodAmount() {
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAmount() { if (budgetAmountCase_ == 2) { - return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_; + return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_; } return com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance(); } /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -228,16 +187,14 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm
    * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
    */
   @java.lang.Override
-  public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder
-      getLastPeriodAmountOrBuilder() {
+  public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
     if (budgetAmountCase_ == 2) {
-      return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_;
+       return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_;
     }
     return com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -249,13 +206,13 @@ 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 (budgetAmountCase_ == 1) {
       output.writeMessage(1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      output.writeMessage(
-          2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
+      output.writeMessage(2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
     }
     getUnknownFields().writeTo(output);
   }
@@ -267,14 +224,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (budgetAmountCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.type.Money) budgetAmount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -284,21 +239,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.budgets.v1beta1.BudgetAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.BudgetAmount other =
-        (com.google.cloud.billing.budgets.v1beta1.BudgetAmount) obj;
+    com.google.cloud.billing.budgets.v1beta1.BudgetAmount other = (com.google.cloud.billing.budgets.v1beta1.BudgetAmount) obj;
 
     if (!getBudgetAmountCase().equals(other.getBudgetAmountCase())) return false;
     switch (budgetAmountCase_) {
       case 1:
-        if (!getSpecifiedAmount().equals(other.getSpecifiedAmount())) return false;
+        if (!getSpecifiedAmount()
+            .equals(other.getSpecifiedAmount())) return false;
         break;
       case 2:
-        if (!getLastPeriodAmount().equals(other.getLastPeriodAmount())) return false;
+        if (!getLastPeriodAmount()
+            .equals(other.getLastPeriodAmount())) return false;
         break;
       case 0:
       default:
@@ -332,136 +288,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount prototype) {
+  public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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;
   }
   /**
-   *
-   *
    * 
    * The budgeted amount for each usage period.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.BudgetAmount} */ - 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.budgets.v1beta1.BudgetAmount) com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.BudgetAmount.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override @@ -499,11 +450,8 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmount buildPartial() { - com.google.cloud.billing.budgets.v1beta1.BudgetAmount result = - new com.google.cloud.billing.budgets.v1beta1.BudgetAmount(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.BudgetAmount result = new com.google.cloud.billing.budgets.v1beta1.BudgetAmount(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -516,10 +464,12 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.BudgetAmount private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.BudgetAmount result) { result.budgetAmountCase_ = budgetAmountCase_; result.budgetAmount_ = this.budgetAmount_; - if (budgetAmountCase_ == 1 && specifiedAmountBuilder_ != null) { + if (budgetAmountCase_ == 1 && + specifiedAmountBuilder_ != null) { result.budgetAmount_ = specifiedAmountBuilder_.build(); } - if (budgetAmountCase_ == 2 && lastPeriodAmountBuilder_ != null) { + if (budgetAmountCase_ == 2 && + lastPeriodAmountBuilder_ != null) { result.budgetAmount_ = lastPeriodAmountBuilder_.build(); } } @@ -528,39 +478,38 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.BudgetA 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.budgets.v1beta1.BudgetAmount) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.BudgetAmount) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.BudgetAmount)other); } else { super.mergeFrom(other); return this; @@ -568,23 +517,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.BudgetAmount other) { - if (other == com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) return this; switch (other.getBudgetAmountCase()) { - case SPECIFIED_AMOUNT: - { - mergeSpecifiedAmount(other.getSpecifiedAmount()); - break; - } - case LAST_PERIOD_AMOUNT: - { - mergeLastPeriodAmount(other.getLastPeriodAmount()); - break; - } - case BUDGETAMOUNT_NOT_SET: - { - break; - } + case SPECIFIED_AMOUNT: { + mergeSpecifiedAmount(other.getSpecifiedAmount()); + break; + } + case LAST_PERIOD_AMOUNT: { + mergeLastPeriodAmount(other.getLastPeriodAmount()); + break; + } + case BUDGETAMOUNT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -612,26 +557,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSpecifiedAmountFieldBuilder().getBuilder(), extensionRegistry); - budgetAmountCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getLastPeriodAmountFieldBuilder().getBuilder(), extensionRegistry); - budgetAmountCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSpecifiedAmountFieldBuilder().getBuilder(), + extensionRegistry); + budgetAmountCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getLastPeriodAmountFieldBuilder().getBuilder(), + extensionRegistry); + budgetAmountCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -641,12 +586,12 @@ public Builder mergeFrom( } // finally return this; } - private int budgetAmountCase_ = 0; private java.lang.Object budgetAmount_; - - public BudgetAmountCase getBudgetAmountCase() { - return BudgetAmountCase.forNumber(budgetAmountCase_); + public BudgetAmountCase + getBudgetAmountCase() { + return BudgetAmountCase.forNumber( + budgetAmountCase_); } public Builder clearBudgetAmount() { @@ -659,11 +604,8 @@ public Builder clearBudgetAmount() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - specifiedAmountBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> specifiedAmountBuilder_; /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -673,7 +615,6 @@ public Builder clearBudgetAmount() {
      * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -681,8 +622,6 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -692,7 +631,6 @@ public boolean hasSpecifiedAmount() {
      * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ @java.lang.Override @@ -710,8 +648,6 @@ public com.google.type.Money getSpecifiedAmount() { } } /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -736,8 +672,6 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -748,7 +682,8 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
      *
      * .google.type.Money specified_amount = 1;
      */
-    public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue) {
+    public Builder setSpecifiedAmount(
+        com.google.type.Money.Builder builderForValue) {
       if (specifiedAmountBuilder_ == null) {
         budgetAmount_ = builderForValue.build();
         onChanged();
@@ -759,8 +694,6 @@ public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -773,11 +706,10 @@ public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
      */
     public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       if (specifiedAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 1 && budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
-          budgetAmount_ =
-              com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (budgetAmountCase_ == 1 &&
+            budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
+          budgetAmount_ = com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
+              .mergeFrom(value).buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -793,8 +725,6 @@ public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -822,8 +752,6 @@ public Builder clearSpecifiedAmount() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -838,8 +766,6 @@ public com.google.type.Money.Builder getSpecifiedAmountBuilder() {
       return getSpecifiedAmountFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -862,8 +788,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -875,18 +799,17 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * .google.type.Money specified_amount = 1;
      */
     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> 
         getSpecifiedAmountFieldBuilder() {
       if (specifiedAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 1)) {
           budgetAmount_ = com.google.type.Money.getDefaultInstance();
         }
-        specifiedAmountBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Money,
-                com.google.type.Money.Builder,
-                com.google.type.MoneyOrBuilder>(
-                (com.google.type.Money) budgetAmount_, getParentForChildren(), isClean());
+        specifiedAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
+                (com.google.type.Money) budgetAmount_,
+                getParentForChildren(),
+                isClean());
         budgetAmount_ = null;
       }
       budgetAmountCase_ = 1;
@@ -895,13 +818,8 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>
-        lastPeriodAmountBuilder_;
+        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder> lastPeriodAmountBuilder_;
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -911,7 +829,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -919,8 +836,6 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** - * - * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -930,7 +845,6 @@ public boolean hasLastPeriodAmount() {
      * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ @java.lang.Override @@ -948,8 +862,6 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm } } /** - * - * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -960,8 +872,7 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder setLastPeriodAmount(
-        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
+    public Builder setLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -975,8 +886,6 @@ public Builder setLastPeriodAmount(
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -999,8 +908,6 @@ public Builder setLastPeriodAmount(
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1011,17 +918,12 @@ public Builder setLastPeriodAmount(
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder mergeLastPeriodAmount(
-        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
+    public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 2
-            && budgetAmount_
-                != com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) {
-          budgetAmount_ =
-              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder(
-                      (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (budgetAmountCase_ == 2 &&
+            budgetAmount_ != com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) {
+          budgetAmount_ = com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_)
+              .mergeFrom(value).buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -1037,8 +939,6 @@ public Builder mergeLastPeriodAmount(
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1066,8 +966,6 @@ public Builder clearLastPeriodAmount() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1078,13 +976,10 @@ public Builder clearLastPeriodAmount() {
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder
-        getLastPeriodAmountBuilder() {
+    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder getLastPeriodAmountBuilder() {
       return getLastPeriodAmountFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1096,8 +991,7 @@ public Builder clearLastPeriodAmount() {
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
     @java.lang.Override
-    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder
-        getLastPeriodAmountOrBuilder() {
+    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
       if ((budgetAmountCase_ == 2) && (lastPeriodAmountBuilder_ != null)) {
         return lastPeriodAmountBuilder_.getMessageOrBuilder();
       } else {
@@ -1108,8 +1002,6 @@ public Builder clearLastPeriodAmount() {
       }
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1121,20 +1013,14 @@ public Builder clearLastPeriodAmount() {
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>
+        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder> 
         getLastPeriodAmountFieldBuilder() {
       if (lastPeriodAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 2)) {
-          budgetAmount_ =
-              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
+          budgetAmount_ = com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
         }
-        lastPeriodAmountBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
-                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
-                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>(
+        lastPeriodAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>(
                 (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_,
                 getParentForChildren(),
                 isClean());
@@ -1144,9 +1030,9 @@ public Builder clearLastPeriodAmount() {
       onChanged();
       return lastPeriodAmountBuilder_;
     }
-
     @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);
     }
 
@@ -1156,12 +1042,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.BudgetAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.BudgetAmount)
   private static final com.google.cloud.billing.budgets.v1beta1.BudgetAmount DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.BudgetAmount();
   }
@@ -1170,27 +1056,27 @@ public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BudgetAmount parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BudgetAmount parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1205,4 +1091,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
similarity index 83%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
index 2d5ed5c4e4c4..3860d523c051 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface BudgetAmountOrBuilder
-    extends
+public interface BudgetAmountOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.BudgetAmount)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -35,13 +17,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ boolean hasSpecifiedAmount(); /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -51,13 +30,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ com.google.type.Money getSpecifiedAmount(); /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -71,8 +47,6 @@ public interface BudgetAmountOrBuilder
   com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder();
 
   /**
-   *
-   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -82,13 +56,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ boolean hasLastPeriodAmount(); /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -98,13 +69,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAmount(); /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
new file mode 100644
index 000000000000..5a852f3336b4
--- /dev/null
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
@@ -0,0 +1,198 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1beta1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1beta1;
+
+public final class BudgetModel {
+  private BudgetModel() {}
+  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_budgets_v1beta1_Budget_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n7google/cloud/billing/budgets/v1beta1/b" +
+      "udget_model.proto\022$google.cloud.billing." +
+      "budgets.v1beta1\032\037google/api/field_behavi" +
+      "or.proto\032\031google/api/resource.proto\032\034goo" +
+      "gle/protobuf/struct.proto\032\026google/type/d" +
+      "ate.proto\032\027google/type/money.proto\"\344\003\n\006B" +
+      "udget\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_nam" +
+      "e\030\002 \001(\t\022I\n\rbudget_filter\030\003 \001(\0132,.google." +
+      "cloud.billing.budgets.v1beta1.FilterB\004\342A" +
+      "\001\001\022H\n\006amount\030\004 \001(\01322.google.cloud.billin" +
+      "g.budgets.v1beta1.BudgetAmountB\004\342A\001\002\022R\n\017" +
+      "threshold_rules\030\005 \003(\01323.google.cloud.bil" +
+      "ling.budgets.v1beta1.ThresholdRuleB\004\342A\001\001" +
+      "\022T\n\020all_updates_rule\030\006 \001(\01324.google.clou" +
+      "d.billing.budgets.v1beta1.AllUpdatesRule" +
+      "B\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001\001:]\352AZ\n$billing" +
+      "budgets.googleapis.com/Budget\0222billingAc" +
+      "counts/{billing_account}/budgets/{budget" +
+      "}\"\245\001\n\014BudgetAmount\022.\n\020specified_amount\030\001" +
+      " \001(\0132\022.google.type.MoneyH\000\022T\n\022last_perio" +
+      "d_amount\030\002 \001(\01326.google.cloud.billing.bu" +
+      "dgets.v1beta1.LastPeriodAmountH\000B\017\n\rbudg" +
+      "et_amount\"\022\n\020LastPeriodAmount\"\317\001\n\rThresh" +
+      "oldRule\022\037\n\021threshold_percent\030\001 \001(\001B\004\342A\001\002" +
+      "\022T\n\013spend_basis\030\002 \001(\01629.google.cloud.bil" +
+      "ling.budgets.v1beta1.ThresholdRule.Basis" +
+      "B\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021" +
+      "\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\"" +
+      "\327\001\n\016AllUpdatesRule\022\032\n\014pubsub_topic\030\001 \001(\t" +
+      "B\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004\342A\001\001\022.\n " +
+      "monitoring_notification_channels\030\003 \003(\tB\004" +
+      "\342A\001\001\022,\n\036disable_default_iam_recipients\030\004" +
+      " \001(\010B\004\342A\001\001\022-\n\037enable_project_level_recip" +
+      "ients\030\005 \001(\010B\004\342A\001\001\"\341\005\n\006Filter\022\026\n\010projects" +
+      "\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(\t" +
+      "B\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022g\n\026cr" +
+      "edit_types_treatment\030\004 \001(\0162A.google.clou" +
+      "d.billing.budgets.v1beta1.Filter.CreditT" +
+      "ypesTreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342" +
+      "A\001\001\022\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022N\n\006labels" +
+      "\030\006 \003(\01328.google.cloud.billing.budgets.v1" +
+      "beta1.Filter.LabelsEntryB\004\342A\001\001\022U\n\017calend" +
+      "ar_period\030\010 \001(\01624.google.cloud.billing.b" +
+      "udgets.v1beta1.CalendarPeriodB\004\342A\001\001H\000\022Q\n" +
+      "\rcustom_period\030\t \001(\01322.google.cloud.bill" +
+      "ing.budgets.v1beta1.CustomPeriodB\004\342A\001\001H\000" +
+      "\032I\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 " +
+      "\001(\0132\032.google.protobuf.ListValue:\0028\001\"\217\001\n\024" +
+      "CreditTypesTreatment\022&\n\"CREDIT_TYPES_TRE" +
+      "ATMENT_UNSPECIFIED\020\000\022\027\n\023INCLUDE_ALL_CRED" +
+      "ITS\020\001\022\027\n\023EXCLUDE_ALL_CREDITS\020\002\022\035\n\031INCLUD" +
+      "E_SPECIFIED_CREDITS\020\003B\016\n\014usage_period\"f\n" +
+      "\014CustomPeriod\022+\n\nstart_date\030\001 \001(\0132\021.goog" +
+      "le.type.DateB\004\342A\001\002\022)\n\010end_date\030\002 \001(\0132\021.g" +
+      "oogle.type.DateB\004\342A\001\001*S\n\016CalendarPeriod\022" +
+      "\037\n\033CALENDAR_PERIOD_UNSPECIFIED\020\000\022\t\n\005MONT" +
+      "H\020\001\022\013\n\007QUARTER\020\002\022\010\n\004YEAR\020\003Bp\n(com.google" +
+      ".cloud.billing.budgets.v1beta1P\001ZBcloud." +
+      "google.com/go/billing/budgets/apiv1beta1" +
+      "/budgetspb;budgetspbb\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.protobuf.StructProto.getDescriptor(),
+          com.google.type.DateProto.getDescriptor(),
+          com.google.type.MoneyProto.getDescriptor(),
+        });
+    internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "BudgetFilter", "Amount", "ThresholdRules", "AllUpdatesRule", "Etag", });
+    internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor,
+        new java.lang.String[] { "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", });
+    internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor,
+        new java.lang.String[] { });
+    internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor,
+        new java.lang.String[] { "ThresholdPercent", "SpendBasis", });
+    internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor,
+        new java.lang.String[] { "PubsubTopic", "SchemaVersion", "MonitoringNotificationChannels", "DisableDefaultIamRecipients", "EnableProjectLevelRecipients", });
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor,
+        new java.lang.String[] { "Projects", "ResourceAncestors", "CreditTypes", "CreditTypesTreatment", "Services", "Subaccounts", "Labels", "CalendarPeriod", "CustomPeriod", "UsagePeriod", });
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor =
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor,
+        new java.lang.String[] { "StartDate", "EndDate", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.type.DateProto.getDescriptor();
+    com.google.type.MoneyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
similarity index 100%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
similarity index 66%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
index f9f7acf624be..33b9e9490e9c 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface BudgetOrBuilder
-    extends
+public interface BudgetOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.Budget)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -33,13 +15,10 @@ public interface BudgetOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -47,129 +26,94 @@ public interface BudgetOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ boolean hasBudgetFilter(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ boolean hasAmount(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -179,14 +123,11 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getThresholdRulesList(); + java.util.List + getThresholdRulesList(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -196,14 +137,10 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -213,14 +150,10 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getThresholdRulesCount(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -230,15 +163,11 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getThresholdRulesOrBuilderList(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -248,60 +177,42 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( int index); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allUpdatesRule field is set. */ boolean hasAllUpdatesRule(); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The allUpdatesRule. */ com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule(); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder(); /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -309,13 +220,10 @@ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRule
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -323,8 +231,8 @@ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRule
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java new file mode 100644 index 000000000000..12cdfc30eefe --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java @@ -0,0 +1,179 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public final class BudgetServiceOuterClass { + private BudgetServiceOuterClass() {} + 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_budgets_v1beta1_CreateBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/billing/budgets/v1beta1/b" + + "udget_service.proto\022$google.cloud.billin" + + "g.budgets.v1beta1\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\0327google/cloud/billing/budge" + + "ts/v1beta1/budget_model.proto\032\033google/pr" + + "otobuf/empty.proto\032 google/protobuf/fiel" + + "d_mask.proto\"\230\001\n\023CreateBudgetRequest\022=\n\006" + + "parent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.go" + + "ogleapis.com/Budget\022B\n\006budget\030\002 \001(\0132,.go" + + "ogle.cloud.billing.budgets.v1beta1.Budge" + + "tB\004\342A\001\002\"\220\001\n\023UpdateBudgetRequest\022B\n\006budge" + + "t\030\001 \001(\0132,.google.cloud.billing.budgets.v" + + "1beta1.BudgetB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\004\342A\001\001\"O\n\020Ge" + + "tBudgetRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$b" + + "illingbudgets.googleapis.com/Budget\"\233\001\n\022" + + "ListBudgetsRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002" + + "\372A&\022$billingbudgets.googleapis.com/Budge" + + "t\022\023\n\005scope\030\004 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\002 \001(" + + "\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"m\n\023Lis" + + "tBudgetsResponse\022=\n\007budgets\030\001 \003(\0132,.goog" + + "le.cloud.billing.budgets.v1beta1.Budget\022" + + "\027\n\017next_page_token\030\002 \001(\t\"R\n\023DeleteBudget" + + "Request\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$billingb" + + "udgets.googleapis.com/Budget2\367\007\n\rBudgetS" + + "ervice\022\257\001\n\014CreateBudget\0229.google.cloud.b" + + "illing.budgets.v1beta1.CreateBudgetReque" + + "st\032,.google.cloud.billing.budgets.v1beta" + + "1.Budget\"6\202\323\344\223\0020\"+/v1beta1/{parent=billi" + + "ngAccounts/*}/budgets:\001*\022\266\001\n\014UpdateBudge" + + "t\0229.google.cloud.billing.budgets.v1beta1" + + ".UpdateBudgetRequest\032,.google.cloud.bill" + + "ing.budgets.v1beta1.Budget\"=\202\323\344\223\002722/v1b" + + "eta1/{budget.name=billingAccounts/*/budg" + + "ets/*}:\001*\022\246\001\n\tGetBudget\0226.google.cloud.b" + + "illing.budgets.v1beta1.GetBudgetRequest\032" + + ",.google.cloud.billing.budgets.v1beta1.B" + + "udget\"3\202\323\344\223\002-\022+/v1beta1/{name=billingAcc" + + "ounts/*/budgets/*}\022\267\001\n\013ListBudgets\0228.goo" + + "gle.cloud.billing.budgets.v1beta1.ListBu" + + "dgetsRequest\0329.google.cloud.billing.budg" + + "ets.v1beta1.ListBudgetsResponse\"3\202\323\344\223\002-\022" + + "+/v1beta1/{parent=billingAccounts/*}/bud" + + "gets\022\226\001\n\014DeleteBudget\0229.google.cloud.bil" + + "ling.budgets.v1beta1.DeleteBudgetRequest" + + "\032\026.google.protobuf.Empty\"3\202\323\344\223\002-*+/v1bet" + + "a1/{name=billingAccounts/*/budgets/*}\032\177\312" + + "A\035billingbudgets.googleapis.com\322A\\https:" + + "//www.googleapis.com/auth/cloud-billing," + + "https://www.googleapis.com/auth/cloud-pl" + + "atformBp\n(com.google.cloud.billing.budge" + + "ts.v1beta1P\001ZBcloud.google.com/go/billin" + + "g/budgets/apiv1beta1/budgetspb;budgetspb" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor, + new java.lang.String[] { "Parent", "Budget", }); + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor, + new java.lang.String[] { "Budget", "UpdateMask", }); + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor, + new java.lang.String[] { "Parent", "Scope", "PageSize", "PageToken", }); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor, + new java.lang.String[] { "Budgets", "NextPageToken", }); + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor, + new java.lang.String[] { "Name", }); + 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.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.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java similarity index 70% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java index cfc7fbcbde4f..86d01ba9b7eb 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * A `CalendarPeriod` represents the abstract concept of a time period that
  * has a canonical start. Grammatically, "the start of the current
@@ -30,10 +13,9 @@
  *
  * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.CalendarPeriod}
  */
-public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
+public enum CalendarPeriod
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -43,8 +25,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   CALENDAR_PERIOD_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -54,8 +34,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   MONTH(1),
   /**
-   *
-   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -65,8 +43,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   QUARTER(2),
   /**
-   *
-   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -78,8 +54,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -89,8 +63,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int CALENDAR_PERIOD_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -100,8 +72,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MONTH_VALUE = 1;
   /**
-   *
-   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -111,8 +81,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int QUARTER_VALUE = 2;
   /**
-   *
-   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -121,6 +89,7 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int YEAR_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -145,53 +114,50 @@ public static CalendarPeriod valueOf(int value) { */ public static CalendarPeriod forNumber(int value) { switch (value) { - case 0: - return CALENDAR_PERIOD_UNSPECIFIED; - case 1: - return MONTH; - case 2: - return QUARTER; - case 3: - return YEAR; - default: - return null; + case 0: return CALENDAR_PERIOD_UNSPECIFIED; + case 1: return MONTH; + case 2: return QUARTER; + case 3: return YEAR; + 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 internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CalendarPeriod findValueByNumber(int number) { - return CalendarPeriod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + CalendarPeriod> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CalendarPeriod findValueByNumber(int number) { + return CalendarPeriod.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() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor().getEnumTypes().get(0); } private static final CalendarPeriod[] VALUES = values(); - public static CalendarPeriod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CalendarPeriod 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; @@ -207,3 +173,4 @@ private CalendarPeriod(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.billing.budgets.v1beta1.CalendarPeriod) } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java similarity index 60% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java index d22746895682..6d9dd3b70ceb 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * Request for CreateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CreateBudgetRequest} */ -public final class CreateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) CreateBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBudgetRequest.newBuilder() to construct. private CreateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBudgetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 @@ -86,32 +61,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 billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 { @@ -122,16 +95,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BUDGET_FIELD_NUMBER = 2; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ @java.lang.Override @@ -139,44 +107,30 @@ public boolean hasBudget() { return budget_ != null; } /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +142,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_); } @@ -208,7 +163,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBudget()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBudget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +174,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.budgets.v1beta1.CreateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other = - (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget().equals(other.getBudget())) return false; + if (!getBudget() + .equals(other.getBudget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,136 +211,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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 for CreateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CreateBudgetRequest} */ - 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.budgets.v1beta1.CreateBudgetRequest) com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -398,14 +350,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest - getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance(); } @@ -420,23 +371,21 @@ public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result = - new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result) { + private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null + ? budget_ + : budgetBuilder_.build(); } } @@ -444,39 +393,38 @@ private void buildPartial0( 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.budgets.v1beta1.CreateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -484,9 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other) { - if (other - == com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -521,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getBudgetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -549,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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; @@ -579,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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 { @@ -604,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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() { @@ -648,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -675,58 +595,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.budgets.v1beta1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> - budgetBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetBuilder_; /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } else { return budgetBuilder_.getMessage(); } } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { @@ -742,15 +643,11 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget( com.google.cloud.billing.budgets.v1beta1.Budget.Builder builderForValue) { @@ -764,21 +661,17 @@ public Builder setBudget( return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && budget_ != null - && budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + budget_ != null && + budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -791,15 +684,11 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000002); @@ -812,15 +701,11 @@ public Builder clearBudget() { return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000002; @@ -828,55 +713,43 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder( return getBudgetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? + com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - getBudget(), getParentForChildren(), isClean()); + budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + getBudget(), + getParentForChildren(), + isClean()); budget_ = null; } return budgetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -886,13 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(); } @@ -901,27 +773,27 @@ public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..13e2570d7630 --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface CreateBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the budget field is set. + */ + boolean hasBudget(); + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The budget. + */ + com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java similarity index 73% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java index 10e89bdd6d8a..bed26a74be51 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CustomPeriod} */ -public final class CustomPeriod extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CustomPeriod extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.CustomPeriod) CustomPeriodOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CustomPeriod.newBuilder() to construct. private CustomPeriod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CustomPeriod() {} + private CustomPeriod() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomPeriod(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); } public static final int START_DATE_FIELD_NUMBER = 1; private com.google.type.Date startDate_; /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasStartDate() { return startDate_ != null; } /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.type.Date getStartDate() { return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -109,8 +83,6 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { public static final int END_DATE_FIELD_NUMBER = 2; private com.google.type.Date endDate_; /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -118,7 +90,6 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ @java.lang.Override @@ -126,8 +97,6 @@ public boolean hasEndDate() { return endDate_ != null; } /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -135,7 +104,6 @@ public boolean hasEndDate() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ @java.lang.Override @@ -143,8 +111,6 @@ public com.google.type.Date getEndDate() { return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; } /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -159,7 +125,6 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -171,7 +136,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 (startDate_ != null) {
       output.writeMessage(1, getStartDate());
     }
@@ -188,10 +154,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (startDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getStartDate());
     }
     if (endDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getEndDate());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -201,21 +169,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.budgets.v1beta1.CustomPeriod)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.CustomPeriod other =
-        (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) obj;
+    com.google.cloud.billing.budgets.v1beta1.CustomPeriod other = (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) obj;
 
     if (hasStartDate() != other.hasStartDate()) return false;
     if (hasStartDate()) {
-      if (!getStartDate().equals(other.getStartDate())) return false;
+      if (!getStartDate()
+          .equals(other.getStartDate())) return false;
     }
     if (hasEndDate() != other.hasEndDate()) return false;
     if (hasEndDate()) {
-      if (!getEndDate().equals(other.getEndDate())) return false;
+      if (!getEndDate()
+          .equals(other.getEndDate())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -242,136 +211,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod prototype) {
+  public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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;
   }
   /**
-   *
-   *
    * 
    * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CustomPeriod} */ - 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.budgets.v1beta1.CustomPeriod) com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -390,9 +354,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override @@ -411,11 +375,8 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriod buildPartial() { - com.google.cloud.billing.budgets.v1beta1.CustomPeriod result = - new com.google.cloud.billing.budgets.v1beta1.CustomPeriod(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.CustomPeriod result = new com.google.cloud.billing.budgets.v1beta1.CustomPeriod(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -423,10 +384,14 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CustomPeriod result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); + result.startDate_ = startDateBuilder_ == null + ? startDate_ + : startDateBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); + result.endDate_ = endDateBuilder_ == null + ? endDate_ + : endDateBuilder_.build(); } } @@ -434,39 +399,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CustomPeriod) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CustomPeriod)other); } else { super.mergeFrom(other); return this; @@ -474,8 +438,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.CustomPeriod other) { - if (other == com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) return this; if (other.hasStartDate()) { mergeStartDate(other.getStartDate()); } @@ -508,25 +471,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,36 +500,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.type.Date startDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - startDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> startDateBuilder_; /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ public boolean hasStartDate() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ public com.google.type.Date getStartDate() { @@ -576,8 +532,6 @@ public com.google.type.Date getStartDate() { } } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -598,15 +552,14 @@ public Builder setStartDate(com.google.type.Date value) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + public Builder setStartDate( + com.google.type.Date.Builder builderForValue) { if (startDateBuilder_ == null) { startDate_ = builderForValue.build(); } else { @@ -617,8 +570,6 @@ public Builder setStartDate(com.google.type.Date.Builder builderForValue) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -627,9 +578,9 @@ public Builder setStartDate(com.google.type.Date.Builder builderForValue) { */ public Builder mergeStartDate(com.google.type.Date value) { if (startDateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startDate_ != null - && startDate_ != com.google.type.Date.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + startDate_ != null && + startDate_ != com.google.type.Date.getDefaultInstance()) { getStartDateBuilder().mergeFrom(value); } else { startDate_ = value; @@ -642,8 +593,6 @@ public Builder mergeStartDate(com.google.type.Date value) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -661,8 +610,6 @@ public Builder clearStartDate() { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -675,8 +622,6 @@ public com.google.type.Date.Builder getStartDateBuilder() { return getStartDateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -687,12 +632,11 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { if (startDateBuilder_ != null) { return startDateBuilder_.getMessageOrBuilder(); } else { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + return startDate_ == null ? + com.google.type.Date.getDefaultInstance() : startDate_; } } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -700,13 +644,14 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getStartDateFieldBuilder() { if (startDateBuilder_ == null) { - startDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), getParentForChildren(), isClean()); + startDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), + getParentForChildren(), + isClean()); startDate_ = null; } return startDateBuilder_; @@ -714,11 +659,8 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { private com.google.type.Date endDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - endDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> endDateBuilder_; /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -726,15 +668,12 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ public boolean hasEndDate() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -742,7 +681,6 @@ public boolean hasEndDate() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ public com.google.type.Date getEndDate() { @@ -753,8 +691,6 @@ public com.google.type.Date getEndDate() { } } /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -777,8 +713,6 @@ public Builder setEndDate(com.google.type.Date value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -787,7 +721,8 @@ public Builder setEndDate(com.google.type.Date value) {
      *
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
+    public Builder setEndDate(
+        com.google.type.Date.Builder builderForValue) {
       if (endDateBuilder_ == null) {
         endDate_ = builderForValue.build();
       } else {
@@ -798,8 +733,6 @@ public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -810,9 +743,9 @@ public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
      */
     public Builder mergeEndDate(com.google.type.Date value) {
       if (endDateBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endDate_ != null
-            && endDate_ != com.google.type.Date.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endDate_ != null &&
+          endDate_ != com.google.type.Date.getDefaultInstance()) {
           getEndDateBuilder().mergeFrom(value);
         } else {
           endDate_ = value;
@@ -825,8 +758,6 @@ public Builder mergeEndDate(com.google.type.Date value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -846,8 +777,6 @@ public Builder clearEndDate() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -862,8 +791,6 @@ public com.google.type.Date.Builder getEndDateBuilder() {
       return getEndDateFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -876,12 +803,11 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
       if (endDateBuilder_ != null) {
         return endDateBuilder_.getMessageOrBuilder();
       } else {
-        return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_;
+        return endDate_ == null ?
+            com.google.type.Date.getDefaultInstance() : endDate_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -891,20 +817,21 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
+        com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
         getEndDateFieldBuilder() {
       if (endDateBuilder_ == null) {
-        endDateBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
-                getEndDate(), getParentForChildren(), isClean());
+        endDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+                getEndDate(),
+                getParentForChildren(),
+                isClean());
         endDate_ = null;
       }
       return endDateBuilder_;
     }
-
     @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);
     }
 
@@ -914,12 +841,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.CustomPeriod)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.CustomPeriod)
   private static final com.google.cloud.billing.budgets.v1beta1.CustomPeriod DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.CustomPeriod();
   }
@@ -928,27 +855,27 @@ public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CustomPeriod parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CustomPeriod parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -963,4 +890,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
similarity index 75%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
index af4a6b65fd67..1d3f15ee1185 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface CustomPeriodOrBuilder
-    extends
+public interface CustomPeriodOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CustomPeriod)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ boolean hasStartDate(); /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ com.google.type.Date getStartDate(); /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -59,8 +35,6 @@ public interface CustomPeriodOrBuilder com.google.type.DateOrBuilder getStartDateOrBuilder(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -68,13 +42,10 @@ public interface CustomPeriodOrBuilder
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ boolean hasEndDate(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -82,13 +53,10 @@ public interface CustomPeriodOrBuilder
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ com.google.type.Date getEndDate(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
similarity index 62%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
index 325397656561..14432e315d32 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
@@ -1,83 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
 /**
- *
- *
  * 
  * Request for DeleteBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest} */ -public final class DeleteBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) DeleteBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBudgetRequest.newBuilder() to construct. private DeleteBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other = - (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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 for DeleteBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest} */ - 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.budgets.v1beta1.DeleteBudgetRequest) com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,14 +291,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest - getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance(); } @@ -345,17 +312,13 @@ public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result = - new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result) { + private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -366,39 +329,38 @@ private void buildPartial0( 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.budgets.v1beta1.DeleteBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -406,9 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other) { - if (other - == com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * 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; @@ -492,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * 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 { @@ -517,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * 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() { @@ -561,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -597,13 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(); } @@ -612,27 +544,27 @@ public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..39dbfb2b0f50 --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface DeleteBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java similarity index 73% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java index ba6f8cc49daa..e32b77b5cc4b 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java @@ -1,86 +1,71 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * A filter for a budget, limiting the scope of the cost to calculate.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Filter} */ -public final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Filter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.Filter) FilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Filter() { - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Filter(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.Filter.class, - com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1beta1.Filter.class, com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); } /** - * - * *
    * Specifies how credits are applied when determining the spend for
    * threshold calculations. Budgets track the total cost minus any applicable
@@ -91,12 +76,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment}
    */
-  public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageEnum {
-    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
+  public enum CreditTypesTreatment
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
+     */
     CREDIT_TYPES_TREATMENT_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -106,8 +92,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     INCLUDE_ALL_CREDITS(1),
     /**
-     *
-     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -117,8 +101,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     EXCLUDE_ALL_CREDITS(2),
     /**
-     *
-     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -132,11 +114,11 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
     UNRECOGNIZED(-1),
     ;
 
-    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
+    /**
+     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
+     */
     public static final int CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -146,8 +128,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int INCLUDE_ALL_CREDITS_VALUE = 1;
     /**
-     *
-     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -157,8 +137,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int EXCLUDE_ALL_CREDITS_VALUE = 2;
     /**
-     *
-     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -170,6 +148,7 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int INCLUDE_SPECIFIED_CREDITS_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -194,16 +173,11 @@ public static CreditTypesTreatment valueOf(int value) {
      */
     public static CreditTypesTreatment forNumber(int value) {
       switch (value) {
-        case 0:
-          return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
-        case 1:
-          return INCLUDE_ALL_CREDITS;
-        case 2:
-          return EXCLUDE_ALL_CREDITS;
-        case 3:
-          return INCLUDE_SPECIFIED_CREDITS;
-        default:
-          return null;
+        case 0: return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
+        case 1: return INCLUDE_ALL_CREDITS;
+        case 2: return EXCLUDE_ALL_CREDITS;
+        case 3: return INCLUDE_SPECIFIED_CREDITS;
+        default: return null;
       }
     }
 
@@ -211,28 +185,28 @@ public static CreditTypesTreatment forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        CreditTypesTreatment> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public CreditTypesTreatment findValueByNumber(int number) {
+              return CreditTypesTreatment.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public CreditTypesTreatment findValueByNumber(int number) {
-                return CreditTypesTreatment.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.budgets.v1beta1.Filter.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -241,7 +215,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static CreditTypesTreatment 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;
@@ -259,19 +234,15 @@ private CreditTypesTreatment(int value) {
   }
 
   private int usagePeriodCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object usagePeriod_;
-
   public enum UsagePeriodCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CALENDAR_PERIOD(8),
     CUSTOM_PERIOD(9),
     USAGEPERIOD_NOT_SET(0);
     private final int value;
-
     private UsagePeriodCase(int value) {
       this.value = value;
     }
@@ -287,34 +258,28 @@ public static UsagePeriodCase valueOf(int value) {
 
     public static UsagePeriodCase forNumber(int value) {
       switch (value) {
-        case 8:
-          return CALENDAR_PERIOD;
-        case 9:
-          return CUSTOM_PERIOD;
-        case 0:
-          return USAGEPERIOD_NOT_SET;
-        default:
-          return null;
+        case 8: return CALENDAR_PERIOD;
+        case 9: return CUSTOM_PERIOD;
+        case 0: return USAGEPERIOD_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public UsagePeriodCase getUsagePeriodCase() {
-    return UsagePeriodCase.forNumber(usagePeriodCase_);
+  public UsagePeriodCase
+  getUsagePeriodCase() {
+    return UsagePeriodCase.forNumber(
+        usagePeriodCase_);
   }
 
   public static final int PROJECTS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList projects_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -323,15 +288,13 @@ public UsagePeriodCase getUsagePeriodCase() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList getProjectsList() { + public com.google.protobuf.ProtocolStringList + getProjectsList() { return projects_; } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -340,15 +303,12 @@ public com.google.protobuf.ProtocolStringList getProjectsList() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -357,7 +317,6 @@ public int getProjectsCount() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -365,8 +324,6 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -375,68 +332,65 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString getProjectsBytes(int index) { + public com.google.protobuf.ByteString + getProjectsBytes(int index) { return projects_.getByteString(index); } public static final int RESOURCE_ANCESTORS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList + getResourceAncestorsList() { return resourceAncestors_; } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -444,33 +398,30 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } public static final int CREDIT_TYPES_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -485,15 +436,13 @@ public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList getCreditTypesList() { + public com.google.protobuf.ProtocolStringList + getCreditTypesList() { return creditTypes_; } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -508,15 +457,12 @@ public com.google.protobuf.ProtocolStringList getCreditTypesList() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -531,7 +477,6 @@ public int getCreditTypesCount() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -539,8 +484,6 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -555,65 +498,45 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString + getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } public static final int CREDIT_TYPES_TREATMENT_FIELD_NUMBER = 4; private int creditTypesTreatment_ = 0; /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override - public int getCreditTypesTreatmentValue() { + @java.lang.Override public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ - @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment - getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber( - creditTypesTreatment_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; } public static final int SERVICES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -624,15 +547,13 @@ public int getCreditTypesTreatmentValue() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList getServicesList() { + public com.google.protobuf.ProtocolStringList + getServicesList() { return services_; } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -643,15 +564,12 @@ public com.google.protobuf.ProtocolStringList getServicesList() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -662,7 +580,6 @@ public int getServicesCount() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ @@ -670,8 +587,6 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -682,22 +597,19 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString getServicesBytes(int index) { + public com.google.protobuf.ByteString + getServicesBytes(int index) { return services_.getByteString(index); } public static final int SUBACCOUNTS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -708,15 +620,13 @@ public com.google.protobuf.ByteString getServicesBytes(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList getSubaccountsList() { + public com.google.protobuf.ProtocolStringList + getSubaccountsList() { return subaccounts_; } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -727,15 +637,12 @@ public com.google.protobuf.ProtocolStringList getSubaccountsList() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -746,7 +653,6 @@ public int getSubaccountsCount() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -754,8 +660,6 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -766,46 +670,41 @@ public java.lang.String getSubaccounts(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString + getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.ListValue> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.ListValue.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.ListValue.getDefaultInstance()); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ListValue> labels_; private com.google.protobuf.MapField - internalGetLabels() { + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -818,26 +717,23 @@ public int getLabelsCount() {
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -850,17 +746,13 @@ public java.util.Map getLabels(
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -873,25 +765,20 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.protobuf.ListValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -904,15 +791,12 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -923,8 +807,6 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { public static final int CALENDAR_PERIOD_FIELD_NUMBER = 8; /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -934,18 +816,13 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -955,10 +832,7 @@ public boolean hasCalendarPeriod() {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ public int getCalendarPeriodValue() { @@ -968,8 +842,6 @@ public int getCalendarPeriodValue() { return 0; } /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -979,37 +851,26 @@ public int getCalendarPeriodValue() {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED : result; } return com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } public static final int CUSTOM_PERIOD_FIELD_NUMBER = 9; /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -1017,48 +878,38 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1070,7 +921,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 < projects_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projects_.getRaw(i)); } @@ -1080,17 +932,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < services_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, services_.getRaw(i)); } - if (creditTypesTreatment_ - != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment - .CREDIT_TYPES_TREATMENT_UNSPECIFIED - .getNumber()) { + if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { output.writeEnum(4, creditTypesTreatment_); } for (int i = 0; i < subaccounts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subaccounts_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); for (int i = 0; i < creditTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, creditTypes_.getRaw(i)); } @@ -1133,11 +986,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getServicesList().size(); } - if (creditTypesTreatment_ - != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment - .CREDIT_TYPES_TREATMENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, creditTypesTreatment_); + if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, creditTypesTreatment_); } { int dataSize = 0; @@ -1147,15 +998,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSubaccountsList().size(); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); } { int dataSize = 0; @@ -1166,14 +1017,12 @@ public int getSerializedSize() { size += 1 * getCreditTypesList().size(); } if (usagePeriodCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 8, ((java.lang.Integer) usagePeriod_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, ((java.lang.Integer) usagePeriod_)); } if (usagePeriodCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1183,28 +1032,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.Filter)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.Filter other = - (com.google.cloud.billing.budgets.v1beta1.Filter) obj; + com.google.cloud.billing.budgets.v1beta1.Filter other = (com.google.cloud.billing.budgets.v1beta1.Filter) obj; - if (!getProjectsList().equals(other.getProjectsList())) return false; - if (!getResourceAncestorsList().equals(other.getResourceAncestorsList())) return false; - if (!getCreditTypesList().equals(other.getCreditTypesList())) return false; + if (!getProjectsList() + .equals(other.getProjectsList())) return false; + if (!getResourceAncestorsList() + .equals(other.getResourceAncestorsList())) return false; + if (!getCreditTypesList() + .equals(other.getCreditTypesList())) return false; if (creditTypesTreatment_ != other.creditTypesTreatment_) return false; - if (!getServicesList().equals(other.getServicesList())) return false; - if (!getSubaccountsList().equals(other.getSubaccountsList())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getServicesList() + .equals(other.getServicesList())) return false; + if (!getSubaccountsList() + .equals(other.getSubaccountsList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!getUsagePeriodCase().equals(other.getUsagePeriodCase())) return false; switch (usagePeriodCase_) { case 8: - if (getCalendarPeriodValue() != other.getCalendarPeriodValue()) return false; + if (getCalendarPeriodValue() + != other.getCalendarPeriodValue()) return false; break; case 9: - if (!getCustomPeriod().equals(other.getCustomPeriod())) return false; + if (!getCustomPeriod() + .equals(other.getCustomPeriod())) return false; break; case 0: default: @@ -1263,166 +1119,169 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1beta1.Filter parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1beta1.Filter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.Filter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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 filter for a budget, limiting the scope of the cost to calculate.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Filter} */ - 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.budgets.v1beta1.Filter) com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.Filter.class, - com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1beta1.Filter.class, com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.Filter.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableLabels().clear(); if (customPeriodBuilder_ != null) { customPeriodBuilder_.clear(); @@ -1433,9 +1292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @java.lang.Override @@ -1454,11 +1313,8 @@ public com.google.cloud.billing.budgets.v1beta1.Filter build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter buildPartial() { - com.google.cloud.billing.budgets.v1beta1.Filter result = - new com.google.cloud.billing.budgets.v1beta1.Filter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.Filter result = new com.google.cloud.billing.budgets.v1beta1.Filter(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1498,7 +1354,8 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Filter resul private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.Filter result) { result.usagePeriodCase_ = usagePeriodCase_; result.usagePeriod_ = this.usagePeriod_; - if (usagePeriodCase_ == 9 && customPeriodBuilder_ != null) { + if (usagePeriodCase_ == 9 && + customPeriodBuilder_ != null) { result.usagePeriod_ = customPeriodBuilder_.build(); } } @@ -1507,39 +1364,38 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Filter) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Filter)other); } else { super.mergeFrom(other); return this; @@ -1547,8 +1403,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Filter other) { - if (other == com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) return this; if (!other.projects_.isEmpty()) { if (projects_.isEmpty()) { projects_ = other.projects_; @@ -1602,23 +1457,21 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Filter other) } onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000040; switch (other.getUsagePeriodCase()) { - case CALENDAR_PERIOD: - { - setCalendarPeriodValue(other.getCalendarPeriodValue()); - break; - } - case CUSTOM_PERIOD: - { - mergeCustomPeriod(other.getCustomPeriod()); - break; - } - case USAGEPERIOD_NOT_SET: - { - break; - } + case CALENDAR_PERIOD: { + setCalendarPeriodValue(other.getCalendarPeriodValue()); + break; + } + case CUSTOM_PERIOD: { + mergeCustomPeriod(other.getCustomPeriod()); + break; + } + case USAGEPERIOD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1646,80 +1499,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureProjectsIsMutable(); - projects_.add(s); - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceAncestorsIsMutable(); - resourceAncestors_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureServicesIsMutable(); - services_.add(s); - break; - } // case 26 - case 32: - { - creditTypesTreatment_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubaccountsIsMutable(); - subaccounts_.add(s); - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry - labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCreditTypesIsMutable(); - creditTypes_.add(s); - break; - } // case 58 - case 64: - { - int rawValue = input.readEnum(); - usagePeriodCase_ = 8; - usagePeriod_ = rawValue; - break; - } // case 64 - case 74: - { - input.readMessage(getCustomPeriodFieldBuilder().getBuilder(), extensionRegistry); - usagePeriodCase_ = 9; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectsIsMutable(); + projects_.add(s); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceAncestorsIsMutable(); + resourceAncestors_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureServicesIsMutable(); + services_.add(s); + break; + } // case 26 + case 32: { + creditTypesTreatment_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubaccountsIsMutable(); + subaccounts_.add(s); + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCreditTypesIsMutable(); + creditTypes_.add(s); + break; + } // case 58 + case 64: { + int rawValue = input.readEnum(); + usagePeriodCase_ = 8; + usagePeriod_ = rawValue; + break; + } // case 64 + case 74: { + input.readMessage( + getCustomPeriodFieldBuilder().getBuilder(), + extensionRegistry); + usagePeriodCase_ = 9; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1729,12 +1571,12 @@ public Builder mergeFrom( } // finally return this; } - private int usagePeriodCase_ = 0; private java.lang.Object usagePeriod_; - - public UsagePeriodCase getUsagePeriodCase() { - return UsagePeriodCase.forNumber(usagePeriodCase_); + public UsagePeriodCase + getUsagePeriodCase() { + return UsagePeriodCase.forNumber( + usagePeriodCase_); } public Builder clearUsagePeriod() { @@ -1748,7 +1590,6 @@ public Builder clearUsagePeriod() { private com.google.protobuf.LazyStringArrayList projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureProjectsIsMutable() { if (!projects_.isModifiable()) { projects_ = new com.google.protobuf.LazyStringArrayList(projects_); @@ -1756,8 +1597,6 @@ private void ensureProjectsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1766,16 +1605,14 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList getProjectsList() { + public com.google.protobuf.ProtocolStringList + getProjectsList() { projects_.makeImmutable(); return projects_; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1784,15 +1621,12 @@ public com.google.protobuf.ProtocolStringList getProjectsList() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1801,7 +1635,6 @@ public int getProjectsCount() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -1809,8 +1642,6 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1819,16 +1650,14 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString getProjectsBytes(int index) { + public com.google.protobuf.ByteString + getProjectsBytes(int index) { return projects_.getByteString(index); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1837,15 +1666,13 @@ public com.google.protobuf.ByteString getProjectsBytes(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The projects to set. * @return This builder for chaining. */ - public Builder setProjects(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjects( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureProjectsIsMutable(); projects_.set(index, value); bitField0_ |= 0x00000001; @@ -1853,8 +1680,6 @@ public Builder setProjects(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1863,14 +1688,12 @@ public Builder setProjects(int index, java.lang.String value) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The projects to add. * @return This builder for chaining. */ - public Builder addProjects(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addProjects( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureProjectsIsMutable(); projects_.add(value); bitField0_ |= 0x00000001; @@ -1878,8 +1701,6 @@ public Builder addProjects(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1888,20 +1709,19 @@ public Builder addProjects(java.lang.String value) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The projects to add. * @return This builder for chaining. */ - public Builder addAllProjects(java.lang.Iterable values) { + public Builder addAllProjects( + java.lang.Iterable values) { ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projects_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1910,19 +1730,16 @@ public Builder addAllProjects(java.lang.Iterable values) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearProjects() { - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1931,14 +1748,12 @@ public Builder clearProjects() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the projects to add. * @return This builder for chaining. */ - public Builder addProjectsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addProjectsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureProjectsIsMutable(); projects_.add(value); @@ -1949,7 +1764,6 @@ public Builder addProjectsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResourceAncestorsIsMutable() { if (!resourceAncestors_.isModifiable()) { resourceAncestors_ = new com.google.protobuf.LazyStringArrayList(resourceAncestors_); @@ -1957,58 +1771,53 @@ private void ensureResourceAncestorsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList + getResourceAncestorsList() { resourceAncestors_.makeImmutable(); return resourceAncestors_; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -2016,47 +1825,43 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The resourceAncestors to set. * @return This builder for chaining. */ - public Builder setResourceAncestors(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceAncestors( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceAncestorsIsMutable(); resourceAncestors_.set(index, value); bitField0_ |= 0x00000002; @@ -2064,26 +1869,23 @@ public Builder setResourceAncestors(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestors(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceAncestors( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); bitField0_ |= 0x00000002; @@ -2091,73 +1893,68 @@ public Builder addResourceAncestors(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param values The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addAllResourceAncestors(java.lang.Iterable values) { + public Builder addAllResourceAncestors( + java.lang.Iterable values) { ensureResourceAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceAncestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceAncestors_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearResourceAncestors() { - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceAncestorsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); @@ -2168,7 +1965,6 @@ public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureCreditTypesIsMutable() { if (!creditTypes_.isModifiable()) { creditTypes_ = new com.google.protobuf.LazyStringArrayList(creditTypes_); @@ -2176,8 +1972,6 @@ private void ensureCreditTypesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2192,16 +1986,14 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList getCreditTypesList() { + public com.google.protobuf.ProtocolStringList + getCreditTypesList() { creditTypes_.makeImmutable(); return creditTypes_; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2216,15 +2008,12 @@ public com.google.protobuf.ProtocolStringList getCreditTypesList() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2239,7 +2028,6 @@ public int getCreditTypesCount() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -2247,8 +2035,6 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2263,16 +2049,14 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString + getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2287,15 +2071,13 @@ public com.google.protobuf.ByteString getCreditTypesBytes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The creditTypes to set. * @return This builder for chaining. */ - public Builder setCreditTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCreditTypes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCreditTypesIsMutable(); creditTypes_.set(index, value); bitField0_ |= 0x00000004; @@ -2303,8 +2085,6 @@ public Builder setCreditTypes(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2319,14 +2099,12 @@ public Builder setCreditTypes(int index, java.lang.String value) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCreditTypes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCreditTypesIsMutable(); creditTypes_.add(value); bitField0_ |= 0x00000004; @@ -2334,8 +2112,6 @@ public Builder addCreditTypes(java.lang.String value) { return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2350,20 +2126,19 @@ public Builder addCreditTypes(java.lang.String value) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The creditTypes to add. * @return This builder for chaining. */ - public Builder addAllCreditTypes(java.lang.Iterable values) { + public Builder addAllCreditTypes( + java.lang.Iterable values) { ensureCreditTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creditTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, creditTypes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2378,19 +2153,16 @@ public Builder addAllCreditTypes(java.lang.Iterable values) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCreditTypes() { - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2405,14 +2177,12 @@ public Builder clearCreditTypes() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCreditTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCreditTypesIsMutable(); creditTypes_.add(value); @@ -2423,33 +2193,22 @@ public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { private int creditTypesTreatment_ = 0; /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override - public int getCreditTypesTreatmentValue() { + @java.lang.Override public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for creditTypesTreatment to set. * @return This builder for chaining. */ @@ -2460,44 +2219,28 @@ public Builder setCreditTypesTreatmentValue(int value) { return this; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment - getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber( - creditTypesTreatment_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED - : result; + public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The creditTypesTreatment to set. * @return This builder for chaining. */ - public Builder setCreditTypesTreatment( - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment value) { + public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment value) { if (value == null) { throw new NullPointerException(); } @@ -2507,16 +2250,11 @@ public Builder setCreditTypesTreatment( return this; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCreditTypesTreatment() { @@ -2528,7 +2266,6 @@ public Builder clearCreditTypesTreatment() { private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureServicesIsMutable() { if (!services_.isModifiable()) { services_ = new com.google.protobuf.LazyStringArrayList(services_); @@ -2536,8 +2273,6 @@ private void ensureServicesIsMutable() { bitField0_ |= 0x00000010; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2548,16 +2283,14 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList getServicesList() { + public com.google.protobuf.ProtocolStringList + getServicesList() { services_.makeImmutable(); return services_; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2568,15 +2301,12 @@ public com.google.protobuf.ProtocolStringList getServicesList() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2587,7 +2317,6 @@ public int getServicesCount() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ @@ -2595,8 +2324,6 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2607,16 +2334,14 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString getServicesBytes(int index) { + public com.google.protobuf.ByteString + getServicesBytes(int index) { return services_.getByteString(index); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2627,15 +2352,13 @@ public com.google.protobuf.ByteString getServicesBytes(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The services to set. * @return This builder for chaining. */ - public Builder setServices(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServices( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.set(index, value); bitField0_ |= 0x00000010; @@ -2643,8 +2366,6 @@ public Builder setServices(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2655,14 +2376,12 @@ public Builder setServices(int index, java.lang.String value) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The services to add. * @return This builder for chaining. */ - public Builder addServices(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServices( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.add(value); bitField0_ |= 0x00000010; @@ -2670,8 +2389,6 @@ public Builder addServices(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2682,20 +2399,19 @@ public Builder addServices(java.lang.String value) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The services to add. * @return This builder for chaining. */ - public Builder addAllServices(java.lang.Iterable values) { + public Builder addAllServices( + java.lang.Iterable values) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, services_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2706,19 +2422,16 @@ public Builder addAllServices(java.lang.Iterable values) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearServices() { - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2729,14 +2442,12 @@ public Builder clearServices() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the services to add. * @return This builder for chaining. */ - public Builder addServicesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServicesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureServicesIsMutable(); services_.add(value); @@ -2747,7 +2458,6 @@ public Builder addServicesBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureSubaccountsIsMutable() { if (!subaccounts_.isModifiable()) { subaccounts_ = new com.google.protobuf.LazyStringArrayList(subaccounts_); @@ -2755,8 +2465,6 @@ private void ensureSubaccountsIsMutable() { bitField0_ |= 0x00000020; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2767,16 +2475,14 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList getSubaccountsList() { + public com.google.protobuf.ProtocolStringList + getSubaccountsList() { subaccounts_.makeImmutable(); return subaccounts_; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2787,15 +2493,12 @@ public com.google.protobuf.ProtocolStringList getSubaccountsList() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2806,7 +2509,6 @@ public int getSubaccountsCount() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -2814,8 +2516,6 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2826,16 +2526,14 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString + getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2846,15 +2544,13 @@ public com.google.protobuf.ByteString getSubaccountsBytes(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The subaccounts to set. * @return This builder for chaining. */ - public Builder setSubaccounts(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubaccounts( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubaccountsIsMutable(); subaccounts_.set(index, value); bitField0_ |= 0x00000020; @@ -2862,8 +2558,6 @@ public Builder setSubaccounts(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2874,14 +2568,12 @@ public Builder setSubaccounts(int index, java.lang.String value) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccounts(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubaccounts( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubaccountsIsMutable(); subaccounts_.add(value); bitField0_ |= 0x00000020; @@ -2889,8 +2581,6 @@ public Builder addSubaccounts(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2901,20 +2591,19 @@ public Builder addSubaccounts(java.lang.String value) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The subaccounts to add. * @return This builder for chaining. */ - public Builder addAllSubaccounts(java.lang.Iterable values) { + public Builder addAllSubaccounts( + java.lang.Iterable values) { ensureSubaccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subaccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subaccounts_); bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2925,19 +2614,16 @@ public Builder addAllSubaccounts(java.lang.Iterable values) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSubaccounts() { - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - ; + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020);; onChanged(); return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2948,14 +2634,12 @@ public Builder clearSubaccounts() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubaccountsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSubaccountsIsMutable(); subaccounts_.add(value); @@ -2964,20 +2648,21 @@ public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField labels_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ListValue> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2986,13 +2671,10 @@ public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3005,26 +2687,23 @@ public int getLabelsCount() {
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3037,17 +2716,13 @@ public java.util.Map getLabels(
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3060,25 +2735,20 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.protobuf.ListValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3091,15 +2761,12 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3107,15 +2774,13 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3128,26 +2793,25 @@ public Builder clearLabels() {
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3160,24 +2824,19 @@ public java.util.Map getMutable
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + com.google.protobuf.ListValue value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3190,20 +2849,17 @@ public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue val
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels( java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3213,10 +2869,7 @@ public Builder putAllLabels(
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ @java.lang.Override @@ -3224,8 +2877,6 @@ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3235,10 +2886,7 @@ public boolean hasCalendarPeriod() {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ @java.lang.Override @@ -3249,8 +2897,6 @@ public int getCalendarPeriodValue() { return 0; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3260,10 +2906,7 @@ public int getCalendarPeriodValue() {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for calendarPeriod to set. * @return This builder for chaining. */ @@ -3274,8 +2917,6 @@ public Builder setCalendarPeriodValue(int value) { return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3285,27 +2926,19 @@ public Builder setCalendarPeriodValue(int value) {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED : result; } return com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3315,15 +2948,11 @@ public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param value The calendarPeriod to set. * @return This builder for chaining. */ - public Builder setCalendarPeriod( - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod value) { + public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1beta1.CalendarPeriod value) { if (value == null) { throw new NullPointerException(); } @@ -3333,8 +2962,6 @@ public Builder setCalendarPeriod( return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3344,10 +2971,7 @@ public Builder setCalendarPeriod(
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCalendarPeriod() { @@ -3360,22 +2984,14 @@ public Builder clearCalendarPeriod() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> - customPeriodBuilder_; + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> customPeriodBuilder_; /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -3383,17 +2999,12 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ @java.lang.Override @@ -3411,16 +3022,12 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod() { } } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPeriod value) { if (customPeriodBuilder_ == null) { @@ -3436,16 +3043,12 @@ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPe return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomPeriod( com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder builderForValue) { @@ -3459,27 +3062,19 @@ public Builder setCustomPeriod( return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPeriod value) { if (customPeriodBuilder_ == null) { - if (usagePeriodCase_ == 9 - && usagePeriod_ - != com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) { - usagePeriod_ = - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder( - (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_) - .mergeFrom(value) - .buildPartial(); + if (usagePeriodCase_ == 9 && + usagePeriod_ != com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) { + usagePeriod_ = com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder((com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_) + .mergeFrom(value).buildPartial(); } else { usagePeriod_ = value; } @@ -3495,16 +3090,12 @@ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1beta1.Custom return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCustomPeriod() { if (customPeriodBuilder_ == null) { @@ -3523,35 +3114,26 @@ public Builder clearCustomPeriod() { return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder getCustomPeriodBuilder() { return getCustomPeriodFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder - getCustomPeriodOrBuilder() { + public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { if ((usagePeriodCase_ == 9) && (customPeriodBuilder_ != null)) { return customPeriodBuilder_.getMessageOrBuilder(); } else { @@ -3562,31 +3144,22 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder getCustomPe } } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> getCustomPeriodFieldBuilder() { if (customPeriodBuilder_ == null) { if (!(usagePeriodCase_ == 9)) { usagePeriod_ = com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } - customPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder>( + customPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder>( (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_, getParentForChildren(), isClean()); @@ -3596,9 +3169,9 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder getCustomPe onChanged(); return customPeriodBuilder_; } - @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); } @@ -3608,12 +3181,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.Filter) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.Filter) private static final com.google.cloud.billing.budgets.v1beta1.Filter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.Filter(); } @@ -3622,27 +3195,27 @@ public static com.google.cloud.billing.budgets.v1beta1.Filter getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3657,4 +3230,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java similarity index 80% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java index d9f2d35ee21a..6d6ed75fa958 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface FilterOrBuilder - extends +public interface FilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.Filter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -34,13 +16,11 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - java.util.List getProjectsList(); + java.util.List + getProjectsList(); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -49,13 +29,10 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ int getProjectsCount(); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -64,14 +41,11 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ java.lang.String getProjects(int index); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -80,82 +54,78 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - com.google.protobuf.ByteString getProjectsBytes(int index); + com.google.protobuf.ByteString + getProjectsBytes(int index); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the resourceAncestors. */ - java.util.List getResourceAncestorsList(); + java.util.List + getResourceAncestorsList(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of resourceAncestors. */ int getResourceAncestorsCount(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ java.lang.String getResourceAncestors(int index); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - com.google.protobuf.ByteString getResourceAncestorsBytes(int index); + com.google.protobuf.ByteString + getResourceAncestorsBytes(int index); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -170,13 +140,11 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - java.util.List getCreditTypesList(); + java.util.List + getCreditTypesList(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -191,13 +159,10 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ int getCreditTypesCount(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -212,14 +177,11 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ java.lang.String getCreditTypes(int index); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -234,44 +196,32 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - com.google.protobuf.ByteString getCreditTypesBytes(int index); + com.google.protobuf.ByteString + getCreditTypesBytes(int index); /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ int getCreditTypesTreatmentValue(); /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -282,13 +232,11 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - java.util.List getServicesList(); + java.util.List + getServicesList(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -299,13 +247,10 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ int getServicesCount(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -316,14 +261,11 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ java.lang.String getServices(int index); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -334,15 +276,13 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - com.google.protobuf.ByteString getServicesBytes(int index); + com.google.protobuf.ByteString + getServicesBytes(int index); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -353,13 +293,11 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - java.util.List getSubaccountsList(); + java.util.List + getSubaccountsList(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -370,13 +308,10 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ int getSubaccountsCount(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -387,14 +322,11 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ java.lang.String getSubaccounts(int index); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -405,15 +337,13 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - com.google.protobuf.ByteString getSubaccountsBytes(int index); + com.google.protobuf.ByteString + getSubaccountsBytes(int index); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -426,14 +356,10 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -446,17 +372,17 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -469,14 +395,11 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -489,18 +412,14 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.protobuf.ListValue getLabelsOrDefault( +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue); +com.google.protobuf.ListValue defaultValue); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -513,15 +432,12 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key); + com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -531,16 +447,11 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ boolean hasCalendarPeriod(); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -550,16 +461,11 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ int getCalendarPeriodValue(); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -569,55 +475,38 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ boolean hasCustomPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder(); diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java similarity index 63% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java index c35946915029..6cb5a3e603dd 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * Request for GetBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.GetBudgetRequest} */ -public final class GetBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) GetBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBudgetRequest.newBuilder() to construct. private GetBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other = - (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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 for GetBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.GetBudgetRequest} */ - 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.budgets.v1beta1.GetBudgetRequest) com.google.cloud.billing.budgets.v1beta1.GetBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override @@ -344,11 +312,8 @@ public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest result = - new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +329,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.GetBudgetReq 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.budgets.v1beta1.GetBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -404,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -437,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -489,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -558,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) private static final com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(); } @@ -608,27 +544,27 @@ public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..dbdcc744a53e --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface GetBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java similarity index 65% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java index c390cddb2a5b..f461f262596e 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * Describes a budget amount targeted to the last
  * [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period]
@@ -35,41 +18,39 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.LastPeriodAmount}
  */
-public final class LastPeriodAmount extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LastPeriodAmount extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
     LastPeriodAmountOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LastPeriodAmount.newBuilder() to construct.
   private LastPeriodAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private LastPeriodAmount() {}
+  private LastPeriodAmount() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LastPeriodAmount();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class,
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -81,7 +62,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -99,13 +81,12 @@ 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.budgets.v1beta1.LastPeriodAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other =
-        (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) obj;
+    com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other = (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -124,104 +105,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount prototype) {
+  public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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;
   }
   /**
-   *
-   *
    * 
    * Describes a budget amount targeted to the last
    * [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period]
@@ -236,32 +211,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.LastPeriodAmount}
    */
-  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.budgets.v1beta1.LastPeriodAmount)
       com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class,
-              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -269,9 +245,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
@@ -290,8 +266,7 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount result =
-          new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount(this);
+      com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount result = new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount(this);
       onBuilt();
       return result;
     }
@@ -300,39 +275,38 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -340,8 +314,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -368,13 +341,12 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -384,9 +356,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -396,12 +368,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
   private static final com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount();
   }
@@ -410,27 +382,27 @@ public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public LastPeriodAmount parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public LastPeriodAmount parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -445,4 +417,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java
new file mode 100644
index 000000000000..78785ce8b259
--- /dev/null
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1beta1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1beta1;
+
+public interface LastPeriodAmountOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
similarity index 56%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
index a91fc2d0e975..e6d912bd4ec8 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
@@ -1,84 +1,60 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
 /**
- *
- *
  * 
  * Request for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsRequest} */ -public final class ListBudgetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBudgetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) ListBudgetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBudgetsRequest.newBuilder() to construct. private ListBudgetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBudgetsRequest() { parent_ = ""; + scope_ = ""; pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBudgetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 @@ -87,32 +63,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 { @@ -120,18 +94,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; + public static final int SCOPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object scope_ = ""; /** + *
+   * Optional. Set the scope of the budgets to be returned, in the format of the
+   * resource name. The scope of a budget is the cost that it tracks, such as
+   * costs for a single project, or the costs for all projects in a folder. Only
+   * project scope (in the format of "projects/project-id" or "projects/123") is
+   * supported in this field. When this field is set to a project's resource
+   * name, the budgets returned are tracking the costs for that project.
+   * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } + } + /** + *
+   * Optional. Set the scope of the budgets to be returned, in the format of the
+   * resource name. The scope of a budget is the cost that it tracks, such as
+   * costs for a single project, or the costs for all projects in a folder. Only
+   * project scope (in the format of "projects/project-id" or "projects/123") is
+   * supported in this field. When this field is set to a project's resource
+   * name, the budgets returned are tracking the costs for that project.
+   * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -140,12 +168,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -153,7 +178,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -162,15 +186,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; } } /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -178,15 +201,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -195,7 +219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +230,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -217,6 +241,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scope_); + } getUnknownFields().writeTo(output); } @@ -230,11 +257,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, scope_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -243,17 +274,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other = - (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other = (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getScope() + .equals(other.getScope())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,6 +302,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; @@ -277,150 +314,146 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsRequest} */ - 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.budgets.v1beta1.ListBudgetsRequest) com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; + scope_ = ""; pageSize_ = 0; pageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override @@ -439,11 +472,8 @@ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest result = - new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest result = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -454,9 +484,12 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ListBudgetsR result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; + result.scope_ = scope_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.pageToken_ = pageToken_; } } @@ -465,39 +498,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ListBudgetsR 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.budgets.v1beta1.ListBudgetsRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest)other); } else { super.mergeFrom(other); return this; @@ -505,19 +537,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; onChanged(); } + if (!other.getScope().isEmpty()) { + scope_ = other.scope_; + bitField0_ |= 0x00000002; + onChanged(); + } if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -546,31 +582,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -580,28 +617,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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; @@ -610,24 +642,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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 { @@ -635,41 +664,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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() { @@ -679,24 +697,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -704,17 +716,131 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private java.lang.Object scope_ = ""; /** + *
+     * Optional. Set the scope of the budgets to be returned, in the format of the
+     * resource name. The scope of a budget is the cost that it tracks, such as
+     * costs for a single project, or the costs for all projects in a folder. Only
+     * project scope (in the format of "projects/project-id" or "projects/123") is
+     * supported in this field. When this field is set to a project's resource
+     * name, the budgets returned are tracking the costs for that project.
+     * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. Set the scope of the budgets to be returned, in the format of the
+     * resource name. The scope of a budget is the cost that it tracks, such as
+     * costs for a single project, or the costs for all projects in a folder. Only
+     * project scope (in the format of "projects/project-id" or "projects/123") is
+     * supported in this field. When this field is set to a project's resource
+     * name, the budgets returned are tracking the costs for that project.
+     * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. Set the scope of the budgets to be returned, in the format of the
+     * resource name. The scope of a budget is the cost that it tracks, such as
+     * costs for a single project, or the costs for all projects in a folder. Only
+     * project scope (in the format of "projects/project-id" or "projects/123") is
+     * supported in this field. When this field is set to a project's resource
+     * name, the budgets returned are tracking the costs for that project.
+     * 
+ * + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + scope_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Set the scope of the budgets to be returned, in the format of the
+     * resource name. The scope of a budget is the cost that it tracks, such as
+     * costs for a single project, or the costs for all projects in a folder. Only
+     * project scope (in the format of "projects/project-id" or "projects/123") is
+     * supported in this field. When this field is set to a project's resource
+     * name, the budgets returned are tracking the costs for that project.
+     * 
+ * + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearScope() { + scope_ = getDefaultInstance().getScope(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Optional. Set the scope of the budgets to be returned, in the format of the
+     * resource name. The scope of a budget is the cost that it tracks, such as
+     * costs for a single project, or the costs for all projects in a folder. Only
+     * project scope (in the format of "projects/project-id" or "projects/123") is
+     * supported in this field. When this field is set to a project's resource
+     * name, the budgets returned are tracking the costs for that project.
+     * 
+ * + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + scope_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_ ; + /** *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -722,39 +848,33 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { pageSize_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -762,8 +882,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -771,13 +889,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -786,8 +904,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -795,14 +911,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -810,8 +927,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -819,22 +934,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -842,18 +953,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -861,23 +969,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +993,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(); } @@ -901,27 +1007,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,4 +1042,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java similarity index 51% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java index f26a9d356978..ba882c4c2570 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java @@ -1,76 +1,76 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ListBudgetsRequestOrBuilder - extends +public interface ListBudgetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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. Set the scope of the budgets to be returned, in the format of the
+   * resource name. The scope of a budget is the cost that it tracks, such as
+   * costs for a single project, or the costs for all projects in a folder. Only
+   * project scope (in the format of "projects/project-id" or "projects/123") is
+   * supported in this field. When this field is set to a project's resource
+   * name, the budgets returned are tracking the costs for that project.
+   * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The scope. + */ + java.lang.String getScope(); + /** + *
+   * Optional. Set the scope of the budgets to be returned, in the format of the
+   * resource name. The scope of a budget is the cost that it tracks, such as
+   * costs for a single project, or the costs for all projects in a folder. Only
+   * project scope (in the format of "projects/project-id" or "projects/123") is
+   * supported in this field. When this field is set to a project's resource
+   * name, the budgets returned are tracking the costs for that project.
+   * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for scope. + */ + com.google.protobuf.ByteString + getScopeBytes(); + + /** *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -78,13 +78,10 @@ public interface ListBudgetsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -92,8 +89,8 @@ public interface ListBudgetsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java similarity index 71% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java index 97f4f3f2131e..b4af81ab449b 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * Response for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsResponse} */ -public final class ListBudgetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBudgetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) ListBudgetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBudgetsResponse.newBuilder() to construct. private ListBudgetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBudgetsResponse() { budgets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListBudgetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBudgetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); } public static final int BUDGETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List budgets_; /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -81,8 +59,6 @@ public java.util.List getBudget return budgets_; } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -90,13 +66,11 @@ public java.util.List getBudget * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBudgetsOrBuilderList() { return budgets_; } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -108,8 +82,6 @@ public int getBudgetsCount() { return budgets_.size(); } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { return budgets_.get(index); } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -130,24 +100,21 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index) { + public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( + int index) { return budgets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,30 +123,30 @@ 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; } } /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * 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 { @@ -188,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +166,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 < budgets_.size(); i++) { output.writeMessage(1, budgets_.get(i)); } @@ -217,7 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < budgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, budgets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, budgets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -230,16 +198,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.budgets.v1beta1.ListBudgetsResponse)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other = - (com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) obj; + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other = (com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) obj; - if (!getBudgetsList().equals(other.getBudgetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getBudgetsList() + .equals(other.getBudgetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +232,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsResponse} */ - 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.budgets.v1beta1.ListBudgetsResponse) com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,14 +373,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse - getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance(); } @@ -431,18 +394,14 @@ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse buildPartial() { - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result = - new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(this); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { if (budgetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { budgets_ = java.util.Collections.unmodifiableList(budgets_); @@ -454,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { + private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -466,39 +424,38 @@ private void buildPartial0( 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.budgets.v1beta1.ListBudgetsResponse) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse)other); } else { super.mergeFrom(other); return this; @@ -506,9 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other) { - if (other - == com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()) return this; if (budgetsBuilder_ == null) { if (!other.budgets_.isEmpty()) { if (budgets_.isEmpty()) { @@ -527,10 +482,9 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRes budgetsBuilder_ = null; budgets_ = other.budgets_; bitField0_ = (bitField0_ & ~0x00000001); - budgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBudgetsFieldBuilder() - : null; + budgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBudgetsFieldBuilder() : null; } else { budgetsBuilder_.addAllMessages(other.budgets_); } @@ -567,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.billing.budgets.v1beta1.Budget m = - input.readMessage( - com.google.cloud.billing.budgets.v1beta1.Budget.parser(), - extensionRegistry); - if (budgetsBuilder_ == null) { - ensureBudgetsIsMutable(); - budgets_.add(m); - } else { - budgetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.billing.budgets.v1beta1.Budget m = + input.readMessage( + com.google.cloud.billing.budgets.v1beta1.Budget.parser(), + extensionRegistry); + if (budgetsBuilder_ == null) { + ensureBudgetsIsMutable(); + budgets_.add(m); + } else { + budgetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,29 +554,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List budgets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBudgetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - budgets_ = - new java.util.ArrayList(budgets_); + budgets_ = new java.util.ArrayList(budgets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> - budgetsBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetsBuilder_; /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -640,8 +583,6 @@ public java.util.List getBudget } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -656,8 +597,6 @@ public int getBudgetsCount() { } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -672,15 +611,14 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { + public Builder setBudgets( + int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,8 +632,6 @@ public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Bu return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -714,8 +650,6 @@ public Builder setBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -736,15 +670,14 @@ public Builder addBudgets(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { + public Builder addBudgets( + int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -758,8 +691,6 @@ public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Bu return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -778,8 +709,6 @@ public Builder addBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -798,8 +727,6 @@ public Builder addBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -810,7 +737,8 @@ public Builder addAllBudgets( java.lang.Iterable values) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, budgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, budgets_); onChanged(); } else { budgetsBuilder_.addAllMessages(values); @@ -818,8 +746,6 @@ public Builder addAllBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -837,8 +763,6 @@ public Builder clearBudgets() { return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -856,44 +780,39 @@ public Builder removeBudgets(int index) { return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetsBuilder(int index) { + public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetsBuilder( + int index) { return getBudgetsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index) { + public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( + int index) { if (budgetsBuilder_ == null) { - return budgets_.get(index); - } else { + return budgets_.get(index); } else { return budgetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public java.util.List - getBudgetsOrBuilderList() { + public java.util.List + getBudgetsOrBuilderList() { if (budgetsBuilder_ != null) { return budgetsBuilder_.getMessageOrBuilderList(); } else { @@ -901,8 +820,6 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuil } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -910,48 +827,42 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuil * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder() { - return getBudgetsFieldBuilder() - .addBuilder(com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); + return getBudgetsFieldBuilder().addBuilder( + com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder(int index) { - return getBudgetsFieldBuilder() - .addBuilder(index, com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder( + int index) { + return getBudgetsFieldBuilder().addBuilder( + index, com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public java.util.List - getBudgetsBuilderList() { + public java.util.List + getBudgetsBuilderList() { return getBudgetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetsFieldBuilder() { if (budgetsBuilder_ == null) { - budgetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - budgets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + budgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + budgets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); budgets_ = null; } return budgetsBuilder_; @@ -959,21 +870,19 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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; @@ -982,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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 { @@ -1005,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1045,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1079,13 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) - private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(); } @@ -1094,27 +990,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java similarity index 71% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java index 204d066b8680..63c67c8fb5dc 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ListBudgetsResponseOrBuilder - extends +public interface ListBudgetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - java.util.List getBudgetsList(); + java.util.List + getBudgetsList(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -44,8 +25,6 @@ public interface ListBudgetsResponseOrBuilder */ com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -54,51 +33,43 @@ public interface ListBudgetsResponseOrBuilder */ int getBudgetsCount(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - java.util.List + java.util.List getBudgetsOrBuilderList(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index); + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java similarity index 68% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java index 4ad22b1f581c..7a3f5750da88 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * ThresholdRule contains the definition of a threshold. Threshold rules define
  * the triggering events used to generate a budget notification email. When a
@@ -48,54 +31,49 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ThresholdRule}
  */
-public final class ThresholdRule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ThresholdRule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ThresholdRule)
     ThresholdRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ThresholdRule.newBuilder() to construct.
   private ThresholdRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ThresholdRule() {
     spendBasis_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ThresholdRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class,
-            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of basis used to determine if spend has passed the threshold.
    * 
* * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis} */ - public enum Basis implements com.google.protobuf.ProtocolMessageEnum { + public enum Basis + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified threshold basis.
      * 
@@ -104,8 +82,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ BASIS_UNSPECIFIED(0), /** - * - * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -114,8 +90,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ CURRENT_SPEND(1), /** - * - * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -132,8 +106,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified threshold basis.
      * 
@@ -142,8 +114,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BASIS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -152,8 +122,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CURRENT_SPEND_VALUE = 1; /** - * - * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -167,6 +135,7 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FORECASTED_SPEND_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -191,51 +160,49 @@ public static Basis valueOf(int value) {
      */
     public static Basis forNumber(int value) {
       switch (value) {
-        case 0:
-          return BASIS_UNSPECIFIED;
-        case 1:
-          return CURRENT_SPEND;
-        case 2:
-          return FORECASTED_SPEND;
-        default:
-          return null;
+        case 0: return BASIS_UNSPECIFIED;
+        case 1: return CURRENT_SPEND;
+        case 2: return FORECASTED_SPEND;
+        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<
+        Basis> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Basis findValueByNumber(int number) {
+              return Basis.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Basis findValueByNumber(int number) {
-            return Basis.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() {
-      return com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Basis[] VALUES = values();
 
-    public static Basis valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Basis 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;
@@ -255,8 +222,6 @@ private Basis(int value) {
   public static final int THRESHOLD_PERCENT_FIELD_NUMBER = 1;
   private double thresholdPercent_ = 0D;
   /**
-   *
-   *
    * 
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -264,7 +229,6 @@ private Basis(int value) {
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ @java.lang.Override @@ -275,48 +239,32 @@ public double getThresholdPercent() { public static final int SPEND_BASIS_FIELD_NUMBER = 2; private int spendBasis_ = 0; /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override - public int getSpendBasisValue() { + @java.lang.Override public int getSpendBasisValue() { return spendBasis_; } /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ - @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,13 +276,12 @@ 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(thresholdPercent_) != 0) { output.writeDouble(1, thresholdPercent_); } - if (spendBasis_ - != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED - .getNumber()) { + if (spendBasis_ != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { output.writeEnum(2, spendBasis_); } getUnknownFields().writeTo(output); @@ -347,12 +294,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(thresholdPercent_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, thresholdPercent_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, thresholdPercent_); } - if (spendBasis_ - != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spendBasis_); + if (spendBasis_ != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, spendBasis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -362,16 +309,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.budgets.v1beta1.ThresholdRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ThresholdRule other = - (com.google.cloud.billing.budgets.v1beta1.ThresholdRule) obj; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule other = (com.google.cloud.billing.budgets.v1beta1.ThresholdRule) obj; if (java.lang.Double.doubleToLongBits(getThresholdPercent()) - != java.lang.Double.doubleToLongBits(other.getThresholdPercent())) return false; + != java.lang.Double.doubleToLongBits( + other.getThresholdPercent())) return false; if (spendBasis_ != other.spendBasis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -385,10 +332,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THRESHOLD_PERCENT_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThresholdPercent())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThresholdPercent())); hash = (37 * hash) + SPEND_BASIS_FIELD_NUMBER; hash = (53 * hash) + spendBasis_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -397,104 +342,98 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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; } /** - * - * *
    * ThresholdRule contains the definition of a threshold. Threshold rules define
    * the triggering events used to generate a budget notification email. When a
@@ -522,32 +461,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ThresholdRule}
    */
-  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.budgets.v1beta1.ThresholdRule)
       com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class,
-              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.ThresholdRule.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -558,9 +498,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
@@ -579,11 +519,8 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.ThresholdRule buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.ThresholdRule result =
-          new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.billing.budgets.v1beta1.ThresholdRule result = new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -602,39 +539,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ThresholdRul
     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.budgets.v1beta1.ThresholdRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ThresholdRule) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ThresholdRule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -642,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ThresholdRule other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()) return this;
       if (other.getThresholdPercent() != 0D) {
         setThresholdPercent(other.getThresholdPercent());
       }
@@ -676,25 +611,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 9:
-              {
-                thresholdPercent_ = input.readDouble();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 9
-            case 16:
-              {
-                spendBasis_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 9: {
+              thresholdPercent_ = input.readDouble();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 9
+            case 16: {
+              spendBasis_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -704,13 +636,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private double thresholdPercent_;
+    private double thresholdPercent_ ;
     /**
-     *
-     *
      * 
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -718,7 +647,6 @@ public Builder mergeFrom(
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ @java.lang.Override @@ -726,8 +654,6 @@ public double getThresholdPercent() { return thresholdPercent_; } /** - * - * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -735,7 +661,6 @@ public double getThresholdPercent() {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The thresholdPercent to set. * @return This builder for chaining. */ @@ -747,8 +672,6 @@ public Builder setThresholdPercent(double value) { return this; } /** - * - * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -756,7 +679,6 @@ public Builder setThresholdPercent(double value) {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearThresholdPercent() { @@ -768,35 +690,24 @@ public Builder clearThresholdPercent() { private int spendBasis_ = 0; /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override - public int getSpendBasisValue() { + @java.lang.Override public int getSpendBasisValue() { return spendBasis_; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for spendBasis to set. * @return This builder for chaining. */ @@ -807,44 +718,30 @@ public Builder setSpendBasisValue(int value) { return this; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The spendBasis to set. * @return This builder for chaining. */ - public Builder setSpendBasis( - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis value) { + public Builder setSpendBasis(com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis value) { if (value == null) { throw new NullPointerException(); } @@ -854,17 +751,12 @@ public Builder setSpendBasis( return this; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearSpendBasis() { @@ -873,9 +765,9 @@ public Builder clearSpendBasis() { 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); } @@ -885,12 +777,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ThresholdRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ThresholdRule) private static final com.google.cloud.billing.budgets.v1beta1.ThresholdRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(); } @@ -899,27 +791,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThresholdRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThresholdRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -934,4 +826,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java similarity index 55% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java index 46dd4b4bec7a..efaaef4ae53d 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ThresholdRuleOrBuilder - extends +public interface ThresholdRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ThresholdRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -33,38 +15,27 @@ public interface ThresholdRuleOrBuilder
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ double getThresholdPercent(); /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ int getSpendBasisValue(); /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis(); diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java similarity index 66% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java index 356fbba005ec..598d6b738493 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java @@ -1,79 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * Request for UpdateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest} */ -public final class UpdateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) UpdateBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBudgetRequest.newBuilder() to construct. private UpdateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateBudgetRequest() {} + private UpdateBudgetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); } public static final int BUDGET_FIELD_NUMBER = 1; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ @java.lang.Override @@ -81,49 +58,34 @@ public boolean hasBudget() { return budget_ != null; } /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -133,9 +95,7 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -143,8 +103,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -154,9 +112,7 @@ public boolean hasUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -164,8 +120,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -175,8 +129,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -184,7 +137,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,7 +148,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 (budget_ != null) { output.writeMessage(1, getBudget()); } @@ -213,10 +166,12 @@ public int getSerializedSize() { size = 0; if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBudget()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBudget()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -226,21 +181,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.budgets.v1beta1.UpdateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other = - (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) obj; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget().equals(other.getBudget())) return false; + if (!getBudget() + .equals(other.getBudget())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -267,136 +223,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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 for UpdateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest} */ - 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.budgets.v1beta1.UpdateBudgetRequest) com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,14 +366,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest - getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance(); } @@ -437,23 +387,23 @@ public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result = - new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result) { + private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null + ? budget_ + : budgetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -461,39 +411,38 @@ private void buildPartial0( 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.budgets.v1beta1.UpdateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -501,9 +450,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other) { - if (other - == com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()) return this; if (other.hasBudget()) { mergeBudget(other.getBudget()); } @@ -536,25 +483,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBudgetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -564,66 +512,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> - budgetBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetBuilder_; /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } else { return budgetBuilder_.getMessage(); } } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { @@ -639,16 +567,12 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget( com.google.cloud.billing.budgets.v1beta1.Budget.Builder builderForValue) { @@ -662,22 +586,18 @@ public Builder setBudget( return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && budget_ != null - && budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + budget_ != null && + budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -690,16 +610,12 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000001); @@ -712,16 +628,12 @@ public Builder clearBudget() { return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000001; @@ -729,50 +641,38 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder( return getBudgetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? + com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - getBudget(), getParentForChildren(), isClean()); + budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + getBudget(), + getParentForChildren(), + isClean()); budget_ = null; } return budgetBuilder_; @@ -780,13 +680,8 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild 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_; /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -796,17 +691,13 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -816,23 +707,17 @@ public boolean hasUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @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(); } } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -842,8 +727,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -859,8 +743,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -870,10 +752,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -884,8 +766,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -895,14 +775,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -915,8 +794,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -926,8 +803,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -940,8 +816,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -951,8 +825,7 @@ public Builder clearUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -960,8 +833,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -971,21 +842,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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_; } } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -995,28 +862,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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); } @@ -1026,13 +889,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(); } @@ -1041,27 +903,27 @@ public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1076,4 +938,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java similarity index 67% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java index 78d271936191..1d6feb44e56c 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java @@ -1,75 +1,43 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface UpdateBudgetRequestOrBuilder - extends +public interface UpdateBudgetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ boolean hasBudget(); /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -79,15 +47,11 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -97,15 +61,11 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -115,8 +75,7 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto similarity index 95% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto index d9f2d595654c..3eb3f7844275 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto @@ -195,6 +195,16 @@ message AllUpdatesRule { // account. bool disable_default_iam_recipients = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When set to true, and when the budget has a single project + // configured, notifications will be sent to project level recipients of that + // project. This field will be ignored if the budget has multiple or no + // project configured. + // + // Currently, project level recipients are the users with `Owner` role on a + // cloud project. + bool enable_project_level_recipients = 5 + [(google.api.field_behavior) = OPTIONAL]; } // A filter for a budget, limiting the scope of the cost to calculate. @@ -231,8 +241,10 @@ message Filter { // Optional. A set of folder and organization names of the form // `folders/{folderId}` or `organizations/{organizationId}`, specifying that // usage from only this set of folders and organizations should be included in - // the budget. If omitted, the report includes all usage for all - // organizations, regardless of which organization the usage occurred on. + // the budget. If omitted, the budget includes all usage that the billing + // account pays for. If the folder or organization contains projects that are + // paid for by a different Cloud Billing account, the budget *doesn't* apply + // to those projects. repeated string resource_ancestors = 2 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto similarity index 92% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto index fd376185da4c..7884c64ffd2e 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto @@ -144,6 +144,14 @@ message ListBudgetsRequest { } ]; + // Optional. Set the scope of the budgets to be returned, in the format of the + // resource name. The scope of a budget is the cost that it tracks, such as + // costs for a single project, or the costs for all projects in a folder. Only + // project scope (in the format of "projects/project-id" or "projects/123") is + // supported in this field. When this field is set to a project's resource + // name, the budgets returned are tracking the costs for that project. + string scope = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The maximum number of budgets to return per page. // The default and maximum value are 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java similarity index 98% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java index 264e84102cd0..668520591607 100644 --- a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java @@ -39,6 +39,7 @@ public static void asyncListBudgets() throws Exception { ListBudgetsRequest request = ListBudgetsRequest.newBuilder() .setParent(BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]").toString()) + .setScope("scope109264468") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java similarity index 98% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java index b503e68a5a07..ac00d62f9672 100644 --- a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java @@ -40,6 +40,7 @@ public static void asyncListBudgetsPaged() throws Exception { ListBudgetsRequest request = ListBudgetsRequest.newBuilder() .setParent(BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]").toString()) + .setScope("scope109264468") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java similarity index 98% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java index de01bb742cb1..1e4f1c783fef 100644 --- a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java @@ -38,6 +38,7 @@ public static void syncListBudgets() throws Exception { ListBudgetsRequest request = ListBudgetsRequest.newBuilder() .setParent(BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]").toString()) + .setScope("scope109264468") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java From 1ced8ab60da4e755abb4d8894bf8971b6962de44 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 22 Aug 2023 20:30:35 +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 --- java-billingbudgets/README.md | 4 +- .../budgets/v1/BudgetServiceClient.java | 0 .../budgets/v1/BudgetServiceSettings.java | 1 - .../billing/budgets/v1/gapic_metadata.json | 0 .../billing/budgets/v1/package-info.java | 0 .../budgets/v1/stub/BudgetServiceStub.java | 0 .../v1/stub/BudgetServiceStubSettings.java | 0 .../GrpcBudgetServiceCallableFactory.java | 0 .../v1/stub/GrpcBudgetServiceStub.java | 1 - .../HttpJsonBudgetServiceCallableFactory.java | 0 .../v1/stub/HttpJsonBudgetServiceStub.java | 0 .../budgets/v1beta1/BudgetServiceClient.java | 0 .../v1beta1/BudgetServiceSettings.java | 1 - .../budgets/v1beta1/gapic_metadata.json | 0 .../billing/budgets/v1beta1/package-info.java | 0 .../v1beta1/stub/BudgetServiceStub.java | 0 .../stub/BudgetServiceStubSettings.java | 0 .../GrpcBudgetServiceCallableFactory.java | 0 .../v1beta1/stub/GrpcBudgetServiceStub.java | 1 - .../reflect-config.json | 0 .../reflect-config.json | 0 .../v1/BudgetServiceClientHttpJsonTest.java | 0 .../budgets/v1/BudgetServiceClientTest.java | 0 .../billing/budgets/v1/MockBudgetService.java | 0 .../budgets/v1/MockBudgetServiceImpl.java | 0 .../v1beta1/BudgetServiceClientTest.java | 0 .../budgets/v1beta1/MockBudgetService.java | 0 .../v1beta1/MockBudgetServiceImpl.java | 0 .../billing/budgets/v1/BudgetServiceGrpc.java | 583 +++--- .../budgets/v1beta1/BudgetServiceGrpc.java | 604 ++++--- .../budgets/v1/BillingAccountName.java | 0 .../cloud/billing/budgets/v1/Budget.java | 1136 ++++++++---- .../billing/budgets/v1/BudgetAmount.java | 488 ++++-- .../budgets/v1/BudgetAmountOrBuilder.java | 34 +- .../billing/budgets/v1/BudgetModelProto.java | 234 +++ .../cloud/billing/budgets/v1/BudgetName.java | 0 .../billing/budgets/v1/BudgetOrBuilder.java | 143 +- .../budgets/v1/BudgetServiceProto.java | 199 +++ .../billing/budgets/v1/CalendarPeriod.java | 93 +- .../budgets/v1/CreateBudgetRequest.java | 495 ++++-- .../v1/CreateBudgetRequestOrBuilder.java | 97 + .../billing/budgets/v1/CustomPeriod.java | 404 +++-- .../budgets/v1/CustomPeriodOrBuilder.java | 34 +- .../budgets/v1/DeleteBudgetRequest.java | 350 ++-- .../v1/DeleteBudgetRequestOrBuilder.java | 56 + .../cloud/billing/budgets/v1/Filter.java | 1547 ++++++++++------ .../billing/budgets/v1/FilterOrBuilder.java | 213 ++- .../billing/budgets/v1/GetBudgetRequest.java | 347 ++-- .../budgets/v1/GetBudgetRequestOrBuilder.java | 56 + .../billing/budgets/v1/LastPeriodAmount.java | 245 +-- .../budgets/v1/LastPeriodAmountOrBuilder.java | 24 + .../budgets/v1/ListBudgetsRequest.java | 453 +++-- .../v1/ListBudgetsRequestOrBuilder.java | 47 +- .../budgets/v1/ListBudgetsResponse.java | 483 +++-- .../v1/ListBudgetsResponseOrBuilder.java | 45 +- .../billing/budgets/v1/NotificationsRule.java | 595 ++++--- .../v1/NotificationsRuleOrBuilder.java | 73 +- .../billing/budgets/v1/ThresholdRule.java | 444 +++-- .../budgets/v1/ThresholdRuleOrBuilder.java | 35 +- .../budgets/v1/UpdateBudgetRequest.java | 523 +++--- .../v1/UpdateBudgetRequestOrBuilder.java | 55 +- .../billing/budgets/v1/budget_model.proto | 0 .../billing/budgets/v1/budget_service.proto | 0 .../budgets/v1beta1/AllUpdatesRule.java | 643 ++++--- .../v1beta1/AllUpdatesRuleOrBuilder.java | 79 +- .../cloud/billing/budgets/v1beta1/Budget.java | 1154 ++++++++---- .../billing/budgets/v1beta1/BudgetAmount.java | 500 ++++-- .../v1beta1/BudgetAmountOrBuilder.java | 34 +- .../billing/budgets/v1beta1/BudgetModel.java | 239 +++ .../billing/budgets/v1beta1/BudgetName.java | 0 .../budgets/v1beta1/BudgetOrBuilder.java | 140 +- .../v1beta1/BudgetServiceOuterClass.java | 199 +++ .../budgets/v1beta1/CalendarPeriod.java | 93 +- .../budgets/v1beta1/CreateBudgetRequest.java | 502 ++++-- .../v1beta1/CreateBudgetRequestOrBuilder.java | 97 + .../billing/budgets/v1beta1/CustomPeriod.java | 407 +++-- .../v1beta1/CustomPeriodOrBuilder.java | 34 +- .../budgets/v1beta1/DeleteBudgetRequest.java | 360 ++-- .../v1beta1/DeleteBudgetRequestOrBuilder.java | 56 + .../cloud/billing/budgets/v1beta1/Filter.java | 1557 +++++++++++------ .../budgets/v1beta1/FilterOrBuilder.java | 213 ++- .../budgets/v1beta1/GetBudgetRequest.java | 350 ++-- .../v1beta1/GetBudgetRequestOrBuilder.java | 56 + .../budgets/v1beta1/LastPeriodAmount.java | 248 +-- .../v1beta1/LastPeriodAmountOrBuilder.java | 24 + .../budgets/v1beta1/ListBudgetsRequest.java | 527 +++--- .../v1beta1/ListBudgetsRequestOrBuilder.java | 56 +- .../budgets/v1beta1/ListBudgetsResponse.java | 494 +++--- .../v1beta1/ListBudgetsResponseOrBuilder.java | 45 +- .../budgets/v1beta1/ThresholdRule.java | 452 +++-- .../v1beta1/ThresholdRuleOrBuilder.java | 35 +- .../budgets/v1beta1/UpdateBudgetRequest.java | 530 +++--- .../v1beta1/UpdateBudgetRequestOrBuilder.java | 55 +- .../budgets/v1beta1/budget_model.proto | 0 .../budgets/v1beta1/budget_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbudget/AsyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 ...cCreateBudgetBillingaccountnameBudget.java | 0 .../SyncCreateBudgetStringBudget.java | 0 .../deletebudget/AsyncDeleteBudget.java | 0 .../deletebudget/SyncDeleteBudget.java | 0 .../SyncDeleteBudgetBudgetname.java | 0 .../deletebudget/SyncDeleteBudgetString.java | 0 .../getbudget/AsyncGetBudget.java | 0 .../getbudget/SyncGetBudget.java | 0 .../getbudget/SyncGetBudgetBudgetname.java | 0 .../getbudget/SyncGetBudgetString.java | 0 .../listbudgets/AsyncListBudgets.java | 0 .../listbudgets/AsyncListBudgetsPaged.java | 0 .../listbudgets/SyncListBudgets.java | 0 .../SyncListBudgetsBillingaccountname.java | 0 .../listbudgets/SyncListBudgetsString.java | 0 .../updatebudget/AsyncUpdateBudget.java | 0 .../updatebudget/SyncUpdateBudget.java | 0 .../SyncUpdateBudgetBudgetFieldmask.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbudget/AsyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../deletebudget/AsyncDeleteBudget.java | 0 .../deletebudget/SyncDeleteBudget.java | 0 .../getbudget/AsyncGetBudget.java | 0 .../getbudget/SyncGetBudget.java | 0 .../listbudgets/AsyncListBudgets.java | 0 .../listbudgets/AsyncListBudgetsPaged.java | 0 .../listbudgets/SyncListBudgets.java | 0 .../updatebudget/AsyncUpdateBudget.java | 0 .../updatebudget/SyncUpdateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../billing/budgets/v1/BudgetModelProto.java | 196 --- .../budgets/v1/BudgetServiceProto.java | 179 -- .../v1/CreateBudgetRequestOrBuilder.java | 58 - .../v1/DeleteBudgetRequestOrBuilder.java | 31 - .../budgets/v1/GetBudgetRequestOrBuilder.java | 31 - .../budgets/v1/LastPeriodAmountOrBuilder.java | 9 - .../billing/budgets/v1beta1/BudgetModel.java | 198 --- .../v1beta1/BudgetServiceOuterClass.java | 179 -- .../v1beta1/CreateBudgetRequestOrBuilder.java | 58 - .../v1beta1/DeleteBudgetRequestOrBuilder.java | 31 - .../v1beta1/GetBudgetRequestOrBuilder.java | 31 - .../v1beta1/LastPeriodAmountOrBuilder.java | 9 - 147 files changed, 12869 insertions(+), 7463 deletions(-) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java (99%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java (99%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java (99%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java (99%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java (52%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java (50%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java (67%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java (75%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java (83%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java (66%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java (70%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java (61%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java (73%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java (75%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java (63%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java (75%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java (82%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java (64%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java (65%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java (68%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java (62%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java (72%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java (69%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java (82%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java (87%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java (69%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java (55%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java (67%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java (67%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java (76%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java (81%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java (66%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java (74%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java (83%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java (66%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java (70%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java (60%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java (73%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java (75%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java (62%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java (75%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java (83%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java (63%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java (65%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java (72%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java (72%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java (71%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java (71%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java (68%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java (55%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java (66%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java (67%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java (100%) delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index 879c5d34c796..356b16074191 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.19.0 + 26.22.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java similarity index 99% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java index 226f074161e3..2c4366092d95 100644 --- a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java @@ -28,7 +28,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.budgets.v1.stub.BudgetServiceStubSettings; diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java similarity index 99% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java index 2faf2b586325..c0b7eae1f516 100644 --- a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java @@ -37,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java similarity index 99% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java index 54f7fab4ea61..a611a80c3bbe 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java @@ -27,7 +27,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.budgets.v1beta1.stub.BudgetServiceStubSettings; diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java similarity index 99% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java index 3fe00906ecd4..b0cd886f6b40 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java @@ -38,7 +38,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json b/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json rename to java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json b/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json rename to java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java diff --git a/owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java similarity index 52% rename from owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java rename to java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java index f9432bd17118..b9ff2840f9fc 100644 --- a/owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.billing.budgets.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * BudgetService stores Cloud Billing budgets, which define a
  * budget plan and rules to execute as we track spend against that plan.
@@ -19,206 +36,276 @@ private BudgetServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.billing.budgets.v1.BudgetService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getCreateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateBudget",
       requestType = com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateBudgetMethod() {
-    io.grpc.MethodDescriptor getCreateBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getCreateBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
+            com.google.cloud.billing.budgets.v1.Budget>
+        getCreateBudgetMethod;
     if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
-          BudgetServiceGrpc.getCreateBudgetMethod = getCreateBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
-              .build();
+          BudgetServiceGrpc.getCreateBudgetMethod =
+              getCreateBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.CreateBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
+                      .build();
         }
       }
     }
     return getCreateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getUpdateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateBudget",
       requestType = com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateBudgetMethod() {
-    io.grpc.MethodDescriptor getUpdateBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getUpdateBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
+            com.google.cloud.billing.budgets.v1.Budget>
+        getUpdateBudgetMethod;
     if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
-          BudgetServiceGrpc.getUpdateBudgetMethod = getUpdateBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
-              .build();
+          BudgetServiceGrpc.getUpdateBudgetMethod =
+              getUpdateBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.UpdateBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
+                      .build();
         }
       }
     }
     return getUpdateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.GetBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getGetBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetBudget",
       requestType = com.google.cloud.billing.budgets.v1.GetBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetBudgetMethod() {
-    io.grpc.MethodDescriptor getGetBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.GetBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getGetBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1.GetBudgetRequest,
+            com.google.cloud.billing.budgets.v1.Budget>
+        getGetBudgetMethod;
     if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
-          BudgetServiceGrpc.getGetBudgetMethod = getGetBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
-              .build();
+          BudgetServiceGrpc.getGetBudgetMethod =
+              getGetBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.GetBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
+                      .build();
         }
       }
     }
     return getGetBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListBudgetsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
+          com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
+      getListBudgetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListBudgets",
       requestType = com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListBudgetsMethod() {
-    io.grpc.MethodDescriptor getListBudgetsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
+          com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
+      getListBudgetsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
+            com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
+        getListBudgetsMethod;
     if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
-          BudgetServiceGrpc.getListBudgetsMethod = getListBudgetsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
-              .build();
+          BudgetServiceGrpc.getListBudgetsMethod =
+              getListBudgetsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.ListBudgetsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.ListBudgetsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
+                      .build();
         }
       }
     }
     return getListBudgetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
+      getDeleteBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteBudget",
       requestType = com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteBudgetMethod() {
-    io.grpc.MethodDescriptor getDeleteBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
+      getDeleteBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
+        getDeleteBudgetMethod;
     if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
-          BudgetServiceGrpc.getDeleteBudgetMethod = getDeleteBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
-              .build();
+          BudgetServiceGrpc.getDeleteBudgetMethod =
+              getDeleteBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.DeleteBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
+                      .build();
         }
       }
     }
     return getDeleteBudgetMethod;
   }
 
-  /**
-   * 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 BudgetServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceStub(channel, callOptions);
+          }
+        };
     return BudgetServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BudgetServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static BudgetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceBlockingStub(channel, callOptions);
+          }
+        };
     return BudgetServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static BudgetServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static BudgetServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceFutureStub(channel, callOptions);
+          }
+        };
     return BudgetServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -227,18 +314,24 @@ public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOpti
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - default void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, + default void createBudget( + com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBudgetMethod(), responseObserver); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -246,12 +339,16 @@ default void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetReques
      * this API will not be changed by this method.
      * 
*/ - default void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, + default void updateBudget( + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBudgetMethod(), responseObserver); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -260,12 +357,15 @@ default void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetReques
      * in the Cloud Console.
      * 
*/ - default void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request, + default void getBudget( + com.google.cloud.billing.budgets.v1.GetBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBudgetMethod(), responseObserver); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -274,39 +374,49 @@ default void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest requ
      * in the Cloud Console.
      * 
*/ - default void listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBudgetsMethod(), responseObserver); + default void listBudgets( + com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBudgetsMethod(), responseObserver); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - default void deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, + default void deleteBudget( + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBudgetMethod(), responseObserver); } } /** * Base class for the server implementation of the service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
    * 
*/ - public static abstract class BudgetServiceImplBase + public abstract static class BudgetServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return BudgetServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -314,31 +424,36 @@ public static abstract class BudgetServiceImplBase
    */
   public static final class BudgetServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private BudgetServiceStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected BudgetServiceStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected BudgetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new BudgetServiceStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, + public void createBudget( + com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -346,13 +461,18 @@ public void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest
      * this API will not be changed by this method.
      * 
*/ - public void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, + public void updateBudget( + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -361,13 +481,16 @@ public void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest
      * in the Cloud Console.
      * 
*/ - public void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request, + public void getBudget( + com.google.cloud.billing.budgets.v1.GetBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -376,26 +499,36 @@ public void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest reque
      * in the Cloud Console.
      * 
*/ - public void listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listBudgets( + com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListBudgetsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public void deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, + public void deleteBudget( + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -403,8 +536,7 @@ public void deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest
    */
   public static final class BudgetServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private BudgetServiceBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -415,18 +547,23 @@ protected BudgetServiceBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget createBudget( + com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -434,12 +571,15 @@ public com.google.cloud.billing.budgets.v1.Budget createBudget(com.google.cloud.
      * this API will not be changed by this method.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget updateBudget( + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -448,12 +588,15 @@ public com.google.cloud.billing.budgets.v1.Budget updateBudget(com.google.cloud.
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget getBudget( + com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -462,17 +605,21 @@ public com.google.cloud.billing.budgets.v1.Budget getBudget(com.google.cloud.bil
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1.ListBudgetsResponse listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { + public com.google.cloud.billing.budgets.v1.ListBudgetsResponse listBudgets( + com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBudgetsMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { + public com.google.protobuf.Empty deleteBudget( + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); } @@ -480,6 +627,7 @@ public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v /** * A stub to allow clients to do ListenableFuture-style rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -487,8 +635,7 @@ public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v
    */
   public static final class BudgetServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private BudgetServiceFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -499,19 +646,24 @@ protected BudgetServiceFutureStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createBudget( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.billing.budgets.v1.Budget> + createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -519,13 +671,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateBudget(
-        com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1.Budget>
+        updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -534,13 +689,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture getBudget(
-        com.google.cloud.billing.budgets.v1.GetBudgetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1.Budget>
+        getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -549,19 +707,22 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listBudgets(
-        com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
+        listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteBudget( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request); } @@ -573,11 +734,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -591,23 +752,32 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_BUDGET: - serviceImpl.createBudget((com.google.cloud.billing.budgets.v1.CreateBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.createBudget( + (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_BUDGET: - serviceImpl.updateBudget((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.updateBudget( + (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_BUDGET: - serviceImpl.getBudget((com.google.cloud.billing.budgets.v1.GetBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getBudget( + (com.google.cloud.billing.budgets.v1.GetBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_LIST_BUDGETS: - serviceImpl.listBudgets((com.google.cloud.billing.budgets.v1.ListBudgetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listBudgets( + (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_DELETE_BUDGET: - serviceImpl.deleteBudget((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) request, + serviceImpl.deleteBudget( + (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -629,45 +799,42 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.CreateBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>( - service, METHODID_CREATE_BUDGET))) + getCreateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.CreateBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_CREATE_BUDGET))) .addMethod( - getUpdateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>( - service, METHODID_UPDATE_BUDGET))) + getUpdateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_UPDATE_BUDGET))) .addMethod( - getGetBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.GetBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>( - service, METHODID_GET_BUDGET))) + getGetBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.GetBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_GET_BUDGET))) .addMethod( - getListBudgetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.ListBudgetsRequest, - com.google.cloud.billing.budgets.v1.ListBudgetsResponse>( - service, METHODID_LIST_BUDGETS))) + getListBudgetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.ListBudgetsRequest, + com.google.cloud.billing.budgets.v1.ListBudgetsResponse>( + service, METHODID_LIST_BUDGETS))) .addMethod( - getDeleteBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_BUDGET))) + getDeleteBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_BUDGET))) .build(); } - private static abstract class BudgetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class BudgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { BudgetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -709,14 +876,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BudgetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) - .addMethod(getCreateBudgetMethod()) - .addMethod(getUpdateBudgetMethod()) - .addMethod(getGetBudgetMethod()) - .addMethod(getListBudgetsMethod()) - .addMethod(getDeleteBudgetMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) + .addMethod(getCreateBudgetMethod()) + .addMethod(getUpdateBudgetMethod()) + .addMethod(getGetBudgetMethod()) + .addMethod(getListBudgetsMethod()) + .addMethod(getDeleteBudgetMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java similarity index 50% rename from owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java rename to java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java index 617511713473..27a4c429a154 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.billing.budgets.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * BudgetService stores Cloud Billing budgets, which define a
  * budget plan and rules to execute as we track spend against that plan.
@@ -19,206 +36,276 @@ private BudgetServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.billing.budgets.v1beta1.BudgetService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getCreateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateBudgetMethod() {
-    io.grpc.MethodDescriptor getCreateBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getCreateBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
+            com.google.cloud.billing.budgets.v1beta1.Budget>
+        getCreateBudgetMethod;
     if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
-          BudgetServiceGrpc.getCreateBudgetMethod = getCreateBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
-              .build();
+          BudgetServiceGrpc.getCreateBudgetMethod =
+              getCreateBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
+                      .build();
         }
       }
     }
     return getCreateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getUpdateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateBudgetMethod() {
-    io.grpc.MethodDescriptor getUpdateBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getUpdateBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
+            com.google.cloud.billing.budgets.v1beta1.Budget>
+        getUpdateBudgetMethod;
     if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
-          BudgetServiceGrpc.getUpdateBudgetMethod = getUpdateBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
-              .build();
+          BudgetServiceGrpc.getUpdateBudgetMethod =
+              getUpdateBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
+                      .build();
         }
       }
     }
     return getUpdateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getGetBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetBudgetMethod() {
-    io.grpc.MethodDescriptor getGetBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getGetBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
+            com.google.cloud.billing.budgets.v1beta1.Budget>
+        getGetBudgetMethod;
     if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
-          BudgetServiceGrpc.getGetBudgetMethod = getGetBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
-              .build();
+          BudgetServiceGrpc.getGetBudgetMethod =
+              getGetBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
+                      .build();
         }
       }
     }
     return getGetBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListBudgetsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
+          com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
+      getListBudgetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListBudgets",
       requestType = com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListBudgetsMethod() {
-    io.grpc.MethodDescriptor getListBudgetsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
+          com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
+      getListBudgetsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
+            com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
+        getListBudgetsMethod;
     if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
-          BudgetServiceGrpc.getListBudgetsMethod = getListBudgetsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
-              .build();
+          BudgetServiceGrpc.getListBudgetsMethod =
+              getListBudgetsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
+                      .build();
         }
       }
     }
     return getListBudgetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
+      getDeleteBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteBudgetMethod() {
-    io.grpc.MethodDescriptor getDeleteBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
+      getDeleteBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
+        getDeleteBudgetMethod;
     if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
-          BudgetServiceGrpc.getDeleteBudgetMethod = getDeleteBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
-              .build();
+          BudgetServiceGrpc.getDeleteBudgetMethod =
+              getDeleteBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
+                      .build();
         }
       }
     }
     return getDeleteBudgetMethod;
   }
 
-  /**
-   * 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 BudgetServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceStub(channel, callOptions);
+          }
+        };
     return BudgetServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BudgetServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static BudgetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceBlockingStub(channel, callOptions);
+          }
+        };
     return BudgetServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static BudgetServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static BudgetServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceFutureStub(channel, callOptions);
+          }
+        };
     return BudgetServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -227,18 +314,25 @@ public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOpti
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - default void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBudgetMethod(), responseObserver); + default void createBudget( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBudgetMethod(), responseObserver); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -246,12 +340,17 @@ default void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetR
      * this API will not be changed by this method.
      * 
*/ - default void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBudgetMethod(), responseObserver); + default void updateBudget( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBudgetMethod(), responseObserver); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -260,12 +359,16 @@ default void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetR
      * in the Cloud Console.
      * 
*/ - default void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + default void getBudget( + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBudgetMethod(), responseObserver); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -274,39 +377,49 @@ default void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest
      * in the Cloud Console.
      * 
*/ - default void listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBudgetsMethod(), responseObserver); + default void listBudgets( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBudgetsMethod(), responseObserver); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - default void deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, + default void deleteBudget( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBudgetMethod(), responseObserver); } } /** * Base class for the server implementation of the service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
    * 
*/ - public static abstract class BudgetServiceImplBase + public abstract static class BudgetServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return BudgetServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -314,31 +427,37 @@ public static abstract class BudgetServiceImplBase
    */
   public static final class BudgetServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private BudgetServiceStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected BudgetServiceStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected BudgetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new BudgetServiceStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createBudget( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -346,13 +465,19 @@ public void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRe
      * this API will not be changed by this method.
      * 
*/ - public void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateBudget( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -361,13 +486,17 @@ public void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRe
      * in the Cloud Console.
      * 
*/ - public void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getBudget( + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -376,26 +505,36 @@ public void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest
      * in the Cloud Console.
      * 
*/ - public void listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listBudgets( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListBudgetsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public void deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, + public void deleteBudget( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -403,8 +542,7 @@ public void deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRe
    */
   public static final class BudgetServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private BudgetServiceBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -415,18 +553,23 @@ protected BudgetServiceBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget createBudget( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -434,12 +577,15 @@ public com.google.cloud.billing.budgets.v1beta1.Budget createBudget(com.google.c
      * this API will not be changed by this method.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -448,12 +594,15 @@ public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget(com.google.c
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget getBudget( + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -462,17 +611,21 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget(com.google.clou
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { + public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse listBudgets( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBudgetsMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { + public com.google.protobuf.Empty deleteBudget( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); } @@ -480,6 +633,7 @@ public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v /** * A stub to allow clients to do ListenableFuture-style rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -487,8 +641,7 @@ public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v
    */
   public static final class BudgetServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private BudgetServiceFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -499,19 +652,24 @@ protected BudgetServiceFutureStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createBudget( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.billing.budgets.v1beta1.Budget> + createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -519,13 +677,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateBudget(
-        com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1beta1.Budget>
+        updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -534,13 +695,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture getBudget(
-        com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1beta1.Budget>
+        getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -549,19 +713,22 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listBudgets(
-        com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
+        listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteBudget( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request); } @@ -573,11 +740,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -591,23 +758,33 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_BUDGET: - serviceImpl.createBudget((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.createBudget( + (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_BUDGET: - serviceImpl.updateBudget((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.updateBudget( + (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_BUDGET: - serviceImpl.getBudget((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getBudget( + (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_LIST_BUDGETS: - serviceImpl.listBudgets((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listBudgets( + (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>) + responseObserver); break; case METHODID_DELETE_BUDGET: - serviceImpl.deleteBudget((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) request, + serviceImpl.deleteBudget( + (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -629,45 +806,44 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>( - service, METHODID_CREATE_BUDGET))) + getCreateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>( + service, METHODID_CREATE_BUDGET))) .addMethod( - getUpdateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>( - service, METHODID_UPDATE_BUDGET))) + getUpdateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>( + service, METHODID_UPDATE_BUDGET))) .addMethod( - getGetBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>( - service, METHODID_GET_BUDGET))) + getGetBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>(service, METHODID_GET_BUDGET))) .addMethod( - getListBudgetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>( - service, METHODID_LIST_BUDGETS))) + getListBudgetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>( + service, METHODID_LIST_BUDGETS))) .addMethod( - getDeleteBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_BUDGET))) + getDeleteBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_BUDGET))) .build(); } - private static abstract class BudgetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class BudgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { BudgetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -709,14 +885,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BudgetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) - .addMethod(getCreateBudgetMethod()) - .addMethod(getUpdateBudgetMethod()) - .addMethod(getGetBudgetMethod()) - .addMethod(getListBudgetsMethod()) - .addMethod(getDeleteBudgetMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) + .addMethod(getCreateBudgetMethod()) + .addMethod(getUpdateBudgetMethod()) + .addMethod(getGetBudgetMethod()) + .addMethod(getListBudgetsMethod()) + .addMethod(getDeleteBudgetMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java similarity index 67% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java index fd6004206b3d..cc9908d846ca 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * A budget is a plan that describes what you expect to spend on Cloud
  * projects, plus the rules to execute as spend is tracked against that plan,
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.Budget}
  */
-public final class Budget extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Budget extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.Budget)
     BudgetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Budget.newBuilder() to construct.
   private Budget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Budget() {
     name_ = "";
     displayName_ = "";
@@ -32,28 +50,32 @@ private Budget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Budget();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.Budget.class, com.google.cloud.billing.budgets.v1.Budget.Builder.class);
+            com.google.cloud.billing.budgets.v1.Budget.class,
+            com.google.cloud.billing.budgets.v1.Budget.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -69,14 +92,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -84,16 +108,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -102,15 +125,19 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -119,30 +146,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; } } /** + * + * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; + * * @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 { @@ -153,13 +180,18 @@ public java.lang.String getDisplayName() { public static final int BUDGET_FILTER_FIELD_NUMBER = 3; private com.google.cloud.billing.budgets.v1.Filter budgetFilter_; /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ @java.lang.Override @@ -167,41 +199,59 @@ public boolean hasBudgetFilter() { return budgetFilter_ != null; } /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter getBudgetFilter() { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() + : budgetFilter_; } /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder() { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() + : budgetFilter_; } public static final int AMOUNT_FIELD_NUMBER = 4; private com.google.cloud.billing.budgets.v1.BudgetAmount amount_; /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ @java.lang.Override @@ -209,33 +259,49 @@ public boolean hasAmount() { return amount_ != null; } /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmount getAmount() { - return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() + : amount_; } /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder() { - return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() + : amount_; } public static final int THRESHOLD_RULES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List thresholdRules_; /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -245,13 +311,17 @@ public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuil
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getThresholdRulesList() { return thresholdRules_; } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -261,14 +331,18 @@ public java.util.List getThre
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getThresholdRulesOrBuilderList() { return thresholdRules_; } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -278,13 +352,17 @@ public java.util.List getThre
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getThresholdRulesCount() { return thresholdRules_.size(); } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -294,13 +372,17 @@ public int getThresholdRulesCount() {
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index) { return thresholdRules_.get(index); } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -310,7 +392,9 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( @@ -321,12 +405,17 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu public static final int NOTIFICATIONS_RULE_FIELD_NUMBER = 6; private com.google.cloud.billing.budgets.v1.NotificationsRule notificationsRule_; /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the notificationsRule field is set. */ @java.lang.Override @@ -334,35 +423,52 @@ public boolean hasNotificationsRule() { return notificationsRule_ != null; } /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The notificationsRule. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule() { - return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; + return notificationsRule_ == null + ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() + : notificationsRule_; } /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder() { - return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; + public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder + getNotificationsRuleOrBuilder() { + return notificationsRule_ == null + ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() + : notificationsRule_; } public static final int ETAG_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -370,6 +476,7 @@ public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotific
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -378,14 +485,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -393,16 +501,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -411,6 +518,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -422,8 +530,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_); } @@ -461,20 +568,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (budgetFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBudgetFilter()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBudgetFilter()); } if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAmount()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAmount()); } for (int i = 0; i < thresholdRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, thresholdRules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, thresholdRules_.get(i)); } if (notificationsRule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getNotificationsRule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNotificationsRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); @@ -487,36 +590,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.budgets.v1.Budget)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.Budget other = (com.google.cloud.billing.budgets.v1.Budget) obj; + com.google.cloud.billing.budgets.v1.Budget other = + (com.google.cloud.billing.budgets.v1.Budget) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasBudgetFilter() != other.hasBudgetFilter()) return false; if (hasBudgetFilter()) { - if (!getBudgetFilter() - .equals(other.getBudgetFilter())) return false; + if (!getBudgetFilter().equals(other.getBudgetFilter())) return false; } if (hasAmount() != other.hasAmount()) return false; if (hasAmount()) { - if (!getAmount() - .equals(other.getAmount())) return false; + if (!getAmount().equals(other.getAmount())) return false; } - if (!getThresholdRulesList() - .equals(other.getThresholdRulesList())) return false; + if (!getThresholdRulesList().equals(other.getThresholdRulesList())) return false; if (hasNotificationsRule() != other.hasNotificationsRule()) return false; if (hasNotificationsRule()) { - if (!getNotificationsRule() - .equals(other.getNotificationsRule())) return false; + if (!getNotificationsRule().equals(other.getNotificationsRule())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -555,99 +652,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1.Budget parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1.Budget parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.Budget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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 budget is a plan that describes what you expect to spend on Cloud
    * projects, plus the rules to execute as spend is tracked against that plan,
@@ -658,33 +760,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.Budget}
    */
-  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.budgets.v1.Budget)
       com.google.cloud.billing.budgets.v1.BudgetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.Budget.class, com.google.cloud.billing.budgets.v1.Budget.Builder.class);
+              com.google.cloud.billing.budgets.v1.Budget.class,
+              com.google.cloud.billing.budgets.v1.Budget.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.Budget.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -718,9 +819,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
     }
 
     @java.lang.Override
@@ -739,9 +840,12 @@ public com.google.cloud.billing.budgets.v1.Budget build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.Budget buildPartial() {
-      com.google.cloud.billing.budgets.v1.Budget result = new com.google.cloud.billing.budgets.v1.Budget(this);
+      com.google.cloud.billing.budgets.v1.Budget result =
+          new com.google.cloud.billing.budgets.v1.Budget(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -767,19 +871,17 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Budget result) {
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.budgetFilter_ = budgetFilterBuilder_ == null
-            ? budgetFilter_
-            : budgetFilterBuilder_.build();
+        result.budgetFilter_ =
+            budgetFilterBuilder_ == null ? budgetFilter_ : budgetFilterBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.amount_ = amountBuilder_ == null
-            ? amount_
-            : amountBuilder_.build();
+        result.amount_ = amountBuilder_ == null ? amount_ : amountBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.notificationsRule_ = notificationsRuleBuilder_ == null
-            ? notificationsRule_
-            : notificationsRuleBuilder_.build();
+        result.notificationsRule_ =
+            notificationsRuleBuilder_ == null
+                ? notificationsRule_
+                : notificationsRuleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.etag_ = etag_;
@@ -790,38 +892,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Budget result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.budgets.v1.Budget) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.Budget)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.Budget) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -864,9 +967,10 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.Budget other) {
             thresholdRulesBuilder_ = null;
             thresholdRules_ = other.thresholdRules_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            thresholdRulesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getThresholdRulesFieldBuilder() : null;
+            thresholdRulesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getThresholdRulesFieldBuilder()
+                    : null;
           } else {
             thresholdRulesBuilder_.addAllMessages(other.thresholdRules_);
           }
@@ -906,61 +1010,64 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getBudgetFilterFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getAmountFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              com.google.cloud.billing.budgets.v1.ThresholdRule m =
-                  input.readMessage(
-                      com.google.cloud.billing.budgets.v1.ThresholdRule.parser(),
-                      extensionRegistry);
-              if (thresholdRulesBuilder_ == null) {
-                ensureThresholdRulesIsMutable();
-                thresholdRules_.add(m);
-              } else {
-                thresholdRulesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getNotificationsRuleFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getBudgetFilterFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.cloud.billing.budgets.v1.ThresholdRule m =
+                    input.readMessage(
+                        com.google.cloud.billing.budgets.v1.ThresholdRule.parser(),
+                        extensionRegistry);
+                if (thresholdRulesBuilder_ == null) {
+                  ensureThresholdRulesIsMutable();
+                  thresholdRules_.add(m);
+                } else {
+                  thresholdRulesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(
+                    getNotificationsRuleFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -970,10 +1077,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -981,13 +1091,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -996,6 +1106,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1003,15 +1115,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1019,6 +1130,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1026,18 +1139,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1045,6 +1162,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1054,6 +1172,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1061,12 +1181,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1076,19 +1198,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; + * * @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; @@ -1097,21 +1221,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; + * * @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 { @@ -1119,30 +1244,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1152,18 +1284,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1173,45 +1309,64 @@ public Builder setDisplayNameBytes( private com.google.cloud.billing.budgets.v1.Filter budgetFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder> budgetFilterBuilder_; + com.google.cloud.billing.budgets.v1.Filter, + com.google.cloud.billing.budgets.v1.Filter.Builder, + com.google.cloud.billing.budgets.v1.FilterOrBuilder> + budgetFilterBuilder_; /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ public boolean hasBudgetFilter() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ public com.google.cloud.billing.budgets.v1.Filter getBudgetFilter() { if (budgetFilterBuilder_ == null) { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() + : budgetFilter_; } else { return budgetFilterBuilder_.getMessage(); } } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) { if (budgetFilterBuilder_ == null) { @@ -1227,13 +1382,17 @@ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBudgetFilter( com.google.cloud.billing.budgets.v1.Filter.Builder builderForValue) { @@ -1247,19 +1406,23 @@ public Builder setBudgetFilter( return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) { if (budgetFilterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - budgetFilter_ != null && - budgetFilter_ != com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && budgetFilter_ != null + && budgetFilter_ != com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance()) { getBudgetFilterBuilder().mergeFrom(value); } else { budgetFilter_ = value; @@ -1272,13 +1435,17 @@ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1.Filter valu return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBudgetFilter() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1291,13 +1458,17 @@ public Builder clearBudgetFilter() { return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.Filter.Builder getBudgetFilterBuilder() { bitField0_ |= 0x00000004; @@ -1305,40 +1476,52 @@ public com.google.cloud.billing.budgets.v1.Filter.Builder getBudgetFilterBuilder return getBudgetFilterFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder() { if (budgetFilterBuilder_ != null) { return budgetFilterBuilder_.getMessageOrBuilder(); } else { - return budgetFilter_ == null ? - com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() + : budgetFilter_; } } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder> + com.google.cloud.billing.budgets.v1.Filter, + com.google.cloud.billing.budgets.v1.Filter.Builder, + com.google.cloud.billing.budgets.v1.FilterOrBuilder> getBudgetFilterFieldBuilder() { if (budgetFilterBuilder_ == null) { - budgetFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder>( - getBudgetFilter(), - getParentForChildren(), - isClean()); + budgetFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Filter, + com.google.cloud.billing.budgets.v1.Filter.Builder, + com.google.cloud.billing.budgets.v1.FilterOrBuilder>( + getBudgetFilter(), getParentForChildren(), isClean()); budgetFilter_ = null; } return budgetFilterBuilder_; @@ -1346,39 +1529,58 @@ public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuil private com.google.cloud.billing.budgets.v1.BudgetAmount amount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> amountBuilder_; + com.google.cloud.billing.budgets.v1.BudgetAmount, + com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> + amountBuilder_; /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ public boolean hasAmount() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ public com.google.cloud.billing.budgets.v1.BudgetAmount getAmount() { if (amountBuilder_ == null) { - return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() + : amount_; } else { return amountBuilder_.getMessage(); } } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) { if (amountBuilder_ == null) { @@ -1394,11 +1596,15 @@ public Builder setAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAmount( com.google.cloud.billing.budgets.v1.BudgetAmount.Builder builderForValue) { @@ -1412,17 +1618,21 @@ public Builder setAmount( return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) { if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - amount_ != null && - amount_ != com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && amount_ != null + && amount_ != com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) { getAmountBuilder().mergeFrom(value); } else { amount_ = value; @@ -1435,11 +1645,15 @@ public Builder mergeAmount(com.google.cloud.billing.budgets.v1.BudgetAmount valu return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1452,11 +1666,15 @@ public Builder clearAmount() { return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.BudgetAmount.Builder getAmountBuilder() { bitField0_ |= 0x00000008; @@ -1464,54 +1682,74 @@ public com.google.cloud.billing.budgets.v1.BudgetAmount.Builder getAmountBuilder return getAmountFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { - return amount_ == null ? - com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() + : amount_; } } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> + com.google.cloud.billing.budgets.v1.BudgetAmount, + com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder>( - getAmount(), - getParentForChildren(), - isClean()); + amountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.BudgetAmount, + com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder>( + getAmount(), getParentForChildren(), isClean()); amount_ = null; } return amountBuilder_; } private java.util.List thresholdRules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureThresholdRulesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - thresholdRules_ = new java.util.ArrayList(thresholdRules_); + thresholdRules_ = + new java.util.ArrayList( + thresholdRules_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> thresholdRulesBuilder_; + com.google.cloud.billing.budgets.v1.ThresholdRule, + com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> + thresholdRulesBuilder_; /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1521,9 +1759,12 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getThresholdRulesList() { + public java.util.List + getThresholdRulesList() { if (thresholdRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(thresholdRules_); } else { @@ -1531,6 +1772,8 @@ public java.util.List getThre } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1540,7 +1783,9 @@ public java.util.List getThre
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getThresholdRulesCount() { if (thresholdRulesBuilder_ == null) { @@ -1550,6 +1795,8 @@ public int getThresholdRulesCount() { } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1559,7 +1806,9 @@ public int getThresholdRulesCount() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1569,6 +1818,8 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1578,7 +1829,9 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule value) { @@ -1595,6 +1848,8 @@ public Builder setThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1604,7 +1859,9 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1618,6 +1875,8 @@ public Builder setThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1627,7 +1886,9 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRule value) { if (thresholdRulesBuilder_ == null) { @@ -1643,6 +1904,8 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRu return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1652,7 +1915,9 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRu
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule value) { @@ -1669,6 +1934,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1678,7 +1945,9 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1692,6 +1961,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1701,7 +1972,9 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1715,6 +1988,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1724,14 +1999,15 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllThresholdRules( java.lang.Iterable values) { if (thresholdRulesBuilder_ == null) { ensureThresholdRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, thresholdRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholdRules_); onChanged(); } else { thresholdRulesBuilder_.addAllMessages(values); @@ -1739,6 +2015,8 @@ public Builder addAllThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1748,7 +2026,9 @@ public Builder addAllThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearThresholdRules() { if (thresholdRulesBuilder_ == null) { @@ -1761,6 +2041,8 @@ public Builder clearThresholdRules() { return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1770,7 +2052,9 @@ public Builder clearThresholdRules() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1783,6 +2067,8 @@ public Builder removeThresholdRules(int index) { return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1792,13 +2078,17 @@ public Builder removeThresholdRules(int index) {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder getThresholdRulesBuilder( int index) { return getThresholdRulesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1808,16 +2098,21 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder getThresholdRul
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( int index) { if (thresholdRulesBuilder_ == null) { - return thresholdRules_.get(index); } else { + return thresholdRules_.get(index); + } else { return thresholdRulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1827,10 +2122,12 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getThresholdRulesOrBuilderList() { + public java.util.List + getThresholdRulesOrBuilderList() { if (thresholdRulesBuilder_ != null) { return thresholdRulesBuilder_.getMessageOrBuilderList(); } else { @@ -1838,6 +2135,8 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1847,13 +2146,17 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRulesBuilder() { - return getThresholdRulesFieldBuilder().addBuilder( - com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder() + .addBuilder(com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1863,14 +2166,19 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRulesBuilder( int index) { - return getThresholdRulesFieldBuilder().addBuilder( - index, com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder() + .addBuilder( + index, com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1880,18 +2188,26 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getThresholdRulesBuilderList() { + public java.util.List + getThresholdRulesBuilderList() { return getThresholdRulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> + com.google.cloud.billing.budgets.v1.ThresholdRule, + com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> getThresholdRulesFieldBuilder() { if (thresholdRulesBuilder_ == null) { - thresholdRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder>( + thresholdRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1.ThresholdRule, + com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder>( thresholdRules_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -1903,44 +2219,64 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul private com.google.cloud.billing.budgets.v1.NotificationsRule notificationsRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> notificationsRuleBuilder_; + com.google.cloud.billing.budgets.v1.NotificationsRule, + com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, + com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> + notificationsRuleBuilder_; /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the notificationsRule field is set. */ public boolean hasNotificationsRule() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The notificationsRule. */ public com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule() { if (notificationsRuleBuilder_ == null) { - return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; + return notificationsRule_ == null + ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() + : notificationsRule_; } else { return notificationsRuleBuilder_.getMessage(); } } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setNotificationsRule(com.google.cloud.billing.budgets.v1.NotificationsRule value) { + public Builder setNotificationsRule( + com.google.cloud.billing.budgets.v1.NotificationsRule value) { if (notificationsRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1954,12 +2290,16 @@ public Builder setNotificationsRule(com.google.cloud.billing.budgets.v1.Notifica return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNotificationsRule( com.google.cloud.billing.budgets.v1.NotificationsRule.Builder builderForValue) { @@ -1973,18 +2313,24 @@ public Builder setNotificationsRule( return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeNotificationsRule(com.google.cloud.billing.budgets.v1.NotificationsRule value) { + public Builder mergeNotificationsRule( + com.google.cloud.billing.budgets.v1.NotificationsRule value) { if (notificationsRuleBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - notificationsRule_ != null && - notificationsRule_ != com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && notificationsRule_ != null + && notificationsRule_ + != com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) { getNotificationsRuleBuilder().mergeFrom(value); } else { notificationsRule_ = value; @@ -1997,12 +2343,16 @@ public Builder mergeNotificationsRule(com.google.cloud.billing.budgets.v1.Notifi return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNotificationsRule() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2015,51 +2365,69 @@ public Builder clearNotificationsRule() { return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1.NotificationsRule.Builder getNotificationsRuleBuilder() { + public com.google.cloud.billing.budgets.v1.NotificationsRule.Builder + getNotificationsRuleBuilder() { bitField0_ |= 0x00000020; onChanged(); return getNotificationsRuleFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder() { + public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder + getNotificationsRuleOrBuilder() { if (notificationsRuleBuilder_ != null) { return notificationsRuleBuilder_.getMessageOrBuilder(); } else { - return notificationsRule_ == null ? - com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; + return notificationsRule_ == null + ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() + : notificationsRule_; } } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> + com.google.cloud.billing.budgets.v1.NotificationsRule, + com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, + com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> getNotificationsRuleFieldBuilder() { if (notificationsRuleBuilder_ == null) { - notificationsRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder>( - getNotificationsRule(), - getParentForChildren(), - isClean()); + notificationsRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.NotificationsRule, + com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, + com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder>( + getNotificationsRule(), getParentForChildren(), isClean()); notificationsRule_ = null; } return notificationsRuleBuilder_; @@ -2067,6 +2435,8 @@ public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotific private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2074,13 +2444,13 @@ public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotific
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -2089,6 +2459,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2096,15 +2468,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -2112,6 +2483,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2119,18 +2492,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2138,6 +2515,7 @@ public Builder setEtag(
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2147,6 +2525,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2154,21 +2534,23 @@ public Builder clearEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000040; 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); } @@ -2178,12 +2560,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.Budget) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.Budget) private static final com.google.cloud.billing.budgets.v1.Budget DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.Budget(); } @@ -2192,27 +2574,27 @@ public static com.google.cloud.billing.budgets.v1.Budget getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Budget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Budget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2227,6 +2609,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.Budget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java similarity index 75% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java index 8a191ce5a0fc..a020eaa55bb5 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java @@ -1,57 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * The budgeted amount for each usage period.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.BudgetAmount} */ -public final class BudgetAmount extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BudgetAmount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.BudgetAmount) BudgetAmountOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BudgetAmount.newBuilder() to construct. private BudgetAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BudgetAmount() { - } + + private BudgetAmount() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BudgetAmount(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.BudgetAmount.class, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1.BudgetAmount.class, + com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); } private int budgetAmountCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object budgetAmount_; + public enum BudgetAmountCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SPECIFIED_AMOUNT(1), LAST_PERIOD_AMOUNT(2), BUDGETAMOUNT_NOT_SET(0); private final int value; + private BudgetAmountCase(int value) { this.value = value; } @@ -67,25 +89,30 @@ public static BudgetAmountCase valueOf(int value) { public static BudgetAmountCase forNumber(int value) { switch (value) { - case 1: return SPECIFIED_AMOUNT; - case 2: return LAST_PERIOD_AMOUNT; - case 0: return BUDGETAMOUNT_NOT_SET; - default: return null; + case 1: + return SPECIFIED_AMOUNT; + case 2: + return LAST_PERIOD_AMOUNT; + case 0: + return BUDGETAMOUNT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public BudgetAmountCase - getBudgetAmountCase() { - return BudgetAmountCase.forNumber( - budgetAmountCase_); + public BudgetAmountCase getBudgetAmountCase() { + return BudgetAmountCase.forNumber(budgetAmountCase_); } public static final int SPECIFIED_AMOUNT_FIELD_NUMBER = 1; /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -95,6 +122,7 @@ public int getNumber() {
    * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -102,6 +130,8 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -111,16 +141,19 @@ public boolean hasSpecifiedAmount() {
    * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ @java.lang.Override public com.google.type.Money getSpecifiedAmount() { if (budgetAmountCase_ == 1) { - return (com.google.type.Money) budgetAmount_; + return (com.google.type.Money) budgetAmount_; } return com.google.type.Money.getDefaultInstance(); } /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -134,13 +167,15 @@ public com.google.type.Money getSpecifiedAmount() {
   @java.lang.Override
   public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     if (budgetAmountCase_ == 1) {
-       return (com.google.type.Money) budgetAmount_;
+      return (com.google.type.Money) budgetAmount_;
     }
     return com.google.type.Money.getDefaultInstance();
   }
 
   public static final int LAST_PERIOD_AMOUNT_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -150,6 +185,7 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -157,6 +193,8 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -166,16 +204,19 @@ public boolean hasLastPeriodAmount() {
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount() { if (budgetAmountCase_ == 2) { - return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_; + return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_; } return com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance(); } /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -187,14 +228,16 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount(
    * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
    */
   @java.lang.Override
-  public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
+  public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder
+      getLastPeriodAmountOrBuilder() {
     if (budgetAmountCase_ == 2) {
-       return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_;
+      return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_;
     }
     return com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,8 +249,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 (budgetAmountCase_ == 1) {
       output.writeMessage(1, (com.google.type.Money) budgetAmount_);
     }
@@ -224,12 +266,14 @@ public int getSerializedSize() {
 
     size = 0;
     if (budgetAmountCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.type.Money) budgetAmount_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -239,22 +283,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.budgets.v1.BudgetAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.BudgetAmount other = (com.google.cloud.billing.budgets.v1.BudgetAmount) obj;
+    com.google.cloud.billing.budgets.v1.BudgetAmount other =
+        (com.google.cloud.billing.budgets.v1.BudgetAmount) obj;
 
     if (!getBudgetAmountCase().equals(other.getBudgetAmountCase())) return false;
     switch (budgetAmountCase_) {
       case 1:
-        if (!getSpecifiedAmount()
-            .equals(other.getSpecifiedAmount())) return false;
+        if (!getSpecifiedAmount().equals(other.getSpecifiedAmount())) return false;
         break;
       case 2:
-        if (!getLastPeriodAmount()
-            .equals(other.getLastPeriodAmount())) return false;
+        if (!getLastPeriodAmount().equals(other.getLastPeriodAmount())) return false;
         break;
       case 0:
       default:
@@ -287,132 +330,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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;
   }
   /**
+   *
+   *
    * 
    * The budgeted amount for each usage period.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.BudgetAmount} */ - 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.budgets.v1.BudgetAmount) com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.BudgetAmount.class, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1.BudgetAmount.class, + com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.BudgetAmount.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override @@ -450,8 +497,11 @@ public com.google.cloud.billing.budgets.v1.BudgetAmount build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmount buildPartial() { - com.google.cloud.billing.budgets.v1.BudgetAmount result = new com.google.cloud.billing.budgets.v1.BudgetAmount(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.BudgetAmount result = + new com.google.cloud.billing.budgets.v1.BudgetAmount(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -464,12 +514,10 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.BudgetAmount resu private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.BudgetAmount result) { result.budgetAmountCase_ = budgetAmountCase_; result.budgetAmount_ = this.budgetAmount_; - if (budgetAmountCase_ == 1 && - specifiedAmountBuilder_ != null) { + if (budgetAmountCase_ == 1 && specifiedAmountBuilder_ != null) { result.budgetAmount_ = specifiedAmountBuilder_.build(); } - if (budgetAmountCase_ == 2 && - lastPeriodAmountBuilder_ != null) { + if (budgetAmountCase_ == 2 && lastPeriodAmountBuilder_ != null) { result.budgetAmount_ = lastPeriodAmountBuilder_.build(); } } @@ -478,38 +526,39 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount) { - return mergeFrom((com.google.cloud.billing.budgets.v1.BudgetAmount)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.BudgetAmount) other); } else { super.mergeFrom(other); return this; @@ -517,19 +566,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.BudgetAmount other) { - if (other == com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) + return this; switch (other.getBudgetAmountCase()) { - case SPECIFIED_AMOUNT: { - mergeSpecifiedAmount(other.getSpecifiedAmount()); - break; - } - case LAST_PERIOD_AMOUNT: { - mergeLastPeriodAmount(other.getLastPeriodAmount()); - break; - } - case BUDGETAMOUNT_NOT_SET: { - break; - } + case SPECIFIED_AMOUNT: + { + mergeSpecifiedAmount(other.getSpecifiedAmount()); + break; + } + case LAST_PERIOD_AMOUNT: + { + mergeLastPeriodAmount(other.getLastPeriodAmount()); + break; + } + case BUDGETAMOUNT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -557,26 +610,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSpecifiedAmountFieldBuilder().getBuilder(), - extensionRegistry); - budgetAmountCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getLastPeriodAmountFieldBuilder().getBuilder(), - extensionRegistry); - budgetAmountCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSpecifiedAmountFieldBuilder().getBuilder(), extensionRegistry); + budgetAmountCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getLastPeriodAmountFieldBuilder().getBuilder(), extensionRegistry); + budgetAmountCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -586,12 +639,12 @@ public Builder mergeFrom( } // finally return this; } + private int budgetAmountCase_ = 0; private java.lang.Object budgetAmount_; - public BudgetAmountCase - getBudgetAmountCase() { - return BudgetAmountCase.forNumber( - budgetAmountCase_); + + public BudgetAmountCase getBudgetAmountCase() { + return BudgetAmountCase.forNumber(budgetAmountCase_); } public Builder clearBudgetAmount() { @@ -604,8 +657,11 @@ public Builder clearBudgetAmount() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> specifiedAmountBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + specifiedAmountBuilder_; /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -615,6 +671,7 @@ public Builder clearBudgetAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -622,6 +679,8 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -631,6 +690,7 @@ public boolean hasSpecifiedAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ @java.lang.Override @@ -648,6 +708,8 @@ public com.google.type.Money getSpecifiedAmount() { } } /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -672,6 +734,8 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -682,8 +746,7 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
      *
      * .google.type.Money specified_amount = 1;
      */
-    public Builder setSpecifiedAmount(
-        com.google.type.Money.Builder builderForValue) {
+    public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue) {
       if (specifiedAmountBuilder_ == null) {
         budgetAmount_ = builderForValue.build();
         onChanged();
@@ -694,6 +757,8 @@ public Builder setSpecifiedAmount(
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -706,10 +771,11 @@ public Builder setSpecifiedAmount(
      */
     public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       if (specifiedAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 1 &&
-            budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
-          budgetAmount_ = com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
-              .mergeFrom(value).buildPartial();
+        if (budgetAmountCase_ == 1 && budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
+          budgetAmount_ =
+              com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -725,6 +791,8 @@ public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -752,6 +820,8 @@ public Builder clearSpecifiedAmount() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -766,6 +836,8 @@ public com.google.type.Money.Builder getSpecifiedAmountBuilder() {
       return getSpecifiedAmountFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -788,6 +860,8 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -799,17 +873,18 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * .google.type.Money specified_amount = 1;
      */
     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>
         getSpecifiedAmountFieldBuilder() {
       if (specifiedAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 1)) {
           budgetAmount_ = com.google.type.Money.getDefaultInstance();
         }
-        specifiedAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
-                (com.google.type.Money) budgetAmount_,
-                getParentForChildren(),
-                isClean());
+        specifiedAmountBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Money,
+                com.google.type.Money.Builder,
+                com.google.type.MoneyOrBuilder>(
+                (com.google.type.Money) budgetAmount_, getParentForChildren(), isClean());
         budgetAmount_ = null;
       }
       budgetAmountCase_ = 1;
@@ -818,8 +893,13 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder> lastPeriodAmountBuilder_;
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount,
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
+            com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>
+        lastPeriodAmountBuilder_;
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -829,6 +909,7 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -836,6 +917,8 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** + * + * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -845,6 +928,7 @@ public boolean hasLastPeriodAmount() {
      * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ @java.lang.Override @@ -862,6 +946,8 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount( } } /** + * + * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -886,6 +972,8 @@ public Builder setLastPeriodAmount(com.google.cloud.billing.budgets.v1.LastPerio
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -908,6 +996,8 @@ public Builder setLastPeriodAmount(
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -918,12 +1008,17 @@ public Builder setLastPeriodAmount(
      *
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1.LastPeriodAmount value) {
+    public Builder mergeLastPeriodAmount(
+        com.google.cloud.billing.budgets.v1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 2 &&
-            budgetAmount_ != com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) {
-          budgetAmount_ = com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder((com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_)
-              .mergeFrom(value).buildPartial();
+        if (budgetAmountCase_ == 2
+            && budgetAmount_
+                != com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) {
+          budgetAmount_ =
+              com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder(
+                      (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -939,6 +1034,8 @@ public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1.LastPer
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -966,6 +1063,8 @@ public Builder clearLastPeriodAmount() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -976,10 +1075,13 @@ public Builder clearLastPeriodAmount() {
      *
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
-    public com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder getLastPeriodAmountBuilder() {
+    public com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder
+        getLastPeriodAmountBuilder() {
       return getLastPeriodAmountFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -991,7 +1093,8 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder getLastPerio
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
     @java.lang.Override
-    public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
+    public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder
+        getLastPeriodAmountOrBuilder() {
       if ((budgetAmountCase_ == 2) && (lastPeriodAmountBuilder_ != null)) {
         return lastPeriodAmountBuilder_.getMessageOrBuilder();
       } else {
@@ -1002,6 +1105,8 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeri
       }
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1013,14 +1118,19 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeri
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder> 
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount,
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
+            com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>
         getLastPeriodAmountFieldBuilder() {
       if (lastPeriodAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 2)) {
           budgetAmount_ = com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance();
         }
-        lastPeriodAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>(
+        lastPeriodAmountBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.billing.budgets.v1.LastPeriodAmount,
+                com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
+                com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>(
                 (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_,
                 getParentForChildren(),
                 isClean());
@@ -1030,9 +1140,9 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeri
       onChanged();
       return lastPeriodAmountBuilder_;
     }
+
     @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);
     }
 
@@ -1042,12 +1152,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.BudgetAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.BudgetAmount)
   private static final com.google.cloud.billing.budgets.v1.BudgetAmount DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.BudgetAmount();
   }
@@ -1056,27 +1166,27 @@ public static com.google.cloud.billing.budgets.v1.BudgetAmount getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BudgetAmount parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BudgetAmount parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1091,6 +1201,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.BudgetAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
index 4df69f28b1b1..a85cbf0038c9 100644
--- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface BudgetAmountOrBuilder extends
+public interface BudgetAmountOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.BudgetAmount)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -17,10 +35,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ boolean hasSpecifiedAmount(); /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -30,10 +51,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ com.google.type.Money getSpecifiedAmount(); /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -47,6 +71,8 @@ public interface BudgetAmountOrBuilder extends
   com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder();
 
   /**
+   *
+   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -56,10 +82,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ boolean hasLastPeriodAmount(); /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -69,10 +98,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount(); /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java
new file mode 100644
index 000000000000..029f1cb39e74
--- /dev/null
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java
@@ -0,0 +1,234 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1;
+
+public final class BudgetModelProto {
+  private BudgetModelProto() {}
+
+  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_budgets_v1_Budget_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_Filter_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n2google/cloud/billing/budgets/v1/budget"
+          + "_model.proto\022\037google.cloud.billing.budge"
+          + "ts.v1\032\037google/api/field_behavior.proto\032\031"
+          + "google/api/resource.proto\032\034google/protob"
+          + "uf/struct.proto\032\026google/type/date.proto\032"
+          + "\027google/type/money.proto\"\325\003\n\006Budget\022\022\n\004n"
+          + "ame\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\002 \001(\t\022D\n"
+          + "\rbudget_filter\030\003 \001(\0132\'.google.cloud.bill"
+          + "ing.budgets.v1.FilterB\004\342A\001\001\022C\n\006amount\030\004 "
+          + "\001(\0132-.google.cloud.billing.budgets.v1.Bu"
+          + "dgetAmountB\004\342A\001\002\022M\n\017threshold_rules\030\005 \003("
+          + "\0132..google.cloud.billing.budgets.v1.Thre"
+          + "sholdRuleB\004\342A\001\001\022T\n\022notifications_rule\030\006 "
+          + "\001(\01322.google.cloud.billing.budgets.v1.No"
+          + "tificationsRuleB\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001"
+          + "\001:]\352AZ\n$billingbudgets.googleapis.com/Bu"
+          + "dget\0222billingAccounts/{billing_account}/"
+          + "budgets/{budget}\"\240\001\n\014BudgetAmount\022.\n\020spe"
+          + "cified_amount\030\001 \001(\0132\022.google.type.MoneyH"
+          + "\000\022O\n\022last_period_amount\030\002 \001(\01321.google.c"
+          + "loud.billing.budgets.v1.LastPeriodAmount"
+          + "H\000B\017\n\rbudget_amount\"\022\n\020LastPeriodAmount\""
+          + "\312\001\n\rThresholdRule\022\037\n\021threshold_percent\030\001"
+          + " \001(\001B\004\342A\001\002\022O\n\013spend_basis\030\002 \001(\01624.google"
+          + ".cloud.billing.budgets.v1.ThresholdRule."
+          + "BasisB\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIE"
+          + "D\020\000\022\021\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPE"
+          + "ND\020\002\"\253\001\n\021NotificationsRule\022\032\n\014pubsub_top"
+          + "ic\030\001 \001(\tB\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004"
+          + "\342A\001\001\022.\n monitoring_notification_channels"
+          + "\030\003 \003(\tB\004\342A\001\001\022,\n\036disable_default_iam_reci"
+          + "pients\030\004 \001(\010B\004\342A\001\001\"\315\005\n\006Filter\022\026\n\010project"
+          + "s\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003("
+          + "\tB\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022b\n\026c"
+          + "redit_types_treatment\030\004 \001(\0162<.google.clo"
+          + "ud.billing.budgets.v1.Filter.CreditTypes"
+          + "TreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342A\001\001\022"
+          + "\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022I\n\006labels\030\006 \003"
+          + "(\01323.google.cloud.billing.budgets.v1.Fil"
+          + "ter.LabelsEntryB\004\342A\001\001\022P\n\017calendar_period"
+          + "\030\010 \001(\0162/.google.cloud.billing.budgets.v1"
+          + ".CalendarPeriodB\004\342A\001\001H\000\022L\n\rcustom_period"
+          + "\030\t \001(\0132-.google.cloud.billing.budgets.v1"
+          + ".CustomPeriodB\004\342A\001\001H\000\032I\n\013LabelsEntry\022\013\n\003"
+          + "key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.protob"
+          + "uf.ListValue:\0028\001\"\217\001\n\024CreditTypesTreatmen"
+          + "t\022&\n\"CREDIT_TYPES_TREATMENT_UNSPECIFIED\020"
+          + "\000\022\027\n\023INCLUDE_ALL_CREDITS\020\001\022\027\n\023EXCLUDE_AL"
+          + "L_CREDITS\020\002\022\035\n\031INCLUDE_SPECIFIED_CREDITS"
+          + "\020\003B\016\n\014usage_period\"f\n\014CustomPeriod\022+\n\nst"
+          + "art_date\030\001 \001(\0132\021.google.type.DateB\004\342A\001\002\022"
+          + ")\n\010end_date\030\002 \001(\0132\021.google.type.DateB\004\342A"
+          + "\001\001*S\n\016CalendarPeriod\022\037\n\033CALENDAR_PERIOD_"
+          + "UNSPECIFIED\020\000\022\t\n\005MONTH\020\001\022\013\n\007QUARTER\020\002\022\010\n"
+          + "\004YEAR\020\003Bx\n#com.google.cloud.billing.budg"
+          + "ets.v1B\020BudgetModelProtoP\001Z=cloud.google"
+          + ".com/go/billing/budgets/apiv1/budgetspb;"
+          + "budgetspbb\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.protobuf.StructProto.getDescriptor(),
+              com.google.type.DateProto.getDescriptor(),
+              com.google.type.MoneyProto.getDescriptor(),
+            });
+    internal_static_google_cloud_billing_budgets_v1_Budget_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_Budget_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "DisplayName",
+              "BudgetFilter",
+              "Amount",
+              "ThresholdRules",
+              "NotificationsRule",
+              "Etag",
+            });
+    internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor,
+            new java.lang.String[] {
+              "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount",
+            });
+    internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor,
+            new java.lang.String[] {});
+    internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor,
+            new java.lang.String[] {
+              "ThresholdPercent", "SpendBasis",
+            });
+    internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor,
+            new java.lang.String[] {
+              "PubsubTopic",
+              "SchemaVersion",
+              "MonitoringNotificationChannels",
+              "DisableDefaultIamRecipients",
+            });
+    internal_static_google_cloud_billing_budgets_v1_Filter_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_Filter_descriptor,
+            new java.lang.String[] {
+              "Projects",
+              "ResourceAncestors",
+              "CreditTypes",
+              "CreditTypesTreatment",
+              "Services",
+              "Subaccounts",
+              "Labels",
+              "CalendarPeriod",
+              "CustomPeriod",
+              "UsagePeriod",
+            });
+    internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor =
+        internal_static_google_cloud_billing_budgets_v1_Filter_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor,
+            new java.lang.String[] {
+              "StartDate", "EndDate",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.type.DateProto.getDescriptor();
+    com.google.type.MoneyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
similarity index 100%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
similarity index 66%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
index f3693adf8d87..0d257e227b36 100644
--- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface BudgetOrBuilder extends
+public interface BudgetOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.Budget)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -15,10 +33,13 @@ public interface BudgetOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -26,94 +47,129 @@ public interface BudgetOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ boolean hasBudgetFilter(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ com.google.cloud.billing.budgets.v1.Filter getBudgetFilter(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ boolean hasAmount(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ com.google.cloud.billing.budgets.v1.BudgetAmount getAmount(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -123,11 +179,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getThresholdRulesList(); + java.util.List getThresholdRulesList(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -137,10 +196,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -150,10 +213,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getThresholdRulesCount(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -163,11 +230,15 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getThresholdRulesOrBuilderList(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -177,42 +248,59 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( - int index); + com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder(int index); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the notificationsRule field is set. */ boolean hasNotificationsRule(); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The notificationsRule. */ com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule(); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder(); /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -220,10 +308,13 @@ com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBu
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -231,8 +322,8 @@ com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBu
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java new file mode 100644 index 000000000000..8e2f0bfff4e7 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java @@ -0,0 +1,199 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public final class BudgetServiceProto { + private BudgetServiceProto() {} + + 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_budgets_v1_CreateBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/billing/budgets/v1/budget" + + "_service.proto\022\037google.cloud.billing.bud" + + "gets.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\0322google/cloud/billing/budgets/v1/budg" + + "et_model.proto\032\033google/protobuf/empty.pr" + + "oto\032 google/protobuf/field_mask.proto\"\223\001" + + "\n\023CreateBudgetRequest\022=\n\006parent\030\001 \001(\tB-\342" + + "A\001\002\372A&\022$billingbudgets.googleapis.com/Bu" + + "dget\022=\n\006budget\030\002 \001(\0132\'.google.cloud.bill" + + "ing.budgets.v1.BudgetB\004\342A\001\002\"\213\001\n\023UpdateBu" + + "dgetRequest\022=\n\006budget\030\001 \001(\0132\'.google.clo" + + "ud.billing.budgets.v1.BudgetB\004\342A\001\002\0225\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\004\342A\001\001\"O\n\020GetBudgetRequest\022;\n\004name\030\001 " + + "\001(\tB-\342A\001\002\372A&\n$billingbudgets.googleapis." + + "com/Budget\"\206\001\n\022ListBudgetsRequest\022=\n\006par" + + "ent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.googl" + + "eapis.com/Budget\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001" + + "\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"h\n\023ListBudge" + + "tsResponse\0228\n\007budgets\030\001 \003(\0132\'.google.clo" + + "ud.billing.budgets.v1.Budget\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"R\n\023DeleteBudgetRequest\022;\n\004" + + "name\030\001 \001(\tB-\342A\001\002\372A&\n$billingbudgets.goog" + + "leapis.com/Budget2\367\007\n\rBudgetService\022\265\001\n\014" + + "CreateBudget\0224.google.cloud.billing.budg" + + "ets.v1.CreateBudgetRequest\032\'.google.clou" + + "d.billing.budgets.v1.Budget\"F\332A\rparent,b" + + "udget\202\323\344\223\0020\"&/v1/{parent=billingAccounts" + + "/*}/budgets:\006budget\022\301\001\n\014UpdateBudget\0224.g" + + "oogle.cloud.billing.budgets.v1.UpdateBud" + + "getRequest\032\'.google.cloud.billing.budget" + + "s.v1.Budget\"R\332A\022budget,update_mask\202\323\344\223\0027" + + "2-/v1/{budget.name=billingAccounts/*/bud" + + "gets/*}:\006budget\022\236\001\n\tGetBudget\0221.google.c" + + "loud.billing.budgets.v1.GetBudgetRequest" + + "\032\'.google.cloud.billing.budgets.v1.Budge" + + "t\"5\332A\004name\202\323\344\223\002(\022&/v1/{name=billingAccou" + + "nts/*/budgets/*}\022\261\001\n\013ListBudgets\0223.googl" + + "e.cloud.billing.budgets.v1.ListBudgetsRe" + + "quest\0324.google.cloud.billing.budgets.v1." + + "ListBudgetsResponse\"7\332A\006parent\202\323\344\223\002(\022&/v" + + "1/{parent=billingAccounts/*}/budgets\022\223\001\n" + + "\014DeleteBudget\0224.google.cloud.billing.bud" + + "gets.v1.DeleteBudgetRequest\032\026.google.pro" + + "tobuf.Empty\"5\332A\004name\202\323\344\223\002(*&/v1/{name=bi" + + "llingAccounts/*/budgets/*}\032\177\312A\035billingbu" + + "dgets.googleapis.com\322A\\https://www.googl" + + "eapis.com/auth/cloud-billing,https://www" + + ".googleapis.com/auth/cloud-platformBz\n#c" + + "om.google.cloud.billing.budgets.v1B\022Budg" + + "etServiceProtoP\001Z=cloud.google.com/go/bi" + + "lling/budgets/apiv1/budgetspb;budgetspbb" + + "\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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor, + new java.lang.String[] { + "Parent", "Budget", + }); + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor, + new java.lang.String[] { + "Budget", "UpdateMask", + }); + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor, + new java.lang.String[] { + "Budgets", "NextPageToken", + }); + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java similarity index 70% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java index 33880f22bcab..491c95765080 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * A `CalendarPeriod` represents the abstract concept of a time period that
  * has a canonical start. Grammatically, "the start of the current
@@ -13,9 +30,10 @@
  *
  * Protobuf enum {@code google.cloud.billing.budgets.v1.CalendarPeriod}
  */
-public enum CalendarPeriod
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -25,6 +43,8 @@ public enum CalendarPeriod
    */
   CALENDAR_PERIOD_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -34,6 +54,8 @@ public enum CalendarPeriod
    */
   MONTH(1),
   /**
+   *
+   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -43,6 +65,8 @@ public enum CalendarPeriod
    */
   QUARTER(2),
   /**
+   *
+   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -54,6 +78,8 @@ public enum CalendarPeriod ; /** + * + * *
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -63,6 +89,8 @@ public enum CalendarPeriod
    */
   public static final int CALENDAR_PERIOD_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -72,6 +100,8 @@ public enum CalendarPeriod
    */
   public static final int MONTH_VALUE = 1;
   /**
+   *
+   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -81,6 +111,8 @@ public enum CalendarPeriod
    */
   public static final int QUARTER_VALUE = 2;
   /**
+   *
+   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -89,7 +121,6 @@ public enum CalendarPeriod */ public static final int YEAR_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -114,50 +145,53 @@ public static CalendarPeriod valueOf(int value) { */ public static CalendarPeriod forNumber(int value) { switch (value) { - case 0: return CALENDAR_PERIOD_UNSPECIFIED; - case 1: return MONTH; - case 2: return QUARTER; - case 3: return YEAR; - default: return null; + case 0: + return CALENDAR_PERIOD_UNSPECIFIED; + case 1: + return MONTH; + case 2: + return QUARTER; + case 3: + return YEAR; + 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< - CalendarPeriod> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CalendarPeriod findValueByNumber(int number) { - return CalendarPeriod.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 CalendarPeriod findValueByNumber(int number) { + return CalendarPeriod.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() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final CalendarPeriod[] VALUES = values(); - public static CalendarPeriod valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CalendarPeriod 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; @@ -173,4 +207,3 @@ private CalendarPeriod(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.billing.budgets.v1.CalendarPeriod) } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java similarity index 61% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java index 4b9a17386873..d77555c3db95 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * Request for CreateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CreateBudgetRequest} */ -public final class CreateBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.CreateBudgetRequest) CreateBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateBudgetRequest.newBuilder() to construct. private CreateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateBudgetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 @@ -61,30 +86,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 billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 { @@ -95,11 +122,16 @@ public java.lang.String getParent() { public static final int BUDGET_FIELD_NUMBER = 2; private com.google.cloud.billing.budgets.v1.Budget budget_; /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ @java.lang.Override @@ -107,30 +139,44 @@ public boolean hasBudget() { return budget_ != null; } /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Budget getBudget() { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +188,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_); } @@ -163,8 +208,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBudget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBudget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +218,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.budgets.v1.CreateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.CreateBudgetRequest other = (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.CreateBudgetRequest other = + (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget() - .equals(other.getBudget())) return false; + if (!getBudget().equals(other.getBudget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +254,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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 for CreateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CreateBudgetRequest} */ - 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.budgets.v1.CreateBudgetRequest) com.google.cloud.billing.budgets.v1.CreateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.CreateBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override @@ -371,8 +419,11 @@ public com.google.cloud.billing.budgets.v1.CreateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.CreateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.CreateBudgetRequest result = new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.CreateBudgetRequest result = + new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -383,9 +434,7 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CreateBudgetReque result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.budget_ = budgetBuilder_ == null - ? budget_ - : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); } } @@ -393,38 +442,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CreateBudgetReque 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.budgets.v1.CreateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.CreateBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.CreateBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -432,7 +482,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.CreateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -467,24 +518,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getBudgetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,23 +546,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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; @@ -519,21 +576,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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 { @@ -541,30 +601,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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() { @@ -574,18 +645,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -595,39 +672,58 @@ public Builder setParentBytes( private com.google.cloud.billing.budgets.v1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetBuilder_; + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + budgetBuilder_; /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ public com.google.cloud.billing.budgets.v1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } else { return budgetBuilder_.getMessage(); } } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { @@ -643,14 +739,17 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBudget( - com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetBuilder_ == null) { budget_ = builderForValue.build(); } else { @@ -661,17 +760,21 @@ public Builder setBudget( return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - budget_ != null && - budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && budget_ != null + && budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -684,11 +787,15 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +808,15 @@ public Builder clearBudget() { return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000002; @@ -713,43 +824,55 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { return getBudgetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null ? - com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - getBudget(), - getParentForChildren(), - isClean()); + budgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + getBudget(), getParentForChildren(), isClean()); budget_ = null; } return budgetBuilder_; } + @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); } @@ -759,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.CreateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.CreateBudgetRequest) private static final com.google.cloud.billing.budgets.v1.CreateBudgetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(); } @@ -773,27 +896,27 @@ public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,6 +931,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.CreateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..e0cc805bfb54 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface CreateBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CreateBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the budget field is set. + */ + boolean hasBudget(); + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The budget. + */ + com.google.cloud.billing.budgets.v1.Budget getBudget(); + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java similarity index 73% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java index 7c3c6e7047da..198536b90b3d 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java @@ -1,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CustomPeriod} */ -public final class CustomPeriod extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CustomPeriod extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.CustomPeriod) CustomPeriodOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomPeriod.newBuilder() to construct. private CustomPeriod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomPeriod() { - } + + private CustomPeriod() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomPeriod(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CustomPeriod.class, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1.CustomPeriod.class, + com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); } public static final int START_DATE_FIELD_NUMBER = 1; private com.google.type.Date startDate_; /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ @java.lang.Override @@ -57,11 +78,14 @@ public boolean hasStartDate() { return startDate_ != null; } /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ @java.lang.Override @@ -69,6 +93,8 @@ public com.google.type.Date getStartDate() { return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -83,6 +109,8 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { public static final int END_DATE_FIELD_NUMBER = 2; private com.google.type.Date endDate_; /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -90,6 +118,7 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ @java.lang.Override @@ -97,6 +126,8 @@ public boolean hasEndDate() { return endDate_ != null; } /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -104,6 +135,7 @@ public boolean hasEndDate() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ @java.lang.Override @@ -111,6 +143,8 @@ public com.google.type.Date getEndDate() { return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; } /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -125,6 +159,7 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -136,8 +171,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 (startDate_ != null) {
       output.writeMessage(1, getStartDate());
     }
@@ -154,12 +188,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (startDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getStartDate());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate());
     }
     if (endDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getEndDate());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -169,22 +201,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.budgets.v1.CustomPeriod)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.CustomPeriod other = (com.google.cloud.billing.budgets.v1.CustomPeriod) obj;
+    com.google.cloud.billing.budgets.v1.CustomPeriod other =
+        (com.google.cloud.billing.budgets.v1.CustomPeriod) obj;
 
     if (hasStartDate() != other.hasStartDate()) return false;
     if (hasStartDate()) {
-      if (!getStartDate()
-          .equals(other.getStartDate())) return false;
+      if (!getStartDate().equals(other.getStartDate())) return false;
     }
     if (hasEndDate() != other.hasEndDate()) return false;
     if (hasEndDate()) {
-      if (!getEndDate()
-          .equals(other.getEndDate())) return false;
+      if (!getEndDate().equals(other.getEndDate())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -210,132 +241,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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;
   }
   /**
+   *
+   *
    * 
    * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CustomPeriod} */ - 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.budgets.v1.CustomPeriod) com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CustomPeriod.class, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1.CustomPeriod.class, + com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override @@ -375,8 +410,11 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriod buildPartial() { - com.google.cloud.billing.budgets.v1.CustomPeriod result = new com.google.cloud.billing.budgets.v1.CustomPeriod(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.CustomPeriod result = + new com.google.cloud.billing.budgets.v1.CustomPeriod(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,14 +422,10 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1.CustomPeriod result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startDate_ = startDateBuilder_ == null - ? startDate_ - : startDateBuilder_.build(); + result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endDate_ = endDateBuilder_ == null - ? endDate_ - : endDateBuilder_.build(); + result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); } } @@ -399,38 +433,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CustomPeriod resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.budgets.v1.CustomPeriod) { - return mergeFrom((com.google.cloud.billing.budgets.v1.CustomPeriod)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.CustomPeriod) other); } else { super.mergeFrom(other); return this; @@ -438,7 +473,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.CustomPeriod other) { - if (other == com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) + return this; if (other.hasStartDate()) { mergeStartDate(other.getStartDate()); } @@ -471,26 +507,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartDateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndDateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,28 +535,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.Date startDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> startDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ public boolean hasStartDate() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ public com.google.type.Date getStartDate() { @@ -532,6 +575,8 @@ public com.google.type.Date getStartDate() { } } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -552,14 +597,15 @@ public Builder setStartDate(com.google.type.Date value) { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartDate( - com.google.type.Date.Builder builderForValue) { + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { if (startDateBuilder_ == null) { startDate_ = builderForValue.build(); } else { @@ -570,6 +616,8 @@ public Builder setStartDate( return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -578,9 +626,9 @@ public Builder setStartDate( */ public Builder mergeStartDate(com.google.type.Date value) { if (startDateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startDate_ != null && - startDate_ != com.google.type.Date.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startDate_ != null + && startDate_ != com.google.type.Date.getDefaultInstance()) { getStartDateBuilder().mergeFrom(value); } else { startDate_ = value; @@ -593,6 +641,8 @@ public Builder mergeStartDate(com.google.type.Date value) { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -610,6 +660,8 @@ public Builder clearStartDate() { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -622,6 +674,8 @@ public com.google.type.Date.Builder getStartDateBuilder() { return getStartDateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -632,11 +686,12 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { if (startDateBuilder_ != null) { return startDateBuilder_.getMessageOrBuilder(); } else { - return startDate_ == null ? - com.google.type.Date.getDefaultInstance() : startDate_; + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -644,14 +699,13 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getStartDateFieldBuilder() { if (startDateBuilder_ == null) { - startDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), - getParentForChildren(), - isClean()); + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); startDate_ = null; } return startDateBuilder_; @@ -659,8 +713,11 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { private com.google.type.Date endDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> endDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -668,12 +725,15 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ public boolean hasEndDate() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -681,6 +741,7 @@ public boolean hasEndDate() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ public com.google.type.Date getEndDate() { @@ -691,6 +752,8 @@ public com.google.type.Date getEndDate() { } } /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -713,6 +776,8 @@ public Builder setEndDate(com.google.type.Date value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -721,8 +786,7 @@ public Builder setEndDate(com.google.type.Date value) {
      *
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setEndDate(
-        com.google.type.Date.Builder builderForValue) {
+    public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
       if (endDateBuilder_ == null) {
         endDate_ = builderForValue.build();
       } else {
@@ -733,6 +797,8 @@ public Builder setEndDate(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -743,9 +809,9 @@ public Builder setEndDate(
      */
     public Builder mergeEndDate(com.google.type.Date value) {
       if (endDateBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endDate_ != null &&
-          endDate_ != com.google.type.Date.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endDate_ != null
+            && endDate_ != com.google.type.Date.getDefaultInstance()) {
           getEndDateBuilder().mergeFrom(value);
         } else {
           endDate_ = value;
@@ -758,6 +824,8 @@ public Builder mergeEndDate(com.google.type.Date value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -777,6 +845,8 @@ public Builder clearEndDate() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -791,6 +861,8 @@ public com.google.type.Date.Builder getEndDateBuilder() {
       return getEndDateFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -803,11 +875,12 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
       if (endDateBuilder_ != null) {
         return endDateBuilder_.getMessageOrBuilder();
       } else {
-        return endDate_ == null ?
-            com.google.type.Date.getDefaultInstance() : endDate_;
+        return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -817,21 +890,20 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
+            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
         getEndDateFieldBuilder() {
       if (endDateBuilder_ == null) {
-        endDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
-                getEndDate(),
-                getParentForChildren(),
-                isClean());
+        endDateBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+                getEndDate(), getParentForChildren(), isClean());
         endDate_ = null;
       }
       return endDateBuilder_;
     }
+
     @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);
     }
 
@@ -841,12 +913,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.CustomPeriod)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.CustomPeriod)
   private static final com.google.cloud.billing.budgets.v1.CustomPeriod DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.CustomPeriod();
   }
@@ -855,27 +927,27 @@ public static com.google.cloud.billing.budgets.v1.CustomPeriod getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CustomPeriod parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CustomPeriod parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +962,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.CustomPeriod getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
similarity index 75%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
index b758ff7812e8..e44ef33f30ef 100644
--- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface CustomPeriodOrBuilder extends
+public interface CustomPeriodOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CustomPeriod)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ boolean hasStartDate(); /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ com.google.type.Date getStartDate(); /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -35,6 +59,8 @@ public interface CustomPeriodOrBuilder extends com.google.type.DateOrBuilder getStartDateOrBuilder(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -42,10 +68,13 @@ public interface CustomPeriodOrBuilder extends
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ boolean hasEndDate(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -53,10 +82,13 @@ public interface CustomPeriodOrBuilder extends
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ com.google.type.Date getEndDate(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
similarity index 63%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
index 281e6530bc01..e6cd1296e88d 100644
--- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
@@ -1,58 +1,83 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1;
 
 /**
+ *
+ *
  * 
  * Request for DeleteBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.DeleteBudgetRequest} */ -public final class DeleteBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.DeleteBudgetRequest) DeleteBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteBudgetRequest.newBuilder() to construct. private DeleteBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1.DeleteBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other = (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other = + (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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 for DeleteBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.DeleteBudgetRequest} */ - 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.budgets.v1.DeleteBudgetRequest) com.google.cloud.billing.budgets.v1.DeleteBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override @@ -312,8 +344,11 @@ public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest result = new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest result = + new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +364,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.DeleteBudgetReque 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.budgets.v1.DeleteBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +404,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +459,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,21 +489,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -467,30 +514,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -500,27 +558,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.DeleteBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.DeleteBudgetRequest) private static final com.google.cloud.billing.budgets.v1.DeleteBudgetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(); } @@ -544,27 +608,27 @@ public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..4801b06da438 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface DeleteBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.DeleteBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java similarity index 75% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java index a6ad7274465d..60534e20378a 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java @@ -1,71 +1,86 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * A filter for a budget, limiting the scope of the cost to calculate.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.Filter} */ -public final class Filter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.Filter) FilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Filter() { - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Filter(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.Filter.class, com.google.cloud.billing.budgets.v1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1.Filter.class, + com.google.cloud.billing.budgets.v1.Filter.Builder.class); } /** + * + * *
    * Specifies how credits are applied when determining the spend for
    * threshold calculations. Budgets track the total cost minus any applicable
@@ -76,13 +91,12 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment}
    */
-  public enum CreditTypesTreatment
-      implements com.google.protobuf.ProtocolMessageEnum {
-    /**
-     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
-     */
+  public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageEnum {
+    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
     CREDIT_TYPES_TREATMENT_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -92,6 +106,8 @@ public enum CreditTypesTreatment
      */
     INCLUDE_ALL_CREDITS(1),
     /**
+     *
+     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -101,6 +117,8 @@ public enum CreditTypesTreatment
      */
     EXCLUDE_ALL_CREDITS(2),
     /**
+     *
+     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -114,11 +132,11 @@ public enum CreditTypesTreatment
     UNRECOGNIZED(-1),
     ;
 
-    /**
-     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
-     */
+    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
     public static final int CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -128,6 +146,8 @@ public enum CreditTypesTreatment
      */
     public static final int INCLUDE_ALL_CREDITS_VALUE = 1;
     /**
+     *
+     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -137,6 +157,8 @@ public enum CreditTypesTreatment
      */
     public static final int EXCLUDE_ALL_CREDITS_VALUE = 2;
     /**
+     *
+     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -148,7 +170,6 @@ public enum CreditTypesTreatment
      */
     public static final int INCLUDE_SPECIFIED_CREDITS_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -173,11 +194,16 @@ public static CreditTypesTreatment valueOf(int value) {
      */
     public static CreditTypesTreatment forNumber(int value) {
       switch (value) {
-        case 0: return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
-        case 1: return INCLUDE_ALL_CREDITS;
-        case 2: return EXCLUDE_ALL_CREDITS;
-        case 3: return INCLUDE_SPECIFIED_CREDITS;
-        default: return null;
+        case 0:
+          return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
+        case 1:
+          return INCLUDE_ALL_CREDITS;
+        case 2:
+          return EXCLUDE_ALL_CREDITS;
+        case 3:
+          return INCLUDE_SPECIFIED_CREDITS;
+        default:
+          return null;
       }
     }
 
@@ -185,28 +211,28 @@ public static CreditTypesTreatment forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        CreditTypesTreatment> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public CreditTypesTreatment findValueByNumber(int number) {
-              return CreditTypesTreatment.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 CreditTypesTreatment findValueByNumber(int number) {
+                return CreditTypesTreatment.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.budgets.v1.Filter.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -215,8 +241,7 @@ public CreditTypesTreatment findValueByNumber(int number) {
     public static CreditTypesTreatment 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;
@@ -234,15 +259,19 @@ private CreditTypesTreatment(int value) {
   }
 
   private int usagePeriodCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object usagePeriod_;
+
   public enum UsagePeriodCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CALENDAR_PERIOD(8),
     CUSTOM_PERIOD(9),
     USAGEPERIOD_NOT_SET(0);
     private final int value;
+
     private UsagePeriodCase(int value) {
       this.value = value;
     }
@@ -258,28 +287,34 @@ public static UsagePeriodCase valueOf(int value) {
 
     public static UsagePeriodCase forNumber(int value) {
       switch (value) {
-        case 8: return CALENDAR_PERIOD;
-        case 9: return CUSTOM_PERIOD;
-        case 0: return USAGEPERIOD_NOT_SET;
-        default: return null;
+        case 8:
+          return CALENDAR_PERIOD;
+        case 9:
+          return CUSTOM_PERIOD;
+        case 0:
+          return USAGEPERIOD_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public UsagePeriodCase
-  getUsagePeriodCase() {
-    return UsagePeriodCase.forNumber(
-        usagePeriodCase_);
+  public UsagePeriodCase getUsagePeriodCase() {
+    return UsagePeriodCase.forNumber(usagePeriodCase_);
   }
 
   public static final int PROJECTS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList projects_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -288,13 +323,15 @@ public int getNumber() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList - getProjectsList() { + public com.google.protobuf.ProtocolStringList getProjectsList() { return projects_; } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -303,12 +340,15 @@ public int getNumber() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -317,6 +357,7 @@ public int getProjectsCount() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -324,6 +365,8 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -332,19 +375,22 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString - getProjectsBytes(int index) { + public com.google.protobuf.ByteString getProjectsBytes(int index) { return projects_.getByteString(index); } public static final int RESOURCE_ANCESTORS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -354,13 +400,15 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList - getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { return resourceAncestors_; } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -370,12 +418,15 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -385,6 +436,7 @@ public int getResourceAncestorsCount() {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -392,6 +444,8 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -401,19 +455,22 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString - getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } public static final int CREDIT_TYPES_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -428,13 +485,15 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList - getCreditTypesList() { + public com.google.protobuf.ProtocolStringList getCreditTypesList() { return creditTypes_; } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -449,12 +508,15 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -469,6 +531,7 @@ public int getCreditTypesCount() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -476,6 +539,8 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -490,45 +555,64 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString - getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } public static final int CREDIT_TYPES_TREATMENT_FIELD_NUMBER = 4; private int creditTypesTreatment_ = 0; /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override public int getCreditTypesTreatmentValue() { + @java.lang.Override + public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ - @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber( + creditTypesTreatment_); + return result == null + ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED + : result; } public static final int SERVICES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -539,13 +623,15 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList - getServicesList() { + public com.google.protobuf.ProtocolStringList getServicesList() { return services_; } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -556,12 +642,15 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -572,6 +661,7 @@ public int getServicesCount() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ @@ -579,6 +669,8 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -589,19 +681,22 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString - getServicesBytes(int index) { + public com.google.protobuf.ByteString getServicesBytes(int index) { return services_.getByteString(index); } public static final int SUBACCOUNTS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -612,13 +707,15 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList - getSubaccountsList() { + public com.google.protobuf.ProtocolStringList getSubaccountsList() { return subaccounts_; } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -629,12 +726,15 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -645,6 +745,7 @@ public int getSubaccountsCount() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -652,6 +753,8 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -662,41 +765,46 @@ public java.lang.String getSubaccounts(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString - getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.ListValue> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.ListValue.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.ListValue.getDefaultInstance()); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ListValue> labels_; + private com.google.protobuf.MapField labels_; + private com.google.protobuf.MapField - internalGetLabels() { + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -709,23 +817,26 @@ public int getLabelsCount() {
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -738,13 +849,17 @@ public java.util.Map getLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -757,20 +872,25 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.protobuf.ListValue defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -783,12 +903,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -799,6 +922,8 @@ public com.google.protobuf.ListValue getLabelsOrThrow( public static final int CALENDAR_PERIOD_FIELD_NUMBER = 8; /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -808,13 +933,18 @@ public com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -824,7 +954,10 @@ public boolean hasCalendarPeriod() {
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ public int getCalendarPeriodValue() { @@ -834,6 +967,8 @@ public int getCalendarPeriodValue() { return 0; } /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -843,26 +978,37 @@ public int getCalendarPeriodValue() {
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1.CalendarPeriod result = com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1.CalendarPeriod result = + com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null + ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED + : result; } return com.google.cloud.billing.budgets.v1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } public static final int CUSTOM_PERIOD_FIELD_NUMBER = 9; /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -870,38 +1016,48 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -913,8 +1069,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 < projects_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projects_.getRaw(i)); } @@ -924,18 +1079,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < services_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, services_.getRaw(i)); } - if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { + if (creditTypesTreatment_ + != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment + .CREDIT_TYPES_TREATMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(4, creditTypesTreatment_); } for (int i = 0; i < subaccounts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subaccounts_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); for (int i = 0; i < creditTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, creditTypes_.getRaw(i)); } @@ -978,9 +1132,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getServicesList().size(); } - if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, creditTypesTreatment_); + if (creditTypesTreatment_ + != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment + .CREDIT_TYPES_TREATMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, creditTypesTreatment_); } { int dataSize = 0; @@ -990,15 +1146,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSubaccountsList().size(); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } { int dataSize = 0; @@ -1009,12 +1165,14 @@ public int getSerializedSize() { size += 1 * getCreditTypesList().size(); } if (usagePeriodCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, ((java.lang.Integer) usagePeriod_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 8, ((java.lang.Integer) usagePeriod_)); } if (usagePeriodCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1024,35 +1182,28 @@ 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.budgets.v1.Filter)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.Filter other = (com.google.cloud.billing.budgets.v1.Filter) obj; + com.google.cloud.billing.budgets.v1.Filter other = + (com.google.cloud.billing.budgets.v1.Filter) obj; - if (!getProjectsList() - .equals(other.getProjectsList())) return false; - if (!getResourceAncestorsList() - .equals(other.getResourceAncestorsList())) return false; - if (!getCreditTypesList() - .equals(other.getCreditTypesList())) return false; + if (!getProjectsList().equals(other.getProjectsList())) return false; + if (!getResourceAncestorsList().equals(other.getResourceAncestorsList())) return false; + if (!getCreditTypesList().equals(other.getCreditTypesList())) return false; if (creditTypesTreatment_ != other.creditTypesTreatment_) return false; - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!getSubaccountsList() - .equals(other.getSubaccountsList())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getServicesList().equals(other.getServicesList())) return false; + if (!getSubaccountsList().equals(other.getSubaccountsList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getUsagePeriodCase().equals(other.getUsagePeriodCase())) return false; switch (usagePeriodCase_) { case 8: - if (getCalendarPeriodValue() - != other.getCalendarPeriodValue()) return false; + if (getCalendarPeriodValue() != other.getCalendarPeriodValue()) return false; break; case 9: - if (!getCustomPeriod() - .equals(other.getCustomPeriod())) return false; + if (!getCustomPeriod().equals(other.getCustomPeriod())) return false; break; case 0: default: @@ -1111,169 +1262,166 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1.Filter parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1.Filter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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 filter for a budget, limiting the scope of the cost to calculate.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.Filter} */ - 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.budgets.v1.Filter) com.google.cloud.billing.budgets.v1.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.Filter.class, com.google.cloud.billing.budgets.v1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1.Filter.class, + com.google.cloud.billing.budgets.v1.Filter.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.Filter.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableLabels().clear(); if (customPeriodBuilder_ != null) { customPeriodBuilder_.clear(); @@ -1284,9 +1432,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @java.lang.Override @@ -1305,8 +1453,11 @@ public com.google.cloud.billing.budgets.v1.Filter build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter buildPartial() { - com.google.cloud.billing.budgets.v1.Filter result = new com.google.cloud.billing.budgets.v1.Filter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.Filter result = + new com.google.cloud.billing.budgets.v1.Filter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1346,8 +1497,7 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Filter result) { private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.Filter result) { result.usagePeriodCase_ = usagePeriodCase_; result.usagePeriod_ = this.usagePeriod_; - if (usagePeriodCase_ == 9 && - customPeriodBuilder_ != null) { + if (usagePeriodCase_ == 9 && customPeriodBuilder_ != null) { result.usagePeriod_ = customPeriodBuilder_.build(); } } @@ -1356,38 +1506,39 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.Filter resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.budgets.v1.Filter) { - return mergeFrom((com.google.cloud.billing.budgets.v1.Filter)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.Filter) other); } else { super.mergeFrom(other); return this; @@ -1449,21 +1600,23 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.Filter other) { } onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000040; switch (other.getUsagePeriodCase()) { - case CALENDAR_PERIOD: { - setCalendarPeriodValue(other.getCalendarPeriodValue()); - break; - } - case CUSTOM_PERIOD: { - mergeCustomPeriod(other.getCustomPeriod()); - break; - } - case USAGEPERIOD_NOT_SET: { - break; - } + case CALENDAR_PERIOD: + { + setCalendarPeriodValue(other.getCalendarPeriodValue()); + break; + } + case CUSTOM_PERIOD: + { + mergeCustomPeriod(other.getCustomPeriod()); + break; + } + case USAGEPERIOD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1491,69 +1644,80 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureProjectsIsMutable(); - projects_.add(s); - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceAncestorsIsMutable(); - resourceAncestors_.add(s); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureServicesIsMutable(); - services_.add(s); - break; - } // case 26 - case 32: { - creditTypesTreatment_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubaccountsIsMutable(); - subaccounts_.add(s); - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - ensureCreditTypesIsMutable(); - creditTypes_.add(s); - break; - } // case 58 - case 64: { - int rawValue = input.readEnum(); - usagePeriodCase_ = 8; - usagePeriod_ = rawValue; - break; - } // case 64 - case 74: { - input.readMessage( - getCustomPeriodFieldBuilder().getBuilder(), - extensionRegistry); - usagePeriodCase_ = 9; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectsIsMutable(); + projects_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceAncestorsIsMutable(); + resourceAncestors_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServicesIsMutable(); + services_.add(s); + break; + } // case 26 + case 32: + { + creditTypesTreatment_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubaccountsIsMutable(); + subaccounts_.add(s); + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry + labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCreditTypesIsMutable(); + creditTypes_.add(s); + break; + } // case 58 + case 64: + { + int rawValue = input.readEnum(); + usagePeriodCase_ = 8; + usagePeriod_ = rawValue; + break; + } // case 64 + case 74: + { + input.readMessage(getCustomPeriodFieldBuilder().getBuilder(), extensionRegistry); + usagePeriodCase_ = 9; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1563,12 +1727,12 @@ public Builder mergeFrom( } // finally return this; } + private int usagePeriodCase_ = 0; private java.lang.Object usagePeriod_; - public UsagePeriodCase - getUsagePeriodCase() { - return UsagePeriodCase.forNumber( - usagePeriodCase_); + + public UsagePeriodCase getUsagePeriodCase() { + return UsagePeriodCase.forNumber(usagePeriodCase_); } public Builder clearUsagePeriod() { @@ -1582,6 +1746,7 @@ public Builder clearUsagePeriod() { private com.google.protobuf.LazyStringArrayList projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureProjectsIsMutable() { if (!projects_.isModifiable()) { projects_ = new com.google.protobuf.LazyStringArrayList(projects_); @@ -1589,6 +1754,8 @@ private void ensureProjectsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1597,14 +1764,16 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList - getProjectsList() { + public com.google.protobuf.ProtocolStringList getProjectsList() { projects_.makeImmutable(); return projects_; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1613,12 +1782,15 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1627,6 +1799,7 @@ public int getProjectsCount() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -1634,6 +1807,8 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1642,14 +1817,16 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString - getProjectsBytes(int index) { + public com.google.protobuf.ByteString getProjectsBytes(int index) { return projects_.getByteString(index); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1658,13 +1835,15 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The projects to set. * @return This builder for chaining. */ - public Builder setProjects( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureProjectsIsMutable(); projects_.set(index, value); bitField0_ |= 0x00000001; @@ -1672,6 +1851,8 @@ public Builder setProjects( return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1680,12 +1861,14 @@ public Builder setProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The projects to add. * @return This builder for chaining. */ - public Builder addProjects( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureProjectsIsMutable(); projects_.add(value); bitField0_ |= 0x00000001; @@ -1693,6 +1876,8 @@ public Builder addProjects( return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1701,19 +1886,20 @@ public Builder addProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The projects to add. * @return This builder for chaining. */ - public Builder addAllProjects( - java.lang.Iterable values) { + public Builder addAllProjects(java.lang.Iterable values) { ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projects_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1722,16 +1908,19 @@ public Builder addAllProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProjects() { - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1740,12 +1929,14 @@ public Builder clearProjects() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the projects to add. * @return This builder for chaining. */ - public Builder addProjectsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureProjectsIsMutable(); projects_.add(value); @@ -1756,6 +1947,7 @@ public Builder addProjectsBytes( private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResourceAncestorsIsMutable() { if (!resourceAncestors_.isModifiable()) { resourceAncestors_ = new com.google.protobuf.LazyStringArrayList(resourceAncestors_); @@ -1763,6 +1955,8 @@ private void ensureResourceAncestorsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1771,15 +1965,18 @@ private void ensureResourceAncestorsIsMutable() {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList - getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { resourceAncestors_.makeImmutable(); return resourceAncestors_; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1788,13 +1985,17 @@ private void ensureResourceAncestorsIsMutable() {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1803,7 +2004,9 @@ public int getResourceAncestorsCount() {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -1811,6 +2014,8 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1819,15 +2024,18 @@ public java.lang.String getResourceAncestors(int index) {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString - getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1836,14 +2044,17 @@ public java.lang.String getResourceAncestors(int index) {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The resourceAncestors to set. * @return This builder for chaining. */ - public Builder setResourceAncestors( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceAncestors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceAncestorsIsMutable(); resourceAncestors_.set(index, value); bitField0_ |= 0x00000002; @@ -1851,6 +2062,8 @@ public Builder setResourceAncestors( return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1859,13 +2072,16 @@ public Builder setResourceAncestors(
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestors( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceAncestors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); bitField0_ |= 0x00000002; @@ -1873,6 +2089,8 @@ public Builder addResourceAncestors( return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1881,20 +2099,22 @@ public Builder addResourceAncestors(
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addAllResourceAncestors( - java.lang.Iterable values) { + public Builder addAllResourceAncestors(java.lang.Iterable values) { ensureResourceAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceAncestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceAncestors_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1903,17 +2123,21 @@ public Builder addAllResourceAncestors(
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearResourceAncestors() { - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1922,13 +2146,16 @@ public Builder clearResourceAncestors() {
      * organizations, regardless of which organization the usage occurred on.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestorsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); @@ -1939,6 +2166,7 @@ public Builder addResourceAncestorsBytes( private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureCreditTypesIsMutable() { if (!creditTypes_.isModifiable()) { creditTypes_ = new com.google.protobuf.LazyStringArrayList(creditTypes_); @@ -1946,6 +2174,8 @@ private void ensureCreditTypesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -1960,14 +2190,16 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList - getCreditTypesList() { + public com.google.protobuf.ProtocolStringList getCreditTypesList() { creditTypes_.makeImmutable(); return creditTypes_; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -1982,12 +2214,15 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2002,6 +2237,7 @@ public int getCreditTypesCount() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -2009,6 +2245,8 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2023,14 +2261,16 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString - getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2045,13 +2285,15 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The creditTypes to set. * @return This builder for chaining. */ - public Builder setCreditTypes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCreditTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCreditTypesIsMutable(); creditTypes_.set(index, value); bitField0_ |= 0x00000004; @@ -2059,6 +2301,8 @@ public Builder setCreditTypes( return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2073,12 +2317,14 @@ public Builder setCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCreditTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCreditTypesIsMutable(); creditTypes_.add(value); bitField0_ |= 0x00000004; @@ -2086,6 +2332,8 @@ public Builder addCreditTypes( return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2100,19 +2348,20 @@ public Builder addCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The creditTypes to add. * @return This builder for chaining. */ - public Builder addAllCreditTypes( - java.lang.Iterable values) { + public Builder addAllCreditTypes(java.lang.Iterable values) { ensureCreditTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, creditTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creditTypes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2127,16 +2376,19 @@ public Builder addAllCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCreditTypes() { - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2151,12 +2403,14 @@ public Builder clearCreditTypes() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureCreditTypesIsMutable(); creditTypes_.add(value); @@ -2167,22 +2421,33 @@ public Builder addCreditTypesBytes( private int creditTypesTreatment_ = 0; /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override public int getCreditTypesTreatmentValue() { + @java.lang.Override + public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for creditTypesTreatment to set. * @return This builder for chaining. */ @@ -2193,28 +2458,44 @@ public Builder setCreditTypesTreatmentValue(int value) { return this; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment + getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber( + creditTypesTreatment_); + return result == null + ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The creditTypesTreatment to set. * @return This builder for chaining. */ - public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment value) { + public Builder setCreditTypesTreatment( + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment value) { if (value == null) { throw new NullPointerException(); } @@ -2224,11 +2505,16 @@ public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1.Filte return this; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCreditTypesTreatment() { @@ -2240,6 +2526,7 @@ public Builder clearCreditTypesTreatment() { private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureServicesIsMutable() { if (!services_.isModifiable()) { services_ = new com.google.protobuf.LazyStringArrayList(services_); @@ -2247,6 +2534,8 @@ private void ensureServicesIsMutable() { bitField0_ |= 0x00000010; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2257,14 +2546,16 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList - getServicesList() { + public com.google.protobuf.ProtocolStringList getServicesList() { services_.makeImmutable(); return services_; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2275,12 +2566,15 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2291,6 +2585,7 @@ public int getServicesCount() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ @@ -2298,6 +2593,8 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2308,14 +2605,16 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString - getServicesBytes(int index) { + public com.google.protobuf.ByteString getServicesBytes(int index) { return services_.getByteString(index); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2326,13 +2625,15 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The services to set. * @return This builder for chaining. */ - public Builder setServices( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServices(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServicesIsMutable(); services_.set(index, value); bitField0_ |= 0x00000010; @@ -2340,6 +2641,8 @@ public Builder setServices( return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2350,12 +2653,14 @@ public Builder setServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The services to add. * @return This builder for chaining. */ - public Builder addServices( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServices(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServicesIsMutable(); services_.add(value); bitField0_ |= 0x00000010; @@ -2363,6 +2668,8 @@ public Builder addServices( return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2373,19 +2680,20 @@ public Builder addServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The services to add. * @return This builder for chaining. */ - public Builder addAllServices( - java.lang.Iterable values) { + public Builder addAllServices(java.lang.Iterable values) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2396,16 +2704,19 @@ public Builder addAllServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServices() { - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2416,12 +2727,14 @@ public Builder clearServices() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the services to add. * @return This builder for chaining. */ - public Builder addServicesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServicesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureServicesIsMutable(); services_.add(value); @@ -2432,6 +2745,7 @@ public Builder addServicesBytes( private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSubaccountsIsMutable() { if (!subaccounts_.isModifiable()) { subaccounts_ = new com.google.protobuf.LazyStringArrayList(subaccounts_); @@ -2439,6 +2753,8 @@ private void ensureSubaccountsIsMutable() { bitField0_ |= 0x00000020; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2449,14 +2765,16 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList - getSubaccountsList() { + public com.google.protobuf.ProtocolStringList getSubaccountsList() { subaccounts_.makeImmutable(); return subaccounts_; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2467,12 +2785,15 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2483,6 +2804,7 @@ public int getSubaccountsCount() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -2490,6 +2812,8 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2500,14 +2824,16 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString - getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2518,13 +2844,15 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The subaccounts to set. * @return This builder for chaining. */ - public Builder setSubaccounts( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubaccounts(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubaccountsIsMutable(); subaccounts_.set(index, value); bitField0_ |= 0x00000020; @@ -2532,6 +2860,8 @@ public Builder setSubaccounts( return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2542,12 +2872,14 @@ public Builder setSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccounts( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubaccounts(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubaccountsIsMutable(); subaccounts_.add(value); bitField0_ |= 0x00000020; @@ -2555,6 +2887,8 @@ public Builder addSubaccounts( return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2565,19 +2899,20 @@ public Builder addSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The subaccounts to add. * @return This builder for chaining. */ - public Builder addAllSubaccounts( - java.lang.Iterable values) { + public Builder addAllSubaccounts(java.lang.Iterable values) { ensureSubaccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subaccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subaccounts_); bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2588,16 +2923,19 @@ public Builder addAllSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSubaccounts() { - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020);; + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2608,12 +2946,14 @@ public Builder clearSubaccounts() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccountsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSubaccountsIsMutable(); subaccounts_.add(value); @@ -2622,21 +2962,20 @@ public Builder addSubaccountsBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ListValue> labels_; + private com.google.protobuf.MapField labels_; + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2645,10 +2984,13 @@ public Builder addSubaccountsBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2661,23 +3003,26 @@ public int getLabelsCount() {
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2690,13 +3035,17 @@ public java.util.Map getLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2709,20 +3058,25 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.protobuf.ListValue defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2735,12 +3089,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2748,13 +3105,15 @@ public com.google.protobuf.ListValue getLabelsOrThrow( } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2767,25 +3126,26 @@ public Builder clearLabels() {
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2798,19 +3158,24 @@ public Builder removeLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putLabels( - java.lang.String key, - com.google.protobuf.ListValue value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2823,17 +3188,20 @@ public Builder putLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllLabels( java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2843,7 +3211,10 @@ public Builder putAllLabels(
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ @java.lang.Override @@ -2851,6 +3222,8 @@ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2860,7 +3233,10 @@ public boolean hasCalendarPeriod() {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ @java.lang.Override @@ -2871,6 +3247,8 @@ public int getCalendarPeriodValue() { return 0; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2880,7 +3258,10 @@ public int getCalendarPeriodValue() {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for calendarPeriod to set. * @return This builder for chaining. */ @@ -2891,6 +3272,8 @@ public Builder setCalendarPeriodValue(int value) { return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2900,19 +3283,27 @@ public Builder setCalendarPeriodValue(int value) {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1.CalendarPeriod result = com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1.CalendarPeriod result = + com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null + ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED + : result; } return com.google.cloud.billing.budgets.v1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2922,7 +3313,10 @@ public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The calendarPeriod to set. * @return This builder for chaining. */ @@ -2936,6 +3330,8 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1.CalendarPer return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2945,7 +3341,10 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1.CalendarPer
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCalendarPeriod() { @@ -2958,14 +3357,22 @@ public Builder clearCalendarPeriod() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> customPeriodBuilder_; + com.google.cloud.billing.budgets.v1.CustomPeriod, + com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> + customPeriodBuilder_; /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -2973,12 +3380,17 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ @java.lang.Override @@ -2996,12 +3408,16 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod() { } } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod value) { if (customPeriodBuilder_ == null) { @@ -3017,12 +3433,16 @@ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomPeriod( com.google.cloud.billing.budgets.v1.CustomPeriod.Builder builderForValue) { @@ -3036,19 +3456,27 @@ public Builder setCustomPeriod( return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod value) { if (customPeriodBuilder_ == null) { - if (usagePeriodCase_ == 9 && - usagePeriod_ != com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) { - usagePeriod_ = com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder((com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_) - .mergeFrom(value).buildPartial(); + if (usagePeriodCase_ == 9 + && usagePeriod_ + != com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) { + usagePeriod_ = + com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder( + (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_) + .mergeFrom(value) + .buildPartial(); } else { usagePeriod_ = value; } @@ -3064,12 +3492,16 @@ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPerio return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCustomPeriod() { if (customPeriodBuilder_ == null) { @@ -3088,23 +3520,31 @@ public Builder clearCustomPeriod() { return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.CustomPeriod.Builder getCustomPeriodBuilder() { return getCustomPeriodFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { @@ -3118,22 +3558,31 @@ public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriod } } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> + com.google.cloud.billing.budgets.v1.CustomPeriod, + com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> getCustomPeriodFieldBuilder() { if (customPeriodBuilder_ == null) { if (!(usagePeriodCase_ == 9)) { usagePeriod_ = com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } - customPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder>( + customPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.CustomPeriod, + com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder>( (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_, getParentForChildren(), isClean()); @@ -3143,9 +3592,9 @@ public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriod onChanged(); return customPeriodBuilder_; } + @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); } @@ -3155,12 +3604,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.Filter) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.Filter) private static final com.google.cloud.billing.budgets.v1.Filter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.Filter(); } @@ -3169,27 +3618,27 @@ public static com.google.cloud.billing.budgets.v1.Filter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3204,6 +3653,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java similarity index 82% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java index af1c23f5e4c0..4ce92d816a6f 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface FilterOrBuilder extends +public interface FilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.Filter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -16,11 +34,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - java.util.List - getProjectsList(); + java.util.List getProjectsList(); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -29,10 +49,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ int getProjectsCount(); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -41,11 +64,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ java.lang.String getProjects(int index); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -54,13 +80,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - com.google.protobuf.ByteString - getProjectsBytes(int index); + com.google.protobuf.ByteString getProjectsBytes(int index); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -70,11 +98,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the resourceAncestors. */ - java.util.List - getResourceAncestorsList(); + java.util.List getResourceAncestorsList(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -84,10 +114,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of resourceAncestors. */ int getResourceAncestorsCount(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -97,11 +130,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ java.lang.String getResourceAncestors(int index); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -111,13 +147,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - com.google.protobuf.ByteString - getResourceAncestorsBytes(int index); + com.google.protobuf.ByteString getResourceAncestorsBytes(int index); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -132,11 +170,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - java.util.List - getCreditTypesList(); + java.util.List getCreditTypesList(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -151,10 +191,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ int getCreditTypesCount(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -169,11 +212,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ java.lang.String getCreditTypes(int index); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -188,32 +234,44 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - com.google.protobuf.ByteString - getCreditTypesBytes(int index); + com.google.protobuf.ByteString getCreditTypesBytes(int index); /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ int getCreditTypesTreatmentValue(); /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -224,11 +282,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - java.util.List - getServicesList(); + java.util.List getServicesList(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -239,10 +299,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ int getServicesCount(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -253,11 +316,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ java.lang.String getServices(int index); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -268,13 +334,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - com.google.protobuf.ByteString - getServicesBytes(int index); + com.google.protobuf.ByteString getServicesBytes(int index); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -285,11 +353,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - java.util.List - getSubaccountsList(); + java.util.List getSubaccountsList(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -300,10 +370,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ int getSubaccountsCount(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -314,11 +387,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ java.lang.String getSubaccounts(int index); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -329,13 +405,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - com.google.protobuf.ByteString - getSubaccountsBytes(int index); + com.google.protobuf.ByteString getSubaccountsBytes(int index); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -348,10 +426,14 @@ public interface FilterOrBuilder extends
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getLabelsCount(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -364,17 +446,17 @@ public interface FilterOrBuilder extends
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -387,11 +469,14 @@ boolean containsLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -404,14 +489,18 @@ boolean containsLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue); + com.google.protobuf.ListValue defaultValue); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -424,12 +513,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key); + com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -439,11 +531,16 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ boolean hasCalendarPeriod(); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -453,11 +550,16 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ int getCalendarPeriodValue(); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -467,38 +569,55 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ boolean hasCustomPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder(); diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java similarity index 64% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java index af75b502f7f6..5d1a7979a072 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * Request for GetBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.GetBudgetRequest} */ -public final class GetBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.GetBudgetRequest) GetBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetBudgetRequest.newBuilder() to construct. private GetBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, + com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1.GetBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.GetBudgetRequest other = (com.google.cloud.billing.budgets.v1.GetBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.GetBudgetRequest other = + (com.google.cloud.billing.budgets.v1.GetBudgetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,135 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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 for GetBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.GetBudgetRequest} */ - 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.budgets.v1.GetBudgetRequest) com.google.cloud.billing.budgets.v1.GetBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, + com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.GetBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override @@ -312,8 +343,11 @@ public com.google.cloud.billing.budgets.v1.GetBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.GetBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.GetBudgetRequest result = new com.google.cloud.billing.budgets.v1.GetBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.GetBudgetRequest result = + new com.google.cloud.billing.budgets.v1.GetBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +363,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.GetBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.GetBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +403,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.GetBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +458,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,21 +488,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -467,30 +513,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -500,27 +557,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.GetBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.GetBudgetRequest) private static final com.google.cloud.billing.budgets.v1.GetBudgetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.GetBudgetRequest(); } @@ -544,27 +607,27 @@ public static com.google.cloud.billing.budgets.v1.GetBudgetRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.GetBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..b5c42e0da212 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface GetBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.GetBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java similarity index 65% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java index 9966d2ae4d72..6d1e95c3a861 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * Describes a budget amount targeted to the last
  * [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period]
@@ -16,39 +33,41 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.LastPeriodAmount}
  */
-public final class LastPeriodAmount extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LastPeriodAmount extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.LastPeriodAmount)
     LastPeriodAmountOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LastPeriodAmount.newBuilder() to construct.
   private LastPeriodAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LastPeriodAmount() {
-  }
+
+  private LastPeriodAmount() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LastPeriodAmount();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount.class,
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -60,8 +79,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -79,12 +97,13 @@ 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.budgets.v1.LastPeriodAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.LastPeriodAmount other = (com.google.cloud.billing.budgets.v1.LastPeriodAmount) obj;
+    com.google.cloud.billing.budgets.v1.LastPeriodAmount other =
+        (com.google.cloud.billing.budgets.v1.LastPeriodAmount) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -103,98 +122,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1.LastPeriodAmount parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.LastPeriodAmount parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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;
   }
   /**
+   *
+   *
    * 
    * Describes a budget amount targeted to the last
    * [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period]
@@ -207,33 +231,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.LastPeriodAmount}
    */
-  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.budgets.v1.LastPeriodAmount)
       com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
+              com.google.cloud.billing.budgets.v1.LastPeriodAmount.class,
+              com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -241,9 +264,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
@@ -262,7 +285,8 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.LastPeriodAmount buildPartial() {
-      com.google.cloud.billing.budgets.v1.LastPeriodAmount result = new com.google.cloud.billing.budgets.v1.LastPeriodAmount(this);
+      com.google.cloud.billing.budgets.v1.LastPeriodAmount result =
+          new com.google.cloud.billing.budgets.v1.LastPeriodAmount(this);
       onBuilt();
       return result;
     }
@@ -271,38 +295,39 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.LastPeriodAmount)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.LastPeriodAmount) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -310,7 +335,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.LastPeriodAmount other) {
-      if (other == com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance())
+        return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -337,12 +363,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -352,9 +379,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -364,12 +391,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.LastPeriodAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.LastPeriodAmount)
   private static final com.google.cloud.billing.budgets.v1.LastPeriodAmount DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.LastPeriodAmount();
   }
@@ -378,27 +405,27 @@ public static com.google.cloud.billing.budgets.v1.LastPeriodAmount getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public LastPeriodAmount parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public LastPeriodAmount parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -413,6 +440,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.LastPeriodAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java
new file mode 100644
index 000000000000..673b35957419
--- /dev/null
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1;
+
+public interface LastPeriodAmountOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.LastPeriodAmount)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
similarity index 68%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
index 8a044e45c282..ff2831c668fc 100644
--- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1;
 
 /**
+ *
+ *
  * 
  * Request for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsRequest} */ -public final class ListBudgetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBudgetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ListBudgetsRequest) ListBudgetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBudgetsRequest.newBuilder() to construct. private ListBudgetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBudgetsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,34 +44,41 @@ private ListBudgetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 @@ -62,30 +87,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. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 { @@ -96,12 +123,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -110,9 +140,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -120,6 +153,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -128,14 +162,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; } } /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -143,16 +178,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -161,6 +195,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +207,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_); } @@ -196,8 +230,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -210,19 +243,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.budgets.v1.ListBudgetsRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ListBudgetsRequest other = (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) obj; + com.google.cloud.billing.budgets.v1.ListBudgetsRequest other = + (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,131 +277,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsRequest} */ - 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.budgets.v1.ListBudgetsRequest) com.google.cloud.billing.budgets.v1.ListBudgetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.ListBudgetsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override @@ -403,8 +439,11 @@ public com.google.cloud.billing.budgets.v1.ListBudgetsRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.ListBudgetsRequest buildPartial() { - com.google.cloud.billing.budgets.v1.ListBudgetsRequest result = new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.ListBudgetsRequest result = + new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +465,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ListBudgetsReques 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.budgets.v1.ListBudgetsRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsRequest) other); } else { super.mergeFrom(other); return this; @@ -465,7 +505,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsRequest other) { - if (other == com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -505,27 +546,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,23 +580,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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; @@ -560,21 +610,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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 { @@ -582,30 +635,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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() { @@ -615,18 +679,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -634,14 +704,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -649,12 +722,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -666,12 +742,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -683,6 +762,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -690,13 +771,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -705,6 +786,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -712,15 +795,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -728,6 +810,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -735,18 +819,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -754,6 +842,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -763,6 +852,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -770,21 +861,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -794,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ListBudgetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ListBudgetsRequest) private static final com.google.cloud.billing.budgets.v1.ListBudgetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(); } @@ -808,27 +901,27 @@ public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,6 +936,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ListBudgetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java index 679127882752..4eb473317be1 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface ListBudgetsRequestOrBuilder extends +public interface ListBudgetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ListBudgetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -48,10 +78,13 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -59,8 +92,8 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java similarity index 72% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java index 1c43e0a50670..a8a8d6f7838b 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * Response for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsResponse} */ -public final class ListBudgetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBudgetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ListBudgetsResponse) ListBudgetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBudgetsResponse.newBuilder() to construct. private ListBudgetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBudgetsResponse() { budgets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListBudgetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); } public static final int BUDGETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List budgets_; /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -59,6 +81,8 @@ public java.util.List getBudgetsList return budgets_; } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -66,11 +90,13 @@ public java.util.List getBudgetsList * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBudgetsOrBuilderList() { return budgets_; } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -82,6 +108,8 @@ public int getBudgetsCount() { return budgets_.size(); } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { return budgets_.get(index); } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -100,21 +130,24 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( - int index) { + public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index) { return budgets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +156,30 @@ 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; } } /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * 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 { @@ -155,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +200,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 < budgets_.size(); i++) { output.writeMessage(1, budgets_.get(i)); } @@ -184,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < budgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, budgets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, budgets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +230,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.budgets.v1.ListBudgetsResponse)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ListBudgetsResponse other = (com.google.cloud.billing.budgets.v1.ListBudgetsResponse) obj; + com.google.cloud.billing.budgets.v1.ListBudgetsResponse other = + (com.google.cloud.billing.budgets.v1.ListBudgetsResponse) obj; - if (!getBudgetsList() - .equals(other.getBudgetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBudgetsList().equals(other.getBudgetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +263,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsResponse} */ - 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.budgets.v1.ListBudgetsResponse) com.google.cloud.billing.budgets.v1.ListBudgetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.ListBudgetsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override @@ -394,14 +430,18 @@ public com.google.cloud.billing.budgets.v1.ListBudgetsResponse build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.ListBudgetsResponse buildPartial() { - com.google.cloud.billing.budgets.v1.ListBudgetsResponse result = new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(this); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse result = + new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1.ListBudgetsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.billing.budgets.v1.ListBudgetsResponse result) { if (budgetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { budgets_ = java.util.Collections.unmodifiableList(budgets_); @@ -424,38 +464,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ListBudgetsRespon 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.budgets.v1.ListBudgetsResponse) { - return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsResponse)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsResponse) other); } else { super.mergeFrom(other); return this; @@ -463,7 +504,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsResponse other) { - if (other == com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()) + return this; if (budgetsBuilder_ == null) { if (!other.budgets_.isEmpty()) { if (budgets_.isEmpty()) { @@ -482,9 +524,10 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsResponse budgetsBuilder_ = null; budgets_ = other.budgets_; bitField0_ = (bitField0_ & ~0x00000001); - budgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBudgetsFieldBuilder() : null; + budgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBudgetsFieldBuilder() + : null; } else { budgetsBuilder_.addAllMessages(other.budgets_); } @@ -521,30 +564,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.billing.budgets.v1.Budget m = - input.readMessage( - com.google.cloud.billing.budgets.v1.Budget.parser(), - extensionRegistry); - if (budgetsBuilder_ == null) { - ensureBudgetsIsMutable(); - budgets_.add(m); - } else { - budgetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.billing.budgets.v1.Budget m = + input.readMessage( + com.google.cloud.billing.budgets.v1.Budget.parser(), extensionRegistry); + if (budgetsBuilder_ == null) { + ensureBudgetsIsMutable(); + budgets_.add(m); + } else { + budgetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +599,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List budgets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBudgetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { budgets_ = new java.util.ArrayList(budgets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetsBuilder_; + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + budgetsBuilder_; /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -583,6 +635,8 @@ public java.util.List getBudgetsList } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -597,6 +651,8 @@ public int getBudgetsCount() { } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -611,14 +667,15 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder setBudgets( - int index, com.google.cloud.billing.budgets.v1.Budget value) { + public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -632,6 +689,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -650,6 +709,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -670,14 +731,15 @@ public Builder addBudgets(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder addBudgets( - int index, com.google.cloud.billing.budgets.v1.Budget value) { + public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -691,14 +753,15 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder addBudgets( - com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder addBudgets(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); budgets_.add(builderForValue.build()); @@ -709,6 +772,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -727,6 +792,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -737,8 +804,7 @@ public Builder addAllBudgets( java.lang.Iterable values) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, budgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, budgets_); onChanged(); } else { budgetsBuilder_.addAllMessages(values); @@ -746,6 +812,8 @@ public Builder addAllBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -763,6 +831,8 @@ public Builder clearBudgets() { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -780,39 +850,44 @@ public Builder removeBudgets(int index) { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetsBuilder( - int index) { + public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetsBuilder(int index) { return getBudgetsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( - int index) { + public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index) { if (budgetsBuilder_ == null) { - return budgets_.get(index); } else { + return budgets_.get(index); + } else { return budgetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public java.util.List - getBudgetsOrBuilderList() { + public java.util.List + getBudgetsOrBuilderList() { if (budgetsBuilder_ != null) { return budgetsBuilder_.getMessageOrBuilderList(); } else { @@ -820,6 +895,8 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -827,42 +904,48 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder() { - return getBudgetsFieldBuilder().addBuilder( - com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); + return getBudgetsFieldBuilder() + .addBuilder(com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder( - int index) { - return getBudgetsFieldBuilder().addBuilder( - index, com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder(int index) { + return getBudgetsFieldBuilder() + .addBuilder(index, com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public java.util.List - getBudgetsBuilderList() { + public java.util.List + getBudgetsBuilderList() { return getBudgetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetsFieldBuilder() { if (budgetsBuilder_ == null) { - budgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - budgets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + budgetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + budgets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); budgets_ = null; } return budgetsBuilder_; @@ -870,19 +953,21 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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; @@ -891,21 +976,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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 { @@ -913,30 +999,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -946,27 +1039,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,12 +1073,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ListBudgetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ListBudgetsResponse) private static final com.google.cloud.billing.budgets.v1.ListBudgetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(); } @@ -990,27 +1087,27 @@ public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1122,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ListBudgetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java index 85cae48ff761..fc912b35c8a2 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface ListBudgetsResponseOrBuilder extends +public interface ListBudgetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ListBudgetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - java.util.List - getBudgetsList(); + java.util.List getBudgetsList(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -25,6 +44,8 @@ public interface ListBudgetsResponseOrBuilder extends */ com.google.cloud.billing.budgets.v1.Budget getBudgets(int index); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -33,43 +54,51 @@ public interface ListBudgetsResponseOrBuilder extends */ int getBudgetsCount(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - java.util.List + java.util.List getBudgetsOrBuilderList(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( - int index); + com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index); /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java similarity index 82% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java index bcb704df66d1..615997bdd8b8 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * NotificationsRule defines notifications that are sent based on budget spend
  * and thresholds.
@@ -11,46 +28,50 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.NotificationsRule}
  */
-public final class NotificationsRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NotificationsRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.NotificationsRule)
     NotificationsRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NotificationsRule.newBuilder() to construct.
   private NotificationsRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NotificationsRule() {
     pubsubTopic_ = "";
     schemaVersion_ = "";
-    monitoringNotificationChannels_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NotificationsRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.NotificationsRule.class, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
+            com.google.cloud.billing.budgets.v1.NotificationsRule.class,
+            com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
   }
 
   public static final int PUBSUB_TOPIC_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object pubsubTopic_ = "";
   /**
+   *
+   *
    * 
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -81,6 +102,7 @@ protected java.lang.Object newInstance(
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ @java.lang.Override @@ -89,14 +111,15 @@ public java.lang.String getPubsubTopic() { 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(); pubsubTopic_ = s; return s; } } /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -127,16 +150,15 @@ public java.lang.String getPubsubTopic() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -145,9 +167,12 @@ public java.lang.String getPubsubTopic() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object schemaVersion_ = ""; /** + * + * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -158,6 +183,7 @@ public java.lang.String getPubsubTopic() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ @java.lang.Override @@ -166,14 +192,15 @@ public java.lang.String getSchemaVersion() { 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(); schemaVersion_ = s; return s; } } /** + * + * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -184,16 +211,15 @@ public java.lang.String getSchemaVersion() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaVersionBytes() { + public com.google.protobuf.ByteString getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -202,10 +228,13 @@ public java.lang.String getSchemaVersion() { } public static final int MONITORING_NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -231,14 +260,18 @@ public java.lang.String getSchemaVersion() {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList - getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { return monitoringNotificationChannels_; } /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -264,13 +297,18 @@ public java.lang.String getSchemaVersion() {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -296,7 +334,10 @@ public int getMonitoringNotificationChannelsCount() {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -304,6 +345,8 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -329,18 +372,22 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } public static final int DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER = 4; private boolean disableDefaultIamRecipients_ = false; /** + * + * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -349,6 +396,7 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -357,6 +405,7 @@ public boolean getDisableDefaultIamRecipients() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -368,8 +417,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(pubsubTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopic_); } @@ -377,7 +425,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaVersion_); } for (int i = 0; i < monitoringNotificationChannels_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, monitoringNotificationChannels_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, monitoringNotificationChannels_.getRaw(i)); } if (disableDefaultIamRecipients_ != false) { output.writeBool(4, disableDefaultIamRecipients_); @@ -406,8 +455,8 @@ public int getSerializedSize() { size += 1 * getMonitoringNotificationChannelsList().size(); } if (disableDefaultIamRecipients_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, disableDefaultIamRecipients_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableDefaultIamRecipients_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -417,21 +466,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.budgets.v1.NotificationsRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.NotificationsRule other = (com.google.cloud.billing.budgets.v1.NotificationsRule) obj; + com.google.cloud.billing.budgets.v1.NotificationsRule other = + (com.google.cloud.billing.budgets.v1.NotificationsRule) obj; - if (!getPubsubTopic() - .equals(other.getPubsubTopic())) return false; - if (!getSchemaVersion() - .equals(other.getSchemaVersion())) return false; + if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; + if (!getSchemaVersion().equals(other.getSchemaVersion())) return false; if (!getMonitoringNotificationChannelsList() .equals(other.getMonitoringNotificationChannelsList())) return false; - if (getDisableDefaultIamRecipients() - != other.getDisableDefaultIamRecipients()) return false; + if (getDisableDefaultIamRecipients() != other.getDisableDefaultIamRecipients()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -452,106 +499,111 @@ public int hashCode() { hash = (53 * hash) + getMonitoringNotificationChannelsList().hashCode(); } hash = (37 * hash) + DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableDefaultIamRecipients()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDefaultIamRecipients()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.NotificationsRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.NotificationsRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.NotificationsRule 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; } /** + * + * *
    * NotificationsRule defines notifications that are sent based on budget spend
    * and thresholds.
@@ -559,49 +611,47 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.NotificationsRule}
    */
-  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.budgets.v1.NotificationsRule)
       com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.NotificationsRule.class, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
+              com.google.cloud.billing.budgets.v1.NotificationsRule.class,
+              com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.NotificationsRule.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       pubsubTopic_ = "";
       schemaVersion_ = "";
-      monitoringNotificationChannels_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
       disableDefaultIamRecipients_ = false;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
     }
 
     @java.lang.Override
@@ -620,8 +670,11 @@ public com.google.cloud.billing.budgets.v1.NotificationsRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.NotificationsRule buildPartial() {
-      com.google.cloud.billing.budgets.v1.NotificationsRule result = new com.google.cloud.billing.budgets.v1.NotificationsRule(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.billing.budgets.v1.NotificationsRule result =
+          new com.google.cloud.billing.budgets.v1.NotificationsRule(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -647,38 +700,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.NotificationsRule
     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.budgets.v1.NotificationsRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.NotificationsRule)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.NotificationsRule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -686,7 +740,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.NotificationsRule other) {
-      if (other == com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance())
+        return this;
       if (!other.getPubsubTopic().isEmpty()) {
         pubsubTopic_ = other.pubsubTopic_;
         bitField0_ |= 0x00000001;
@@ -736,33 +791,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              pubsubTopic_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              schemaVersion_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureMonitoringNotificationChannelsIsMutable();
-              monitoringNotificationChannels_.add(s);
-              break;
-            } // case 26
-            case 32: {
-              disableDefaultIamRecipients_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                pubsubTopic_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                schemaVersion_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureMonitoringNotificationChannelsIsMutable();
+                monitoringNotificationChannels_.add(s);
+                break;
+              } // case 26
+            case 32:
+              {
+                disableDefaultIamRecipients_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -772,10 +832,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object pubsubTopic_ = "";
     /**
+     *
+     *
      * 
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -806,13 +869,13 @@ public Builder mergeFrom(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; 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(); pubsubTopic_ = s; return s; @@ -821,6 +884,8 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -851,15 +916,14 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -867,6 +931,8 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -897,18 +963,22 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPubsubTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pubsubTopic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -939,6 +1009,7 @@ public Builder setPubsubTopic(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPubsubTopic() { @@ -948,6 +1019,8 @@ public Builder clearPubsubTopic() { return this; } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -978,12 +1051,14 @@ public Builder clearPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pubsubTopic_ = value; bitField0_ |= 0x00000001; @@ -993,6 +1068,8 @@ public Builder setPubsubTopicBytes( private java.lang.Object schemaVersion_ = ""; /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1003,13 +1080,13 @@ public Builder setPubsubTopicBytes(
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ public java.lang.String getSchemaVersion() { java.lang.Object ref = schemaVersion_; 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(); schemaVersion_ = s; return s; @@ -1018,6 +1095,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1028,15 +1107,14 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ - public com.google.protobuf.ByteString - getSchemaVersionBytes() { + public com.google.protobuf.ByteString getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -1044,6 +1122,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1054,18 +1134,22 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schemaVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1076,6 +1160,7 @@ public Builder setSchemaVersion(
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSchemaVersion() { @@ -1085,6 +1170,8 @@ public Builder clearSchemaVersion() { return this; } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1095,12 +1182,14 @@ public Builder clearSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schemaVersion_ = value; bitField0_ |= 0x00000002; @@ -1110,13 +1199,17 @@ public Builder setSchemaVersionBytes( private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMonitoringNotificationChannelsIsMutable() { if (!monitoringNotificationChannels_.isModifiable()) { - monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); + monitoringNotificationChannels_ = + new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); } bitField0_ |= 0x00000004; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1142,15 +1235,19 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList - getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { monitoringNotificationChannels_.makeImmutable(); return monitoringNotificationChannels_; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1176,13 +1273,18 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1208,7 +1310,10 @@ public int getMonitoringNotificationChannelsCount() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -1216,6 +1321,8 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1241,15 +1348,19 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1275,14 +1386,18 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The monitoringNotificationChannels to set. * @return This builder for chaining. */ - public Builder setMonitoringNotificationChannels( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMonitoringNotificationChannels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.set(index, value); bitField0_ |= 0x00000004; @@ -1290,6 +1405,8 @@ public Builder setMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1315,13 +1432,17 @@ public Builder setMonitoringNotificationChannels(
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannels( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMonitoringNotificationChannels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); bitField0_ |= 0x00000004; @@ -1329,6 +1450,8 @@ public Builder addMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1354,7 +1477,10 @@ public Builder addMonitoringNotificationChannels(
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The monitoringNotificationChannels to add. * @return This builder for chaining. */ @@ -1368,6 +1494,8 @@ public Builder addAllMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1393,17 +1521,22 @@ public Builder addAllMonitoringNotificationChannels(
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearMonitoringNotificationChannels() { - monitoringNotificationChannels_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1429,13 +1562,17 @@ public Builder clearMonitoringNotificationChannels() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannelsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); @@ -1444,8 +1581,10 @@ public Builder addMonitoringNotificationChannelsBytes( return this; } - private boolean disableDefaultIamRecipients_ ; + private boolean disableDefaultIamRecipients_; /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1453,7 +1592,9 @@ public Builder addMonitoringNotificationChannelsBytes(
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -1461,6 +1602,8 @@ public boolean getDisableDefaultIamRecipients() { return disableDefaultIamRecipients_; } /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1468,7 +1611,9 @@ public boolean getDisableDefaultIamRecipients() {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The disableDefaultIamRecipients to set. * @return This builder for chaining. */ @@ -1480,6 +1625,8 @@ public Builder setDisableDefaultIamRecipients(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1487,7 +1634,9 @@ public Builder setDisableDefaultIamRecipients(boolean value) {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearDisableDefaultIamRecipients() { @@ -1496,9 +1645,9 @@ public Builder clearDisableDefaultIamRecipients() { 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); } @@ -1508,12 +1657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.NotificationsRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.NotificationsRule) private static final com.google.cloud.billing.budgets.v1.NotificationsRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.NotificationsRule(); } @@ -1522,27 +1671,27 @@ public static com.google.cloud.billing.budgets.v1.NotificationsRule getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationsRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationsRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1557,6 +1706,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.NotificationsRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java similarity index 87% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java index 5f589ecfe3a1..438aced5f877 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface NotificationsRuleOrBuilder extends +public interface NotificationsRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.NotificationsRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -38,10 +56,13 @@ public interface NotificationsRuleOrBuilder extends
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -72,12 +93,14 @@ public interface NotificationsRuleOrBuilder extends
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString - getPubsubTopicBytes(); + com.google.protobuf.ByteString getPubsubTopicBytes(); /** + * + * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -88,10 +111,13 @@ public interface NotificationsRuleOrBuilder extends
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ java.lang.String getSchemaVersion(); /** + * + * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -102,12 +128,14 @@ public interface NotificationsRuleOrBuilder extends
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ - com.google.protobuf.ByteString - getSchemaVersionBytes(); + com.google.protobuf.ByteString getSchemaVersionBytes(); /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -133,12 +161,16 @@ public interface NotificationsRuleOrBuilder extends
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - java.util.List - getMonitoringNotificationChannelsList(); + java.util.List getMonitoringNotificationChannelsList(); /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -164,11 +196,16 @@ public interface NotificationsRuleOrBuilder extends
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ int getMonitoringNotificationChannelsCount(); /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -194,12 +231,17 @@ public interface NotificationsRuleOrBuilder extends
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ java.lang.String getMonitoringNotificationChannels(int index); /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -225,14 +267,18 @@ public interface NotificationsRuleOrBuilder extends
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index); + com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index); /** + * + * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -241,6 +287,7 @@ public interface NotificationsRuleOrBuilder extends
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultIamRecipients. */ boolean getDisableDefaultIamRecipients(); diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java similarity index 69% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java index 9c3a03a0b652..93ee469e3bac 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * ThresholdRule contains the definition of a threshold. Threshold rules define
  * the triggering events used to generate a budget notification email. When a
@@ -31,49 +48,54 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.ThresholdRule}
  */
-public final class ThresholdRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ThresholdRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ThresholdRule)
     ThresholdRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ThresholdRule.newBuilder() to construct.
   private ThresholdRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ThresholdRule() {
     spendBasis_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ThresholdRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.ThresholdRule.class, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
+            com.google.cloud.billing.budgets.v1.ThresholdRule.class,
+            com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of basis used to determine if spend has passed the threshold.
    * 
* * Protobuf enum {@code google.cloud.billing.budgets.v1.ThresholdRule.Basis} */ - public enum Basis - implements com.google.protobuf.ProtocolMessageEnum { + public enum Basis implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified threshold basis.
      * 
@@ -82,6 +104,8 @@ public enum Basis */ BASIS_UNSPECIFIED(0), /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -90,6 +114,8 @@ public enum Basis */ CURRENT_SPEND(1), /** + * + * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -106,6 +132,8 @@ public enum Basis
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified threshold basis.
      * 
@@ -114,6 +142,8 @@ public enum Basis */ public static final int BASIS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -122,6 +152,8 @@ public enum Basis */ public static final int CURRENT_SPEND_VALUE = 1; /** + * + * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -135,7 +167,6 @@ public enum Basis
      */
     public static final int FORECASTED_SPEND_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -160,49 +191,51 @@ public static Basis valueOf(int value) {
      */
     public static Basis forNumber(int value) {
       switch (value) {
-        case 0: return BASIS_UNSPECIFIED;
-        case 1: return CURRENT_SPEND;
-        case 2: return FORECASTED_SPEND;
-        default: return null;
+        case 0:
+          return BASIS_UNSPECIFIED;
+        case 1:
+          return CURRENT_SPEND;
+        case 2:
+          return FORECASTED_SPEND;
+        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<
-        Basis> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Basis findValueByNumber(int number) {
-              return Basis.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 Basis findValueByNumber(int number) {
+            return Basis.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() {
-      return com.google.cloud.billing.budgets.v1.ThresholdRule.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.ThresholdRule.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Basis[] VALUES = values();
 
-    public static Basis valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Basis 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;
@@ -222,6 +255,8 @@ private Basis(int value) {
   public static final int THRESHOLD_PERCENT_FIELD_NUMBER = 1;
   private double thresholdPercent_ = 0D;
   /**
+   *
+   *
    * 
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -229,6 +264,7 @@ private Basis(int value) {
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -239,32 +275,48 @@ public double getThresholdPercent() { public static final int SPEND_BASIS_FIELD_NUMBER = 2; private int spendBasis_ = 0; /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override public int getSpendBasisValue() { + @java.lang.Override + public int getSpendBasisValue() { return spendBasis_; } /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ - @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null + ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,12 +328,12 @@ 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(thresholdPercent_) != 0) { output.writeDouble(1, thresholdPercent_); } - if (spendBasis_ != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + if (spendBasis_ + != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { output.writeEnum(2, spendBasis_); } getUnknownFields().writeTo(output); @@ -294,12 +346,11 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(thresholdPercent_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, thresholdPercent_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, thresholdPercent_); } - if (spendBasis_ != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, spendBasis_); + if (spendBasis_ + != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spendBasis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -309,16 +360,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.budgets.v1.ThresholdRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ThresholdRule other = (com.google.cloud.billing.budgets.v1.ThresholdRule) obj; + com.google.cloud.billing.budgets.v1.ThresholdRule other = + (com.google.cloud.billing.budgets.v1.ThresholdRule) obj; if (java.lang.Double.doubleToLongBits(getThresholdPercent()) - != java.lang.Double.doubleToLongBits( - other.getThresholdPercent())) return false; + != java.lang.Double.doubleToLongBits(other.getThresholdPercent())) return false; if (spendBasis_ != other.spendBasis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -332,8 +383,10 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THRESHOLD_PERCENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThresholdPercent())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThresholdPercent())); hash = (37 * hash) + SPEND_BASIS_FIELD_NUMBER; hash = (53 * hash) + spendBasis_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -342,98 +395,103 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.ThresholdRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ThresholdRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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; } /** + * + * *
    * ThresholdRule contains the definition of a threshold. Threshold rules define
    * the triggering events used to generate a budget notification email. When a
@@ -461,33 +519,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.ThresholdRule}
    */
-  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.budgets.v1.ThresholdRule)
       com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.ThresholdRule.class, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
+              com.google.cloud.billing.budgets.v1.ThresholdRule.class,
+              com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.ThresholdRule.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,9 +555,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
@@ -519,8 +576,11 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.ThresholdRule buildPartial() {
-      com.google.cloud.billing.budgets.v1.ThresholdRule result = new com.google.cloud.billing.budgets.v1.ThresholdRule(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.billing.budgets.v1.ThresholdRule result =
+          new com.google.cloud.billing.budgets.v1.ThresholdRule(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -539,38 +599,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ThresholdRule res
     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.budgets.v1.ThresholdRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.ThresholdRule)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.ThresholdRule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -578,7 +639,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ThresholdRule other) {
-      if (other == com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance())
+        return this;
       if (other.getThresholdPercent() != 0D) {
         setThresholdPercent(other.getThresholdPercent());
       }
@@ -611,22 +673,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 9: {
-              thresholdPercent_ = input.readDouble();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 9
-            case 16: {
-              spendBasis_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 9:
+              {
+                thresholdPercent_ = input.readDouble();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 9
+            case 16:
+              {
+                spendBasis_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -636,10 +701,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private double thresholdPercent_ ;
+    private double thresholdPercent_;
     /**
+     *
+     *
      * 
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -647,6 +715,7 @@ public Builder mergeFrom(
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -654,6 +723,8 @@ public double getThresholdPercent() { return thresholdPercent_; } /** + * + * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -661,6 +732,7 @@ public double getThresholdPercent() {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The thresholdPercent to set. * @return This builder for chaining. */ @@ -672,6 +744,8 @@ public Builder setThresholdPercent(double value) { return this; } /** + * + * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -679,6 +753,7 @@ public Builder setThresholdPercent(double value) {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearThresholdPercent() { @@ -690,24 +765,35 @@ public Builder clearThresholdPercent() { private int spendBasis_ = 0; /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override public int getSpendBasisValue() { + @java.lang.Override + public int getSpendBasisValue() { return spendBasis_; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for spendBasis to set. * @return This builder for chaining. */ @@ -718,26 +804,39 @@ public Builder setSpendBasisValue(int value) { return this; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null + ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The spendBasis to set. * @return This builder for chaining. */ @@ -751,12 +850,17 @@ public Builder setSpendBasis(com.google.cloud.billing.budgets.v1.ThresholdRule.B return this; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearSpendBasis() { @@ -765,9 +869,9 @@ public Builder clearSpendBasis() { 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); } @@ -777,12 +881,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ThresholdRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ThresholdRule) private static final com.google.cloud.billing.budgets.v1.ThresholdRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ThresholdRule(); } @@ -791,27 +895,27 @@ public static com.google.cloud.billing.budgets.v1.ThresholdRule getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThresholdRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThresholdRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +930,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ThresholdRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java similarity index 55% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java index 7fecaa5cf0e3..2b672e710e60 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface ThresholdRuleOrBuilder extends +public interface ThresholdRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ThresholdRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -15,27 +33,38 @@ public interface ThresholdRuleOrBuilder extends
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ double getThresholdPercent(); /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ int getSpendBasisValue(); /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis(); diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java similarity index 67% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java index 0a96a306e40e..0012712b609c 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java @@ -1,56 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * Request for UpdateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.UpdateBudgetRequest} */ -public final class UpdateBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.UpdateBudgetRequest) UpdateBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateBudgetRequest.newBuilder() to construct. private UpdateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateBudgetRequest() { - } + + private UpdateBudgetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); } public static final int BUDGET_FIELD_NUMBER = 1; private com.google.cloud.billing.budgets.v1.Budget budget_; /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ @java.lang.Override @@ -58,34 +81,49 @@ public boolean hasBudget() { return budget_ != null; } /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Budget getBudget() { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -95,7 +133,9 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder()
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -103,6 +143,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -112,7 +154,9 @@ public boolean hasUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -120,6 +164,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -129,7 +175,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -137,6 +184,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,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 (budget_ != null) { output.writeMessage(1, getBudget()); } @@ -166,12 +213,10 @@ public int getSerializedSize() { size = 0; if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBudget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBudget()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -181,22 +226,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.budgets.v1.UpdateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other = (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other = + (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) obj; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget() - .equals(other.getBudget())) return false; + if (!getBudget().equals(other.getBudget())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -223,131 +267,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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 for UpdateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.UpdateBudgetRequest} */ - 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.budgets.v1.UpdateBudgetRequest) com.google.cloud.billing.budgets.v1.UpdateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override @@ -387,8 +436,11 @@ public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result = new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result = + new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -396,14 +448,10 @@ public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.budget_ = budgetBuilder_ == null - ? budget_ - : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -411,38 +459,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.UpdateBudgetReque 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.budgets.v1.UpdateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -450,7 +499,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()) + return this; if (other.hasBudget()) { mergeBudget(other.getBudget()); } @@ -483,26 +533,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getBudgetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -512,46 +561,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.billing.budgets.v1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetBuilder_; + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + budgetBuilder_; /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ public com.google.cloud.billing.budgets.v1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } else { return budgetBuilder_.getMessage(); } } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { @@ -567,15 +636,18 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBudget( - com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetBuilder_ == null) { budget_ = builderForValue.build(); } else { @@ -586,18 +658,22 @@ public Builder setBudget( return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - budget_ != null && - budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && budget_ != null + && budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -610,12 +686,16 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000001); @@ -628,12 +708,16 @@ public Builder clearBudget() { return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000001; @@ -641,38 +725,50 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { return getBudgetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null ? - com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - getBudget(), - getParentForChildren(), - isClean()); + budgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + getBudget(), getParentForChildren(), isClean()); budget_ = null; } return budgetBuilder_; @@ -680,8 +776,13 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() 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_; /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -691,13 +792,17 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder()
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -707,17 +812,23 @@ public boolean hasUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @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(); } } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -727,7 +838,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -743,6 +855,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -752,10 +866,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -766,6 +880,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -775,13 +891,14 @@ public Builder setUpdateMask(
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -794,6 +911,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -803,7 +922,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -816,6 +936,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -825,7 +947,8 @@ public Builder clearUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -833,6 +956,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -842,17 +967,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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_; } } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -862,24 +991,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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); } @@ -889,12 +1022,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.UpdateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.UpdateBudgetRequest) private static final com.google.cloud.billing.budgets.v1.UpdateBudgetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(); } @@ -903,27 +1036,27 @@ public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -938,6 +1071,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java index e2af918a88d8..89ef02418063 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface UpdateBudgetRequestOrBuilder extends +public interface UpdateBudgetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.UpdateBudgetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ boolean hasBudget(); /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ com.google.cloud.billing.budgets.v1.Budget getBudget(); /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -47,11 +79,15 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -61,11 +97,15 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -75,7 +115,8 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java similarity index 76% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java index a6787a95f0d6..2364c0f35a21 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * AllUpdatesRule defines notifications that are sent based on budget spend
  * and thresholds.
@@ -11,46 +28,50 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.AllUpdatesRule}
  */
-public final class AllUpdatesRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AllUpdatesRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.AllUpdatesRule)
     AllUpdatesRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AllUpdatesRule.newBuilder() to construct.
   private AllUpdatesRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AllUpdatesRule() {
     pubsubTopic_ = "";
     schemaVersion_ = "";
-    monitoringNotificationChannels_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AllUpdatesRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class,
+            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
   }
 
   public static final int PUBSUB_TOPIC_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object pubsubTopic_ = "";
   /**
+   *
+   *
    * 
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -66,6 +87,7 @@ protected java.lang.Object newInstance(
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ @java.lang.Override @@ -74,14 +96,15 @@ public java.lang.String getPubsubTopic() { 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(); pubsubTopic_ = s; return s; } } /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -97,16 +120,15 @@ public java.lang.String getPubsubTopic() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -115,9 +137,12 @@ public java.lang.String getPubsubTopic() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object schemaVersion_ = ""; /** + * + * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -128,6 +153,7 @@ public java.lang.String getPubsubTopic() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ @java.lang.Override @@ -136,14 +162,15 @@ public java.lang.String getSchemaVersion() { 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(); schemaVersion_ = s; return s; } } /** + * + * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -154,16 +181,15 @@ public java.lang.String getSchemaVersion() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaVersionBytes() { + public com.google.protobuf.ByteString getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -172,10 +198,13 @@ public java.lang.String getSchemaVersion() { } public static final int MONITORING_NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -187,14 +216,18 @@ public java.lang.String getSchemaVersion() {
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList - getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { return monitoringNotificationChannels_; } /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -206,13 +239,18 @@ public java.lang.String getSchemaVersion() {
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -224,7 +262,10 @@ public int getMonitoringNotificationChannelsCount() {
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -232,6 +273,8 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -243,18 +286,22 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } public static final int DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER = 4; private boolean disableDefaultIamRecipients_ = false; /** + * + * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -263,6 +310,7 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -273,6 +321,8 @@ public boolean getDisableDefaultIamRecipients() { public static final int ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER = 5; private boolean enableProjectLevelRecipients_ = false; /** + * + * *
    * Optional. When set to true, and when the budget has a single project
    * configured, notifications will be sent to project level recipients of that
@@ -283,7 +333,9 @@ public boolean getDisableDefaultIamRecipients() {
    * cloud project.
    * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableProjectLevelRecipients. */ @java.lang.Override @@ -292,6 +344,7 @@ public boolean getEnableProjectLevelRecipients() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -303,8 +356,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(pubsubTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopic_); } @@ -312,7 +364,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaVersion_); } for (int i = 0; i < monitoringNotificationChannels_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, monitoringNotificationChannels_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, monitoringNotificationChannels_.getRaw(i)); } if (disableDefaultIamRecipients_ != false) { output.writeBool(4, disableDefaultIamRecipients_); @@ -344,12 +397,12 @@ public int getSerializedSize() { size += 1 * getMonitoringNotificationChannelsList().size(); } if (disableDefaultIamRecipients_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, disableDefaultIamRecipients_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableDefaultIamRecipients_); } if (enableProjectLevelRecipients_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, enableProjectLevelRecipients_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableProjectLevelRecipients_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -359,23 +412,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.budgets.v1beta1.AllUpdatesRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other = (com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) obj; + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other = + (com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) obj; - if (!getPubsubTopic() - .equals(other.getPubsubTopic())) return false; - if (!getSchemaVersion() - .equals(other.getSchemaVersion())) return false; + if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; + if (!getSchemaVersion().equals(other.getSchemaVersion())) return false; if (!getMonitoringNotificationChannelsList() .equals(other.getMonitoringNotificationChannelsList())) return false; - if (getDisableDefaultIamRecipients() - != other.getDisableDefaultIamRecipients()) return false; - if (getEnableProjectLevelRecipients() - != other.getEnableProjectLevelRecipients()) return false; + if (getDisableDefaultIamRecipients() != other.getDisableDefaultIamRecipients()) return false; + if (getEnableProjectLevelRecipients() != other.getEnableProjectLevelRecipients()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -396,109 +446,114 @@ public int hashCode() { hash = (53 * hash) + getMonitoringNotificationChannelsList().hashCode(); } hash = (37 * hash) + DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableDefaultIamRecipients()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDefaultIamRecipients()); hash = (37 * hash) + ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableProjectLevelRecipients()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableProjectLevelRecipients()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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; } /** + * + * *
    * AllUpdatesRule defines notifications that are sent based on budget spend
    * and thresholds.
@@ -506,50 +561,48 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.AllUpdatesRule}
    */
-  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.budgets.v1beta1.AllUpdatesRule)
       com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class,
+              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       pubsubTopic_ = "";
       schemaVersion_ = "";
-      monitoringNotificationChannels_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
       disableDefaultIamRecipients_ = false;
       enableProjectLevelRecipients_ = false;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
     }
 
     @java.lang.Override
@@ -568,8 +621,11 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule result = new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule result =
+          new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -598,38 +654,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRu
     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.budgets.v1beta1.AllUpdatesRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -637,7 +694,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance())
+        return this;
       if (!other.getPubsubTopic().isEmpty()) {
         pubsubTopic_ = other.pubsubTopic_;
         bitField0_ |= 0x00000001;
@@ -690,38 +748,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              pubsubTopic_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              schemaVersion_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureMonitoringNotificationChannelsIsMutable();
-              monitoringNotificationChannels_.add(s);
-              break;
-            } // case 26
-            case 32: {
-              disableDefaultIamRecipients_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              enableProjectLevelRecipients_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                pubsubTopic_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                schemaVersion_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureMonitoringNotificationChannelsIsMutable();
+                monitoringNotificationChannels_.add(s);
+                break;
+              } // case 26
+            case 32:
+              {
+                disableDefaultIamRecipients_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                enableProjectLevelRecipients_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -731,10 +795,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object pubsubTopic_ = "";
     /**
+     *
+     *
      * 
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -750,13 +817,13 @@ public Builder mergeFrom(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; 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(); pubsubTopic_ = s; return s; @@ -765,6 +832,8 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -780,15 +849,14 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -796,6 +864,8 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -811,18 +881,22 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPubsubTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pubsubTopic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -838,6 +912,7 @@ public Builder setPubsubTopic(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPubsubTopic() { @@ -847,6 +922,8 @@ public Builder clearPubsubTopic() { return this; } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -862,12 +939,14 @@ public Builder clearPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pubsubTopic_ = value; bitField0_ |= 0x00000001; @@ -877,6 +956,8 @@ public Builder setPubsubTopicBytes( private java.lang.Object schemaVersion_ = ""; /** + * + * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -887,13 +968,13 @@ public Builder setPubsubTopicBytes(
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ public java.lang.String getSchemaVersion() { java.lang.Object ref = schemaVersion_; 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(); schemaVersion_ = s; return s; @@ -902,6 +983,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -912,15 +995,14 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ - public com.google.protobuf.ByteString - getSchemaVersionBytes() { + public com.google.protobuf.ByteString getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -928,6 +1010,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -938,18 +1022,22 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schemaVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -960,6 +1048,7 @@ public Builder setSchemaVersion(
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSchemaVersion() { @@ -969,6 +1058,8 @@ public Builder clearSchemaVersion() { return this; } /** + * + * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -979,12 +1070,14 @@ public Builder clearSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schemaVersion_ = value; bitField0_ |= 0x00000002; @@ -994,13 +1087,17 @@ public Builder setSchemaVersionBytes( private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMonitoringNotificationChannelsIsMutable() { if (!monitoringNotificationChannels_.isModifiable()) { - monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); + monitoringNotificationChannels_ = + new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); } bitField0_ |= 0x00000004; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1012,15 +1109,19 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList - getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { monitoringNotificationChannels_.makeImmutable(); return monitoringNotificationChannels_; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1032,13 +1133,18 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1050,7 +1156,10 @@ public int getMonitoringNotificationChannelsCount() {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -1058,6 +1167,8 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1069,15 +1180,19 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1089,14 +1204,18 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The monitoringNotificationChannels to set. * @return This builder for chaining. */ - public Builder setMonitoringNotificationChannels( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMonitoringNotificationChannels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.set(index, value); bitField0_ |= 0x00000004; @@ -1104,6 +1223,8 @@ public Builder setMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1115,13 +1236,17 @@ public Builder setMonitoringNotificationChannels(
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannels( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMonitoringNotificationChannels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); bitField0_ |= 0x00000004; @@ -1129,6 +1254,8 @@ public Builder addMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1140,7 +1267,10 @@ public Builder addMonitoringNotificationChannels(
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The monitoringNotificationChannels to add. * @return This builder for chaining. */ @@ -1154,6 +1284,8 @@ public Builder addAllMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1165,17 +1297,22 @@ public Builder addAllMonitoringNotificationChannels(
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearMonitoringNotificationChannels() { - monitoringNotificationChannels_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1187,13 +1324,17 @@ public Builder clearMonitoringNotificationChannels() {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannelsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); @@ -1202,8 +1343,10 @@ public Builder addMonitoringNotificationChannelsBytes( return this; } - private boolean disableDefaultIamRecipients_ ; + private boolean disableDefaultIamRecipients_; /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1211,7 +1354,9 @@ public Builder addMonitoringNotificationChannelsBytes(
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -1219,6 +1364,8 @@ public boolean getDisableDefaultIamRecipients() { return disableDefaultIamRecipients_; } /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1226,7 +1373,9 @@ public boolean getDisableDefaultIamRecipients() {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The disableDefaultIamRecipients to set. * @return This builder for chaining. */ @@ -1238,6 +1387,8 @@ public Builder setDisableDefaultIamRecipients(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1245,7 +1396,9 @@ public Builder setDisableDefaultIamRecipients(boolean value) {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearDisableDefaultIamRecipients() { @@ -1255,8 +1408,10 @@ public Builder clearDisableDefaultIamRecipients() { return this; } - private boolean enableProjectLevelRecipients_ ; + private boolean enableProjectLevelRecipients_; /** + * + * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1267,7 +1422,9 @@ public Builder clearDisableDefaultIamRecipients() {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableProjectLevelRecipients. */ @java.lang.Override @@ -1275,6 +1432,8 @@ public boolean getEnableProjectLevelRecipients() { return enableProjectLevelRecipients_; } /** + * + * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1285,7 +1444,9 @@ public boolean getEnableProjectLevelRecipients() {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableProjectLevelRecipients to set. * @return This builder for chaining. */ @@ -1297,6 +1458,8 @@ public Builder setEnableProjectLevelRecipients(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1307,7 +1470,9 @@ public Builder setEnableProjectLevelRecipients(boolean value) {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableProjectLevelRecipients() { @@ -1316,9 +1481,9 @@ public Builder clearEnableProjectLevelRecipients() { 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); } @@ -1328,12 +1493,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) private static final com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(); } @@ -1342,27 +1507,27 @@ public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllUpdatesRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllUpdatesRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1377,6 +1542,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java similarity index 81% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java index 2be133261c7c..7ec52a9a10f0 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface AllUpdatesRuleOrBuilder extends +public interface AllUpdatesRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -23,10 +41,13 @@ public interface AllUpdatesRuleOrBuilder extends
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -42,12 +63,14 @@ public interface AllUpdatesRuleOrBuilder extends
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString - getPubsubTopicBytes(); + com.google.protobuf.ByteString getPubsubTopicBytes(); /** + * + * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -58,10 +81,13 @@ public interface AllUpdatesRuleOrBuilder extends
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ java.lang.String getSchemaVersion(); /** + * + * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -72,12 +98,14 @@ public interface AllUpdatesRuleOrBuilder extends
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ - com.google.protobuf.ByteString - getSchemaVersionBytes(); + com.google.protobuf.ByteString getSchemaVersionBytes(); /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -89,12 +117,16 @@ public interface AllUpdatesRuleOrBuilder extends
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - java.util.List - getMonitoringNotificationChannelsList(); + java.util.List getMonitoringNotificationChannelsList(); /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -106,11 +138,16 @@ public interface AllUpdatesRuleOrBuilder extends
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ int getMonitoringNotificationChannelsCount(); /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -122,12 +159,17 @@ public interface AllUpdatesRuleOrBuilder extends
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ java.lang.String getMonitoringNotificationChannels(int index); /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -139,14 +181,18 @@ public interface AllUpdatesRuleOrBuilder extends
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index); + com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index); /** + * + * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -155,11 +201,14 @@ public interface AllUpdatesRuleOrBuilder extends
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultIamRecipients. */ boolean getDisableDefaultIamRecipients(); /** + * + * *
    * Optional. When set to true, and when the budget has a single project
    * configured, notifications will be sent to project level recipients of that
@@ -170,7 +219,9 @@ public interface AllUpdatesRuleOrBuilder extends
    * cloud project.
    * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableProjectLevelRecipients. */ boolean getEnableProjectLevelRecipients(); diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java similarity index 66% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java index 135a870ba672..1ef9e5a7b882 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * A budget is a plan that describes what you expect to spend on Cloud
  * projects, plus the rules to execute as spend is tracked against that plan,
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Budget}
  */
-public final class Budget extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Budget extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.Budget)
     BudgetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Budget.newBuilder() to construct.
   private Budget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Budget() {
     name_ = "";
     displayName_ = "";
@@ -32,28 +50,32 @@ private Budget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Budget();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.Budget.class, com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.Budget.class,
+            com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -69,14 +92,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -84,16 +108,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -102,15 +125,19 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -119,30 +146,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; } } /** + * + * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; + * * @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 { @@ -153,13 +180,18 @@ public java.lang.String getDisplayName() { public static final int BUDGET_FILTER_FIELD_NUMBER = 3; private com.google.cloud.billing.budgets.v1beta1.Filter budgetFilter_; /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ @java.lang.Override @@ -167,41 +199,59 @@ public boolean hasBudgetFilter() { return budgetFilter_ != null; } /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter() { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() + : budgetFilter_; } /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder() { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() + : budgetFilter_; } public static final int AMOUNT_FIELD_NUMBER = 4; private com.google.cloud.billing.budgets.v1beta1.BudgetAmount amount_; /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ @java.lang.Override @@ -209,33 +259,49 @@ public boolean hasAmount() { return amount_ != null; } /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount() { - return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() + : amount_; } /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder() { - return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() + : amount_; } public static final int THRESHOLD_RULES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List thresholdRules_; /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -245,13 +311,18 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountO
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getThresholdRulesList() { + public java.util.List + getThresholdRulesList() { return thresholdRules_; } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -261,14 +332,18 @@ public java.util.List ge
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getThresholdRulesOrBuilderList() { return thresholdRules_; } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -278,13 +353,17 @@ public java.util.List ge
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getThresholdRulesCount() { return thresholdRules_.size(); } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -294,13 +373,17 @@ public int getThresholdRulesCount() {
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index) { return thresholdRules_.get(index); } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -310,7 +393,9 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( @@ -321,12 +406,17 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresh public static final int ALL_UPDATES_RULE_FIELD_NUMBER = 6; private com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule allUpdatesRule_; /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allUpdatesRule field is set. */ @java.lang.Override @@ -334,35 +424,52 @@ public boolean hasAllUpdatesRule() { return allUpdatesRule_ != null; } /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allUpdatesRule. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule() { - return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; + return allUpdatesRule_ == null + ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() + : allUpdatesRule_; } /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder() { - return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder + getAllUpdatesRuleOrBuilder() { + return allUpdatesRule_ == null + ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() + : allUpdatesRule_; } public static final int ETAG_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -370,6 +477,7 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUp
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -378,14 +486,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -393,16 +502,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -411,6 +519,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -422,8 +531,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_); } @@ -461,20 +569,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (budgetFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBudgetFilter()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBudgetFilter()); } if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAmount()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAmount()); } for (int i = 0; i < thresholdRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, thresholdRules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, thresholdRules_.get(i)); } if (allUpdatesRule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getAllUpdatesRule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAllUpdatesRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); @@ -487,36 +591,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.budgets.v1beta1.Budget)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.Budget other = (com.google.cloud.billing.budgets.v1beta1.Budget) obj; + com.google.cloud.billing.budgets.v1beta1.Budget other = + (com.google.cloud.billing.budgets.v1beta1.Budget) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasBudgetFilter() != other.hasBudgetFilter()) return false; if (hasBudgetFilter()) { - if (!getBudgetFilter() - .equals(other.getBudgetFilter())) return false; + if (!getBudgetFilter().equals(other.getBudgetFilter())) return false; } if (hasAmount() != other.hasAmount()) return false; if (hasAmount()) { - if (!getAmount() - .equals(other.getAmount())) return false; + if (!getAmount().equals(other.getAmount())) return false; } - if (!getThresholdRulesList() - .equals(other.getThresholdRulesList())) return false; + if (!getThresholdRulesList().equals(other.getThresholdRulesList())) return false; if (hasAllUpdatesRule() != other.hasAllUpdatesRule()) return false; if (hasAllUpdatesRule()) { - if (!getAllUpdatesRule() - .equals(other.getAllUpdatesRule())) return false; + if (!getAllUpdatesRule().equals(other.getAllUpdatesRule())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -555,99 +653,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1beta1.Budget parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1beta1.Budget parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.Budget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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 budget is a plan that describes what you expect to spend on Cloud
    * projects, plus the rules to execute as spend is tracked against that plan,
@@ -658,33 +761,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Budget}
    */
-  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.budgets.v1beta1.Budget)
       com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.Budget.class, com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.Budget.class,
+              com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.Budget.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -718,9 +820,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
     }
 
     @java.lang.Override
@@ -739,14 +841,18 @@ public com.google.cloud.billing.budgets.v1beta1.Budget build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.Budget buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.Budget result = new com.google.cloud.billing.budgets.v1beta1.Budget(this);
+      com.google.cloud.billing.budgets.v1beta1.Budget result =
+          new com.google.cloud.billing.budgets.v1beta1.Budget(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1beta1.Budget result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.billing.budgets.v1beta1.Budget result) {
       if (thresholdRulesBuilder_ == null) {
         if (((bitField0_ & 0x00000010) != 0)) {
           thresholdRules_ = java.util.Collections.unmodifiableList(thresholdRules_);
@@ -767,19 +873,15 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Budget resul
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.budgetFilter_ = budgetFilterBuilder_ == null
-            ? budgetFilter_
-            : budgetFilterBuilder_.build();
+        result.budgetFilter_ =
+            budgetFilterBuilder_ == null ? budgetFilter_ : budgetFilterBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.amount_ = amountBuilder_ == null
-            ? amount_
-            : amountBuilder_.build();
+        result.amount_ = amountBuilder_ == null ? amount_ : amountBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.allUpdatesRule_ = allUpdatesRuleBuilder_ == null
-            ? allUpdatesRule_
-            : allUpdatesRuleBuilder_.build();
+        result.allUpdatesRule_ =
+            allUpdatesRuleBuilder_ == null ? allUpdatesRule_ : allUpdatesRuleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.etag_ = etag_;
@@ -790,38 +892,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Budget resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.budgets.v1beta1.Budget) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Budget)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Budget) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -829,7 +932,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Budget other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -864,9 +968,10 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Budget other)
             thresholdRulesBuilder_ = null;
             thresholdRules_ = other.thresholdRules_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            thresholdRulesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getThresholdRulesFieldBuilder() : null;
+            thresholdRulesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getThresholdRulesFieldBuilder()
+                    : null;
           } else {
             thresholdRulesBuilder_.addAllMessages(other.thresholdRules_);
           }
@@ -906,61 +1011,63 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getBudgetFilterFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getAmountFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              com.google.cloud.billing.budgets.v1beta1.ThresholdRule m =
-                  input.readMessage(
-                      com.google.cloud.billing.budgets.v1beta1.ThresholdRule.parser(),
-                      extensionRegistry);
-              if (thresholdRulesBuilder_ == null) {
-                ensureThresholdRulesIsMutable();
-                thresholdRules_.add(m);
-              } else {
-                thresholdRulesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getAllUpdatesRuleFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getBudgetFilterFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.cloud.billing.budgets.v1beta1.ThresholdRule m =
+                    input.readMessage(
+                        com.google.cloud.billing.budgets.v1beta1.ThresholdRule.parser(),
+                        extensionRegistry);
+                if (thresholdRulesBuilder_ == null) {
+                  ensureThresholdRulesIsMutable();
+                  thresholdRules_.add(m);
+                } else {
+                  thresholdRulesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getAllUpdatesRuleFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -970,10 +1077,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -981,13 +1091,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -996,6 +1106,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1003,15 +1115,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1019,6 +1130,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1026,18 +1139,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1045,6 +1162,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1054,6 +1172,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1061,12 +1181,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1076,19 +1198,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; + * * @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; @@ -1097,21 +1221,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; + * * @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 { @@ -1119,30 +1244,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1152,18 +1284,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1173,45 +1309,64 @@ public Builder setDisplayNameBytes( private com.google.cloud.billing.budgets.v1beta1.Filter budgetFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> budgetFilterBuilder_; + com.google.cloud.billing.budgets.v1beta1.Filter, + com.google.cloud.billing.budgets.v1beta1.Filter.Builder, + com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> + budgetFilterBuilder_; /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ public boolean hasBudgetFilter() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ public com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter() { if (budgetFilterBuilder_ == null) { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() + : budgetFilter_; } else { return budgetFilterBuilder_.getMessage(); } } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter value) { if (budgetFilterBuilder_ == null) { @@ -1227,13 +1382,17 @@ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter v return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBudgetFilter( com.google.cloud.billing.budgets.v1beta1.Filter.Builder builderForValue) { @@ -1247,19 +1406,24 @@ public Builder setBudgetFilter( return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter value) { if (budgetFilterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - budgetFilter_ != null && - budgetFilter_ != com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && budgetFilter_ != null + && budgetFilter_ + != com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) { getBudgetFilterBuilder().mergeFrom(value); } else { budgetFilter_ = value; @@ -1272,13 +1436,17 @@ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBudgetFilter() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1291,13 +1459,17 @@ public Builder clearBudgetFilter() { return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.Filter.Builder getBudgetFilterBuilder() { bitField0_ |= 0x00000004; @@ -1305,40 +1477,52 @@ public com.google.cloud.billing.budgets.v1beta1.Filter.Builder getBudgetFilterBu return getBudgetFilterFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder() { if (budgetFilterBuilder_ != null) { return budgetFilterBuilder_.getMessageOrBuilder(); } else { - return budgetFilter_ == null ? - com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() + : budgetFilter_; } } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Filter, + com.google.cloud.billing.budgets.v1beta1.Filter.Builder, + com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> getBudgetFilterFieldBuilder() { if (budgetFilterBuilder_ == null) { - budgetFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder>( - getBudgetFilter(), - getParentForChildren(), - isClean()); + budgetFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Filter, + com.google.cloud.billing.budgets.v1beta1.Filter.Builder, + com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder>( + getBudgetFilter(), getParentForChildren(), isClean()); budgetFilter_ = null; } return budgetFilterBuilder_; @@ -1346,39 +1530,58 @@ public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterO private com.google.cloud.billing.budgets.v1beta1.BudgetAmount amount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> amountBuilder_; + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> + amountBuilder_; /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ public boolean hasAmount() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount() { if (amountBuilder_ == null) { - return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() + : amount_; } else { return amountBuilder_.getMessage(); } } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount value) { if (amountBuilder_ == null) { @@ -1394,11 +1597,15 @@ public Builder setAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount v return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAmount( com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder builderForValue) { @@ -1412,17 +1619,22 @@ public Builder setAmount( return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount value) { if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - amount_ != null && - amount_ != com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && amount_ != null + && amount_ + != com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) { getAmountBuilder().mergeFrom(value); } else { amount_ = value; @@ -1435,11 +1647,15 @@ public Builder mergeAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1452,11 +1668,15 @@ public Builder clearAmount() { return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder getAmountBuilder() { bitField0_ |= 0x00000008; @@ -1464,54 +1684,74 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder getAmountBu return getAmountFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { - return amount_ == null ? - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() + : amount_; } } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder>( - getAmount(), - getParentForChildren(), - isClean()); + amountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder>( + getAmount(), getParentForChildren(), isClean()); amount_ = null; } return amountBuilder_; } private java.util.List thresholdRules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureThresholdRulesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - thresholdRules_ = new java.util.ArrayList(thresholdRules_); + thresholdRules_ = + new java.util.ArrayList( + thresholdRules_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> thresholdRulesBuilder_; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> + thresholdRulesBuilder_; /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1521,9 +1761,12 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getThresholdRulesList() { + public java.util.List + getThresholdRulesList() { if (thresholdRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(thresholdRules_); } else { @@ -1531,6 +1774,8 @@ public java.util.List ge } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1540,7 +1785,9 @@ public java.util.List ge
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getThresholdRulesCount() { if (thresholdRulesBuilder_ == null) { @@ -1550,6 +1797,8 @@ public int getThresholdRulesCount() { } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1559,7 +1808,9 @@ public int getThresholdRulesCount() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1569,6 +1820,8 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules( } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1578,7 +1831,9 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { @@ -1595,6 +1850,8 @@ public Builder setThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1604,7 +1861,9 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1618,6 +1877,8 @@ public Builder setThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1627,7 +1888,9 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { if (thresholdRulesBuilder_ == null) { @@ -1643,6 +1906,8 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.Thresh return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1652,7 +1917,9 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.Thresh
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { @@ -1669,6 +1936,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1678,7 +1947,9 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1692,6 +1963,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1701,7 +1974,9 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1715,6 +1990,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1724,14 +2001,16 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllThresholdRules( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (thresholdRulesBuilder_ == null) { ensureThresholdRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, thresholdRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholdRules_); onChanged(); } else { thresholdRulesBuilder_.addAllMessages(values); @@ -1739,6 +2018,8 @@ public Builder addAllThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1748,7 +2029,9 @@ public Builder addAllThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearThresholdRules() { if (thresholdRulesBuilder_ == null) { @@ -1761,6 +2044,8 @@ public Builder clearThresholdRules() { return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1770,7 +2055,9 @@ public Builder clearThresholdRules() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1783,6 +2070,8 @@ public Builder removeThresholdRules(int index) { return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1792,13 +2081,17 @@ public Builder removeThresholdRules(int index) {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresholdRulesBuilder( int index) { return getThresholdRulesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1808,16 +2101,21 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( - int index) { + public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder + getThresholdRulesOrBuilder(int index) { if (thresholdRulesBuilder_ == null) { - return thresholdRules_.get(index); } else { + return thresholdRules_.get(index); + } else { return thresholdRulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1827,10 +2125,12 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresh
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getThresholdRulesOrBuilderList() { + public java.util.List + getThresholdRulesOrBuilderList() { if (thresholdRulesBuilder_ != null) { return thresholdRulesBuilder_.getMessageOrBuilderList(); } else { @@ -1838,6 +2138,8 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresh } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1847,13 +2149,18 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresh
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresholdRulesBuilder() { - return getThresholdRulesFieldBuilder().addBuilder( - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder + addThresholdRulesBuilder() { + return getThresholdRulesFieldBuilder() + .addBuilder(com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1863,14 +2170,19 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresho
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresholdRulesBuilder( int index) { - return getThresholdRulesFieldBuilder().addBuilder( - index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder() + .addBuilder( + index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1880,18 +2192,26 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresho
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getThresholdRulesBuilderList() { + public java.util.List + getThresholdRulesBuilderList() { return getThresholdRulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> getThresholdRulesFieldBuilder() { if (thresholdRulesBuilder_ == null) { - thresholdRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder>( + thresholdRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder>( thresholdRules_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -1903,44 +2223,64 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresho private com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule allUpdatesRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> allUpdatesRuleBuilder_; + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> + allUpdatesRuleBuilder_; /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allUpdatesRule field is set. */ public boolean hasAllUpdatesRule() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allUpdatesRule. */ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule() { if (allUpdatesRuleBuilder_ == null) { - return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; + return allUpdatesRule_ == null + ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() + : allUpdatesRule_; } else { return allUpdatesRuleBuilder_.getMessage(); } } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { + public Builder setAllUpdatesRule( + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { if (allUpdatesRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1954,12 +2294,16 @@ public Builder setAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllUpd return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAllUpdatesRule( com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder builderForValue) { @@ -1973,18 +2317,24 @@ public Builder setAllUpdatesRule( return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { + public Builder mergeAllUpdatesRule( + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { if (allUpdatesRuleBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - allUpdatesRule_ != null && - allUpdatesRule_ != com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && allUpdatesRule_ != null + && allUpdatesRule_ + != com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) { getAllUpdatesRuleBuilder().mergeFrom(value); } else { allUpdatesRule_ = value; @@ -1997,12 +2347,16 @@ public Builder mergeAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllU return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAllUpdatesRule() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2015,51 +2369,69 @@ public Builder clearAllUpdatesRule() { return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder getAllUpdatesRuleBuilder() { + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder + getAllUpdatesRuleBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAllUpdatesRuleFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder() { + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder + getAllUpdatesRuleOrBuilder() { if (allUpdatesRuleBuilder_ != null) { return allUpdatesRuleBuilder_.getMessageOrBuilder(); } else { - return allUpdatesRule_ == null ? - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; + return allUpdatesRule_ == null + ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() + : allUpdatesRule_; } } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> getAllUpdatesRuleFieldBuilder() { if (allUpdatesRuleBuilder_ == null) { - allUpdatesRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder>( - getAllUpdatesRule(), - getParentForChildren(), - isClean()); + allUpdatesRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder>( + getAllUpdatesRule(), getParentForChildren(), isClean()); allUpdatesRule_ = null; } return allUpdatesRuleBuilder_; @@ -2067,6 +2439,8 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUp private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2074,13 +2448,13 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUp
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -2089,6 +2463,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2096,15 +2472,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -2112,6 +2487,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2119,18 +2496,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2138,6 +2519,7 @@ public Builder setEtag(
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2147,6 +2529,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2154,21 +2538,23 @@ public Builder clearEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000040; 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); } @@ -2178,12 +2564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.Budget) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.Budget) private static final com.google.cloud.billing.budgets.v1beta1.Budget DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.Budget(); } @@ -2192,27 +2578,27 @@ public static com.google.cloud.billing.budgets.v1beta1.Budget getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Budget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Budget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2227,6 +2613,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.Budget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java similarity index 74% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java index 13de2cab0510..be8073e99642 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java @@ -1,57 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * The budgeted amount for each usage period.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.BudgetAmount} */ -public final class BudgetAmount extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BudgetAmount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.BudgetAmount) BudgetAmountOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BudgetAmount.newBuilder() to construct. private BudgetAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BudgetAmount() { - } + + private BudgetAmount() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BudgetAmount(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); } private int budgetAmountCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object budgetAmount_; + public enum BudgetAmountCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SPECIFIED_AMOUNT(1), LAST_PERIOD_AMOUNT(2), BUDGETAMOUNT_NOT_SET(0); private final int value; + private BudgetAmountCase(int value) { this.value = value; } @@ -67,25 +89,30 @@ public static BudgetAmountCase valueOf(int value) { public static BudgetAmountCase forNumber(int value) { switch (value) { - case 1: return SPECIFIED_AMOUNT; - case 2: return LAST_PERIOD_AMOUNT; - case 0: return BUDGETAMOUNT_NOT_SET; - default: return null; + case 1: + return SPECIFIED_AMOUNT; + case 2: + return LAST_PERIOD_AMOUNT; + case 0: + return BUDGETAMOUNT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public BudgetAmountCase - getBudgetAmountCase() { - return BudgetAmountCase.forNumber( - budgetAmountCase_); + public BudgetAmountCase getBudgetAmountCase() { + return BudgetAmountCase.forNumber(budgetAmountCase_); } public static final int SPECIFIED_AMOUNT_FIELD_NUMBER = 1; /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -95,6 +122,7 @@ public int getNumber() {
    * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -102,6 +130,8 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -111,16 +141,19 @@ public boolean hasSpecifiedAmount() {
    * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ @java.lang.Override public com.google.type.Money getSpecifiedAmount() { if (budgetAmountCase_ == 1) { - return (com.google.type.Money) budgetAmount_; + return (com.google.type.Money) budgetAmount_; } return com.google.type.Money.getDefaultInstance(); } /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -134,13 +167,15 @@ public com.google.type.Money getSpecifiedAmount() {
   @java.lang.Override
   public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     if (budgetAmountCase_ == 1) {
-       return (com.google.type.Money) budgetAmount_;
+      return (com.google.type.Money) budgetAmount_;
     }
     return com.google.type.Money.getDefaultInstance();
   }
 
   public static final int LAST_PERIOD_AMOUNT_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -150,6 +185,7 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -157,6 +193,8 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -166,16 +204,19 @@ public boolean hasLastPeriodAmount() {
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAmount() { if (budgetAmountCase_ == 2) { - return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_; + return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_; } return com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance(); } /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -187,14 +228,16 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm
    * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
    */
   @java.lang.Override
-  public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
+  public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder
+      getLastPeriodAmountOrBuilder() {
     if (budgetAmountCase_ == 2) {
-       return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_;
+      return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_;
     }
     return com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,13 +249,13 @@ 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 (budgetAmountCase_ == 1) {
       output.writeMessage(1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      output.writeMessage(2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
+      output.writeMessage(
+          2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
     }
     getUnknownFields().writeTo(output);
   }
@@ -224,12 +267,14 @@ public int getSerializedSize() {
 
     size = 0;
     if (budgetAmountCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.type.Money) budgetAmount_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -239,22 +284,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.BudgetAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.BudgetAmount other = (com.google.cloud.billing.budgets.v1beta1.BudgetAmount) obj;
+    com.google.cloud.billing.budgets.v1beta1.BudgetAmount other =
+        (com.google.cloud.billing.budgets.v1beta1.BudgetAmount) obj;
 
     if (!getBudgetAmountCase().equals(other.getBudgetAmountCase())) return false;
     switch (budgetAmountCase_) {
       case 1:
-        if (!getSpecifiedAmount()
-            .equals(other.getSpecifiedAmount())) return false;
+        if (!getSpecifiedAmount().equals(other.getSpecifiedAmount())) return false;
         break;
       case 2:
-        if (!getLastPeriodAmount()
-            .equals(other.getLastPeriodAmount())) return false;
+        if (!getLastPeriodAmount().equals(other.getLastPeriodAmount())) return false;
         break;
       case 0:
       default:
@@ -288,131 +332,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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;
   }
   /**
+   *
+   *
    * 
    * The budgeted amount for each usage period.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.BudgetAmount} */ - 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.budgets.v1beta1.BudgetAmount) com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.BudgetAmount.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override @@ -450,8 +499,11 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmount buildPartial() { - com.google.cloud.billing.budgets.v1beta1.BudgetAmount result = new com.google.cloud.billing.budgets.v1beta1.BudgetAmount(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.BudgetAmount result = + new com.google.cloud.billing.budgets.v1beta1.BudgetAmount(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -464,12 +516,10 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.BudgetAmount private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.BudgetAmount result) { result.budgetAmountCase_ = budgetAmountCase_; result.budgetAmount_ = this.budgetAmount_; - if (budgetAmountCase_ == 1 && - specifiedAmountBuilder_ != null) { + if (budgetAmountCase_ == 1 && specifiedAmountBuilder_ != null) { result.budgetAmount_ = specifiedAmountBuilder_.build(); } - if (budgetAmountCase_ == 2 && - lastPeriodAmountBuilder_ != null) { + if (budgetAmountCase_ == 2 && lastPeriodAmountBuilder_ != null) { result.budgetAmount_ = lastPeriodAmountBuilder_.build(); } } @@ -478,38 +528,39 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.BudgetA 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.budgets.v1beta1.BudgetAmount) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.BudgetAmount)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.BudgetAmount) other); } else { super.mergeFrom(other); return this; @@ -517,19 +568,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.BudgetAmount other) { - if (other == com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) + return this; switch (other.getBudgetAmountCase()) { - case SPECIFIED_AMOUNT: { - mergeSpecifiedAmount(other.getSpecifiedAmount()); - break; - } - case LAST_PERIOD_AMOUNT: { - mergeLastPeriodAmount(other.getLastPeriodAmount()); - break; - } - case BUDGETAMOUNT_NOT_SET: { - break; - } + case SPECIFIED_AMOUNT: + { + mergeSpecifiedAmount(other.getSpecifiedAmount()); + break; + } + case LAST_PERIOD_AMOUNT: + { + mergeLastPeriodAmount(other.getLastPeriodAmount()); + break; + } + case BUDGETAMOUNT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -557,26 +612,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSpecifiedAmountFieldBuilder().getBuilder(), - extensionRegistry); - budgetAmountCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getLastPeriodAmountFieldBuilder().getBuilder(), - extensionRegistry); - budgetAmountCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSpecifiedAmountFieldBuilder().getBuilder(), extensionRegistry); + budgetAmountCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getLastPeriodAmountFieldBuilder().getBuilder(), extensionRegistry); + budgetAmountCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -586,12 +641,12 @@ public Builder mergeFrom( } // finally return this; } + private int budgetAmountCase_ = 0; private java.lang.Object budgetAmount_; - public BudgetAmountCase - getBudgetAmountCase() { - return BudgetAmountCase.forNumber( - budgetAmountCase_); + + public BudgetAmountCase getBudgetAmountCase() { + return BudgetAmountCase.forNumber(budgetAmountCase_); } public Builder clearBudgetAmount() { @@ -604,8 +659,11 @@ public Builder clearBudgetAmount() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> specifiedAmountBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + specifiedAmountBuilder_; /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -615,6 +673,7 @@ public Builder clearBudgetAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -622,6 +681,8 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -631,6 +692,7 @@ public boolean hasSpecifiedAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ @java.lang.Override @@ -648,6 +710,8 @@ public com.google.type.Money getSpecifiedAmount() { } } /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -672,6 +736,8 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -682,8 +748,7 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
      *
      * .google.type.Money specified_amount = 1;
      */
-    public Builder setSpecifiedAmount(
-        com.google.type.Money.Builder builderForValue) {
+    public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue) {
       if (specifiedAmountBuilder_ == null) {
         budgetAmount_ = builderForValue.build();
         onChanged();
@@ -694,6 +759,8 @@ public Builder setSpecifiedAmount(
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -706,10 +773,11 @@ public Builder setSpecifiedAmount(
      */
     public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       if (specifiedAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 1 &&
-            budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
-          budgetAmount_ = com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
-              .mergeFrom(value).buildPartial();
+        if (budgetAmountCase_ == 1 && budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
+          budgetAmount_ =
+              com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -725,6 +793,8 @@ public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -752,6 +822,8 @@ public Builder clearSpecifiedAmount() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -766,6 +838,8 @@ public com.google.type.Money.Builder getSpecifiedAmountBuilder() {
       return getSpecifiedAmountFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -788,6 +862,8 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -799,17 +875,18 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * .google.type.Money specified_amount = 1;
      */
     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>
         getSpecifiedAmountFieldBuilder() {
       if (specifiedAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 1)) {
           budgetAmount_ = com.google.type.Money.getDefaultInstance();
         }
-        specifiedAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
-                (com.google.type.Money) budgetAmount_,
-                getParentForChildren(),
-                isClean());
+        specifiedAmountBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Money,
+                com.google.type.Money.Builder,
+                com.google.type.MoneyOrBuilder>(
+                (com.google.type.Money) budgetAmount_, getParentForChildren(), isClean());
         budgetAmount_ = null;
       }
       budgetAmountCase_ = 1;
@@ -818,8 +895,13 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder> lastPeriodAmountBuilder_;
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>
+        lastPeriodAmountBuilder_;
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -829,6 +911,7 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -836,6 +919,8 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** + * + * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -845,6 +930,7 @@ public boolean hasLastPeriodAmount() {
      * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ @java.lang.Override @@ -862,6 +948,8 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm } } /** + * + * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -872,7 +960,8 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder setLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
+    public Builder setLastPeriodAmount(
+        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -886,6 +975,8 @@ public Builder setLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.Last
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -908,6 +999,8 @@ public Builder setLastPeriodAmount(
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -918,12 +1011,17 @@ public Builder setLastPeriodAmount(
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
+    public Builder mergeLastPeriodAmount(
+        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 2 &&
-            budgetAmount_ != com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) {
-          budgetAmount_ = com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_)
-              .mergeFrom(value).buildPartial();
+        if (budgetAmountCase_ == 2
+            && budgetAmount_
+                != com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) {
+          budgetAmount_ =
+              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder(
+                      (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -939,6 +1037,8 @@ public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.La
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -966,6 +1066,8 @@ public Builder clearLastPeriodAmount() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -976,10 +1078,13 @@ public Builder clearLastPeriodAmount() {
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder getLastPeriodAmountBuilder() {
+    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder
+        getLastPeriodAmountBuilder() {
       return getLastPeriodAmountFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -991,7 +1096,8 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder getLast
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
     @java.lang.Override
-    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
+    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder
+        getLastPeriodAmountOrBuilder() {
       if ((budgetAmountCase_ == 2) && (lastPeriodAmountBuilder_ != null)) {
         return lastPeriodAmountBuilder_.getMessageOrBuilder();
       } else {
@@ -1002,6 +1108,8 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLas
       }
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1013,14 +1121,20 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLas
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder> 
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>
         getLastPeriodAmountFieldBuilder() {
       if (lastPeriodAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 2)) {
-          budgetAmount_ = com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
+          budgetAmount_ =
+              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
         }
-        lastPeriodAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>(
+        lastPeriodAmountBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
+                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
+                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>(
                 (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_,
                 getParentForChildren(),
                 isClean());
@@ -1030,9 +1144,9 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLas
       onChanged();
       return lastPeriodAmountBuilder_;
     }
+
     @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);
     }
 
@@ -1042,12 +1156,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.BudgetAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.BudgetAmount)
   private static final com.google.cloud.billing.budgets.v1beta1.BudgetAmount DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.BudgetAmount();
   }
@@ -1056,27 +1170,27 @@ public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BudgetAmount parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BudgetAmount parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1091,6 +1205,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
index 3860d523c051..2d5ed5c4e4c4 100644
--- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface BudgetAmountOrBuilder extends
+public interface BudgetAmountOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.BudgetAmount)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -17,10 +35,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ boolean hasSpecifiedAmount(); /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -30,10 +51,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ com.google.type.Money getSpecifiedAmount(); /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -47,6 +71,8 @@ public interface BudgetAmountOrBuilder extends
   com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder();
 
   /**
+   *
+   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -56,10 +82,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ boolean hasLastPeriodAmount(); /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -69,10 +98,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAmount(); /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
new file mode 100644
index 000000000000..0296683b9357
--- /dev/null
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
@@ -0,0 +1,239 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1beta1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1beta1;
+
+public final class BudgetModel {
+  private BudgetModel() {}
+
+  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_budgets_v1beta1_Budget_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n7google/cloud/billing/budgets/v1beta1/b"
+          + "udget_model.proto\022$google.cloud.billing."
+          + "budgets.v1beta1\032\037google/api/field_behavi"
+          + "or.proto\032\031google/api/resource.proto\032\034goo"
+          + "gle/protobuf/struct.proto\032\026google/type/d"
+          + "ate.proto\032\027google/type/money.proto\"\344\003\n\006B"
+          + "udget\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_nam"
+          + "e\030\002 \001(\t\022I\n\rbudget_filter\030\003 \001(\0132,.google."
+          + "cloud.billing.budgets.v1beta1.FilterB\004\342A"
+          + "\001\001\022H\n\006amount\030\004 \001(\01322.google.cloud.billin"
+          + "g.budgets.v1beta1.BudgetAmountB\004\342A\001\002\022R\n\017"
+          + "threshold_rules\030\005 \003(\01323.google.cloud.bil"
+          + "ling.budgets.v1beta1.ThresholdRuleB\004\342A\001\001"
+          + "\022T\n\020all_updates_rule\030\006 \001(\01324.google.clou"
+          + "d.billing.budgets.v1beta1.AllUpdatesRule"
+          + "B\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001\001:]\352AZ\n$billing"
+          + "budgets.googleapis.com/Budget\0222billingAc"
+          + "counts/{billing_account}/budgets/{budget"
+          + "}\"\245\001\n\014BudgetAmount\022.\n\020specified_amount\030\001"
+          + " \001(\0132\022.google.type.MoneyH\000\022T\n\022last_perio"
+          + "d_amount\030\002 \001(\01326.google.cloud.billing.bu"
+          + "dgets.v1beta1.LastPeriodAmountH\000B\017\n\rbudg"
+          + "et_amount\"\022\n\020LastPeriodAmount\"\317\001\n\rThresh"
+          + "oldRule\022\037\n\021threshold_percent\030\001 \001(\001B\004\342A\001\002"
+          + "\022T\n\013spend_basis\030\002 \001(\01629.google.cloud.bil"
+          + "ling.budgets.v1beta1.ThresholdRule.Basis"
+          + "B\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021"
+          + "\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\""
+          + "\327\001\n\016AllUpdatesRule\022\032\n\014pubsub_topic\030\001 \001(\t"
+          + "B\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004\342A\001\001\022.\n "
+          + "monitoring_notification_channels\030\003 \003(\tB\004"
+          + "\342A\001\001\022,\n\036disable_default_iam_recipients\030\004"
+          + " \001(\010B\004\342A\001\001\022-\n\037enable_project_level_recip"
+          + "ients\030\005 \001(\010B\004\342A\001\001\"\341\005\n\006Filter\022\026\n\010projects"
+          + "\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(\t"
+          + "B\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022g\n\026cr"
+          + "edit_types_treatment\030\004 \001(\0162A.google.clou"
+          + "d.billing.budgets.v1beta1.Filter.CreditT"
+          + "ypesTreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342"
+          + "A\001\001\022\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022N\n\006labels"
+          + "\030\006 \003(\01328.google.cloud.billing.budgets.v1"
+          + "beta1.Filter.LabelsEntryB\004\342A\001\001\022U\n\017calend"
+          + "ar_period\030\010 \001(\01624.google.cloud.billing.b"
+          + "udgets.v1beta1.CalendarPeriodB\004\342A\001\001H\000\022Q\n"
+          + "\rcustom_period\030\t \001(\01322.google.cloud.bill"
+          + "ing.budgets.v1beta1.CustomPeriodB\004\342A\001\001H\000"
+          + "\032I\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 "
+          + "\001(\0132\032.google.protobuf.ListValue:\0028\001\"\217\001\n\024"
+          + "CreditTypesTreatment\022&\n\"CREDIT_TYPES_TRE"
+          + "ATMENT_UNSPECIFIED\020\000\022\027\n\023INCLUDE_ALL_CRED"
+          + "ITS\020\001\022\027\n\023EXCLUDE_ALL_CREDITS\020\002\022\035\n\031INCLUD"
+          + "E_SPECIFIED_CREDITS\020\003B\016\n\014usage_period\"f\n"
+          + "\014CustomPeriod\022+\n\nstart_date\030\001 \001(\0132\021.goog"
+          + "le.type.DateB\004\342A\001\002\022)\n\010end_date\030\002 \001(\0132\021.g"
+          + "oogle.type.DateB\004\342A\001\001*S\n\016CalendarPeriod\022"
+          + "\037\n\033CALENDAR_PERIOD_UNSPECIFIED\020\000\022\t\n\005MONT"
+          + "H\020\001\022\013\n\007QUARTER\020\002\022\010\n\004YEAR\020\003Bp\n(com.google"
+          + ".cloud.billing.budgets.v1beta1P\001ZBcloud."
+          + "google.com/go/billing/budgets/apiv1beta1"
+          + "/budgetspb;budgetspbb\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.protobuf.StructProto.getDescriptor(),
+              com.google.type.DateProto.getDescriptor(),
+              com.google.type.MoneyProto.getDescriptor(),
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "DisplayName",
+              "BudgetFilter",
+              "Amount",
+              "ThresholdRules",
+              "AllUpdatesRule",
+              "Etag",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor,
+            new java.lang.String[] {
+              "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor,
+            new java.lang.String[] {});
+    internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor,
+            new java.lang.String[] {
+              "ThresholdPercent", "SpendBasis",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor,
+            new java.lang.String[] {
+              "PubsubTopic",
+              "SchemaVersion",
+              "MonitoringNotificationChannels",
+              "DisableDefaultIamRecipients",
+              "EnableProjectLevelRecipients",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor,
+            new java.lang.String[] {
+              "Projects",
+              "ResourceAncestors",
+              "CreditTypes",
+              "CreditTypesTreatment",
+              "Services",
+              "Subaccounts",
+              "Labels",
+              "CalendarPeriod",
+              "CustomPeriod",
+              "UsagePeriod",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor =
+        internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor,
+            new java.lang.String[] {
+              "StartDate", "EndDate",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.type.DateProto.getDescriptor();
+    com.google.type.MoneyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
similarity index 100%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
similarity index 66%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
index 33b9e9490e9c..f9f7acf624be 100644
--- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface BudgetOrBuilder extends
+public interface BudgetOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.Budget)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -15,10 +33,13 @@ public interface BudgetOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -26,94 +47,129 @@ public interface BudgetOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ boolean hasBudgetFilter(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ boolean hasAmount(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -123,11 +179,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getThresholdRulesList(); + java.util.List getThresholdRulesList(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -137,10 +196,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -150,10 +213,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getThresholdRulesCount(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -163,11 +230,15 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getThresholdRulesOrBuilderList(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -177,42 +248,60 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( int index); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allUpdatesRule field is set. */ boolean hasAllUpdatesRule(); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allUpdatesRule. */ com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule(); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder(); /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -220,10 +309,13 @@ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRule
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -231,8 +323,8 @@ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRule
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java new file mode 100644 index 000000000000..22f43ca0ff4a --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java @@ -0,0 +1,199 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public final class BudgetServiceOuterClass { + private BudgetServiceOuterClass() {} + + 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_budgets_v1beta1_CreateBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/billing/budgets/v1beta1/b" + + "udget_service.proto\022$google.cloud.billin" + + "g.budgets.v1beta1\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\0327google/cloud/billing/budge" + + "ts/v1beta1/budget_model.proto\032\033google/pr" + + "otobuf/empty.proto\032 google/protobuf/fiel" + + "d_mask.proto\"\230\001\n\023CreateBudgetRequest\022=\n\006" + + "parent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.go" + + "ogleapis.com/Budget\022B\n\006budget\030\002 \001(\0132,.go" + + "ogle.cloud.billing.budgets.v1beta1.Budge" + + "tB\004\342A\001\002\"\220\001\n\023UpdateBudgetRequest\022B\n\006budge" + + "t\030\001 \001(\0132,.google.cloud.billing.budgets.v" + + "1beta1.BudgetB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\004\342A\001\001\"O\n\020Ge" + + "tBudgetRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$b" + + "illingbudgets.googleapis.com/Budget\"\233\001\n\022" + + "ListBudgetsRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002" + + "\372A&\022$billingbudgets.googleapis.com/Budge" + + "t\022\023\n\005scope\030\004 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\002 \001(" + + "\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"m\n\023Lis" + + "tBudgetsResponse\022=\n\007budgets\030\001 \003(\0132,.goog" + + "le.cloud.billing.budgets.v1beta1.Budget\022" + + "\027\n\017next_page_token\030\002 \001(\t\"R\n\023DeleteBudget" + + "Request\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$billingb" + + "udgets.googleapis.com/Budget2\367\007\n\rBudgetS" + + "ervice\022\257\001\n\014CreateBudget\0229.google.cloud.b" + + "illing.budgets.v1beta1.CreateBudgetReque" + + "st\032,.google.cloud.billing.budgets.v1beta" + + "1.Budget\"6\202\323\344\223\0020\"+/v1beta1/{parent=billi" + + "ngAccounts/*}/budgets:\001*\022\266\001\n\014UpdateBudge" + + "t\0229.google.cloud.billing.budgets.v1beta1" + + ".UpdateBudgetRequest\032,.google.cloud.bill" + + "ing.budgets.v1beta1.Budget\"=\202\323\344\223\002722/v1b" + + "eta1/{budget.name=billingAccounts/*/budg" + + "ets/*}:\001*\022\246\001\n\tGetBudget\0226.google.cloud.b" + + "illing.budgets.v1beta1.GetBudgetRequest\032" + + ",.google.cloud.billing.budgets.v1beta1.B" + + "udget\"3\202\323\344\223\002-\022+/v1beta1/{name=billingAcc" + + "ounts/*/budgets/*}\022\267\001\n\013ListBudgets\0228.goo" + + "gle.cloud.billing.budgets.v1beta1.ListBu" + + "dgetsRequest\0329.google.cloud.billing.budg" + + "ets.v1beta1.ListBudgetsResponse\"3\202\323\344\223\002-\022" + + "+/v1beta1/{parent=billingAccounts/*}/bud" + + "gets\022\226\001\n\014DeleteBudget\0229.google.cloud.bil" + + "ling.budgets.v1beta1.DeleteBudgetRequest" + + "\032\026.google.protobuf.Empty\"3\202\323\344\223\002-*+/v1bet" + + "a1/{name=billingAccounts/*/budgets/*}\032\177\312" + + "A\035billingbudgets.googleapis.com\322A\\https:" + + "//www.googleapis.com/auth/cloud-billing," + + "https://www.googleapis.com/auth/cloud-pl" + + "atformBp\n(com.google.cloud.billing.budge" + + "ts.v1beta1P\001ZBcloud.google.com/go/billin" + + "g/budgets/apiv1beta1/budgetspb;budgetspb" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor, + new java.lang.String[] { + "Parent", "Budget", + }); + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor, + new java.lang.String[] { + "Budget", "UpdateMask", + }); + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor, + new java.lang.String[] { + "Parent", "Scope", "PageSize", "PageToken", + }); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor, + new java.lang.String[] { + "Budgets", "NextPageToken", + }); + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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.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.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java similarity index 70% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java index 86d01ba9b7eb..cfc7fbcbde4f 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * A `CalendarPeriod` represents the abstract concept of a time period that
  * has a canonical start. Grammatically, "the start of the current
@@ -13,9 +30,10 @@
  *
  * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.CalendarPeriod}
  */
-public enum CalendarPeriod
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -25,6 +43,8 @@ public enum CalendarPeriod
    */
   CALENDAR_PERIOD_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -34,6 +54,8 @@ public enum CalendarPeriod
    */
   MONTH(1),
   /**
+   *
+   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -43,6 +65,8 @@ public enum CalendarPeriod
    */
   QUARTER(2),
   /**
+   *
+   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -54,6 +78,8 @@ public enum CalendarPeriod ; /** + * + * *
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -63,6 +89,8 @@ public enum CalendarPeriod
    */
   public static final int CALENDAR_PERIOD_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -72,6 +100,8 @@ public enum CalendarPeriod
    */
   public static final int MONTH_VALUE = 1;
   /**
+   *
+   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -81,6 +111,8 @@ public enum CalendarPeriod
    */
   public static final int QUARTER_VALUE = 2;
   /**
+   *
+   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -89,7 +121,6 @@ public enum CalendarPeriod */ public static final int YEAR_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -114,50 +145,53 @@ public static CalendarPeriod valueOf(int value) { */ public static CalendarPeriod forNumber(int value) { switch (value) { - case 0: return CALENDAR_PERIOD_UNSPECIFIED; - case 1: return MONTH; - case 2: return QUARTER; - case 3: return YEAR; - default: return null; + case 0: + return CALENDAR_PERIOD_UNSPECIFIED; + case 1: + return MONTH; + case 2: + return QUARTER; + case 3: + return YEAR; + 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< - CalendarPeriod> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CalendarPeriod findValueByNumber(int number) { - return CalendarPeriod.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 CalendarPeriod findValueByNumber(int number) { + return CalendarPeriod.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() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor() + .getEnumTypes() + .get(0); } private static final CalendarPeriod[] VALUES = values(); - public static CalendarPeriod valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CalendarPeriod 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; @@ -173,4 +207,3 @@ private CalendarPeriod(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.billing.budgets.v1beta1.CalendarPeriod) } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java similarity index 60% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java index 6d9dd3b70ceb..d22746895682 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * Request for CreateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CreateBudgetRequest} */ -public final class CreateBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) CreateBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateBudgetRequest.newBuilder() to construct. private CreateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateBudgetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 @@ -61,30 +86,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 billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 { @@ -95,11 +122,16 @@ public java.lang.String getParent() { public static final int BUDGET_FIELD_NUMBER = 2; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ @java.lang.Override @@ -107,30 +139,44 @@ public boolean hasBudget() { return budget_ != null; } /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +188,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_); } @@ -163,8 +208,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBudget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBudget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +218,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.budgets.v1beta1.CreateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other = + (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget() - .equals(other.getBudget())) return false; + if (!getBudget().equals(other.getBudget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +254,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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 for CreateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CreateBudgetRequest} */ - 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.budgets.v1beta1.CreateBudgetRequest) com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,13 +398,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest + getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance(); } @@ -371,21 +420,23 @@ public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result) { + private void buildPartial0( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.budget_ = budgetBuilder_ == null - ? budget_ - : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); } } @@ -393,38 +444,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CreateBudget 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.budgets.v1beta1.CreateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -432,7 +484,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -467,24 +521,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getBudgetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,23 +549,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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; @@ -519,21 +579,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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 { @@ -541,30 +604,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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() { @@ -574,18 +648,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -595,39 +675,58 @@ public Builder setParentBytes( private com.google.cloud.billing.budgets.v1beta1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + budgetBuilder_; /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } else { return budgetBuilder_.getMessage(); } } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { @@ -643,11 +742,15 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget( com.google.cloud.billing.budgets.v1beta1.Budget.Builder builderForValue) { @@ -661,17 +764,21 @@ public Builder setBudget( return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - budget_ != null && - budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && budget_ != null + && budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -684,11 +791,15 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +812,15 @@ public Builder clearBudget() { return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000002; @@ -713,43 +828,55 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder( return getBudgetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null ? - com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - getBudget(), - getParentForChildren(), - isClean()); + budgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + getBudget(), getParentForChildren(), isClean()); budget_ = null; } return budgetBuilder_; } + @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); } @@ -759,12 +886,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(); } @@ -773,27 +901,27 @@ public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,6 +936,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..3e0000fbe7f5 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface CreateBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the budget field is set. + */ + boolean hasBudget(); + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The budget. + */ + com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java similarity index 73% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java index bed26a74be51..10e89bdd6d8a 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java @@ -1,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CustomPeriod} */ -public final class CustomPeriod extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CustomPeriod extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.CustomPeriod) CustomPeriodOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomPeriod.newBuilder() to construct. private CustomPeriod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomPeriod() { - } + + private CustomPeriod() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomPeriod(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); } public static final int START_DATE_FIELD_NUMBER = 1; private com.google.type.Date startDate_; /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ @java.lang.Override @@ -57,11 +78,14 @@ public boolean hasStartDate() { return startDate_ != null; } /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ @java.lang.Override @@ -69,6 +93,8 @@ public com.google.type.Date getStartDate() { return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -83,6 +109,8 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { public static final int END_DATE_FIELD_NUMBER = 2; private com.google.type.Date endDate_; /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -90,6 +118,7 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ @java.lang.Override @@ -97,6 +126,8 @@ public boolean hasEndDate() { return endDate_ != null; } /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -104,6 +135,7 @@ public boolean hasEndDate() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ @java.lang.Override @@ -111,6 +143,8 @@ public com.google.type.Date getEndDate() { return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; } /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -125,6 +159,7 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -136,8 +171,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 (startDate_ != null) {
       output.writeMessage(1, getStartDate());
     }
@@ -154,12 +188,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (startDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getStartDate());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate());
     }
     if (endDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getEndDate());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -169,22 +201,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.budgets.v1beta1.CustomPeriod)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.CustomPeriod other = (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) obj;
+    com.google.cloud.billing.budgets.v1beta1.CustomPeriod other =
+        (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) obj;
 
     if (hasStartDate() != other.hasStartDate()) return false;
     if (hasStartDate()) {
-      if (!getStartDate()
-          .equals(other.getStartDate())) return false;
+      if (!getStartDate().equals(other.getStartDate())) return false;
     }
     if (hasEndDate() != other.hasEndDate()) return false;
     if (hasEndDate()) {
-      if (!getEndDate()
-          .equals(other.getEndDate())) return false;
+      if (!getEndDate().equals(other.getEndDate())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -211,131 +242,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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;
   }
   /**
+   *
+   *
    * 
    * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CustomPeriod} */ - 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.budgets.v1beta1.CustomPeriod) com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override @@ -375,8 +411,11 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriod buildPartial() { - com.google.cloud.billing.budgets.v1beta1.CustomPeriod result = new com.google.cloud.billing.budgets.v1beta1.CustomPeriod(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.CustomPeriod result = + new com.google.cloud.billing.budgets.v1beta1.CustomPeriod(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,14 +423,10 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CustomPeriod result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startDate_ = startDateBuilder_ == null - ? startDate_ - : startDateBuilder_.build(); + result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endDate_ = endDateBuilder_ == null - ? endDate_ - : endDateBuilder_.build(); + result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); } } @@ -399,38 +434,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CustomPeriod)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CustomPeriod) other); } else { super.mergeFrom(other); return this; @@ -438,7 +474,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.CustomPeriod other) { - if (other == com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) + return this; if (other.hasStartDate()) { mergeStartDate(other.getStartDate()); } @@ -471,26 +508,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartDateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndDateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,28 +536,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.Date startDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> startDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ public boolean hasStartDate() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ public com.google.type.Date getStartDate() { @@ -532,6 +576,8 @@ public com.google.type.Date getStartDate() { } } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -552,14 +598,15 @@ public Builder setStartDate(com.google.type.Date value) { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartDate( - com.google.type.Date.Builder builderForValue) { + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { if (startDateBuilder_ == null) { startDate_ = builderForValue.build(); } else { @@ -570,6 +617,8 @@ public Builder setStartDate( return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -578,9 +627,9 @@ public Builder setStartDate( */ public Builder mergeStartDate(com.google.type.Date value) { if (startDateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startDate_ != null && - startDate_ != com.google.type.Date.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startDate_ != null + && startDate_ != com.google.type.Date.getDefaultInstance()) { getStartDateBuilder().mergeFrom(value); } else { startDate_ = value; @@ -593,6 +642,8 @@ public Builder mergeStartDate(com.google.type.Date value) { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -610,6 +661,8 @@ public Builder clearStartDate() { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -622,6 +675,8 @@ public com.google.type.Date.Builder getStartDateBuilder() { return getStartDateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -632,11 +687,12 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { if (startDateBuilder_ != null) { return startDateBuilder_.getMessageOrBuilder(); } else { - return startDate_ == null ? - com.google.type.Date.getDefaultInstance() : startDate_; + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -644,14 +700,13 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getStartDateFieldBuilder() { if (startDateBuilder_ == null) { - startDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), - getParentForChildren(), - isClean()); + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); startDate_ = null; } return startDateBuilder_; @@ -659,8 +714,11 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { private com.google.type.Date endDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> endDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -668,12 +726,15 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ public boolean hasEndDate() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -681,6 +742,7 @@ public boolean hasEndDate() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ public com.google.type.Date getEndDate() { @@ -691,6 +753,8 @@ public com.google.type.Date getEndDate() { } } /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -713,6 +777,8 @@ public Builder setEndDate(com.google.type.Date value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -721,8 +787,7 @@ public Builder setEndDate(com.google.type.Date value) {
      *
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setEndDate(
-        com.google.type.Date.Builder builderForValue) {
+    public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
       if (endDateBuilder_ == null) {
         endDate_ = builderForValue.build();
       } else {
@@ -733,6 +798,8 @@ public Builder setEndDate(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -743,9 +810,9 @@ public Builder setEndDate(
      */
     public Builder mergeEndDate(com.google.type.Date value) {
       if (endDateBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endDate_ != null &&
-          endDate_ != com.google.type.Date.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endDate_ != null
+            && endDate_ != com.google.type.Date.getDefaultInstance()) {
           getEndDateBuilder().mergeFrom(value);
         } else {
           endDate_ = value;
@@ -758,6 +825,8 @@ public Builder mergeEndDate(com.google.type.Date value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -777,6 +846,8 @@ public Builder clearEndDate() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -791,6 +862,8 @@ public com.google.type.Date.Builder getEndDateBuilder() {
       return getEndDateFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -803,11 +876,12 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
       if (endDateBuilder_ != null) {
         return endDateBuilder_.getMessageOrBuilder();
       } else {
-        return endDate_ == null ?
-            com.google.type.Date.getDefaultInstance() : endDate_;
+        return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -817,21 +891,20 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
+            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
         getEndDateFieldBuilder() {
       if (endDateBuilder_ == null) {
-        endDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
-                getEndDate(),
-                getParentForChildren(),
-                isClean());
+        endDateBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+                getEndDate(), getParentForChildren(), isClean());
         endDate_ = null;
       }
       return endDateBuilder_;
     }
+
     @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);
     }
 
@@ -841,12 +914,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.CustomPeriod)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.CustomPeriod)
   private static final com.google.cloud.billing.budgets.v1beta1.CustomPeriod DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.CustomPeriod();
   }
@@ -855,27 +928,27 @@ public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CustomPeriod parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CustomPeriod parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +963,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
similarity index 75%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
index 1d3f15ee1185..af4a6b65fd67 100644
--- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface CustomPeriodOrBuilder extends
+public interface CustomPeriodOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CustomPeriod)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ boolean hasStartDate(); /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ com.google.type.Date getStartDate(); /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -35,6 +59,8 @@ public interface CustomPeriodOrBuilder extends com.google.type.DateOrBuilder getStartDateOrBuilder(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -42,10 +68,13 @@ public interface CustomPeriodOrBuilder extends
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ boolean hasEndDate(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -53,10 +82,13 @@ public interface CustomPeriodOrBuilder extends
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ com.google.type.Date getEndDate(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
similarity index 62%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
index 14432e315d32..325397656561 100644
--- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
@@ -1,58 +1,83 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
 /**
+ *
+ *
  * 
  * Request for DeleteBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest} */ -public final class DeleteBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) DeleteBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteBudgetRequest.newBuilder() to construct. private DeleteBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other = + (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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 for DeleteBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest} */ - 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.budgets.v1beta1.DeleteBudgetRequest) com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,13 +323,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest + getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance(); } @@ -312,13 +345,17 @@ public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result) { + private void buildPartial0( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -329,38 +366,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.DeleteBudget 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.budgets.v1beta1.DeleteBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +406,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +462,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,21 +492,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -467,30 +517,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -500,27 +561,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +597,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(); } @@ -544,27 +612,27 @@ public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..fa9463f8a928 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface DeleteBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java similarity index 75% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java index e32b77b5cc4b..f2991d9b060e 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java @@ -1,71 +1,86 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * A filter for a budget, limiting the scope of the cost to calculate.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Filter} */ -public final class Filter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.Filter) FilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Filter() { - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Filter(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.Filter.class, com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1beta1.Filter.class, + com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); } /** + * + * *
    * Specifies how credits are applied when determining the spend for
    * threshold calculations. Budgets track the total cost minus any applicable
@@ -76,13 +91,12 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment}
    */
-  public enum CreditTypesTreatment
-      implements com.google.protobuf.ProtocolMessageEnum {
-    /**
-     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
-     */
+  public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageEnum {
+    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
     CREDIT_TYPES_TREATMENT_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -92,6 +106,8 @@ public enum CreditTypesTreatment
      */
     INCLUDE_ALL_CREDITS(1),
     /**
+     *
+     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -101,6 +117,8 @@ public enum CreditTypesTreatment
      */
     EXCLUDE_ALL_CREDITS(2),
     /**
+     *
+     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -114,11 +132,11 @@ public enum CreditTypesTreatment
     UNRECOGNIZED(-1),
     ;
 
-    /**
-     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
-     */
+    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
     public static final int CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -128,6 +146,8 @@ public enum CreditTypesTreatment
      */
     public static final int INCLUDE_ALL_CREDITS_VALUE = 1;
     /**
+     *
+     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -137,6 +157,8 @@ public enum CreditTypesTreatment
      */
     public static final int EXCLUDE_ALL_CREDITS_VALUE = 2;
     /**
+     *
+     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -148,7 +170,6 @@ public enum CreditTypesTreatment
      */
     public static final int INCLUDE_SPECIFIED_CREDITS_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -173,11 +194,16 @@ public static CreditTypesTreatment valueOf(int value) {
      */
     public static CreditTypesTreatment forNumber(int value) {
       switch (value) {
-        case 0: return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
-        case 1: return INCLUDE_ALL_CREDITS;
-        case 2: return EXCLUDE_ALL_CREDITS;
-        case 3: return INCLUDE_SPECIFIED_CREDITS;
-        default: return null;
+        case 0:
+          return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
+        case 1:
+          return INCLUDE_ALL_CREDITS;
+        case 2:
+          return EXCLUDE_ALL_CREDITS;
+        case 3:
+          return INCLUDE_SPECIFIED_CREDITS;
+        default:
+          return null;
       }
     }
 
@@ -185,28 +211,28 @@ public static CreditTypesTreatment forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        CreditTypesTreatment> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public CreditTypesTreatment findValueByNumber(int number) {
-              return CreditTypesTreatment.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 CreditTypesTreatment findValueByNumber(int number) {
+                return CreditTypesTreatment.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.budgets.v1beta1.Filter.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -215,8 +241,7 @@ public CreditTypesTreatment findValueByNumber(int number) {
     public static CreditTypesTreatment 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;
@@ -234,15 +259,19 @@ private CreditTypesTreatment(int value) {
   }
 
   private int usagePeriodCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object usagePeriod_;
+
   public enum UsagePeriodCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CALENDAR_PERIOD(8),
     CUSTOM_PERIOD(9),
     USAGEPERIOD_NOT_SET(0);
     private final int value;
+
     private UsagePeriodCase(int value) {
       this.value = value;
     }
@@ -258,28 +287,34 @@ public static UsagePeriodCase valueOf(int value) {
 
     public static UsagePeriodCase forNumber(int value) {
       switch (value) {
-        case 8: return CALENDAR_PERIOD;
-        case 9: return CUSTOM_PERIOD;
-        case 0: return USAGEPERIOD_NOT_SET;
-        default: return null;
+        case 8:
+          return CALENDAR_PERIOD;
+        case 9:
+          return CUSTOM_PERIOD;
+        case 0:
+          return USAGEPERIOD_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public UsagePeriodCase
-  getUsagePeriodCase() {
-    return UsagePeriodCase.forNumber(
-        usagePeriodCase_);
+  public UsagePeriodCase getUsagePeriodCase() {
+    return UsagePeriodCase.forNumber(usagePeriodCase_);
   }
 
   public static final int PROJECTS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList projects_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -288,13 +323,15 @@ public int getNumber() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList - getProjectsList() { + public com.google.protobuf.ProtocolStringList getProjectsList() { return projects_; } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -303,12 +340,15 @@ public int getNumber() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -317,6 +357,7 @@ public int getProjectsCount() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -324,6 +365,8 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -332,19 +375,22 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString - getProjectsBytes(int index) { + public com.google.protobuf.ByteString getProjectsBytes(int index) { return projects_.getByteString(index); } public static final int RESOURCE_ANCESTORS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -356,13 +402,15 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList - getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { return resourceAncestors_; } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -374,12 +422,15 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -391,6 +442,7 @@ public int getResourceAncestorsCount() {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -398,6 +450,8 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -409,19 +463,22 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString - getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } public static final int CREDIT_TYPES_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -436,13 +493,15 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList - getCreditTypesList() { + public com.google.protobuf.ProtocolStringList getCreditTypesList() { return creditTypes_; } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -457,12 +516,15 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -477,6 +539,7 @@ public int getCreditTypesCount() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -484,6 +547,8 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -498,45 +563,65 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString - getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } public static final int CREDIT_TYPES_TREATMENT_FIELD_NUMBER = 4; private int creditTypesTreatment_ = 0; /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override public int getCreditTypesTreatmentValue() { + @java.lang.Override + public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ - @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment + getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber( + creditTypesTreatment_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED + : result; } public static final int SERVICES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -547,13 +632,15 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList - getServicesList() { + public com.google.protobuf.ProtocolStringList getServicesList() { return services_; } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -564,12 +651,15 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -580,6 +670,7 @@ public int getServicesCount() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ @@ -587,6 +678,8 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -597,19 +690,22 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString - getServicesBytes(int index) { + public com.google.protobuf.ByteString getServicesBytes(int index) { return services_.getByteString(index); } public static final int SUBACCOUNTS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -620,13 +716,15 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList - getSubaccountsList() { + public com.google.protobuf.ProtocolStringList getSubaccountsList() { return subaccounts_; } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -637,12 +735,15 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -653,6 +754,7 @@ public int getSubaccountsCount() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -660,6 +762,8 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -670,41 +774,46 @@ public java.lang.String getSubaccounts(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString - getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.ListValue> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.ListValue.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.ListValue.getDefaultInstance()); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ListValue> labels_; + private com.google.protobuf.MapField labels_; + private com.google.protobuf.MapField - internalGetLabels() { + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -717,23 +826,26 @@ public int getLabelsCount() {
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -746,13 +858,17 @@ public java.util.Map getLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -765,20 +881,25 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.protobuf.ListValue defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -791,12 +912,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -807,6 +931,8 @@ public com.google.protobuf.ListValue getLabelsOrThrow( public static final int CALENDAR_PERIOD_FIELD_NUMBER = 8; /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -816,13 +942,18 @@ public com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -832,7 +963,10 @@ public boolean hasCalendarPeriod() {
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ public int getCalendarPeriodValue() { @@ -842,6 +976,8 @@ public int getCalendarPeriodValue() { return 0; } /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -851,26 +987,37 @@ public int getCalendarPeriodValue() {
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED + : result; } return com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } public static final int CUSTOM_PERIOD_FIELD_NUMBER = 9; /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -878,38 +1025,48 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -921,8 +1078,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 < projects_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projects_.getRaw(i)); } @@ -932,18 +1088,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < services_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, services_.getRaw(i)); } - if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { + if (creditTypesTreatment_ + != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment + .CREDIT_TYPES_TREATMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(4, creditTypesTreatment_); } for (int i = 0; i < subaccounts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subaccounts_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); for (int i = 0; i < creditTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, creditTypes_.getRaw(i)); } @@ -986,9 +1141,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getServicesList().size(); } - if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, creditTypesTreatment_); + if (creditTypesTreatment_ + != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment + .CREDIT_TYPES_TREATMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, creditTypesTreatment_); } { int dataSize = 0; @@ -998,15 +1155,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSubaccountsList().size(); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } { int dataSize = 0; @@ -1017,12 +1174,14 @@ public int getSerializedSize() { size += 1 * getCreditTypesList().size(); } if (usagePeriodCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, ((java.lang.Integer) usagePeriod_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 8, ((java.lang.Integer) usagePeriod_)); } if (usagePeriodCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1032,35 +1191,28 @@ 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.budgets.v1beta1.Filter)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.Filter other = (com.google.cloud.billing.budgets.v1beta1.Filter) obj; + com.google.cloud.billing.budgets.v1beta1.Filter other = + (com.google.cloud.billing.budgets.v1beta1.Filter) obj; - if (!getProjectsList() - .equals(other.getProjectsList())) return false; - if (!getResourceAncestorsList() - .equals(other.getResourceAncestorsList())) return false; - if (!getCreditTypesList() - .equals(other.getCreditTypesList())) return false; + if (!getProjectsList().equals(other.getProjectsList())) return false; + if (!getResourceAncestorsList().equals(other.getResourceAncestorsList())) return false; + if (!getCreditTypesList().equals(other.getCreditTypesList())) return false; if (creditTypesTreatment_ != other.creditTypesTreatment_) return false; - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!getSubaccountsList() - .equals(other.getSubaccountsList())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getServicesList().equals(other.getServicesList())) return false; + if (!getSubaccountsList().equals(other.getSubaccountsList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getUsagePeriodCase().equals(other.getUsagePeriodCase())) return false; switch (usagePeriodCase_) { case 8: - if (getCalendarPeriodValue() - != other.getCalendarPeriodValue()) return false; + if (getCalendarPeriodValue() != other.getCalendarPeriodValue()) return false; break; case 9: - if (!getCustomPeriod() - .equals(other.getCustomPeriod())) return false; + if (!getCustomPeriod().equals(other.getCustomPeriod())) return false; break; case 0: default: @@ -1119,169 +1271,166 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1beta1.Filter parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1beta1.Filter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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 filter for a budget, limiting the scope of the cost to calculate.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Filter} */ - 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.budgets.v1beta1.Filter) com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.Filter.class, com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1beta1.Filter.class, + com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.Filter.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableLabels().clear(); if (customPeriodBuilder_ != null) { customPeriodBuilder_.clear(); @@ -1292,9 +1441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @java.lang.Override @@ -1313,8 +1462,11 @@ public com.google.cloud.billing.budgets.v1beta1.Filter build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter buildPartial() { - com.google.cloud.billing.budgets.v1beta1.Filter result = new com.google.cloud.billing.budgets.v1beta1.Filter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.Filter result = + new com.google.cloud.billing.budgets.v1beta1.Filter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1354,8 +1506,7 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Filter resul private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.Filter result) { result.usagePeriodCase_ = usagePeriodCase_; result.usagePeriod_ = this.usagePeriod_; - if (usagePeriodCase_ == 9 && - customPeriodBuilder_ != null) { + if (usagePeriodCase_ == 9 && customPeriodBuilder_ != null) { result.usagePeriod_ = customPeriodBuilder_.build(); } } @@ -1364,38 +1515,39 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Filter)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Filter) other); } else { super.mergeFrom(other); return this; @@ -1403,7 +1555,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Filter other) { - if (other == com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) + return this; if (!other.projects_.isEmpty()) { if (projects_.isEmpty()) { projects_ = other.projects_; @@ -1457,21 +1610,23 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Filter other) } onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000040; switch (other.getUsagePeriodCase()) { - case CALENDAR_PERIOD: { - setCalendarPeriodValue(other.getCalendarPeriodValue()); - break; - } - case CUSTOM_PERIOD: { - mergeCustomPeriod(other.getCustomPeriod()); - break; - } - case USAGEPERIOD_NOT_SET: { - break; - } + case CALENDAR_PERIOD: + { + setCalendarPeriodValue(other.getCalendarPeriodValue()); + break; + } + case CUSTOM_PERIOD: + { + mergeCustomPeriod(other.getCustomPeriod()); + break; + } + case USAGEPERIOD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1499,69 +1654,80 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureProjectsIsMutable(); - projects_.add(s); - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceAncestorsIsMutable(); - resourceAncestors_.add(s); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureServicesIsMutable(); - services_.add(s); - break; - } // case 26 - case 32: { - creditTypesTreatment_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubaccountsIsMutable(); - subaccounts_.add(s); - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - ensureCreditTypesIsMutable(); - creditTypes_.add(s); - break; - } // case 58 - case 64: { - int rawValue = input.readEnum(); - usagePeriodCase_ = 8; - usagePeriod_ = rawValue; - break; - } // case 64 - case 74: { - input.readMessage( - getCustomPeriodFieldBuilder().getBuilder(), - extensionRegistry); - usagePeriodCase_ = 9; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectsIsMutable(); + projects_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceAncestorsIsMutable(); + resourceAncestors_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServicesIsMutable(); + services_.add(s); + break; + } // case 26 + case 32: + { + creditTypesTreatment_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubaccountsIsMutable(); + subaccounts_.add(s); + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry + labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCreditTypesIsMutable(); + creditTypes_.add(s); + break; + } // case 58 + case 64: + { + int rawValue = input.readEnum(); + usagePeriodCase_ = 8; + usagePeriod_ = rawValue; + break; + } // case 64 + case 74: + { + input.readMessage(getCustomPeriodFieldBuilder().getBuilder(), extensionRegistry); + usagePeriodCase_ = 9; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1571,12 +1737,12 @@ public Builder mergeFrom( } // finally return this; } + private int usagePeriodCase_ = 0; private java.lang.Object usagePeriod_; - public UsagePeriodCase - getUsagePeriodCase() { - return UsagePeriodCase.forNumber( - usagePeriodCase_); + + public UsagePeriodCase getUsagePeriodCase() { + return UsagePeriodCase.forNumber(usagePeriodCase_); } public Builder clearUsagePeriod() { @@ -1590,6 +1756,7 @@ public Builder clearUsagePeriod() { private com.google.protobuf.LazyStringArrayList projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureProjectsIsMutable() { if (!projects_.isModifiable()) { projects_ = new com.google.protobuf.LazyStringArrayList(projects_); @@ -1597,6 +1764,8 @@ private void ensureProjectsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1605,14 +1774,16 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList - getProjectsList() { + public com.google.protobuf.ProtocolStringList getProjectsList() { projects_.makeImmutable(); return projects_; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1621,12 +1792,15 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1635,6 +1809,7 @@ public int getProjectsCount() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -1642,6 +1817,8 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1650,14 +1827,16 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString - getProjectsBytes(int index) { + public com.google.protobuf.ByteString getProjectsBytes(int index) { return projects_.getByteString(index); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1666,13 +1845,15 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The projects to set. * @return This builder for chaining. */ - public Builder setProjects( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureProjectsIsMutable(); projects_.set(index, value); bitField0_ |= 0x00000001; @@ -1680,6 +1861,8 @@ public Builder setProjects( return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1688,12 +1871,14 @@ public Builder setProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The projects to add. * @return This builder for chaining. */ - public Builder addProjects( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureProjectsIsMutable(); projects_.add(value); bitField0_ |= 0x00000001; @@ -1701,6 +1886,8 @@ public Builder addProjects( return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1709,19 +1896,20 @@ public Builder addProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The projects to add. * @return This builder for chaining. */ - public Builder addAllProjects( - java.lang.Iterable values) { + public Builder addAllProjects(java.lang.Iterable values) { ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projects_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1730,16 +1918,19 @@ public Builder addAllProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProjects() { - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1748,12 +1939,14 @@ public Builder clearProjects() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the projects to add. * @return This builder for chaining. */ - public Builder addProjectsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureProjectsIsMutable(); projects_.add(value); @@ -1764,6 +1957,7 @@ public Builder addProjectsBytes( private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResourceAncestorsIsMutable() { if (!resourceAncestors_.isModifiable()) { resourceAncestors_ = new com.google.protobuf.LazyStringArrayList(resourceAncestors_); @@ -1771,6 +1965,8 @@ private void ensureResourceAncestorsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1781,15 +1977,18 @@ private void ensureResourceAncestorsIsMutable() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList - getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { resourceAncestors_.makeImmutable(); return resourceAncestors_; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1800,13 +1999,17 @@ private void ensureResourceAncestorsIsMutable() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1817,7 +2020,9 @@ public int getResourceAncestorsCount() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -1825,6 +2030,8 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1835,15 +2042,18 @@ public java.lang.String getResourceAncestors(int index) {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString - getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1854,14 +2064,17 @@ public java.lang.String getResourceAncestors(int index) {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The resourceAncestors to set. * @return This builder for chaining. */ - public Builder setResourceAncestors( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceAncestors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceAncestorsIsMutable(); resourceAncestors_.set(index, value); bitField0_ |= 0x00000002; @@ -1869,6 +2082,8 @@ public Builder setResourceAncestors( return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1879,13 +2094,16 @@ public Builder setResourceAncestors(
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestors( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceAncestors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); bitField0_ |= 0x00000002; @@ -1893,6 +2111,8 @@ public Builder addResourceAncestors( return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1903,20 +2123,22 @@ public Builder addResourceAncestors(
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addAllResourceAncestors( - java.lang.Iterable values) { + public Builder addAllResourceAncestors(java.lang.Iterable values) { ensureResourceAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceAncestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceAncestors_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1927,17 +2149,21 @@ public Builder addAllResourceAncestors(
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearResourceAncestors() { - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1948,13 +2174,16 @@ public Builder clearResourceAncestors() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestorsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); @@ -1965,6 +2194,7 @@ public Builder addResourceAncestorsBytes( private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureCreditTypesIsMutable() { if (!creditTypes_.isModifiable()) { creditTypes_ = new com.google.protobuf.LazyStringArrayList(creditTypes_); @@ -1972,6 +2202,8 @@ private void ensureCreditTypesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -1986,14 +2218,16 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList - getCreditTypesList() { + public com.google.protobuf.ProtocolStringList getCreditTypesList() { creditTypes_.makeImmutable(); return creditTypes_; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2008,12 +2242,15 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2028,6 +2265,7 @@ public int getCreditTypesCount() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -2035,6 +2273,8 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2049,14 +2289,16 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString - getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2071,13 +2313,15 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The creditTypes to set. * @return This builder for chaining. */ - public Builder setCreditTypes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCreditTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCreditTypesIsMutable(); creditTypes_.set(index, value); bitField0_ |= 0x00000004; @@ -2085,6 +2329,8 @@ public Builder setCreditTypes( return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2099,12 +2345,14 @@ public Builder setCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCreditTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCreditTypesIsMutable(); creditTypes_.add(value); bitField0_ |= 0x00000004; @@ -2112,6 +2360,8 @@ public Builder addCreditTypes( return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2126,19 +2376,20 @@ public Builder addCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The creditTypes to add. * @return This builder for chaining. */ - public Builder addAllCreditTypes( - java.lang.Iterable values) { + public Builder addAllCreditTypes(java.lang.Iterable values) { ensureCreditTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, creditTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creditTypes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2153,16 +2404,19 @@ public Builder addAllCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCreditTypes() { - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2177,12 +2431,14 @@ public Builder clearCreditTypes() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureCreditTypesIsMutable(); creditTypes_.add(value); @@ -2193,22 +2449,33 @@ public Builder addCreditTypesBytes( private int creditTypesTreatment_ = 0; /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override public int getCreditTypesTreatmentValue() { + @java.lang.Override + public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for creditTypesTreatment to set. * @return This builder for chaining. */ @@ -2219,28 +2486,44 @@ public Builder setCreditTypesTreatmentValue(int value) { return this; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment + getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber( + creditTypesTreatment_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The creditTypesTreatment to set. * @return This builder for chaining. */ - public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment value) { + public Builder setCreditTypesTreatment( + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment value) { if (value == null) { throw new NullPointerException(); } @@ -2250,11 +2533,16 @@ public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1beta1. return this; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCreditTypesTreatment() { @@ -2266,6 +2554,7 @@ public Builder clearCreditTypesTreatment() { private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureServicesIsMutable() { if (!services_.isModifiable()) { services_ = new com.google.protobuf.LazyStringArrayList(services_); @@ -2273,6 +2562,8 @@ private void ensureServicesIsMutable() { bitField0_ |= 0x00000010; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2283,14 +2574,16 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList - getServicesList() { + public com.google.protobuf.ProtocolStringList getServicesList() { services_.makeImmutable(); return services_; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2301,12 +2594,15 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2317,6 +2613,7 @@ public int getServicesCount() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ @@ -2324,6 +2621,8 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2334,14 +2633,16 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString - getServicesBytes(int index) { + public com.google.protobuf.ByteString getServicesBytes(int index) { return services_.getByteString(index); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2352,13 +2653,15 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The services to set. * @return This builder for chaining. */ - public Builder setServices( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServices(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServicesIsMutable(); services_.set(index, value); bitField0_ |= 0x00000010; @@ -2366,6 +2669,8 @@ public Builder setServices( return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2376,12 +2681,14 @@ public Builder setServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The services to add. * @return This builder for chaining. */ - public Builder addServices( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServices(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServicesIsMutable(); services_.add(value); bitField0_ |= 0x00000010; @@ -2389,6 +2696,8 @@ public Builder addServices( return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2399,19 +2708,20 @@ public Builder addServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The services to add. * @return This builder for chaining. */ - public Builder addAllServices( - java.lang.Iterable values) { + public Builder addAllServices(java.lang.Iterable values) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2422,16 +2732,19 @@ public Builder addAllServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServices() { - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2442,12 +2755,14 @@ public Builder clearServices() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the services to add. * @return This builder for chaining. */ - public Builder addServicesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServicesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureServicesIsMutable(); services_.add(value); @@ -2458,6 +2773,7 @@ public Builder addServicesBytes( private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSubaccountsIsMutable() { if (!subaccounts_.isModifiable()) { subaccounts_ = new com.google.protobuf.LazyStringArrayList(subaccounts_); @@ -2465,6 +2781,8 @@ private void ensureSubaccountsIsMutable() { bitField0_ |= 0x00000020; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2475,14 +2793,16 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList - getSubaccountsList() { + public com.google.protobuf.ProtocolStringList getSubaccountsList() { subaccounts_.makeImmutable(); return subaccounts_; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2493,12 +2813,15 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2509,6 +2832,7 @@ public int getSubaccountsCount() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -2516,6 +2840,8 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2526,14 +2852,16 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString - getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2544,13 +2872,15 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The subaccounts to set. * @return This builder for chaining. */ - public Builder setSubaccounts( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubaccounts(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubaccountsIsMutable(); subaccounts_.set(index, value); bitField0_ |= 0x00000020; @@ -2558,6 +2888,8 @@ public Builder setSubaccounts( return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2568,12 +2900,14 @@ public Builder setSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccounts( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubaccounts(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubaccountsIsMutable(); subaccounts_.add(value); bitField0_ |= 0x00000020; @@ -2581,6 +2915,8 @@ public Builder addSubaccounts( return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2591,19 +2927,20 @@ public Builder addSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The subaccounts to add. * @return This builder for chaining. */ - public Builder addAllSubaccounts( - java.lang.Iterable values) { + public Builder addAllSubaccounts(java.lang.Iterable values) { ensureSubaccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subaccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subaccounts_); bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2614,16 +2951,19 @@ public Builder addAllSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSubaccounts() { - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020);; + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2634,12 +2974,14 @@ public Builder clearSubaccounts() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccountsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSubaccountsIsMutable(); subaccounts_.add(value); @@ -2648,21 +2990,20 @@ public Builder addSubaccountsBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ListValue> labels_; + private com.google.protobuf.MapField labels_; + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2671,10 +3012,13 @@ public Builder addSubaccountsBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2687,23 +3031,26 @@ public int getLabelsCount() {
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2716,13 +3063,17 @@ public java.util.Map getLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2735,20 +3086,25 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.protobuf.ListValue defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2761,12 +3117,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2774,13 +3133,15 @@ public com.google.protobuf.ListValue getLabelsOrThrow( } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2793,25 +3154,26 @@ public Builder clearLabels() {
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2824,19 +3186,24 @@ public Builder removeLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putLabels( - java.lang.String key, - com.google.protobuf.ListValue value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2849,17 +3216,20 @@ public Builder putLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllLabels( java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2869,7 +3239,10 @@ public Builder putAllLabels(
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ @java.lang.Override @@ -2877,6 +3250,8 @@ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2886,7 +3261,10 @@ public boolean hasCalendarPeriod() {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ @java.lang.Override @@ -2897,6 +3275,8 @@ public int getCalendarPeriodValue() { return 0; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2906,7 +3286,10 @@ public int getCalendarPeriodValue() {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for calendarPeriod to set. * @return This builder for chaining. */ @@ -2917,6 +3300,8 @@ public Builder setCalendarPeriodValue(int value) { return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2926,19 +3311,27 @@ public Builder setCalendarPeriodValue(int value) {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED + : result; } return com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2948,11 +3341,15 @@ public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The calendarPeriod to set. * @return This builder for chaining. */ - public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1beta1.CalendarPeriod value) { + public Builder setCalendarPeriod( + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod value) { if (value == null) { throw new NullPointerException(); } @@ -2962,6 +3359,8 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1beta1.Calend return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2971,7 +3370,10 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1beta1.Calend
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCalendarPeriod() { @@ -2984,14 +3386,22 @@ public Builder clearCalendarPeriod() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> customPeriodBuilder_; + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> + customPeriodBuilder_; /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -2999,12 +3409,17 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ @java.lang.Override @@ -3022,12 +3437,16 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod() { } } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPeriod value) { if (customPeriodBuilder_ == null) { @@ -3043,12 +3462,16 @@ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPe return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomPeriod( com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder builderForValue) { @@ -3062,19 +3485,27 @@ public Builder setCustomPeriod( return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPeriod value) { if (customPeriodBuilder_ == null) { - if (usagePeriodCase_ == 9 && - usagePeriod_ != com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) { - usagePeriod_ = com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder((com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_) - .mergeFrom(value).buildPartial(); + if (usagePeriodCase_ == 9 + && usagePeriod_ + != com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) { + usagePeriod_ = + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder( + (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_) + .mergeFrom(value) + .buildPartial(); } else { usagePeriod_ = value; } @@ -3090,12 +3521,16 @@ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1beta1.Custom return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCustomPeriod() { if (customPeriodBuilder_ == null) { @@ -3114,26 +3549,35 @@ public Builder clearCustomPeriod() { return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder getCustomPeriodBuilder() { return getCustomPeriodFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { + public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder + getCustomPeriodOrBuilder() { if ((usagePeriodCase_ == 9) && (customPeriodBuilder_ != null)) { return customPeriodBuilder_.getMessageOrBuilder(); } else { @@ -3144,22 +3588,31 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomP } } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> getCustomPeriodFieldBuilder() { if (customPeriodBuilder_ == null) { if (!(usagePeriodCase_ == 9)) { usagePeriod_ = com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } - customPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder>( + customPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder>( (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_, getParentForChildren(), isClean()); @@ -3169,9 +3622,9 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomP onChanged(); return customPeriodBuilder_; } + @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); } @@ -3181,12 +3634,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.Filter) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.Filter) private static final com.google.cloud.billing.budgets.v1beta1.Filter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.Filter(); } @@ -3195,27 +3648,27 @@ public static com.google.cloud.billing.budgets.v1beta1.Filter getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3230,6 +3683,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java similarity index 83% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java index 6d6ed75fa958..88f716939663 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface FilterOrBuilder extends +public interface FilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.Filter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -16,11 +34,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - java.util.List - getProjectsList(); + java.util.List getProjectsList(); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -29,10 +49,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ int getProjectsCount(); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -41,11 +64,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ java.lang.String getProjects(int index); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -54,13 +80,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - com.google.protobuf.ByteString - getProjectsBytes(int index); + com.google.protobuf.ByteString getProjectsBytes(int index); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -72,11 +100,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the resourceAncestors. */ - java.util.List - getResourceAncestorsList(); + java.util.List getResourceAncestorsList(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -88,10 +118,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of resourceAncestors. */ int getResourceAncestorsCount(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -103,11 +136,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ java.lang.String getResourceAncestors(int index); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -119,13 +155,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - com.google.protobuf.ByteString - getResourceAncestorsBytes(int index); + com.google.protobuf.ByteString getResourceAncestorsBytes(int index); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -140,11 +178,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - java.util.List - getCreditTypesList(); + java.util.List getCreditTypesList(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -159,10 +199,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ int getCreditTypesCount(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -177,11 +220,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ java.lang.String getCreditTypes(int index); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -196,32 +242,44 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - com.google.protobuf.ByteString - getCreditTypesBytes(int index); + com.google.protobuf.ByteString getCreditTypesBytes(int index); /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ int getCreditTypesTreatmentValue(); /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -232,11 +290,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - java.util.List - getServicesList(); + java.util.List getServicesList(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -247,10 +307,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ int getServicesCount(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -261,11 +324,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ java.lang.String getServices(int index); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -276,13 +342,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - com.google.protobuf.ByteString - getServicesBytes(int index); + com.google.protobuf.ByteString getServicesBytes(int index); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -293,11 +361,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - java.util.List - getSubaccountsList(); + java.util.List getSubaccountsList(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -308,10 +378,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ int getSubaccountsCount(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -322,11 +395,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ java.lang.String getSubaccounts(int index); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -337,13 +413,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - com.google.protobuf.ByteString - getSubaccountsBytes(int index); + com.google.protobuf.ByteString getSubaccountsBytes(int index); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -356,10 +434,14 @@ public interface FilterOrBuilder extends
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getLabelsCount(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -372,17 +454,17 @@ public interface FilterOrBuilder extends
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -395,11 +477,14 @@ boolean containsLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -412,14 +497,18 @@ boolean containsLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue); + com.google.protobuf.ListValue defaultValue); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -432,12 +521,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key); + com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -447,11 +539,16 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ boolean hasCalendarPeriod(); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -461,11 +558,16 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ int getCalendarPeriodValue(); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -475,38 +577,55 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ boolean hasCustomPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder(); diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java similarity index 63% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java index 6cb5a3e603dd..c35946915029 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * Request for GetBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.GetBudgetRequest} */ -public final class GetBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) GetBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetBudgetRequest.newBuilder() to construct. private GetBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other = + (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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 for GetBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.GetBudgetRequest} */ - 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.budgets.v1beta1.GetBudgetRequest) com.google.cloud.billing.budgets.v1beta1.GetBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override @@ -312,8 +344,11 @@ public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +364,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.GetBudgetReq 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.budgets.v1beta1.GetBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +404,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +459,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,21 +489,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -467,30 +514,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -500,27 +558,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) private static final com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(); } @@ -544,27 +608,27 @@ public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..fd66ff6cf720 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface GetBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java similarity index 65% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java index f461f262596e..c390cddb2a5b 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * Describes a budget amount targeted to the last
  * [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period]
@@ -18,39 +35,41 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.LastPeriodAmount}
  */
-public final class LastPeriodAmount extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LastPeriodAmount extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
     LastPeriodAmountOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LastPeriodAmount.newBuilder() to construct.
   private LastPeriodAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LastPeriodAmount() {
-  }
+
+  private LastPeriodAmount() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LastPeriodAmount();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class,
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -62,8 +81,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -81,12 +99,13 @@ 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.budgets.v1beta1.LastPeriodAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other = (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) obj;
+    com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other =
+        (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -105,98 +124,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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;
   }
   /**
+   *
+   *
    * 
    * Describes a budget amount targeted to the last
    * [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period]
@@ -211,33 +236,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.LastPeriodAmount}
    */
-  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.budgets.v1beta1.LastPeriodAmount)
       com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class,
+              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -245,9 +269,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
@@ -266,7 +290,8 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount result = new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount(this);
+      com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount result =
+          new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount(this);
       onBuilt();
       return result;
     }
@@ -275,38 +300,39 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -314,7 +340,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance())
+        return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -341,12 +368,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -356,9 +384,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -368,12 +396,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
   private static final com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount();
   }
@@ -382,27 +410,27 @@ public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public LastPeriodAmount parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public LastPeriodAmount parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -417,6 +445,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java
new file mode 100644
index 000000000000..5d7bf6ca43df
--- /dev/null
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1beta1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1beta1;
+
+public interface LastPeriodAmountOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
similarity index 72%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
index e6d912bd4ec8..3435d17fd6d4 100644
--- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
 /**
+ *
+ *
  * 
  * Request for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsRequest} */ -public final class ListBudgetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBudgetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) ListBudgetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBudgetsRequest.newBuilder() to construct. private ListBudgetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBudgetsRequest() { parent_ = ""; scope_ = ""; @@ -27,34 +45,41 @@ private ListBudgetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 { @@ -95,9 +122,12 @@ public java.lang.String getParent() { } public static final int SCOPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object scope_ = ""; /** + * + * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -108,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scope. */ @java.lang.Override @@ -116,14 +147,15 @@ public java.lang.String getScope() { 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(); scope_ = s; return s; } } /** + * + * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -134,16 +166,15 @@ public java.lang.String getScope() {
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; 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); scope_ = b; return b; } else { @@ -154,12 +185,15 @@ public java.lang.String getScope() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -168,9 +202,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -178,6 +215,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -186,14 +224,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; } } /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -201,16 +240,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -219,6 +257,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +269,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_); } @@ -257,8 +295,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -274,21 +311,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.budgets.v1beta1.ListBudgetsRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other = (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getScope() - .equals(other.getScope())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other = + (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getScope().equals(other.getScope())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -314,131 +348,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsRequest} */ - 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.budgets.v1beta1.ListBudgetsRequest) com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -451,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override @@ -472,8 +511,11 @@ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest result = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest result = + new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -498,38 +540,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ListBudgetsR 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.budgets.v1beta1.ListBudgetsRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) other); } else { super.mergeFrom(other); return this; @@ -537,7 +580,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -582,32 +626,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - scope_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,23 +666,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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; @@ -642,21 +696,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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 { @@ -664,30 +721,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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() { @@ -697,18 +765,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -718,6 +792,8 @@ public Builder setParentBytes( private java.lang.Object scope_ = ""; /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -728,13 +804,13 @@ public Builder setParentBytes(
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; 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(); scope_ = s; return s; @@ -743,6 +819,8 @@ public java.lang.String getScope() { } } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -753,15 +831,14 @@ public java.lang.String getScope() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for scope. */ - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; 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); scope_ = b; return b; } else { @@ -769,6 +846,8 @@ public java.lang.String getScope() { } } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -779,18 +858,22 @@ public java.lang.String getScope() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } scope_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -801,6 +884,7 @@ public Builder setScope(
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearScope() { @@ -810,6 +894,8 @@ public Builder clearScope() { return this; } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -820,12 +906,14 @@ public Builder clearScope() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); scope_ = value; bitField0_ |= 0x00000002; @@ -833,14 +921,17 @@ public Builder setScopeBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -848,12 +939,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -865,12 +959,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -882,6 +979,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -889,13 +988,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -904,6 +1003,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -911,15 +1012,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -927,6 +1027,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -934,18 +1036,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -953,6 +1059,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -962,6 +1069,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -969,21 +1078,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -993,12 +1104,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(); } @@ -1007,27 +1118,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,6 +1153,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java index ba882c4c2570..26135769502b 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ListBudgetsRequestOrBuilder extends +public interface ListBudgetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -40,10 +67,13 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scope. */ java.lang.String getScope(); /** + * + * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -54,23 +84,28 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for scope. */ - com.google.protobuf.ByteString - getScopeBytes(); + com.google.protobuf.ByteString getScopeBytes(); /** + * + * *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -78,10 +113,13 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -89,8 +127,8 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java similarity index 71% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java index b4af81ab449b..97f4f3f2131e 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * Response for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsResponse} */ -public final class ListBudgetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBudgetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) ListBudgetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBudgetsResponse.newBuilder() to construct. private ListBudgetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBudgetsResponse() { budgets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListBudgetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); } public static final int BUDGETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List budgets_; /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -59,6 +81,8 @@ public java.util.List getBudget return budgets_; } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -66,11 +90,13 @@ public java.util.List getBudget * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBudgetsOrBuilderList() { return budgets_; } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -82,6 +108,8 @@ public int getBudgetsCount() { return budgets_.size(); } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { return budgets_.get(index); } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -100,21 +130,24 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( - int index) { + public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index) { return budgets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +156,30 @@ 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; } } /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * 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 { @@ -155,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +200,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 < budgets_.size(); i++) { output.writeMessage(1, budgets_.get(i)); } @@ -184,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < budgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, budgets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, budgets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +230,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.budgets.v1beta1.ListBudgetsResponse)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other = (com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) obj; + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other = + (com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) obj; - if (!getBudgetsList() - .equals(other.getBudgetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBudgetsList().equals(other.getBudgetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +263,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsResponse} */ - 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.budgets.v1beta1.ListBudgetsResponse) com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +409,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse + getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance(); } @@ -394,14 +431,18 @@ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse buildPartial() { - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(this); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result = + new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { if (budgetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { budgets_ = java.util.Collections.unmodifiableList(budgets_); @@ -413,7 +454,8 @@ private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1beta1 } } - private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { + private void buildPartial0( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,38 +466,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ListBudgetsR 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.budgets.v1beta1.ListBudgetsResponse) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) other); } else { super.mergeFrom(other); return this; @@ -463,7 +506,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other) { - if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()) + return this; if (budgetsBuilder_ == null) { if (!other.budgets_.isEmpty()) { if (budgets_.isEmpty()) { @@ -482,9 +527,10 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRes budgetsBuilder_ = null; budgets_ = other.budgets_; bitField0_ = (bitField0_ & ~0x00000001); - budgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBudgetsFieldBuilder() : null; + budgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBudgetsFieldBuilder() + : null; } else { budgetsBuilder_.addAllMessages(other.budgets_); } @@ -521,30 +567,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.billing.budgets.v1beta1.Budget m = - input.readMessage( - com.google.cloud.billing.budgets.v1beta1.Budget.parser(), - extensionRegistry); - if (budgetsBuilder_ == null) { - ensureBudgetsIsMutable(); - budgets_.add(m); - } else { - budgetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.billing.budgets.v1beta1.Budget m = + input.readMessage( + com.google.cloud.billing.budgets.v1beta1.Budget.parser(), + extensionRegistry); + if (budgetsBuilder_ == null) { + ensureBudgetsIsMutable(); + budgets_.add(m); + } else { + budgetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +603,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List budgets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBudgetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - budgets_ = new java.util.ArrayList(budgets_); + budgets_ = + new java.util.ArrayList(budgets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetsBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + budgetsBuilder_; /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -583,6 +640,8 @@ public java.util.List getBudget } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -597,6 +656,8 @@ public int getBudgetsCount() { } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -611,14 +672,15 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public Builder setBudgets( - int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { + public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -632,6 +694,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -650,6 +714,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -670,14 +736,15 @@ public Builder addBudgets(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public Builder addBudgets( - int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { + public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -691,6 +758,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -709,6 +778,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -727,6 +798,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -737,8 +810,7 @@ public Builder addAllBudgets( java.lang.Iterable values) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, budgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, budgets_); onChanged(); } else { budgetsBuilder_.addAllMessages(values); @@ -746,6 +818,8 @@ public Builder addAllBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -763,6 +837,8 @@ public Builder clearBudgets() { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -780,39 +856,44 @@ public Builder removeBudgets(int index) { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetsBuilder( - int index) { + public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetsBuilder(int index) { return getBudgetsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( - int index) { + public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index) { if (budgetsBuilder_ == null) { - return budgets_.get(index); } else { + return budgets_.get(index); + } else { return budgetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public java.util.List - getBudgetsOrBuilderList() { + public java.util.List + getBudgetsOrBuilderList() { if (budgetsBuilder_ != null) { return budgetsBuilder_.getMessageOrBuilderList(); } else { @@ -820,6 +901,8 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuil } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -827,42 +910,48 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuil * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder() { - return getBudgetsFieldBuilder().addBuilder( - com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); + return getBudgetsFieldBuilder() + .addBuilder(com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder( - int index) { - return getBudgetsFieldBuilder().addBuilder( - index, com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder(int index) { + return getBudgetsFieldBuilder() + .addBuilder(index, com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public java.util.List - getBudgetsBuilderList() { + public java.util.List + getBudgetsBuilderList() { return getBudgetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetsFieldBuilder() { if (budgetsBuilder_ == null) { - budgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - budgets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + budgetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + budgets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); budgets_ = null; } return budgetsBuilder_; @@ -870,19 +959,21 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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; @@ -891,21 +982,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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 { @@ -913,30 +1005,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -946,27 +1045,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,12 +1079,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) - private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(); } @@ -990,27 +1094,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1129,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java index 63c67c8fb5dc..204d066b8680 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ListBudgetsResponseOrBuilder extends +public interface ListBudgetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - java.util.List - getBudgetsList(); + java.util.List getBudgetsList(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -25,6 +44,8 @@ public interface ListBudgetsResponseOrBuilder extends */ com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -33,43 +54,51 @@ public interface ListBudgetsResponseOrBuilder extends */ int getBudgetsCount(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - java.util.List + java.util.List getBudgetsOrBuilderList(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( - int index); + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index); /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java similarity index 68% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java index 7a3f5750da88..4ad22b1f581c 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * ThresholdRule contains the definition of a threshold. Threshold rules define
  * the triggering events used to generate a budget notification email. When a
@@ -31,49 +48,54 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ThresholdRule}
  */
-public final class ThresholdRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ThresholdRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ThresholdRule)
     ThresholdRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ThresholdRule.newBuilder() to construct.
   private ThresholdRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ThresholdRule() {
     spendBasis_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ThresholdRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class,
+            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of basis used to determine if spend has passed the threshold.
    * 
* * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis} */ - public enum Basis - implements com.google.protobuf.ProtocolMessageEnum { + public enum Basis implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified threshold basis.
      * 
@@ -82,6 +104,8 @@ public enum Basis */ BASIS_UNSPECIFIED(0), /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -90,6 +114,8 @@ public enum Basis */ CURRENT_SPEND(1), /** + * + * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -106,6 +132,8 @@ public enum Basis
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified threshold basis.
      * 
@@ -114,6 +142,8 @@ public enum Basis */ public static final int BASIS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -122,6 +152,8 @@ public enum Basis */ public static final int CURRENT_SPEND_VALUE = 1; /** + * + * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -135,7 +167,6 @@ public enum Basis
      */
     public static final int FORECASTED_SPEND_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -160,49 +191,51 @@ public static Basis valueOf(int value) {
      */
     public static Basis forNumber(int value) {
       switch (value) {
-        case 0: return BASIS_UNSPECIFIED;
-        case 1: return CURRENT_SPEND;
-        case 2: return FORECASTED_SPEND;
-        default: return null;
+        case 0:
+          return BASIS_UNSPECIFIED;
+        case 1:
+          return CURRENT_SPEND;
+        case 2:
+          return FORECASTED_SPEND;
+        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<
-        Basis> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Basis findValueByNumber(int number) {
-              return Basis.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 Basis findValueByNumber(int number) {
+            return Basis.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() {
-      return com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Basis[] VALUES = values();
 
-    public static Basis valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Basis 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;
@@ -222,6 +255,8 @@ private Basis(int value) {
   public static final int THRESHOLD_PERCENT_FIELD_NUMBER = 1;
   private double thresholdPercent_ = 0D;
   /**
+   *
+   *
    * 
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -229,6 +264,7 @@ private Basis(int value) {
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -239,32 +275,48 @@ public double getThresholdPercent() { public static final int SPEND_BASIS_FIELD_NUMBER = 2; private int spendBasis_ = 0; /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override public int getSpendBasisValue() { + @java.lang.Override + public int getSpendBasisValue() { return spendBasis_; } /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ - @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,12 +328,13 @@ 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(thresholdPercent_) != 0) { output.writeDouble(1, thresholdPercent_); } - if (spendBasis_ != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + if (spendBasis_ + != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED + .getNumber()) { output.writeEnum(2, spendBasis_); } getUnknownFields().writeTo(output); @@ -294,12 +347,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(thresholdPercent_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, thresholdPercent_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, thresholdPercent_); } - if (spendBasis_ != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, spendBasis_); + if (spendBasis_ + != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spendBasis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -309,16 +362,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.budgets.v1beta1.ThresholdRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ThresholdRule other = (com.google.cloud.billing.budgets.v1beta1.ThresholdRule) obj; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule other = + (com.google.cloud.billing.budgets.v1beta1.ThresholdRule) obj; if (java.lang.Double.doubleToLongBits(getThresholdPercent()) - != java.lang.Double.doubleToLongBits( - other.getThresholdPercent())) return false; + != java.lang.Double.doubleToLongBits(other.getThresholdPercent())) return false; if (spendBasis_ != other.spendBasis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -332,8 +385,10 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THRESHOLD_PERCENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThresholdPercent())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThresholdPercent())); hash = (37 * hash) + SPEND_BASIS_FIELD_NUMBER; hash = (53 * hash) + spendBasis_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -342,98 +397,104 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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; } /** + * + * *
    * ThresholdRule contains the definition of a threshold. Threshold rules define
    * the triggering events used to generate a budget notification email. When a
@@ -461,33 +522,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ThresholdRule}
    */
-  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.budgets.v1beta1.ThresholdRule)
       com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class,
+              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.ThresholdRule.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,9 +558,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
@@ -519,8 +579,11 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.ThresholdRule buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.ThresholdRule result = new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.billing.budgets.v1beta1.ThresholdRule result =
+          new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -539,38 +602,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ThresholdRul
     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.budgets.v1beta1.ThresholdRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ThresholdRule)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ThresholdRule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -578,7 +642,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ThresholdRule other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance())
+        return this;
       if (other.getThresholdPercent() != 0D) {
         setThresholdPercent(other.getThresholdPercent());
       }
@@ -611,22 +676,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 9: {
-              thresholdPercent_ = input.readDouble();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 9
-            case 16: {
-              spendBasis_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 9:
+              {
+                thresholdPercent_ = input.readDouble();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 9
+            case 16:
+              {
+                spendBasis_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -636,10 +704,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private double thresholdPercent_ ;
+    private double thresholdPercent_;
     /**
+     *
+     *
      * 
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -647,6 +718,7 @@ public Builder mergeFrom(
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -654,6 +726,8 @@ public double getThresholdPercent() { return thresholdPercent_; } /** + * + * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -661,6 +735,7 @@ public double getThresholdPercent() {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The thresholdPercent to set. * @return This builder for chaining. */ @@ -672,6 +747,8 @@ public Builder setThresholdPercent(double value) { return this; } /** + * + * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -679,6 +756,7 @@ public Builder setThresholdPercent(double value) {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearThresholdPercent() { @@ -690,24 +768,35 @@ public Builder clearThresholdPercent() { private int spendBasis_ = 0; /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override public int getSpendBasisValue() { + @java.lang.Override + public int getSpendBasisValue() { return spendBasis_; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for spendBasis to set. * @return This builder for chaining. */ @@ -718,30 +807,44 @@ public Builder setSpendBasisValue(int value) { return this; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The spendBasis to set. * @return This builder for chaining. */ - public Builder setSpendBasis(com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis value) { + public Builder setSpendBasis( + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis value) { if (value == null) { throw new NullPointerException(); } @@ -751,12 +854,17 @@ public Builder setSpendBasis(com.google.cloud.billing.budgets.v1beta1.ThresholdR return this; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearSpendBasis() { @@ -765,9 +873,9 @@ public Builder clearSpendBasis() { 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); } @@ -777,12 +885,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ThresholdRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ThresholdRule) private static final com.google.cloud.billing.budgets.v1beta1.ThresholdRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(); } @@ -791,27 +899,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThresholdRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThresholdRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +934,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java similarity index 55% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java index efaaef4ae53d..46dd4b4bec7a 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ThresholdRuleOrBuilder extends +public interface ThresholdRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ThresholdRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -15,27 +33,38 @@ public interface ThresholdRuleOrBuilder extends
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ double getThresholdPercent(); /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ int getSpendBasisValue(); /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis(); diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java similarity index 66% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java index 598d6b738493..356fbba005ec 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java @@ -1,56 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * Request for UpdateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest} */ -public final class UpdateBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) UpdateBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateBudgetRequest.newBuilder() to construct. private UpdateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateBudgetRequest() { - } + + private UpdateBudgetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); } public static final int BUDGET_FIELD_NUMBER = 1; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ @java.lang.Override @@ -58,34 +81,49 @@ public boolean hasBudget() { return budget_ != null; } /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -95,7 +133,9 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -103,6 +143,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -112,7 +154,9 @@ public boolean hasUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -120,6 +164,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -129,7 +175,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -137,6 +184,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,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 (budget_ != null) { output.writeMessage(1, getBudget()); } @@ -166,12 +213,10 @@ public int getSerializedSize() { size = 0; if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBudget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBudget()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -181,22 +226,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.budgets.v1beta1.UpdateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other = + (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) obj; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget() - .equals(other.getBudget())) return false; + if (!getBudget().equals(other.getBudget())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -223,131 +267,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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 for UpdateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest} */ - 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.budgets.v1beta1.UpdateBudgetRequest) com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,13 +415,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest + getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance(); } @@ -387,23 +437,23 @@ public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result) { + private void buildPartial0( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.budget_ = budgetBuilder_ == null - ? budget_ - : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -411,38 +461,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.UpdateBudget 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.budgets.v1beta1.UpdateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -450,7 +501,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()) + return this; if (other.hasBudget()) { mergeBudget(other.getBudget()); } @@ -483,26 +536,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getBudgetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -512,46 +564,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + budgetBuilder_; /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } else { return budgetBuilder_.getMessage(); } } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { @@ -567,12 +639,16 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget( com.google.cloud.billing.budgets.v1beta1.Budget.Builder builderForValue) { @@ -586,18 +662,22 @@ public Builder setBudget( return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - budget_ != null && - budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && budget_ != null + && budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -610,12 +690,16 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000001); @@ -628,12 +712,16 @@ public Builder clearBudget() { return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000001; @@ -641,38 +729,50 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder( return getBudgetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null ? - com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - getBudget(), - getParentForChildren(), - isClean()); + budgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + getBudget(), getParentForChildren(), isClean()); budget_ = null; } return budgetBuilder_; @@ -680,8 +780,13 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild 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_; /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -691,13 +796,17 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -707,17 +816,23 @@ public boolean hasUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @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(); } } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -727,7 +842,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -743,6 +859,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -752,10 +870,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -766,6 +884,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -775,13 +895,14 @@ public Builder setUpdateMask(
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -794,6 +915,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -803,7 +926,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -816,6 +940,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -825,7 +951,8 @@ public Builder clearUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -833,6 +960,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -842,17 +971,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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_; } } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -862,24 +995,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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); } @@ -889,12 +1026,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(); } @@ -903,27 +1041,27 @@ public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -938,6 +1076,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java index 1d6feb44e56c..78d271936191 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface UpdateBudgetRequestOrBuilder extends +public interface UpdateBudgetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ boolean hasBudget(); /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -47,11 +79,15 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -61,11 +97,15 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -75,7 +115,8 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java deleted file mode 100644 index 39b067d2968a..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java +++ /dev/null @@ -1,196 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_model.proto - -package com.google.cloud.billing.budgets.v1; - -public final class BudgetModelProto { - private BudgetModelProto() {} - 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_budgets_v1_Budget_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/billing/budgets/v1/budget" + - "_model.proto\022\037google.cloud.billing.budge" + - "ts.v1\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032\034google/protob" + - "uf/struct.proto\032\026google/type/date.proto\032" + - "\027google/type/money.proto\"\325\003\n\006Budget\022\022\n\004n" + - "ame\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\002 \001(\t\022D\n" + - "\rbudget_filter\030\003 \001(\0132\'.google.cloud.bill" + - "ing.budgets.v1.FilterB\004\342A\001\001\022C\n\006amount\030\004 " + - "\001(\0132-.google.cloud.billing.budgets.v1.Bu" + - "dgetAmountB\004\342A\001\002\022M\n\017threshold_rules\030\005 \003(" + - "\0132..google.cloud.billing.budgets.v1.Thre" + - "sholdRuleB\004\342A\001\001\022T\n\022notifications_rule\030\006 " + - "\001(\01322.google.cloud.billing.budgets.v1.No" + - "tificationsRuleB\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001" + - "\001:]\352AZ\n$billingbudgets.googleapis.com/Bu" + - "dget\0222billingAccounts/{billing_account}/" + - "budgets/{budget}\"\240\001\n\014BudgetAmount\022.\n\020spe" + - "cified_amount\030\001 \001(\0132\022.google.type.MoneyH" + - "\000\022O\n\022last_period_amount\030\002 \001(\01321.google.c" + - "loud.billing.budgets.v1.LastPeriodAmount" + - "H\000B\017\n\rbudget_amount\"\022\n\020LastPeriodAmount\"" + - "\312\001\n\rThresholdRule\022\037\n\021threshold_percent\030\001" + - " \001(\001B\004\342A\001\002\022O\n\013spend_basis\030\002 \001(\01624.google" + - ".cloud.billing.budgets.v1.ThresholdRule." + - "BasisB\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIE" + - "D\020\000\022\021\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPE" + - "ND\020\002\"\253\001\n\021NotificationsRule\022\032\n\014pubsub_top" + - "ic\030\001 \001(\tB\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004" + - "\342A\001\001\022.\n monitoring_notification_channels" + - "\030\003 \003(\tB\004\342A\001\001\022,\n\036disable_default_iam_reci" + - "pients\030\004 \001(\010B\004\342A\001\001\"\315\005\n\006Filter\022\026\n\010project" + - "s\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(" + - "\tB\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022b\n\026c" + - "redit_types_treatment\030\004 \001(\0162<.google.clo" + - "ud.billing.budgets.v1.Filter.CreditTypes" + - "TreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342A\001\001\022" + - "\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022I\n\006labels\030\006 \003" + - "(\01323.google.cloud.billing.budgets.v1.Fil" + - "ter.LabelsEntryB\004\342A\001\001\022P\n\017calendar_period" + - "\030\010 \001(\0162/.google.cloud.billing.budgets.v1" + - ".CalendarPeriodB\004\342A\001\001H\000\022L\n\rcustom_period" + - "\030\t \001(\0132-.google.cloud.billing.budgets.v1" + - ".CustomPeriodB\004\342A\001\001H\000\032I\n\013LabelsEntry\022\013\n\003" + - "key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.protob" + - "uf.ListValue:\0028\001\"\217\001\n\024CreditTypesTreatmen" + - "t\022&\n\"CREDIT_TYPES_TREATMENT_UNSPECIFIED\020" + - "\000\022\027\n\023INCLUDE_ALL_CREDITS\020\001\022\027\n\023EXCLUDE_AL" + - "L_CREDITS\020\002\022\035\n\031INCLUDE_SPECIFIED_CREDITS" + - "\020\003B\016\n\014usage_period\"f\n\014CustomPeriod\022+\n\nst" + - "art_date\030\001 \001(\0132\021.google.type.DateB\004\342A\001\002\022" + - ")\n\010end_date\030\002 \001(\0132\021.google.type.DateB\004\342A" + - "\001\001*S\n\016CalendarPeriod\022\037\n\033CALENDAR_PERIOD_" + - "UNSPECIFIED\020\000\022\t\n\005MONTH\020\001\022\013\n\007QUARTER\020\002\022\010\n" + - "\004YEAR\020\003Bx\n#com.google.cloud.billing.budg" + - "ets.v1B\020BudgetModelProtoP\001Z=cloud.google" + - ".com/go/billing/budgets/apiv1/budgetspb;" + - "budgetspbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1_Budget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Budget_descriptor, - new java.lang.String[] { "Name", "DisplayName", "BudgetFilter", "Amount", "ThresholdRules", "NotificationsRule", "Etag", }); - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor, - new java.lang.String[] { "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", }); - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor, - new java.lang.String[] { "ThresholdPercent", "SpendBasis", }); - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor, - new java.lang.String[] { "PubsubTopic", "SchemaVersion", "MonitoringNotificationChannels", "DisableDefaultIamRecipients", }); - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor, - new java.lang.String[] { "Projects", "ResourceAncestors", "CreditTypes", "CreditTypesTreatment", "Services", "Subaccounts", "Labels", "CalendarPeriod", "CustomPeriod", "UsagePeriod", }); - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor = - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor, - new java.lang.String[] { "StartDate", "EndDate", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java deleted file mode 100644 index 5b6fe8d2fd92..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java +++ /dev/null @@ -1,179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public final class BudgetServiceProto { - private BudgetServiceProto() {} - 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_budgets_v1_CreateBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/billing/budgets/v1/budget" + - "_service.proto\022\037google.cloud.billing.bud" + - "gets.v1\032\034google/api/annotations.proto\032\027g" + - "oogle/api/client.proto\032\037google/api/field" + - "_behavior.proto\032\031google/api/resource.pro" + - "to\0322google/cloud/billing/budgets/v1/budg" + - "et_model.proto\032\033google/protobuf/empty.pr" + - "oto\032 google/protobuf/field_mask.proto\"\223\001" + - "\n\023CreateBudgetRequest\022=\n\006parent\030\001 \001(\tB-\342" + - "A\001\002\372A&\022$billingbudgets.googleapis.com/Bu" + - "dget\022=\n\006budget\030\002 \001(\0132\'.google.cloud.bill" + - "ing.budgets.v1.BudgetB\004\342A\001\002\"\213\001\n\023UpdateBu" + - "dgetRequest\022=\n\006budget\030\001 \001(\0132\'.google.clo" + - "ud.billing.budgets.v1.BudgetB\004\342A\001\002\0225\n\013up" + - "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + - "askB\004\342A\001\001\"O\n\020GetBudgetRequest\022;\n\004name\030\001 " + - "\001(\tB-\342A\001\002\372A&\n$billingbudgets.googleapis." + - "com/Budget\"\206\001\n\022ListBudgetsRequest\022=\n\006par" + - "ent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.googl" + - "eapis.com/Budget\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001" + - "\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"h\n\023ListBudge" + - "tsResponse\0228\n\007budgets\030\001 \003(\0132\'.google.clo" + - "ud.billing.budgets.v1.Budget\022\027\n\017next_pag" + - "e_token\030\002 \001(\t\"R\n\023DeleteBudgetRequest\022;\n\004" + - "name\030\001 \001(\tB-\342A\001\002\372A&\n$billingbudgets.goog" + - "leapis.com/Budget2\367\007\n\rBudgetService\022\265\001\n\014" + - "CreateBudget\0224.google.cloud.billing.budg" + - "ets.v1.CreateBudgetRequest\032\'.google.clou" + - "d.billing.budgets.v1.Budget\"F\332A\rparent,b" + - "udget\202\323\344\223\0020\"&/v1/{parent=billingAccounts" + - "/*}/budgets:\006budget\022\301\001\n\014UpdateBudget\0224.g" + - "oogle.cloud.billing.budgets.v1.UpdateBud" + - "getRequest\032\'.google.cloud.billing.budget" + - "s.v1.Budget\"R\332A\022budget,update_mask\202\323\344\223\0027" + - "2-/v1/{budget.name=billingAccounts/*/bud" + - "gets/*}:\006budget\022\236\001\n\tGetBudget\0221.google.c" + - "loud.billing.budgets.v1.GetBudgetRequest" + - "\032\'.google.cloud.billing.budgets.v1.Budge" + - "t\"5\332A\004name\202\323\344\223\002(\022&/v1/{name=billingAccou" + - "nts/*/budgets/*}\022\261\001\n\013ListBudgets\0223.googl" + - "e.cloud.billing.budgets.v1.ListBudgetsRe" + - "quest\0324.google.cloud.billing.budgets.v1." + - "ListBudgetsResponse\"7\332A\006parent\202\323\344\223\002(\022&/v" + - "1/{parent=billingAccounts/*}/budgets\022\223\001\n" + - "\014DeleteBudget\0224.google.cloud.billing.bud" + - "gets.v1.DeleteBudgetRequest\032\026.google.pro" + - "tobuf.Empty\"5\332A\004name\202\323\344\223\002(*&/v1/{name=bi" + - "llingAccounts/*/budgets/*}\032\177\312A\035billingbu" + - "dgets.googleapis.com\322A\\https://www.googl" + - "eapis.com/auth/cloud-billing,https://www" + - ".googleapis.com/auth/cloud-platformBz\n#c" + - "om.google.cloud.billing.budgets.v1B\022Budg" + - "etServiceProtoP\001Z=cloud.google.com/go/bi" + - "lling/budgets/apiv1/budgetspb;budgetspbb" + - "\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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor, - new java.lang.String[] { "Parent", "Budget", }); - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor, - new java.lang.String[] { "Budget", "UpdateMask", }); - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor, - new java.lang.String[] { "Budgets", "NextPageToken", }); - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor, - new java.lang.String[] { "Name", }); - 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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java deleted file mode 100644 index 03e39726fb18..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface CreateBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CreateBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the budget field is set. - */ - boolean hasBudget(); - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The budget. - */ - com.google.cloud.billing.budgets.v1.Budget getBudget(); - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java deleted file mode 100644 index 3d3e4a03f3b0..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface DeleteBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.DeleteBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java deleted file mode 100644 index 5a7d4e94ab25..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface GetBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.GetBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java deleted file mode 100644 index e2b52259f1a2..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_model.proto - -package com.google.cloud.billing.budgets.v1; - -public interface LastPeriodAmountOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.LastPeriodAmount) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java deleted file mode 100644 index 5a852f3336b4..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java +++ /dev/null @@ -1,198 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_model.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public final class BudgetModel { - private BudgetModel() {} - 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_budgets_v1beta1_Budget_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/billing/budgets/v1beta1/b" + - "udget_model.proto\022$google.cloud.billing." + - "budgets.v1beta1\032\037google/api/field_behavi" + - "or.proto\032\031google/api/resource.proto\032\034goo" + - "gle/protobuf/struct.proto\032\026google/type/d" + - "ate.proto\032\027google/type/money.proto\"\344\003\n\006B" + - "udget\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_nam" + - "e\030\002 \001(\t\022I\n\rbudget_filter\030\003 \001(\0132,.google." + - "cloud.billing.budgets.v1beta1.FilterB\004\342A" + - "\001\001\022H\n\006amount\030\004 \001(\01322.google.cloud.billin" + - "g.budgets.v1beta1.BudgetAmountB\004\342A\001\002\022R\n\017" + - "threshold_rules\030\005 \003(\01323.google.cloud.bil" + - "ling.budgets.v1beta1.ThresholdRuleB\004\342A\001\001" + - "\022T\n\020all_updates_rule\030\006 \001(\01324.google.clou" + - "d.billing.budgets.v1beta1.AllUpdatesRule" + - "B\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001\001:]\352AZ\n$billing" + - "budgets.googleapis.com/Budget\0222billingAc" + - "counts/{billing_account}/budgets/{budget" + - "}\"\245\001\n\014BudgetAmount\022.\n\020specified_amount\030\001" + - " \001(\0132\022.google.type.MoneyH\000\022T\n\022last_perio" + - "d_amount\030\002 \001(\01326.google.cloud.billing.bu" + - "dgets.v1beta1.LastPeriodAmountH\000B\017\n\rbudg" + - "et_amount\"\022\n\020LastPeriodAmount\"\317\001\n\rThresh" + - "oldRule\022\037\n\021threshold_percent\030\001 \001(\001B\004\342A\001\002" + - "\022T\n\013spend_basis\030\002 \001(\01629.google.cloud.bil" + - "ling.budgets.v1beta1.ThresholdRule.Basis" + - "B\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021" + - "\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\"" + - "\327\001\n\016AllUpdatesRule\022\032\n\014pubsub_topic\030\001 \001(\t" + - "B\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004\342A\001\001\022.\n " + - "monitoring_notification_channels\030\003 \003(\tB\004" + - "\342A\001\001\022,\n\036disable_default_iam_recipients\030\004" + - " \001(\010B\004\342A\001\001\022-\n\037enable_project_level_recip" + - "ients\030\005 \001(\010B\004\342A\001\001\"\341\005\n\006Filter\022\026\n\010projects" + - "\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(\t" + - "B\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022g\n\026cr" + - "edit_types_treatment\030\004 \001(\0162A.google.clou" + - "d.billing.budgets.v1beta1.Filter.CreditT" + - "ypesTreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342" + - "A\001\001\022\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022N\n\006labels" + - "\030\006 \003(\01328.google.cloud.billing.budgets.v1" + - "beta1.Filter.LabelsEntryB\004\342A\001\001\022U\n\017calend" + - "ar_period\030\010 \001(\01624.google.cloud.billing.b" + - "udgets.v1beta1.CalendarPeriodB\004\342A\001\001H\000\022Q\n" + - "\rcustom_period\030\t \001(\01322.google.cloud.bill" + - "ing.budgets.v1beta1.CustomPeriodB\004\342A\001\001H\000" + - "\032I\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 " + - "\001(\0132\032.google.protobuf.ListValue:\0028\001\"\217\001\n\024" + - "CreditTypesTreatment\022&\n\"CREDIT_TYPES_TRE" + - "ATMENT_UNSPECIFIED\020\000\022\027\n\023INCLUDE_ALL_CRED" + - "ITS\020\001\022\027\n\023EXCLUDE_ALL_CREDITS\020\002\022\035\n\031INCLUD" + - "E_SPECIFIED_CREDITS\020\003B\016\n\014usage_period\"f\n" + - "\014CustomPeriod\022+\n\nstart_date\030\001 \001(\0132\021.goog" + - "le.type.DateB\004\342A\001\002\022)\n\010end_date\030\002 \001(\0132\021.g" + - "oogle.type.DateB\004\342A\001\001*S\n\016CalendarPeriod\022" + - "\037\n\033CALENDAR_PERIOD_UNSPECIFIED\020\000\022\t\n\005MONT" + - "H\020\001\022\013\n\007QUARTER\020\002\022\010\n\004YEAR\020\003Bp\n(com.google" + - ".cloud.billing.budgets.v1beta1P\001ZBcloud." + - "google.com/go/billing/budgets/apiv1beta1" + - "/budgetspb;budgetspbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor, - new java.lang.String[] { "Name", "DisplayName", "BudgetFilter", "Amount", "ThresholdRules", "AllUpdatesRule", "Etag", }); - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor, - new java.lang.String[] { "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", }); - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor, - new java.lang.String[] { "ThresholdPercent", "SpendBasis", }); - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor, - new java.lang.String[] { "PubsubTopic", "SchemaVersion", "MonitoringNotificationChannels", "DisableDefaultIamRecipients", "EnableProjectLevelRecipients", }); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor, - new java.lang.String[] { "Projects", "ResourceAncestors", "CreditTypes", "CreditTypesTreatment", "Services", "Subaccounts", "Labels", "CalendarPeriod", "CustomPeriod", "UsagePeriod", }); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor = - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor, - new java.lang.String[] { "StartDate", "EndDate", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java deleted file mode 100644 index 12cdfc30eefe..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java +++ /dev/null @@ -1,179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public final class BudgetServiceOuterClass { - private BudgetServiceOuterClass() {} - 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_budgets_v1beta1_CreateBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/billing/budgets/v1beta1/b" + - "udget_service.proto\022$google.cloud.billin" + - "g.budgets.v1beta1\032\034google/api/annotation" + - "s.proto\032\027google/api/client.proto\032\037google" + - "/api/field_behavior.proto\032\031google/api/re" + - "source.proto\0327google/cloud/billing/budge" + - "ts/v1beta1/budget_model.proto\032\033google/pr" + - "otobuf/empty.proto\032 google/protobuf/fiel" + - "d_mask.proto\"\230\001\n\023CreateBudgetRequest\022=\n\006" + - "parent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.go" + - "ogleapis.com/Budget\022B\n\006budget\030\002 \001(\0132,.go" + - "ogle.cloud.billing.budgets.v1beta1.Budge" + - "tB\004\342A\001\002\"\220\001\n\023UpdateBudgetRequest\022B\n\006budge" + - "t\030\001 \001(\0132,.google.cloud.billing.budgets.v" + - "1beta1.BudgetB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\013" + - "2\032.google.protobuf.FieldMaskB\004\342A\001\001\"O\n\020Ge" + - "tBudgetRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$b" + - "illingbudgets.googleapis.com/Budget\"\233\001\n\022" + - "ListBudgetsRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002" + - "\372A&\022$billingbudgets.googleapis.com/Budge" + - "t\022\023\n\005scope\030\004 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\002 \001(" + - "\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"m\n\023Lis" + - "tBudgetsResponse\022=\n\007budgets\030\001 \003(\0132,.goog" + - "le.cloud.billing.budgets.v1beta1.Budget\022" + - "\027\n\017next_page_token\030\002 \001(\t\"R\n\023DeleteBudget" + - "Request\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$billingb" + - "udgets.googleapis.com/Budget2\367\007\n\rBudgetS" + - "ervice\022\257\001\n\014CreateBudget\0229.google.cloud.b" + - "illing.budgets.v1beta1.CreateBudgetReque" + - "st\032,.google.cloud.billing.budgets.v1beta" + - "1.Budget\"6\202\323\344\223\0020\"+/v1beta1/{parent=billi" + - "ngAccounts/*}/budgets:\001*\022\266\001\n\014UpdateBudge" + - "t\0229.google.cloud.billing.budgets.v1beta1" + - ".UpdateBudgetRequest\032,.google.cloud.bill" + - "ing.budgets.v1beta1.Budget\"=\202\323\344\223\002722/v1b" + - "eta1/{budget.name=billingAccounts/*/budg" + - "ets/*}:\001*\022\246\001\n\tGetBudget\0226.google.cloud.b" + - "illing.budgets.v1beta1.GetBudgetRequest\032" + - ",.google.cloud.billing.budgets.v1beta1.B" + - "udget\"3\202\323\344\223\002-\022+/v1beta1/{name=billingAcc" + - "ounts/*/budgets/*}\022\267\001\n\013ListBudgets\0228.goo" + - "gle.cloud.billing.budgets.v1beta1.ListBu" + - "dgetsRequest\0329.google.cloud.billing.budg" + - "ets.v1beta1.ListBudgetsResponse\"3\202\323\344\223\002-\022" + - "+/v1beta1/{parent=billingAccounts/*}/bud" + - "gets\022\226\001\n\014DeleteBudget\0229.google.cloud.bil" + - "ling.budgets.v1beta1.DeleteBudgetRequest" + - "\032\026.google.protobuf.Empty\"3\202\323\344\223\002-*+/v1bet" + - "a1/{name=billingAccounts/*/budgets/*}\032\177\312" + - "A\035billingbudgets.googleapis.com\322A\\https:" + - "//www.googleapis.com/auth/cloud-billing," + - "https://www.googleapis.com/auth/cloud-pl" + - "atformBp\n(com.google.cloud.billing.budge" + - "ts.v1beta1P\001ZBcloud.google.com/go/billin" + - "g/budgets/apiv1beta1/budgetspb;budgetspb" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor, - new java.lang.String[] { "Parent", "Budget", }); - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor, - new java.lang.String[] { "Budget", "UpdateMask", }); - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor, - new java.lang.String[] { "Parent", "Scope", "PageSize", "PageToken", }); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor, - new java.lang.String[] { "Budgets", "NextPageToken", }); - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor, - new java.lang.String[] { "Name", }); - 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.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.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java deleted file mode 100644 index 13e2570d7630..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface CreateBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the budget field is set. - */ - boolean hasBudget(); - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The budget. - */ - com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java deleted file mode 100644 index 39dbfb2b0f50..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface DeleteBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java deleted file mode 100644 index dbdcc744a53e..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface GetBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java deleted file mode 100644 index 78785ce8b259..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_model.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface LastPeriodAmountOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.LastPeriodAmount) - com.google.protobuf.MessageOrBuilder { -} From 408c41b5f19e335b527f8340159dfe819852715a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 22 Aug 2023 20:44:36 +0000 Subject: [PATCH 3/4] feat: Supported project-level-budgets in Public Budget API V1 Added `scope` for project scope filter in `ListBudgetsRequest`. When this field is set to a project's resource name, the budgets returned are tracking the costs for the given project. feat: Added `enable_project_level_recipients` for project owner budget emails Setting this field to true will enable email notification to project owners for project-level budgets. PiperOrigin-RevId: 559152052 Source-Link: https://github.com/googleapis/googleapis/commit/113867b53b015c1f951e0e4e515756f221abc0a2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/017d177f51469d150417b7b6a45d99d9963f7813 Copy-Tag: eyJwIjoiamF2YS1iaWxsaW5nYnVkZ2V0cy8uT3dsQm90LnlhbWwiLCJoIjoiMDE3ZDE3N2Y1MTQ2OWQxNTA0MTdiN2I2YTQ1ZDk5ZDk5NjNmNzgxMyJ9 --- .../billing/budgets/v1/BudgetModelProto.java | 234 --- .../budgets/v1/BudgetServiceProto.java | 199 -- .../v1/CreateBudgetRequestOrBuilder.java | 97 - .../v1/DeleteBudgetRequestOrBuilder.java | 56 - .../budgets/v1/GetBudgetRequestOrBuilder.java | 56 - .../budgets/v1/LastPeriodAmountOrBuilder.java | 24 - .../billing/budgets/v1beta1/BudgetModel.java | 239 --- .../v1beta1/BudgetServiceOuterClass.java | 199 -- .../v1beta1/CreateBudgetRequestOrBuilder.java | 97 - .../v1beta1/DeleteBudgetRequestOrBuilder.java | 56 - .../v1beta1/GetBudgetRequestOrBuilder.java | 56 - .../v1beta1/LastPeriodAmountOrBuilder.java | 24 - .../budgets/v1/BudgetServiceClient.java | 3 + .../budgets/v1/BudgetServiceSettings.java | 1 + .../billing/budgets/v1/gapic_metadata.json | 0 .../billing/budgets/v1/package-info.java | 0 .../budgets/v1/stub/BudgetServiceStub.java | 0 .../v1/stub/BudgetServiceStubSettings.java | 0 .../GrpcBudgetServiceCallableFactory.java | 0 .../v1/stub/GrpcBudgetServiceStub.java | 1 + .../HttpJsonBudgetServiceCallableFactory.java | 0 .../v1/stub/HttpJsonBudgetServiceStub.java | 1 + .../reflect-config.json | 0 .../v1/BudgetServiceClientHttpJsonTest.java | 0 .../budgets/v1/BudgetServiceClientTest.java | 0 .../billing/budgets/v1/MockBudgetService.java | 0 .../budgets/v1/MockBudgetServiceImpl.java | 0 .../billing/budgets/v1/BudgetServiceGrpc.java | 583 +++--- .../budgets/v1/BillingAccountName.java | 0 .../cloud/billing/budgets/v1/Budget.java | 1136 ++++-------- .../billing/budgets/v1/BudgetAmount.java | 488 ++--- .../budgets/v1/BudgetAmountOrBuilder.java | 34 +- .../billing/budgets/v1/BudgetModelProto.java | 197 ++ .../cloud/billing/budgets/v1/BudgetName.java | 0 .../billing/budgets/v1/BudgetOrBuilder.java | 143 +- .../budgets/v1/BudgetServiceProto.java | 179 ++ .../billing/budgets/v1/CalendarPeriod.java | 93 +- .../budgets/v1/CreateBudgetRequest.java | 495 ++--- .../v1/CreateBudgetRequestOrBuilder.java | 58 + .../billing/budgets/v1/CustomPeriod.java | 404 ++-- .../budgets/v1/CustomPeriodOrBuilder.java | 34 +- .../budgets/v1/DeleteBudgetRequest.java | 350 ++-- .../v1/DeleteBudgetRequestOrBuilder.java | 31 + .../cloud/billing/budgets/v1/Filter.java | 1625 ++++++----------- .../billing/budgets/v1/FilterOrBuilder.java | 237 +-- .../billing/budgets/v1/GetBudgetRequest.java | 347 ++-- .../budgets/v1/GetBudgetRequestOrBuilder.java | 31 + .../billing/budgets/v1/LastPeriodAmount.java | 245 ++- .../budgets/v1/LastPeriodAmountOrBuilder.java | 9 + .../budgets/v1/ListBudgetsRequest.java | 664 ++++--- .../v1/ListBudgetsRequestOrBuilder.java | 73 +- .../budgets/v1/ListBudgetsResponse.java | 483 ++--- .../v1/ListBudgetsResponseOrBuilder.java | 45 +- .../billing/budgets/v1/NotificationsRule.java | 700 ++++--- .../v1/NotificationsRuleOrBuilder.java | 89 +- .../billing/budgets/v1/ThresholdRule.java | 444 ++--- .../budgets/v1/ThresholdRuleOrBuilder.java | 35 +- .../budgets/v1/UpdateBudgetRequest.java | 523 ++---- .../v1/UpdateBudgetRequestOrBuilder.java | 55 +- .../billing/budgets/v1/budget_model.proto | 16 +- .../billing/budgets/v1/budget_service.proto | 8 + .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbudget/AsyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 ...cCreateBudgetBillingaccountnameBudget.java | 0 .../SyncCreateBudgetStringBudget.java | 0 .../deletebudget/AsyncDeleteBudget.java | 0 .../deletebudget/SyncDeleteBudget.java | 0 .../SyncDeleteBudgetBudgetname.java | 0 .../deletebudget/SyncDeleteBudgetString.java | 0 .../getbudget/AsyncGetBudget.java | 0 .../getbudget/SyncGetBudget.java | 0 .../getbudget/SyncGetBudgetBudgetname.java | 0 .../getbudget/SyncGetBudgetString.java | 0 .../listbudgets/AsyncListBudgets.java | 1 + .../listbudgets/AsyncListBudgetsPaged.java | 1 + .../listbudgets/SyncListBudgets.java | 1 + .../SyncListBudgetsBillingaccountname.java | 0 .../listbudgets/SyncListBudgetsString.java | 0 .../updatebudget/AsyncUpdateBudget.java | 0 .../updatebudget/SyncUpdateBudget.java | 0 .../SyncUpdateBudgetBudgetFieldmask.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../budgets/v1beta1/BudgetServiceClient.java | 0 .../v1beta1/BudgetServiceSettings.java | 1 + .../budgets/v1beta1/gapic_metadata.json | 0 .../billing/budgets/v1beta1/package-info.java | 0 .../v1beta1/stub/BudgetServiceStub.java | 0 .../stub/BudgetServiceStubSettings.java | 0 .../GrpcBudgetServiceCallableFactory.java | 0 .../v1beta1/stub/GrpcBudgetServiceStub.java | 1 + .../reflect-config.json | 0 .../v1beta1/BudgetServiceClientTest.java | 0 .../budgets/v1beta1/MockBudgetService.java | 0 .../v1beta1/MockBudgetServiceImpl.java | 0 .../budgets/v1beta1/BudgetServiceGrpc.java | 604 +++--- .../budgets/v1beta1/AllUpdatesRule.java | 643 +++---- .../v1beta1/AllUpdatesRuleOrBuilder.java | 79 +- .../cloud/billing/budgets/v1beta1/Budget.java | 1154 ++++-------- .../billing/budgets/v1beta1/BudgetAmount.java | 500 ++--- .../v1beta1/BudgetAmountOrBuilder.java | 34 +- .../billing/budgets/v1beta1/BudgetModel.java | 198 ++ .../billing/budgets/v1beta1/BudgetName.java | 0 .../budgets/v1beta1/BudgetOrBuilder.java | 140 +- .../v1beta1/BudgetServiceOuterClass.java | 179 ++ .../budgets/v1beta1/CalendarPeriod.java | 93 +- .../budgets/v1beta1/CreateBudgetRequest.java | 502 ++--- .../v1beta1/CreateBudgetRequestOrBuilder.java | 58 + .../billing/budgets/v1beta1/CustomPeriod.java | 407 ++--- .../v1beta1/CustomPeriodOrBuilder.java | 34 +- .../budgets/v1beta1/DeleteBudgetRequest.java | 360 ++-- .../v1beta1/DeleteBudgetRequestOrBuilder.java | 31 + .../cloud/billing/budgets/v1beta1/Filter.java | 1557 ++++++---------- .../budgets/v1beta1/FilterOrBuilder.java | 213 +-- .../budgets/v1beta1/GetBudgetRequest.java | 350 ++-- .../v1beta1/GetBudgetRequestOrBuilder.java | 31 + .../budgets/v1beta1/LastPeriodAmount.java | 248 ++- .../v1beta1/LastPeriodAmountOrBuilder.java | 9 + .../budgets/v1beta1/ListBudgetsRequest.java | 527 +++--- .../v1beta1/ListBudgetsRequestOrBuilder.java | 56 +- .../budgets/v1beta1/ListBudgetsResponse.java | 494 ++--- .../v1beta1/ListBudgetsResponseOrBuilder.java | 45 +- .../budgets/v1beta1/ThresholdRule.java | 452 ++--- .../v1beta1/ThresholdRuleOrBuilder.java | 35 +- .../budgets/v1beta1/UpdateBudgetRequest.java | 530 ++---- .../v1beta1/UpdateBudgetRequestOrBuilder.java | 55 +- .../budgets/v1beta1/budget_model.proto | 0 .../budgets/v1beta1/budget_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbudget/AsyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../deletebudget/AsyncDeleteBudget.java | 0 .../deletebudget/SyncDeleteBudget.java | 0 .../getbudget/AsyncGetBudget.java | 0 .../getbudget/SyncGetBudget.java | 0 .../listbudgets/AsyncListBudgets.java | 0 .../listbudgets/AsyncListBudgetsPaged.java | 0 .../listbudgets/SyncListBudgets.java | 0 .../updatebudget/AsyncUpdateBudget.java | 0 .../updatebudget/SyncUpdateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 146 files changed, 7914 insertions(+), 12906 deletions(-) delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java delete mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java (99%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java (99%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java (99%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java (99%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java (52%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java (67%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java (75%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java (66%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java (70%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java (61%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java (73%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java (75%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java (63%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java (73%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java (80%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java (64%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java (65%) create mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java (56%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java (51%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java (72%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java (69%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java (79%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java (88%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java (69%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java (55%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java (67%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java (67%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto (95%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto (92%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java (98%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java (98%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java (98%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java (99%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java (99%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java (50%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java (76%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java (81%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java (66%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java (74%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java (66%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java (70%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java (60%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java (73%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java (75%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java (62%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java (75%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java (83%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java (63%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java (65%) create mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java (72%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java (72%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java (71%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java (71%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java (68%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java (55%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java (66%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java (67%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java (100%) rename {java-billingbudgets => owl-bot-staging/java-billingbudgets/v1beta1}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java (100%) diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java deleted file mode 100644 index 029f1cb39e74..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_model.proto - -package com.google.cloud.billing.budgets.v1; - -public final class BudgetModelProto { - private BudgetModelProto() {} - - 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_budgets_v1_Budget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/billing/budgets/v1/budget" - + "_model.proto\022\037google.cloud.billing.budge" - + "ts.v1\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032\034google/protob" - + "uf/struct.proto\032\026google/type/date.proto\032" - + "\027google/type/money.proto\"\325\003\n\006Budget\022\022\n\004n" - + "ame\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\002 \001(\t\022D\n" - + "\rbudget_filter\030\003 \001(\0132\'.google.cloud.bill" - + "ing.budgets.v1.FilterB\004\342A\001\001\022C\n\006amount\030\004 " - + "\001(\0132-.google.cloud.billing.budgets.v1.Bu" - + "dgetAmountB\004\342A\001\002\022M\n\017threshold_rules\030\005 \003(" - + "\0132..google.cloud.billing.budgets.v1.Thre" - + "sholdRuleB\004\342A\001\001\022T\n\022notifications_rule\030\006 " - + "\001(\01322.google.cloud.billing.budgets.v1.No" - + "tificationsRuleB\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001" - + "\001:]\352AZ\n$billingbudgets.googleapis.com/Bu" - + "dget\0222billingAccounts/{billing_account}/" - + "budgets/{budget}\"\240\001\n\014BudgetAmount\022.\n\020spe" - + "cified_amount\030\001 \001(\0132\022.google.type.MoneyH" - + "\000\022O\n\022last_period_amount\030\002 \001(\01321.google.c" - + "loud.billing.budgets.v1.LastPeriodAmount" - + "H\000B\017\n\rbudget_amount\"\022\n\020LastPeriodAmount\"" - + "\312\001\n\rThresholdRule\022\037\n\021threshold_percent\030\001" - + " \001(\001B\004\342A\001\002\022O\n\013spend_basis\030\002 \001(\01624.google" - + ".cloud.billing.budgets.v1.ThresholdRule." - + "BasisB\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIE" - + "D\020\000\022\021\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPE" - + "ND\020\002\"\253\001\n\021NotificationsRule\022\032\n\014pubsub_top" - + "ic\030\001 \001(\tB\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004" - + "\342A\001\001\022.\n monitoring_notification_channels" - + "\030\003 \003(\tB\004\342A\001\001\022,\n\036disable_default_iam_reci" - + "pients\030\004 \001(\010B\004\342A\001\001\"\315\005\n\006Filter\022\026\n\010project" - + "s\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(" - + "\tB\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022b\n\026c" - + "redit_types_treatment\030\004 \001(\0162<.google.clo" - + "ud.billing.budgets.v1.Filter.CreditTypes" - + "TreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342A\001\001\022" - + "\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022I\n\006labels\030\006 \003" - + "(\01323.google.cloud.billing.budgets.v1.Fil" - + "ter.LabelsEntryB\004\342A\001\001\022P\n\017calendar_period" - + "\030\010 \001(\0162/.google.cloud.billing.budgets.v1" - + ".CalendarPeriodB\004\342A\001\001H\000\022L\n\rcustom_period" - + "\030\t \001(\0132-.google.cloud.billing.budgets.v1" - + ".CustomPeriodB\004\342A\001\001H\000\032I\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.protob" - + "uf.ListValue:\0028\001\"\217\001\n\024CreditTypesTreatmen" - + "t\022&\n\"CREDIT_TYPES_TREATMENT_UNSPECIFIED\020" - + "\000\022\027\n\023INCLUDE_ALL_CREDITS\020\001\022\027\n\023EXCLUDE_AL" - + "L_CREDITS\020\002\022\035\n\031INCLUDE_SPECIFIED_CREDITS" - + "\020\003B\016\n\014usage_period\"f\n\014CustomPeriod\022+\n\nst" - + "art_date\030\001 \001(\0132\021.google.type.DateB\004\342A\001\002\022" - + ")\n\010end_date\030\002 \001(\0132\021.google.type.DateB\004\342A" - + "\001\001*S\n\016CalendarPeriod\022\037\n\033CALENDAR_PERIOD_" - + "UNSPECIFIED\020\000\022\t\n\005MONTH\020\001\022\013\n\007QUARTER\020\002\022\010\n" - + "\004YEAR\020\003Bx\n#com.google.cloud.billing.budg" - + "ets.v1B\020BudgetModelProtoP\001Z=cloud.google" - + ".com/go/billing/budgets/apiv1/budgetspb;" - + "budgetspbb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1_Budget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Budget_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "BudgetFilter", - "Amount", - "ThresholdRules", - "NotificationsRule", - "Etag", - }); - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor, - new java.lang.String[] { - "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", - }); - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor, - new java.lang.String[] { - "ThresholdPercent", "SpendBasis", - }); - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor, - new java.lang.String[] { - "PubsubTopic", - "SchemaVersion", - "MonitoringNotificationChannels", - "DisableDefaultIamRecipients", - }); - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor, - new java.lang.String[] { - "Projects", - "ResourceAncestors", - "CreditTypes", - "CreditTypesTreatment", - "Services", - "Subaccounts", - "Labels", - "CalendarPeriod", - "CustomPeriod", - "UsagePeriod", - }); - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor = - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor, - new java.lang.String[] { - "StartDate", "EndDate", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java deleted file mode 100644 index 8e2f0bfff4e7..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public final class BudgetServiceProto { - private BudgetServiceProto() {} - - 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_budgets_v1_CreateBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/billing/budgets/v1/budget" - + "_service.proto\022\037google.cloud.billing.bud" - + "gets.v1\032\034google/api/annotations.proto\032\027g" - + "oogle/api/client.proto\032\037google/api/field" - + "_behavior.proto\032\031google/api/resource.pro" - + "to\0322google/cloud/billing/budgets/v1/budg" - + "et_model.proto\032\033google/protobuf/empty.pr" - + "oto\032 google/protobuf/field_mask.proto\"\223\001" - + "\n\023CreateBudgetRequest\022=\n\006parent\030\001 \001(\tB-\342" - + "A\001\002\372A&\022$billingbudgets.googleapis.com/Bu" - + "dget\022=\n\006budget\030\002 \001(\0132\'.google.cloud.bill" - + "ing.budgets.v1.BudgetB\004\342A\001\002\"\213\001\n\023UpdateBu" - + "dgetRequest\022=\n\006budget\030\001 \001(\0132\'.google.clo" - + "ud.billing.budgets.v1.BudgetB\004\342A\001\002\0225\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\004\342A\001\001\"O\n\020GetBudgetRequest\022;\n\004name\030\001 " - + "\001(\tB-\342A\001\002\372A&\n$billingbudgets.googleapis." - + "com/Budget\"\206\001\n\022ListBudgetsRequest\022=\n\006par" - + "ent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.googl" - + "eapis.com/Budget\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001" - + "\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"h\n\023ListBudge" - + "tsResponse\0228\n\007budgets\030\001 \003(\0132\'.google.clo" - + "ud.billing.budgets.v1.Budget\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"R\n\023DeleteBudgetRequest\022;\n\004" - + "name\030\001 \001(\tB-\342A\001\002\372A&\n$billingbudgets.goog" - + "leapis.com/Budget2\367\007\n\rBudgetService\022\265\001\n\014" - + "CreateBudget\0224.google.cloud.billing.budg" - + "ets.v1.CreateBudgetRequest\032\'.google.clou" - + "d.billing.budgets.v1.Budget\"F\332A\rparent,b" - + "udget\202\323\344\223\0020\"&/v1/{parent=billingAccounts" - + "/*}/budgets:\006budget\022\301\001\n\014UpdateBudget\0224.g" - + "oogle.cloud.billing.budgets.v1.UpdateBud" - + "getRequest\032\'.google.cloud.billing.budget" - + "s.v1.Budget\"R\332A\022budget,update_mask\202\323\344\223\0027" - + "2-/v1/{budget.name=billingAccounts/*/bud" - + "gets/*}:\006budget\022\236\001\n\tGetBudget\0221.google.c" - + "loud.billing.budgets.v1.GetBudgetRequest" - + "\032\'.google.cloud.billing.budgets.v1.Budge" - + "t\"5\332A\004name\202\323\344\223\002(\022&/v1/{name=billingAccou" - + "nts/*/budgets/*}\022\261\001\n\013ListBudgets\0223.googl" - + "e.cloud.billing.budgets.v1.ListBudgetsRe" - + "quest\0324.google.cloud.billing.budgets.v1." - + "ListBudgetsResponse\"7\332A\006parent\202\323\344\223\002(\022&/v" - + "1/{parent=billingAccounts/*}/budgets\022\223\001\n" - + "\014DeleteBudget\0224.google.cloud.billing.bud" - + "gets.v1.DeleteBudgetRequest\032\026.google.pro" - + "tobuf.Empty\"5\332A\004name\202\323\344\223\002(*&/v1/{name=bi" - + "llingAccounts/*/budgets/*}\032\177\312A\035billingbu" - + "dgets.googleapis.com\322A\\https://www.googl" - + "eapis.com/auth/cloud-billing,https://www" - + ".googleapis.com/auth/cloud-platformBz\n#c" - + "om.google.cloud.billing.budgets.v1B\022Budg" - + "etServiceProtoP\001Z=cloud.google.com/go/bi" - + "lling/budgets/apiv1/budgetspb;budgetspbb" - + "\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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor, - new java.lang.String[] { - "Parent", "Budget", - }); - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor, - new java.lang.String[] { - "Budget", "UpdateMask", - }); - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor, - new java.lang.String[] { - "Budgets", "NextPageToken", - }); - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - 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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java deleted file mode 100644 index e0cc805bfb54..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface CreateBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CreateBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the budget field is set. - */ - boolean hasBudget(); - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The budget. - */ - com.google.cloud.billing.budgets.v1.Budget getBudget(); - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java deleted file mode 100644 index 4801b06da438..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface DeleteBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.DeleteBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java deleted file mode 100644 index b5c42e0da212..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface GetBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.GetBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java deleted file mode 100644 index 673b35957419..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_model.proto - -package com.google.cloud.billing.budgets.v1; - -public interface LastPeriodAmountOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.LastPeriodAmount) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java deleted file mode 100644 index 0296683b9357..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_model.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public final class BudgetModel { - private BudgetModel() {} - - 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_budgets_v1beta1_Budget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/billing/budgets/v1beta1/b" - + "udget_model.proto\022$google.cloud.billing." - + "budgets.v1beta1\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032\034goo" - + "gle/protobuf/struct.proto\032\026google/type/d" - + "ate.proto\032\027google/type/money.proto\"\344\003\n\006B" - + "udget\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_nam" - + "e\030\002 \001(\t\022I\n\rbudget_filter\030\003 \001(\0132,.google." - + "cloud.billing.budgets.v1beta1.FilterB\004\342A" - + "\001\001\022H\n\006amount\030\004 \001(\01322.google.cloud.billin" - + "g.budgets.v1beta1.BudgetAmountB\004\342A\001\002\022R\n\017" - + "threshold_rules\030\005 \003(\01323.google.cloud.bil" - + "ling.budgets.v1beta1.ThresholdRuleB\004\342A\001\001" - + "\022T\n\020all_updates_rule\030\006 \001(\01324.google.clou" - + "d.billing.budgets.v1beta1.AllUpdatesRule" - + "B\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001\001:]\352AZ\n$billing" - + "budgets.googleapis.com/Budget\0222billingAc" - + "counts/{billing_account}/budgets/{budget" - + "}\"\245\001\n\014BudgetAmount\022.\n\020specified_amount\030\001" - + " \001(\0132\022.google.type.MoneyH\000\022T\n\022last_perio" - + "d_amount\030\002 \001(\01326.google.cloud.billing.bu" - + "dgets.v1beta1.LastPeriodAmountH\000B\017\n\rbudg" - + "et_amount\"\022\n\020LastPeriodAmount\"\317\001\n\rThresh" - + "oldRule\022\037\n\021threshold_percent\030\001 \001(\001B\004\342A\001\002" - + "\022T\n\013spend_basis\030\002 \001(\01629.google.cloud.bil" - + "ling.budgets.v1beta1.ThresholdRule.Basis" - + "B\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021" - + "\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\"" - + "\327\001\n\016AllUpdatesRule\022\032\n\014pubsub_topic\030\001 \001(\t" - + "B\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004\342A\001\001\022.\n " - + "monitoring_notification_channels\030\003 \003(\tB\004" - + "\342A\001\001\022,\n\036disable_default_iam_recipients\030\004" - + " \001(\010B\004\342A\001\001\022-\n\037enable_project_level_recip" - + "ients\030\005 \001(\010B\004\342A\001\001\"\341\005\n\006Filter\022\026\n\010projects" - + "\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(\t" - + "B\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022g\n\026cr" - + "edit_types_treatment\030\004 \001(\0162A.google.clou" - + "d.billing.budgets.v1beta1.Filter.CreditT" - + "ypesTreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342" - + "A\001\001\022\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022N\n\006labels" - + "\030\006 \003(\01328.google.cloud.billing.budgets.v1" - + "beta1.Filter.LabelsEntryB\004\342A\001\001\022U\n\017calend" - + "ar_period\030\010 \001(\01624.google.cloud.billing.b" - + "udgets.v1beta1.CalendarPeriodB\004\342A\001\001H\000\022Q\n" - + "\rcustom_period\030\t \001(\01322.google.cloud.bill" - + "ing.budgets.v1beta1.CustomPeriodB\004\342A\001\001H\000" - + "\032I\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 " - + "\001(\0132\032.google.protobuf.ListValue:\0028\001\"\217\001\n\024" - + "CreditTypesTreatment\022&\n\"CREDIT_TYPES_TRE" - + "ATMENT_UNSPECIFIED\020\000\022\027\n\023INCLUDE_ALL_CRED" - + "ITS\020\001\022\027\n\023EXCLUDE_ALL_CREDITS\020\002\022\035\n\031INCLUD" - + "E_SPECIFIED_CREDITS\020\003B\016\n\014usage_period\"f\n" - + "\014CustomPeriod\022+\n\nstart_date\030\001 \001(\0132\021.goog" - + "le.type.DateB\004\342A\001\002\022)\n\010end_date\030\002 \001(\0132\021.g" - + "oogle.type.DateB\004\342A\001\001*S\n\016CalendarPeriod\022" - + "\037\n\033CALENDAR_PERIOD_UNSPECIFIED\020\000\022\t\n\005MONT" - + "H\020\001\022\013\n\007QUARTER\020\002\022\010\n\004YEAR\020\003Bp\n(com.google" - + ".cloud.billing.budgets.v1beta1P\001ZBcloud." - + "google.com/go/billing/budgets/apiv1beta1" - + "/budgetspb;budgetspbb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "BudgetFilter", - "Amount", - "ThresholdRules", - "AllUpdatesRule", - "Etag", - }); - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor, - new java.lang.String[] { - "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", - }); - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor, - new java.lang.String[] { - "ThresholdPercent", "SpendBasis", - }); - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor, - new java.lang.String[] { - "PubsubTopic", - "SchemaVersion", - "MonitoringNotificationChannels", - "DisableDefaultIamRecipients", - "EnableProjectLevelRecipients", - }); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor, - new java.lang.String[] { - "Projects", - "ResourceAncestors", - "CreditTypes", - "CreditTypesTreatment", - "Services", - "Subaccounts", - "Labels", - "CalendarPeriod", - "CustomPeriod", - "UsagePeriod", - }); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor = - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor, - new java.lang.String[] { - "StartDate", "EndDate", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java deleted file mode 100644 index 22f43ca0ff4a..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public final class BudgetServiceOuterClass { - private BudgetServiceOuterClass() {} - - 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_budgets_v1beta1_CreateBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/billing/budgets/v1beta1/b" - + "udget_service.proto\022$google.cloud.billin" - + "g.budgets.v1beta1\032\034google/api/annotation" - + "s.proto\032\027google/api/client.proto\032\037google" - + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\0327google/cloud/billing/budge" - + "ts/v1beta1/budget_model.proto\032\033google/pr" - + "otobuf/empty.proto\032 google/protobuf/fiel" - + "d_mask.proto\"\230\001\n\023CreateBudgetRequest\022=\n\006" - + "parent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.go" - + "ogleapis.com/Budget\022B\n\006budget\030\002 \001(\0132,.go" - + "ogle.cloud.billing.budgets.v1beta1.Budge" - + "tB\004\342A\001\002\"\220\001\n\023UpdateBudgetRequest\022B\n\006budge" - + "t\030\001 \001(\0132,.google.cloud.billing.budgets.v" - + "1beta1.BudgetB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\004\342A\001\001\"O\n\020Ge" - + "tBudgetRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$b" - + "illingbudgets.googleapis.com/Budget\"\233\001\n\022" - + "ListBudgetsRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002" - + "\372A&\022$billingbudgets.googleapis.com/Budge" - + "t\022\023\n\005scope\030\004 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\002 \001(" - + "\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"m\n\023Lis" - + "tBudgetsResponse\022=\n\007budgets\030\001 \003(\0132,.goog" - + "le.cloud.billing.budgets.v1beta1.Budget\022" - + "\027\n\017next_page_token\030\002 \001(\t\"R\n\023DeleteBudget" - + "Request\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$billingb" - + "udgets.googleapis.com/Budget2\367\007\n\rBudgetS" - + "ervice\022\257\001\n\014CreateBudget\0229.google.cloud.b" - + "illing.budgets.v1beta1.CreateBudgetReque" - + "st\032,.google.cloud.billing.budgets.v1beta" - + "1.Budget\"6\202\323\344\223\0020\"+/v1beta1/{parent=billi" - + "ngAccounts/*}/budgets:\001*\022\266\001\n\014UpdateBudge" - + "t\0229.google.cloud.billing.budgets.v1beta1" - + ".UpdateBudgetRequest\032,.google.cloud.bill" - + "ing.budgets.v1beta1.Budget\"=\202\323\344\223\002722/v1b" - + "eta1/{budget.name=billingAccounts/*/budg" - + "ets/*}:\001*\022\246\001\n\tGetBudget\0226.google.cloud.b" - + "illing.budgets.v1beta1.GetBudgetRequest\032" - + ",.google.cloud.billing.budgets.v1beta1.B" - + "udget\"3\202\323\344\223\002-\022+/v1beta1/{name=billingAcc" - + "ounts/*/budgets/*}\022\267\001\n\013ListBudgets\0228.goo" - + "gle.cloud.billing.budgets.v1beta1.ListBu" - + "dgetsRequest\0329.google.cloud.billing.budg" - + "ets.v1beta1.ListBudgetsResponse\"3\202\323\344\223\002-\022" - + "+/v1beta1/{parent=billingAccounts/*}/bud" - + "gets\022\226\001\n\014DeleteBudget\0229.google.cloud.bil" - + "ling.budgets.v1beta1.DeleteBudgetRequest" - + "\032\026.google.protobuf.Empty\"3\202\323\344\223\002-*+/v1bet" - + "a1/{name=billingAccounts/*/budgets/*}\032\177\312" - + "A\035billingbudgets.googleapis.com\322A\\https:" - + "//www.googleapis.com/auth/cloud-billing," - + "https://www.googleapis.com/auth/cloud-pl" - + "atformBp\n(com.google.cloud.billing.budge" - + "ts.v1beta1P\001ZBcloud.google.com/go/billin" - + "g/budgets/apiv1beta1/budgetspb;budgetspb" - + "b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor, - new java.lang.String[] { - "Parent", "Budget", - }); - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor, - new java.lang.String[] { - "Budget", "UpdateMask", - }); - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor, - new java.lang.String[] { - "Parent", "Scope", "PageSize", "PageToken", - }); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor, - new java.lang.String[] { - "Budgets", "NextPageToken", - }); - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - 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.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.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java deleted file mode 100644 index 3e0000fbe7f5..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface CreateBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the budget field is set. - */ - boolean hasBudget(); - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The budget. - */ - com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); - /** - * - * - *
-   * Required. Budget to create.
-   * 
- * - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java deleted file mode 100644 index fa9463f8a928..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface DeleteBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java deleted file mode 100644 index fd66ff6cf720..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface GetBudgetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java deleted file mode 100644 index 5d7bf6ca43df..000000000000 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_model.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface LastPeriodAmountOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.LastPeriodAmount) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java similarity index 99% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java index d51bf6be245d..85075d965760 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java +++ b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java @@ -614,6 +614,7 @@ public final ListBudgetsPagedResponse listBudgets(String parent) { * ListBudgetsRequest request = * ListBudgetsRequest.newBuilder() * .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + * .setScope("scope109264468") * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -650,6 +651,7 @@ public final ListBudgetsPagedResponse listBudgets(ListBudgetsRequest request) { * ListBudgetsRequest request = * ListBudgetsRequest.newBuilder() * .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + * .setScope("scope109264468") * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -686,6 +688,7 @@ public final ListBudgetsPagedResponse listBudgets(ListBudgetsRequest request) { * ListBudgetsRequest request = * ListBudgetsRequest.newBuilder() * .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + * .setScope("scope109264468") * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java similarity index 99% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java index 2c4366092d95..226f074161e3 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java +++ b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.billing.budgets.v1.stub.BudgetServiceStubSettings; diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java similarity index 99% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java index c0b7eae1f516..2faf2b586325 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java +++ b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java @@ -37,6 +37,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java similarity index 99% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java index 23c5d024521d..742ae7fc0ff6 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java +++ b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java @@ -192,6 +192,7 @@ public class HttpJsonBudgetServiceStub extends BudgetServiceStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "scope", request.getScope()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java b/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java rename to owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java b/owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java similarity index 52% rename from java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java rename to owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java index b9ff2840f9fc..f9432bd17118 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java +++ b/owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.billing.budgets.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * BudgetService stores Cloud Billing budgets, which define a
  * budget plan and rules to execute as we track spend against that plan.
@@ -36,276 +19,206 @@ private BudgetServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.billing.budgets.v1.BudgetService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getCreateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateBudget",
       requestType = com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getCreateBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
-            com.google.cloud.billing.budgets.v1.Budget>
-        getCreateBudgetMethod;
+  public static io.grpc.MethodDescriptor getCreateBudgetMethod() {
+    io.grpc.MethodDescriptor getCreateBudgetMethod;
     if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
-          BudgetServiceGrpc.getCreateBudgetMethod =
-              getCreateBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.CreateBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
-                      .build();
+          BudgetServiceGrpc.getCreateBudgetMethod = getCreateBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
+              .build();
         }
       }
     }
     return getCreateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getUpdateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateBudget",
       requestType = com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getUpdateBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
-            com.google.cloud.billing.budgets.v1.Budget>
-        getUpdateBudgetMethod;
+  public static io.grpc.MethodDescriptor getUpdateBudgetMethod() {
+    io.grpc.MethodDescriptor getUpdateBudgetMethod;
     if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
-          BudgetServiceGrpc.getUpdateBudgetMethod =
-              getUpdateBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.UpdateBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
-                      .build();
+          BudgetServiceGrpc.getUpdateBudgetMethod = getUpdateBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
+              .build();
         }
       }
     }
     return getUpdateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.GetBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getGetBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getGetBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetBudget",
       requestType = com.google.cloud.billing.budgets.v1.GetBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.GetBudgetRequest,
-          com.google.cloud.billing.budgets.v1.Budget>
-      getGetBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1.GetBudgetRequest,
-            com.google.cloud.billing.budgets.v1.Budget>
-        getGetBudgetMethod;
+  public static io.grpc.MethodDescriptor getGetBudgetMethod() {
+    io.grpc.MethodDescriptor getGetBudgetMethod;
     if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
-          BudgetServiceGrpc.getGetBudgetMethod =
-              getGetBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.GetBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
-                      .build();
+          BudgetServiceGrpc.getGetBudgetMethod = getGetBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
+              .build();
         }
       }
     }
     return getGetBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
-          com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
-      getListBudgetsMethod;
+  private static volatile io.grpc.MethodDescriptor getListBudgetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListBudgets",
       requestType = com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
-          com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
-      getListBudgetsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
-            com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
-        getListBudgetsMethod;
+  public static io.grpc.MethodDescriptor getListBudgetsMethod() {
+    io.grpc.MethodDescriptor getListBudgetsMethod;
     if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
-          BudgetServiceGrpc.getListBudgetsMethod =
-              getListBudgetsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.ListBudgetsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.ListBudgetsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
-                      .build();
+          BudgetServiceGrpc.getListBudgetsMethod = getListBudgetsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
+              .build();
         }
       }
     }
     return getListBudgetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
-      getDeleteBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteBudget",
       requestType = com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
-      getDeleteBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
-        getDeleteBudgetMethod;
+  public static io.grpc.MethodDescriptor getDeleteBudgetMethod() {
+    io.grpc.MethodDescriptor getDeleteBudgetMethod;
     if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
-          BudgetServiceGrpc.getDeleteBudgetMethod =
-              getDeleteBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1.DeleteBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
-                      .build();
+          BudgetServiceGrpc.getDeleteBudgetMethod = getDeleteBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
+              .build();
         }
       }
     }
     return getDeleteBudgetMethod;
   }
 
-  /** 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 BudgetServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceStub(channel, callOptions);
+        }
+      };
     return BudgetServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BudgetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static BudgetServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceBlockingStub(channel, callOptions);
+        }
+      };
     return BudgetServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static BudgetServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static BudgetServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceFutureStub(channel, callOptions);
+        }
+      };
     return BudgetServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -314,24 +227,18 @@ public BudgetServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - default void createBudget( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, + default void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBudgetMethod(), responseObserver); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -339,16 +246,12 @@ default void createBudget(
      * this API will not be changed by this method.
      * 
*/ - default void updateBudget( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, + default void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBudgetMethod(), responseObserver); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -357,15 +260,12 @@ default void updateBudget(
      * in the Cloud Console.
      * 
*/ - default void getBudget( - com.google.cloud.billing.budgets.v1.GetBudgetRequest request, + default void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBudgetMethod(), responseObserver); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -374,49 +274,39 @@ default void getBudget(
      * in the Cloud Console.
      * 
*/ - default void listBudgets( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBudgetsMethod(), responseObserver); + default void listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBudgetsMethod(), responseObserver); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - default void deleteBudget( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, + default void deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBudgetMethod(), responseObserver); } } /** * Base class for the server implementation of the service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
    * 
*/ - public abstract static class BudgetServiceImplBase + public static abstract class BudgetServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return BudgetServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -424,36 +314,31 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class BudgetServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private BudgetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected BudgetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected BudgetServiceStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new BudgetServiceStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public void createBudget( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, + public void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -461,18 +346,13 @@ public void createBudget(
      * this API will not be changed by this method.
      * 
*/ - public void updateBudget( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, + public void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -481,16 +361,13 @@ public void updateBudget(
      * in the Cloud Console.
      * 
*/ - public void getBudget( - com.google.cloud.billing.budgets.v1.GetBudgetRequest request, + public void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -499,36 +376,26 @@ public void getBudget(
      * in the Cloud Console.
      * 
*/ - public void listBudgets( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBudgetsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public void deleteBudget( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, + public void deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -536,7 +403,8 @@ public void deleteBudget(
    */
   public static final class BudgetServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private BudgetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -547,23 +415,18 @@ protected BudgetServiceBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget createBudget( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -571,15 +434,12 @@ public com.google.cloud.billing.budgets.v1.Budget createBudget(
      * this API will not be changed by this method.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget updateBudget( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -588,15 +448,12 @@ public com.google.cloud.billing.budgets.v1.Budget updateBudget(
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget getBudget( - com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -605,21 +462,17 @@ public com.google.cloud.billing.budgets.v1.Budget getBudget(
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1.ListBudgetsResponse listBudgets( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { + public com.google.cloud.billing.budgets.v1.ListBudgetsResponse listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBudgetsMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.protobuf.Empty deleteBudget( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { + public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); } @@ -627,7 +480,6 @@ public com.google.protobuf.Empty deleteBudget( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -635,7 +487,8 @@ public com.google.protobuf.Empty deleteBudget(
    */
   public static final class BudgetServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private BudgetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -646,24 +499,19 @@ protected BudgetServiceFutureStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1.Budget> - createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture createBudget( + com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -671,16 +519,13 @@ protected BudgetServiceFutureStub build(
      * this API will not be changed by this method.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1.Budget> - updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateBudget( + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -689,16 +534,13 @@ protected BudgetServiceFutureStub build(
      * in the Cloud Console.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1.Budget> - getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture getBudget( + com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -707,22 +549,19 @@ protected BudgetServiceFutureStub build(
      * in the Cloud Console.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1.ListBudgetsResponse> - listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listBudgets( + com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteBudget( + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request); } @@ -734,11 +573,11 @@ protected BudgetServiceFutureStub build( private static final int METHODID_LIST_BUDGETS = 3; private static final int METHODID_DELETE_BUDGET = 4; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -752,32 +591,23 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_BUDGET: - serviceImpl.createBudget( - (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createBudget((com.google.cloud.billing.budgets.v1.CreateBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_BUDGET: - serviceImpl.updateBudget( - (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateBudget((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BUDGET: - serviceImpl.getBudget( - (com.google.cloud.billing.budgets.v1.GetBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getBudget((com.google.cloud.billing.budgets.v1.GetBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BUDGETS: - serviceImpl.listBudgets( - (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listBudgets((com.google.cloud.billing.budgets.v1.ListBudgetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_BUDGET: - serviceImpl.deleteBudget( - (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) request, + serviceImpl.deleteBudget((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -799,42 +629,45 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.CreateBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_CREATE_BUDGET))) + getCreateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.CreateBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>( + service, METHODID_CREATE_BUDGET))) .addMethod( - getUpdateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_UPDATE_BUDGET))) + getUpdateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>( + service, METHODID_UPDATE_BUDGET))) .addMethod( - getGetBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.GetBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_GET_BUDGET))) + getGetBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.GetBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>( + service, METHODID_GET_BUDGET))) .addMethod( - getListBudgetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.ListBudgetsRequest, - com.google.cloud.billing.budgets.v1.ListBudgetsResponse>( - service, METHODID_LIST_BUDGETS))) + getListBudgetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.ListBudgetsRequest, + com.google.cloud.billing.budgets.v1.ListBudgetsResponse>( + service, METHODID_LIST_BUDGETS))) .addMethod( - getDeleteBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_BUDGET))) + getDeleteBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_BUDGET))) .build(); } - private abstract static class BudgetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class BudgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { BudgetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -876,16 +709,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BudgetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) - .addMethod(getCreateBudgetMethod()) - .addMethod(getUpdateBudgetMethod()) - .addMethod(getGetBudgetMethod()) - .addMethod(getListBudgetsMethod()) - .addMethod(getDeleteBudgetMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) + .addMethod(getCreateBudgetMethod()) + .addMethod(getUpdateBudgetMethod()) + .addMethod(getGetBudgetMethod()) + .addMethod(getListBudgetsMethod()) + .addMethod(getDeleteBudgetMethod()) + .build(); } } } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java similarity index 100% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java similarity index 67% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java index cc9908d846ca..fd6004206b3d 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * A budget is a plan that describes what you expect to spend on Cloud
  * projects, plus the rules to execute as spend is tracked against that plan,
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.Budget}
  */
-public final class Budget extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Budget extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.Budget)
     BudgetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Budget.newBuilder() to construct.
   private Budget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Budget() {
     name_ = "";
     displayName_ = "";
@@ -50,32 +32,28 @@ private Budget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Budget();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.Budget.class,
-            com.google.cloud.billing.budgets.v1.Budget.Builder.class);
+            com.google.cloud.billing.budgets.v1.Budget.class, com.google.cloud.billing.budgets.v1.Budget.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -92,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -108,15 +84,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,19 +102,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -146,30 +119,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; } } /** - * - * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; - * * @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 { @@ -180,18 +153,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int BUDGET_FILTER_FIELD_NUMBER = 3; private com.google.cloud.billing.budgets.v1.Filter budgetFilter_; /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ @java.lang.Override @@ -199,59 +167,41 @@ public boolean hasBudgetFilter() { return budgetFilter_ != null; } /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter getBudgetFilter() { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; } /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder() { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; } public static final int AMOUNT_FIELD_NUMBER = 4; private com.google.cloud.billing.budgets.v1.BudgetAmount amount_; /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ @java.lang.Override @@ -259,49 +209,33 @@ public boolean hasAmount() { return amount_ != null; } /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmount getAmount() { - return amount_ == null - ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; } /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder() { - return amount_ == null - ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; } public static final int THRESHOLD_RULES_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List thresholdRules_; /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -311,17 +245,13 @@ public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuil
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getThresholdRulesList() { return thresholdRules_; } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -331,18 +261,14 @@ public java.util.List getThre
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getThresholdRulesOrBuilderList() { return thresholdRules_; } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -352,17 +278,13 @@ public java.util.List getThre
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getThresholdRulesCount() { return thresholdRules_.size(); } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -372,17 +294,13 @@ public int getThresholdRulesCount() {
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index) { return thresholdRules_.get(index); } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -392,9 +310,7 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( @@ -405,17 +321,12 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu public static final int NOTIFICATIONS_RULE_FIELD_NUMBER = 6; private com.google.cloud.billing.budgets.v1.NotificationsRule notificationsRule_; /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the notificationsRule field is set. */ @java.lang.Override @@ -423,52 +334,35 @@ public boolean hasNotificationsRule() { return notificationsRule_ != null; } /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The notificationsRule. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule() { - return notificationsRule_ == null - ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() - : notificationsRule_; + return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; } /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder - getNotificationsRuleOrBuilder() { - return notificationsRule_ == null - ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() - : notificationsRule_; + public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder() { + return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; } public static final int ETAG_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -476,7 +370,6 @@ public com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRul
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -485,15 +378,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -501,15 +393,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -518,7 +411,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -530,7 +422,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_); } @@ -568,16 +461,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (budgetFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBudgetFilter()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBudgetFilter()); } if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAmount()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAmount()); } for (int i = 0; i < thresholdRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, thresholdRules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, thresholdRules_.get(i)); } if (notificationsRule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNotificationsRule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getNotificationsRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); @@ -590,30 +487,36 @@ 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.budgets.v1.Budget)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.Budget other = - (com.google.cloud.billing.budgets.v1.Budget) obj; + com.google.cloud.billing.budgets.v1.Budget other = (com.google.cloud.billing.budgets.v1.Budget) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasBudgetFilter() != other.hasBudgetFilter()) return false; if (hasBudgetFilter()) { - if (!getBudgetFilter().equals(other.getBudgetFilter())) return false; + if (!getBudgetFilter() + .equals(other.getBudgetFilter())) return false; } if (hasAmount() != other.hasAmount()) return false; if (hasAmount()) { - if (!getAmount().equals(other.getAmount())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; } - if (!getThresholdRulesList().equals(other.getThresholdRulesList())) return false; + if (!getThresholdRulesList() + .equals(other.getThresholdRulesList())) return false; if (hasNotificationsRule() != other.hasNotificationsRule()) return false; if (hasNotificationsRule()) { - if (!getNotificationsRule().equals(other.getNotificationsRule())) return false; + if (!getNotificationsRule() + .equals(other.getNotificationsRule())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -652,104 +555,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1.Budget parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1.Budget parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.Budget parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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 budget is a plan that describes what you expect to spend on Cloud
    * projects, plus the rules to execute as spend is tracked against that plan,
@@ -760,32 +658,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.Budget}
    */
-  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.budgets.v1.Budget)
       com.google.cloud.billing.budgets.v1.BudgetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.Budget.class,
-              com.google.cloud.billing.budgets.v1.Budget.Builder.class);
+              com.google.cloud.billing.budgets.v1.Budget.class, com.google.cloud.billing.budgets.v1.Budget.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.Budget.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -819,9 +718,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
     }
 
     @java.lang.Override
@@ -840,12 +739,9 @@ public com.google.cloud.billing.budgets.v1.Budget build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.Budget buildPartial() {
-      com.google.cloud.billing.budgets.v1.Budget result =
-          new com.google.cloud.billing.budgets.v1.Budget(this);
+      com.google.cloud.billing.budgets.v1.Budget result = new com.google.cloud.billing.budgets.v1.Budget(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -871,17 +767,19 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Budget result) {
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.budgetFilter_ =
-            budgetFilterBuilder_ == null ? budgetFilter_ : budgetFilterBuilder_.build();
+        result.budgetFilter_ = budgetFilterBuilder_ == null
+            ? budgetFilter_
+            : budgetFilterBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.amount_ = amountBuilder_ == null ? amount_ : amountBuilder_.build();
+        result.amount_ = amountBuilder_ == null
+            ? amount_
+            : amountBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.notificationsRule_ =
-            notificationsRuleBuilder_ == null
-                ? notificationsRule_
-                : notificationsRuleBuilder_.build();
+        result.notificationsRule_ = notificationsRuleBuilder_ == null
+            ? notificationsRule_
+            : notificationsRuleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.etag_ = etag_;
@@ -892,39 +790,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Budget result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.budgets.v1.Budget) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.Budget) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.Budget)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -967,10 +864,9 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.Budget other) {
             thresholdRulesBuilder_ = null;
             thresholdRules_ = other.thresholdRules_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            thresholdRulesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getThresholdRulesFieldBuilder()
-                    : null;
+            thresholdRulesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getThresholdRulesFieldBuilder() : null;
           } else {
             thresholdRulesBuilder_.addAllMessages(other.thresholdRules_);
           }
@@ -1010,64 +906,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getBudgetFilterFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.cloud.billing.budgets.v1.ThresholdRule m =
-                    input.readMessage(
-                        com.google.cloud.billing.budgets.v1.ThresholdRule.parser(),
-                        extensionRegistry);
-                if (thresholdRulesBuilder_ == null) {
-                  ensureThresholdRulesIsMutable();
-                  thresholdRules_.add(m);
-                } else {
-                  thresholdRulesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(
-                    getNotificationsRuleFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getBudgetFilterFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getAmountFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              com.google.cloud.billing.budgets.v1.ThresholdRule m =
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1.ThresholdRule.parser(),
+                      extensionRegistry);
+              if (thresholdRulesBuilder_ == null) {
+                ensureThresholdRulesIsMutable();
+                thresholdRules_.add(m);
+              } else {
+                thresholdRulesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getNotificationsRuleFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1077,13 +970,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1091,13 +981,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1106,8 +996,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1115,14 +1003,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1130,8 +1019,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1139,22 +1026,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1162,7 +1045,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1172,8 +1054,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1181,14 +1061,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1198,21 +1076,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; - * * @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; @@ -1221,22 +1097,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; - * * @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 { @@ -1244,37 +1119,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1284,22 +1152,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1309,64 +1173,45 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.budgets.v1.Filter budgetFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, - com.google.cloud.billing.budgets.v1.Filter.Builder, - com.google.cloud.billing.budgets.v1.FilterOrBuilder> - budgetFilterBuilder_; + com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder> budgetFilterBuilder_; /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ public boolean hasBudgetFilter() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ public com.google.cloud.billing.budgets.v1.Filter getBudgetFilter() { if (budgetFilterBuilder_ == null) { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; } else { return budgetFilterBuilder_.getMessage(); } } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) { if (budgetFilterBuilder_ == null) { @@ -1382,17 +1227,13 @@ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBudgetFilter( com.google.cloud.billing.budgets.v1.Filter.Builder builderForValue) { @@ -1406,23 +1247,19 @@ public Builder setBudgetFilter( return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) { if (budgetFilterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && budgetFilter_ != null - && budgetFilter_ != com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + budgetFilter_ != null && + budgetFilter_ != com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance()) { getBudgetFilterBuilder().mergeFrom(value); } else { budgetFilter_ = value; @@ -1435,17 +1272,13 @@ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1.Filter valu return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBudgetFilter() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1458,17 +1291,13 @@ public Builder clearBudgetFilter() { return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.Filter.Builder getBudgetFilterBuilder() { bitField0_ |= 0x00000004; @@ -1476,52 +1305,40 @@ public com.google.cloud.billing.budgets.v1.Filter.Builder getBudgetFilterBuilder return getBudgetFilterFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder() { if (budgetFilterBuilder_ != null) { return budgetFilterBuilder_.getMessageOrBuilder(); } else { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? + com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; } } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, - com.google.cloud.billing.budgets.v1.Filter.Builder, - com.google.cloud.billing.budgets.v1.FilterOrBuilder> + com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder> getBudgetFilterFieldBuilder() { if (budgetFilterBuilder_ == null) { - budgetFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, - com.google.cloud.billing.budgets.v1.Filter.Builder, - com.google.cloud.billing.budgets.v1.FilterOrBuilder>( - getBudgetFilter(), getParentForChildren(), isClean()); + budgetFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder>( + getBudgetFilter(), + getParentForChildren(), + isClean()); budgetFilter_ = null; } return budgetFilterBuilder_; @@ -1529,58 +1346,39 @@ public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuil private com.google.cloud.billing.budgets.v1.BudgetAmount amount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, - com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> - amountBuilder_; + com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> amountBuilder_; /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ public boolean hasAmount() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ public com.google.cloud.billing.budgets.v1.BudgetAmount getAmount() { if (amountBuilder_ == null) { - return amount_ == null - ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; } else { return amountBuilder_.getMessage(); } } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) { if (amountBuilder_ == null) { @@ -1596,15 +1394,11 @@ public Builder setAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAmount( com.google.cloud.billing.budgets.v1.BudgetAmount.Builder builderForValue) { @@ -1618,21 +1412,17 @@ public Builder setAmount( return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) { if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && amount_ != null - && amount_ != com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + amount_ != null && + amount_ != com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) { getAmountBuilder().mergeFrom(value); } else { amount_ = value; @@ -1645,15 +1435,11 @@ public Builder mergeAmount(com.google.cloud.billing.budgets.v1.BudgetAmount valu return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1666,15 +1452,11 @@ public Builder clearAmount() { return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.BudgetAmount.Builder getAmountBuilder() { bitField0_ |= 0x00000008; @@ -1682,74 +1464,54 @@ public com.google.cloud.billing.budgets.v1.BudgetAmount.Builder getAmountBuilder return getAmountFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { - return amount_ == null - ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? + com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; } } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, - com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> + com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { - amountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, - com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder>( - getAmount(), getParentForChildren(), isClean()); + amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder>( + getAmount(), + getParentForChildren(), + isClean()); amount_ = null; } return amountBuilder_; } private java.util.List thresholdRules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureThresholdRulesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - thresholdRules_ = - new java.util.ArrayList( - thresholdRules_); + thresholdRules_ = new java.util.ArrayList(thresholdRules_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, - com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> - thresholdRulesBuilder_; + com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> thresholdRulesBuilder_; /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1759,12 +1521,9 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesList() { + public java.util.List getThresholdRulesList() { if (thresholdRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(thresholdRules_); } else { @@ -1772,8 +1531,6 @@ private void ensureThresholdRulesIsMutable() { } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1783,9 +1540,7 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getThresholdRulesCount() { if (thresholdRulesBuilder_ == null) { @@ -1795,8 +1550,6 @@ public int getThresholdRulesCount() { } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1806,9 +1559,7 @@ public int getThresholdRulesCount() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1818,8 +1569,6 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1829,9 +1578,7 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule value) { @@ -1848,8 +1595,6 @@ public Builder setThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1859,9 +1604,7 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1875,8 +1618,6 @@ public Builder setThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1886,9 +1627,7 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRule value) { if (thresholdRulesBuilder_ == null) { @@ -1904,8 +1643,6 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRu return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1915,9 +1652,7 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRu
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule value) { @@ -1934,8 +1669,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1945,9 +1678,7 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1961,8 +1692,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1972,9 +1701,7 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1988,8 +1715,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1999,15 +1724,14 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllThresholdRules( java.lang.Iterable values) { if (thresholdRulesBuilder_ == null) { ensureThresholdRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholdRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, thresholdRules_); onChanged(); } else { thresholdRulesBuilder_.addAllMessages(values); @@ -2015,8 +1739,6 @@ public Builder addAllThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2026,9 +1748,7 @@ public Builder addAllThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearThresholdRules() { if (thresholdRulesBuilder_ == null) { @@ -2041,8 +1761,6 @@ public Builder clearThresholdRules() { return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2052,9 +1770,7 @@ public Builder clearThresholdRules() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -2067,8 +1783,6 @@ public Builder removeThresholdRules(int index) { return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2078,17 +1792,13 @@ public Builder removeThresholdRules(int index) {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder getThresholdRulesBuilder( int index) { return getThresholdRulesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2098,21 +1808,16 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder getThresholdRul
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( int index) { if (thresholdRulesBuilder_ == null) { - return thresholdRules_.get(index); - } else { + return thresholdRules_.get(index); } else { return thresholdRulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2122,12 +1827,10 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesOrBuilderList() { + public java.util.List + getThresholdRulesOrBuilderList() { if (thresholdRulesBuilder_ != null) { return thresholdRulesBuilder_.getMessageOrBuilderList(); } else { @@ -2135,8 +1838,6 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2146,17 +1847,13 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRulesBuilder() { - return getThresholdRulesFieldBuilder() - .addBuilder(com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder().addBuilder( + com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2166,19 +1863,14 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRulesBuilder( int index) { - return getThresholdRulesFieldBuilder() - .addBuilder( - index, com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder().addBuilder( + index, com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2188,26 +1880,18 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesBuilderList() { + public java.util.List + getThresholdRulesBuilderList() { return getThresholdRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, - com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> + com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> getThresholdRulesFieldBuilder() { if (thresholdRulesBuilder_ == null) { - thresholdRulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, - com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder>( + thresholdRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder>( thresholdRules_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -2219,64 +1903,44 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul private com.google.cloud.billing.budgets.v1.NotificationsRule notificationsRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, - com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, - com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> - notificationsRuleBuilder_; + com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> notificationsRuleBuilder_; /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the notificationsRule field is set. */ public boolean hasNotificationsRule() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The notificationsRule. */ public com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule() { if (notificationsRuleBuilder_ == null) { - return notificationsRule_ == null - ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() - : notificationsRule_; + return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; } else { return notificationsRuleBuilder_.getMessage(); } } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setNotificationsRule( - com.google.cloud.billing.budgets.v1.NotificationsRule value) { + public Builder setNotificationsRule(com.google.cloud.billing.budgets.v1.NotificationsRule value) { if (notificationsRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2290,16 +1954,12 @@ public Builder setNotificationsRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setNotificationsRule( com.google.cloud.billing.budgets.v1.NotificationsRule.Builder builderForValue) { @@ -2313,24 +1973,18 @@ public Builder setNotificationsRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeNotificationsRule( - com.google.cloud.billing.budgets.v1.NotificationsRule value) { + public Builder mergeNotificationsRule(com.google.cloud.billing.budgets.v1.NotificationsRule value) { if (notificationsRuleBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && notificationsRule_ != null - && notificationsRule_ - != com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + notificationsRule_ != null && + notificationsRule_ != com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) { getNotificationsRuleBuilder().mergeFrom(value); } else { notificationsRule_ = value; @@ -2343,16 +1997,12 @@ public Builder mergeNotificationsRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearNotificationsRule() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2365,69 +2015,51 @@ public Builder clearNotificationsRule() { return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1.NotificationsRule.Builder - getNotificationsRuleBuilder() { + public com.google.cloud.billing.budgets.v1.NotificationsRule.Builder getNotificationsRuleBuilder() { bitField0_ |= 0x00000020; onChanged(); return getNotificationsRuleFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder - getNotificationsRuleOrBuilder() { + public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder() { if (notificationsRuleBuilder_ != null) { return notificationsRuleBuilder_.getMessageOrBuilder(); } else { - return notificationsRule_ == null - ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() - : notificationsRule_; + return notificationsRule_ == null ? + com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; } } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, - com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, - com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> + com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> getNotificationsRuleFieldBuilder() { if (notificationsRuleBuilder_ == null) { - notificationsRuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, - com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, - com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder>( - getNotificationsRule(), getParentForChildren(), isClean()); + notificationsRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder>( + getNotificationsRule(), + getParentForChildren(), + isClean()); notificationsRule_ = null; } return notificationsRuleBuilder_; @@ -2435,8 +2067,6 @@ public Builder clearNotificationsRule() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2444,13 +2074,13 @@ public Builder clearNotificationsRule() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -2459,8 +2089,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2468,14 +2096,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -2483,8 +2112,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2492,22 +2119,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2515,7 +2138,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2525,8 +2147,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2534,23 +2154,21 @@ public Builder clearEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000040; 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); } @@ -2560,12 +2178,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.Budget) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.Budget) private static final com.google.cloud.billing.budgets.v1.Budget DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.Budget(); } @@ -2574,27 +2192,27 @@ public static com.google.cloud.billing.budgets.v1.Budget getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Budget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Budget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2609,4 +2227,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.Budget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java similarity index 75% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java index a020eaa55bb5..8a191ce5a0fc 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java @@ -1,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * The budgeted amount for each usage period.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.BudgetAmount} */ -public final class BudgetAmount extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BudgetAmount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.BudgetAmount) BudgetAmountOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BudgetAmount.newBuilder() to construct. private BudgetAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BudgetAmount() {} + private BudgetAmount() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BudgetAmount(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.BudgetAmount.class, - com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1.BudgetAmount.class, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); } private int budgetAmountCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object budgetAmount_; - public enum BudgetAmountCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SPECIFIED_AMOUNT(1), LAST_PERIOD_AMOUNT(2), BUDGETAMOUNT_NOT_SET(0); private final int value; - private BudgetAmountCase(int value) { this.value = value; } @@ -89,30 +67,25 @@ public static BudgetAmountCase valueOf(int value) { public static BudgetAmountCase forNumber(int value) { switch (value) { - case 1: - return SPECIFIED_AMOUNT; - case 2: - return LAST_PERIOD_AMOUNT; - case 0: - return BUDGETAMOUNT_NOT_SET; - default: - return null; + case 1: return SPECIFIED_AMOUNT; + case 2: return LAST_PERIOD_AMOUNT; + case 0: return BUDGETAMOUNT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public BudgetAmountCase getBudgetAmountCase() { - return BudgetAmountCase.forNumber(budgetAmountCase_); + public BudgetAmountCase + getBudgetAmountCase() { + return BudgetAmountCase.forNumber( + budgetAmountCase_); } public static final int SPECIFIED_AMOUNT_FIELD_NUMBER = 1; /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -122,7 +95,6 @@ public BudgetAmountCase getBudgetAmountCase() {
    * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -130,8 +102,6 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -141,19 +111,16 @@ public boolean hasSpecifiedAmount() {
    * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ @java.lang.Override public com.google.type.Money getSpecifiedAmount() { if (budgetAmountCase_ == 1) { - return (com.google.type.Money) budgetAmount_; + return (com.google.type.Money) budgetAmount_; } return com.google.type.Money.getDefaultInstance(); } /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -167,15 +134,13 @@ public com.google.type.Money getSpecifiedAmount() {
   @java.lang.Override
   public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     if (budgetAmountCase_ == 1) {
-      return (com.google.type.Money) budgetAmount_;
+       return (com.google.type.Money) budgetAmount_;
     }
     return com.google.type.Money.getDefaultInstance();
   }
 
   public static final int LAST_PERIOD_AMOUNT_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -185,7 +150,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -193,8 +157,6 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -204,19 +166,16 @@ public boolean hasLastPeriodAmount() {
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount() { if (budgetAmountCase_ == 2) { - return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_; + return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_; } return com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance(); } /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -228,16 +187,14 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount(
    * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
    */
   @java.lang.Override
-  public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder
-      getLastPeriodAmountOrBuilder() {
+  public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
     if (budgetAmountCase_ == 2) {
-      return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_;
+       return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_;
     }
     return com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -249,7 +206,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 (budgetAmountCase_ == 1) {
       output.writeMessage(1, (com.google.type.Money) budgetAmount_);
     }
@@ -266,14 +224,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (budgetAmountCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.type.Money) budgetAmount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -283,21 +239,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.budgets.v1.BudgetAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.BudgetAmount other =
-        (com.google.cloud.billing.budgets.v1.BudgetAmount) obj;
+    com.google.cloud.billing.budgets.v1.BudgetAmount other = (com.google.cloud.billing.budgets.v1.BudgetAmount) obj;
 
     if (!getBudgetAmountCase().equals(other.getBudgetAmountCase())) return false;
     switch (budgetAmountCase_) {
       case 1:
-        if (!getSpecifiedAmount().equals(other.getSpecifiedAmount())) return false;
+        if (!getSpecifiedAmount()
+            .equals(other.getSpecifiedAmount())) return false;
         break;
       case 2:
-        if (!getLastPeriodAmount().equals(other.getLastPeriodAmount())) return false;
+        if (!getLastPeriodAmount()
+            .equals(other.getLastPeriodAmount())) return false;
         break;
       case 0:
       default:
@@ -330,136 +287,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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;
   }
   /**
-   *
-   *
    * 
    * The budgeted amount for each usage period.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.BudgetAmount} */ - 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.budgets.v1.BudgetAmount) com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.BudgetAmount.class, - com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1.BudgetAmount.class, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.BudgetAmount.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override @@ -497,11 +450,8 @@ public com.google.cloud.billing.budgets.v1.BudgetAmount build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmount buildPartial() { - com.google.cloud.billing.budgets.v1.BudgetAmount result = - new com.google.cloud.billing.budgets.v1.BudgetAmount(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.BudgetAmount result = new com.google.cloud.billing.budgets.v1.BudgetAmount(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -514,10 +464,12 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.BudgetAmount resu private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.BudgetAmount result) { result.budgetAmountCase_ = budgetAmountCase_; result.budgetAmount_ = this.budgetAmount_; - if (budgetAmountCase_ == 1 && specifiedAmountBuilder_ != null) { + if (budgetAmountCase_ == 1 && + specifiedAmountBuilder_ != null) { result.budgetAmount_ = specifiedAmountBuilder_.build(); } - if (budgetAmountCase_ == 2 && lastPeriodAmountBuilder_ != null) { + if (budgetAmountCase_ == 2 && + lastPeriodAmountBuilder_ != null) { result.budgetAmount_ = lastPeriodAmountBuilder_.build(); } } @@ -526,39 +478,38 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount) { - return mergeFrom((com.google.cloud.billing.budgets.v1.BudgetAmount) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.BudgetAmount)other); } else { super.mergeFrom(other); return this; @@ -566,23 +517,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.BudgetAmount other) { - if (other == com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) return this; switch (other.getBudgetAmountCase()) { - case SPECIFIED_AMOUNT: - { - mergeSpecifiedAmount(other.getSpecifiedAmount()); - break; - } - case LAST_PERIOD_AMOUNT: - { - mergeLastPeriodAmount(other.getLastPeriodAmount()); - break; - } - case BUDGETAMOUNT_NOT_SET: - { - break; - } + case SPECIFIED_AMOUNT: { + mergeSpecifiedAmount(other.getSpecifiedAmount()); + break; + } + case LAST_PERIOD_AMOUNT: { + mergeLastPeriodAmount(other.getLastPeriodAmount()); + break; + } + case BUDGETAMOUNT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -610,26 +557,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSpecifiedAmountFieldBuilder().getBuilder(), extensionRegistry); - budgetAmountCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getLastPeriodAmountFieldBuilder().getBuilder(), extensionRegistry); - budgetAmountCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSpecifiedAmountFieldBuilder().getBuilder(), + extensionRegistry); + budgetAmountCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getLastPeriodAmountFieldBuilder().getBuilder(), + extensionRegistry); + budgetAmountCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -639,12 +586,12 @@ public Builder mergeFrom( } // finally return this; } - private int budgetAmountCase_ = 0; private java.lang.Object budgetAmount_; - - public BudgetAmountCase getBudgetAmountCase() { - return BudgetAmountCase.forNumber(budgetAmountCase_); + public BudgetAmountCase + getBudgetAmountCase() { + return BudgetAmountCase.forNumber( + budgetAmountCase_); } public Builder clearBudgetAmount() { @@ -657,11 +604,8 @@ public Builder clearBudgetAmount() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - specifiedAmountBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> specifiedAmountBuilder_; /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -671,7 +615,6 @@ public Builder clearBudgetAmount() {
      * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -679,8 +622,6 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -690,7 +631,6 @@ public boolean hasSpecifiedAmount() {
      * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ @java.lang.Override @@ -708,8 +648,6 @@ public com.google.type.Money getSpecifiedAmount() { } } /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -734,8 +672,6 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -746,7 +682,8 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
      *
      * .google.type.Money specified_amount = 1;
      */
-    public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue) {
+    public Builder setSpecifiedAmount(
+        com.google.type.Money.Builder builderForValue) {
       if (specifiedAmountBuilder_ == null) {
         budgetAmount_ = builderForValue.build();
         onChanged();
@@ -757,8 +694,6 @@ public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -771,11 +706,10 @@ public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
      */
     public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       if (specifiedAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 1 && budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
-          budgetAmount_ =
-              com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (budgetAmountCase_ == 1 &&
+            budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
+          budgetAmount_ = com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
+              .mergeFrom(value).buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -791,8 +725,6 @@ public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -820,8 +752,6 @@ public Builder clearSpecifiedAmount() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -836,8 +766,6 @@ public com.google.type.Money.Builder getSpecifiedAmountBuilder() {
       return getSpecifiedAmountFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -860,8 +788,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -873,18 +799,17 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * .google.type.Money specified_amount = 1;
      */
     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> 
         getSpecifiedAmountFieldBuilder() {
       if (specifiedAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 1)) {
           budgetAmount_ = com.google.type.Money.getDefaultInstance();
         }
-        specifiedAmountBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Money,
-                com.google.type.Money.Builder,
-                com.google.type.MoneyOrBuilder>(
-                (com.google.type.Money) budgetAmount_, getParentForChildren(), isClean());
+        specifiedAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
+                (com.google.type.Money) budgetAmount_,
+                getParentForChildren(),
+                isClean());
         budgetAmount_ = null;
       }
       budgetAmountCase_ = 1;
@@ -893,13 +818,8 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount,
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
-            com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>
-        lastPeriodAmountBuilder_;
+        com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder> lastPeriodAmountBuilder_;
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -909,7 +829,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -917,8 +836,6 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** - * - * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -928,7 +845,6 @@ public boolean hasLastPeriodAmount() {
      * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ @java.lang.Override @@ -946,8 +862,6 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount( } } /** - * - * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -972,8 +886,6 @@ public Builder setLastPeriodAmount(com.google.cloud.billing.budgets.v1.LastPerio
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -996,8 +908,6 @@ public Builder setLastPeriodAmount(
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1008,17 +918,12 @@ public Builder setLastPeriodAmount(
      *
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder mergeLastPeriodAmount(
-        com.google.cloud.billing.budgets.v1.LastPeriodAmount value) {
+    public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 2
-            && budgetAmount_
-                != com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) {
-          budgetAmount_ =
-              com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder(
-                      (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (budgetAmountCase_ == 2 &&
+            budgetAmount_ != com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) {
+          budgetAmount_ = com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder((com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_)
+              .mergeFrom(value).buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -1034,8 +939,6 @@ public Builder mergeLastPeriodAmount(
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1063,8 +966,6 @@ public Builder clearLastPeriodAmount() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1075,13 +976,10 @@ public Builder clearLastPeriodAmount() {
      *
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
-    public com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder
-        getLastPeriodAmountBuilder() {
+    public com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder getLastPeriodAmountBuilder() {
       return getLastPeriodAmountFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1093,8 +991,7 @@ public Builder clearLastPeriodAmount() {
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
     @java.lang.Override
-    public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder
-        getLastPeriodAmountOrBuilder() {
+    public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
       if ((budgetAmountCase_ == 2) && (lastPeriodAmountBuilder_ != null)) {
         return lastPeriodAmountBuilder_.getMessageOrBuilder();
       } else {
@@ -1105,8 +1002,6 @@ public Builder clearLastPeriodAmount() {
       }
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1118,19 +1013,14 @@ public Builder clearLastPeriodAmount() {
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount,
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
-            com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>
+        com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder> 
         getLastPeriodAmountFieldBuilder() {
       if (lastPeriodAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 2)) {
           budgetAmount_ = com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance();
         }
-        lastPeriodAmountBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.billing.budgets.v1.LastPeriodAmount,
-                com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
-                com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>(
+        lastPeriodAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>(
                 (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_,
                 getParentForChildren(),
                 isClean());
@@ -1140,9 +1030,9 @@ public Builder clearLastPeriodAmount() {
       onChanged();
       return lastPeriodAmountBuilder_;
     }
-
     @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);
     }
 
@@ -1152,12 +1042,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.BudgetAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.BudgetAmount)
   private static final com.google.cloud.billing.budgets.v1.BudgetAmount DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.BudgetAmount();
   }
@@ -1166,27 +1056,27 @@ public static com.google.cloud.billing.budgets.v1.BudgetAmount getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BudgetAmount parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BudgetAmount parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1201,4 +1091,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.BudgetAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
similarity index 83%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
index a85cbf0038c9..4df69f28b1b1 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface BudgetAmountOrBuilder
-    extends
+public interface BudgetAmountOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.BudgetAmount)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -35,13 +17,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ boolean hasSpecifiedAmount(); /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -51,13 +30,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ com.google.type.Money getSpecifiedAmount(); /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -71,8 +47,6 @@ public interface BudgetAmountOrBuilder
   com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder();
 
   /**
-   *
-   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -82,13 +56,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ boolean hasLastPeriodAmount(); /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -98,13 +69,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount(); /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java
new file mode 100644
index 000000000000..417808d8ba4c
--- /dev/null
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java
@@ -0,0 +1,197 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1;
+
+public final class BudgetModelProto {
+  private BudgetModelProto() {}
+  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_budgets_v1_Budget_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_Filter_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n2google/cloud/billing/budgets/v1/budget" +
+      "_model.proto\022\037google.cloud.billing.budge" +
+      "ts.v1\032\037google/api/field_behavior.proto\032\031" +
+      "google/api/resource.proto\032\034google/protob" +
+      "uf/struct.proto\032\026google/type/date.proto\032" +
+      "\027google/type/money.proto\"\325\003\n\006Budget\022\022\n\004n" +
+      "ame\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\002 \001(\t\022D\n" +
+      "\rbudget_filter\030\003 \001(\0132\'.google.cloud.bill" +
+      "ing.budgets.v1.FilterB\004\342A\001\001\022C\n\006amount\030\004 " +
+      "\001(\0132-.google.cloud.billing.budgets.v1.Bu" +
+      "dgetAmountB\004\342A\001\002\022M\n\017threshold_rules\030\005 \003(" +
+      "\0132..google.cloud.billing.budgets.v1.Thre" +
+      "sholdRuleB\004\342A\001\001\022T\n\022notifications_rule\030\006 " +
+      "\001(\01322.google.cloud.billing.budgets.v1.No" +
+      "tificationsRuleB\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001" +
+      "\001:]\352AZ\n$billingbudgets.googleapis.com/Bu" +
+      "dget\0222billingAccounts/{billing_account}/" +
+      "budgets/{budget}\"\240\001\n\014BudgetAmount\022.\n\020spe" +
+      "cified_amount\030\001 \001(\0132\022.google.type.MoneyH" +
+      "\000\022O\n\022last_period_amount\030\002 \001(\01321.google.c" +
+      "loud.billing.budgets.v1.LastPeriodAmount" +
+      "H\000B\017\n\rbudget_amount\"\022\n\020LastPeriodAmount\"" +
+      "\312\001\n\rThresholdRule\022\037\n\021threshold_percent\030\001" +
+      " \001(\001B\004\342A\001\002\022O\n\013spend_basis\030\002 \001(\01624.google" +
+      ".cloud.billing.budgets.v1.ThresholdRule." +
+      "BasisB\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIE" +
+      "D\020\000\022\021\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPE" +
+      "ND\020\002\"\332\001\n\021NotificationsRule\022\032\n\014pubsub_top" +
+      "ic\030\001 \001(\tB\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004" +
+      "\342A\001\001\022.\n monitoring_notification_channels" +
+      "\030\003 \003(\tB\004\342A\001\001\022,\n\036disable_default_iam_reci" +
+      "pients\030\004 \001(\010B\004\342A\001\001\022-\n\037enable_project_lev" +
+      "el_recipients\030\005 \001(\010B\004\342A\001\001\"\315\005\n\006Filter\022\026\n\010" +
+      "projects\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancesto" +
+      "rs\030\002 \003(\tB\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A" +
+      "\001\001\022b\n\026credit_types_treatment\030\004 \001(\0162<.goo" +
+      "gle.cloud.billing.budgets.v1.Filter.Cred" +
+      "itTypesTreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\t" +
+      "B\004\342A\001\001\022\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022I\n\006lab" +
+      "els\030\006 \003(\01323.google.cloud.billing.budgets" +
+      ".v1.Filter.LabelsEntryB\004\342A\001\001\022P\n\017calendar" +
+      "_period\030\010 \001(\0162/.google.cloud.billing.bud" +
+      "gets.v1.CalendarPeriodB\004\342A\001\001H\000\022L\n\rcustom" +
+      "_period\030\t \001(\0132-.google.cloud.billing.bud" +
+      "gets.v1.CustomPeriodB\004\342A\001\001H\000\032I\n\013LabelsEn" +
+      "try\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google" +
+      ".protobuf.ListValue:\0028\001\"\217\001\n\024CreditTypesT" +
+      "reatment\022&\n\"CREDIT_TYPES_TREATMENT_UNSPE" +
+      "CIFIED\020\000\022\027\n\023INCLUDE_ALL_CREDITS\020\001\022\027\n\023EXC" +
+      "LUDE_ALL_CREDITS\020\002\022\035\n\031INCLUDE_SPECIFIED_" +
+      "CREDITS\020\003B\016\n\014usage_period\"f\n\014CustomPerio" +
+      "d\022+\n\nstart_date\030\001 \001(\0132\021.google.type.Date" +
+      "B\004\342A\001\002\022)\n\010end_date\030\002 \001(\0132\021.google.type.D" +
+      "ateB\004\342A\001\001*S\n\016CalendarPeriod\022\037\n\033CALENDAR_" +
+      "PERIOD_UNSPECIFIED\020\000\022\t\n\005MONTH\020\001\022\013\n\007QUART" +
+      "ER\020\002\022\010\n\004YEAR\020\003Bx\n#com.google.cloud.billi" +
+      "ng.budgets.v1B\020BudgetModelProtoP\001Z=cloud" +
+      ".google.com/go/billing/budgets/apiv1/bud" +
+      "getspb;budgetspbb\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.protobuf.StructProto.getDescriptor(),
+          com.google.type.DateProto.getDescriptor(),
+          com.google.type.MoneyProto.getDescriptor(),
+        });
+    internal_static_google_cloud_billing_budgets_v1_Budget_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_Budget_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "BudgetFilter", "Amount", "ThresholdRules", "NotificationsRule", "Etag", });
+    internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor,
+        new java.lang.String[] { "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", });
+    internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor,
+        new java.lang.String[] { });
+    internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor,
+        new java.lang.String[] { "ThresholdPercent", "SpendBasis", });
+    internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor,
+        new java.lang.String[] { "PubsubTopic", "SchemaVersion", "MonitoringNotificationChannels", "DisableDefaultIamRecipients", "EnableProjectLevelRecipients", });
+    internal_static_google_cloud_billing_budgets_v1_Filter_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_Filter_descriptor,
+        new java.lang.String[] { "Projects", "ResourceAncestors", "CreditTypes", "CreditTypesTreatment", "Services", "Subaccounts", "Labels", "CalendarPeriod", "CustomPeriod", "UsagePeriod", });
+    internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor =
+      internal_static_google_cloud_billing_budgets_v1_Filter_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor,
+        new java.lang.String[] { "StartDate", "EndDate", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.type.DateProto.getDescriptor();
+    com.google.type.MoneyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
similarity index 100%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
similarity index 66%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
index 0d257e227b36..f3693adf8d87 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface BudgetOrBuilder
-    extends
+public interface BudgetOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.Budget)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -33,13 +15,10 @@ public interface BudgetOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -47,129 +26,94 @@ public interface BudgetOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ boolean hasBudgetFilter(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ com.google.cloud.billing.budgets.v1.Filter getBudgetFilter(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ boolean hasAmount(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ com.google.cloud.billing.budgets.v1.BudgetAmount getAmount(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -179,14 +123,11 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getThresholdRulesList(); + java.util.List + getThresholdRulesList(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -196,14 +137,10 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -213,14 +150,10 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getThresholdRulesCount(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -230,15 +163,11 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getThresholdRulesOrBuilderList(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -248,59 +177,42 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder(int index); + com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( + int index); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the notificationsRule field is set. */ boolean hasNotificationsRule(); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The notificationsRule. */ com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule(); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder(); /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -308,13 +220,10 @@ public interface BudgetOrBuilder
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -322,8 +231,8 @@ public interface BudgetOrBuilder
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java new file mode 100644 index 000000000000..bebd6f4c602f --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java @@ -0,0 +1,179 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public final class BudgetServiceProto { + private BudgetServiceProto() {} + 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_budgets_v1_CreateBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/billing/budgets/v1/budget" + + "_service.proto\022\037google.cloud.billing.bud" + + "gets.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\0322google/cloud/billing/budgets/v1/budg" + + "et_model.proto\032\033google/protobuf/empty.pr" + + "oto\032 google/protobuf/field_mask.proto\"\223\001" + + "\n\023CreateBudgetRequest\022=\n\006parent\030\001 \001(\tB-\342" + + "A\001\002\372A&\022$billingbudgets.googleapis.com/Bu" + + "dget\022=\n\006budget\030\002 \001(\0132\'.google.cloud.bill" + + "ing.budgets.v1.BudgetB\004\342A\001\002\"\213\001\n\023UpdateBu" + + "dgetRequest\022=\n\006budget\030\001 \001(\0132\'.google.clo" + + "ud.billing.budgets.v1.BudgetB\004\342A\001\002\0225\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\004\342A\001\001\"O\n\020GetBudgetRequest\022;\n\004name\030\001 " + + "\001(\tB-\342A\001\002\372A&\n$billingbudgets.googleapis." + + "com/Budget\"\233\001\n\022ListBudgetsRequest\022=\n\006par" + + "ent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.googl" + + "eapis.com/Budget\022\023\n\005scope\030\004 \001(\tB\004\342A\001\001\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001" + + "(\tB\004\342A\001\001\"h\n\023ListBudgetsResponse\0228\n\007budge" + + "ts\030\001 \003(\0132\'.google.cloud.billing.budgets." + + "v1.Budget\022\027\n\017next_page_token\030\002 \001(\t\"R\n\023De" + + "leteBudgetRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&" + + "\n$billingbudgets.googleapis.com/Budget2\367" + + "\007\n\rBudgetService\022\265\001\n\014CreateBudget\0224.goog" + + "le.cloud.billing.budgets.v1.CreateBudget" + + "Request\032\'.google.cloud.billing.budgets.v" + + "1.Budget\"F\332A\rparent,budget\202\323\344\223\0020\"&/v1/{p" + + "arent=billingAccounts/*}/budgets:\006budget" + + "\022\301\001\n\014UpdateBudget\0224.google.cloud.billing" + + ".budgets.v1.UpdateBudgetRequest\032\'.google" + + ".cloud.billing.budgets.v1.Budget\"R\332A\022bud" + + "get,update_mask\202\323\344\223\00272-/v1/{budget.name=" + + "billingAccounts/*/budgets/*}:\006budget\022\236\001\n" + + "\tGetBudget\0221.google.cloud.billing.budget" + + "s.v1.GetBudgetRequest\032\'.google.cloud.bil" + + "ling.budgets.v1.Budget\"5\332A\004name\202\323\344\223\002(\022&/" + + "v1/{name=billingAccounts/*/budgets/*}\022\261\001" + + "\n\013ListBudgets\0223.google.cloud.billing.bud" + + "gets.v1.ListBudgetsRequest\0324.google.clou" + + "d.billing.budgets.v1.ListBudgetsResponse" + + "\"7\332A\006parent\202\323\344\223\002(\022&/v1/{parent=billingAc" + + "counts/*}/budgets\022\223\001\n\014DeleteBudget\0224.goo" + + "gle.cloud.billing.budgets.v1.DeleteBudge" + + "tRequest\032\026.google.protobuf.Empty\"5\332A\004nam" + + "e\202\323\344\223\002(*&/v1/{name=billingAccounts/*/bud" + + "gets/*}\032\177\312A\035billingbudgets.googleapis.co" + + "m\322A\\https://www.googleapis.com/auth/clou" + + "d-billing,https://www.googleapis.com/aut" + + "h/cloud-platformBz\n#com.google.cloud.bil" + + "ling.budgets.v1B\022BudgetServiceProtoP\001Z=c" + + "loud.google.com/go/billing/budgets/apiv1" + + "/budgetspb;budgetspbb\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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor, + new java.lang.String[] { "Parent", "Budget", }); + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor, + new java.lang.String[] { "Budget", "UpdateMask", }); + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor, + new java.lang.String[] { "Parent", "Scope", "PageSize", "PageToken", }); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor, + new java.lang.String[] { "Budgets", "NextPageToken", }); + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor, + new java.lang.String[] { "Name", }); + 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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java similarity index 70% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java index 491c95765080..33880f22bcab 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * A `CalendarPeriod` represents the abstract concept of a time period that
  * has a canonical start. Grammatically, "the start of the current
@@ -30,10 +13,9 @@
  *
  * Protobuf enum {@code google.cloud.billing.budgets.v1.CalendarPeriod}
  */
-public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
+public enum CalendarPeriod
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -43,8 +25,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   CALENDAR_PERIOD_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -54,8 +34,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   MONTH(1),
   /**
-   *
-   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -65,8 +43,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   QUARTER(2),
   /**
-   *
-   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -78,8 +54,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -89,8 +63,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int CALENDAR_PERIOD_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -100,8 +72,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MONTH_VALUE = 1;
   /**
-   *
-   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -111,8 +81,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int QUARTER_VALUE = 2;
   /**
-   *
-   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -121,6 +89,7 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int YEAR_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -145,53 +114,50 @@ public static CalendarPeriod valueOf(int value) { */ public static CalendarPeriod forNumber(int value) { switch (value) { - case 0: - return CALENDAR_PERIOD_UNSPECIFIED; - case 1: - return MONTH; - case 2: - return QUARTER; - case 3: - return YEAR; - default: - return null; + case 0: return CALENDAR_PERIOD_UNSPECIFIED; + case 1: return MONTH; + case 2: return QUARTER; + case 3: return YEAR; + 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 internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CalendarPeriod findValueByNumber(int number) { - return CalendarPeriod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + CalendarPeriod> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CalendarPeriod findValueByNumber(int number) { + return CalendarPeriod.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() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor().getEnumTypes().get(0); } private static final CalendarPeriod[] VALUES = values(); - public static CalendarPeriod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CalendarPeriod 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; @@ -207,3 +173,4 @@ private CalendarPeriod(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.billing.budgets.v1.CalendarPeriod) } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java similarity index 61% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java index d77555c3db95..4b9a17386873 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * Request for CreateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CreateBudgetRequest} */ -public final class CreateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.CreateBudgetRequest) CreateBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBudgetRequest.newBuilder() to construct. private CreateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBudgetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 @@ -86,32 +61,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 billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 { @@ -122,16 +95,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BUDGET_FIELD_NUMBER = 2; private com.google.cloud.billing.budgets.v1.Budget budget_; /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ @java.lang.Override @@ -139,44 +107,30 @@ public boolean hasBudget() { return budget_ != null; } /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Budget getBudget() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +142,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_); } @@ -208,7 +163,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBudget()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBudget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +174,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.budgets.v1.CreateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.CreateBudgetRequest other = - (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.CreateBudgetRequest other = (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget().equals(other.getBudget())) return false; + if (!getBudget() + .equals(other.getBudget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,136 +211,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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 for CreateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CreateBudgetRequest} */ - 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.budgets.v1.CreateBudgetRequest) com.google.cloud.billing.budgets.v1.CreateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.CreateBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override @@ -419,11 +371,8 @@ public com.google.cloud.billing.budgets.v1.CreateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.CreateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.CreateBudgetRequest result = - new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.CreateBudgetRequest result = new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -434,7 +383,9 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CreateBudgetReque result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null + ? budget_ + : budgetBuilder_.build(); } } @@ -442,39 +393,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CreateBudgetReque 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.budgets.v1.CreateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.CreateBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.CreateBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -482,8 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.CreateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -518,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getBudgetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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; @@ -576,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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 { @@ -601,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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() { @@ -645,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -672,58 +595,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.budgets.v1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> - budgetBuilder_; + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetBuilder_; /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ public com.google.cloud.billing.budgets.v1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } else { return budgetBuilder_.getMessage(); } } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { @@ -739,17 +643,14 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder setBudget( + com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetBuilder_ == null) { budget_ = builderForValue.build(); } else { @@ -760,21 +661,17 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder buil return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && budget_ != null - && budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + budget_ != null && + budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -787,15 +684,11 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000002); @@ -808,15 +701,11 @@ public Builder clearBudget() { return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000002; @@ -824,55 +713,43 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { return getBudgetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? + com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - getBudget(), getParentForChildren(), isClean()); + budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + getBudget(), + getParentForChildren(), + isClean()); budget_ = null; } return budgetBuilder_; } - @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); } @@ -882,12 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.CreateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.CreateBudgetRequest) private static final com.google.cloud.billing.budgets.v1.CreateBudgetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(); } @@ -896,27 +773,27 @@ public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -931,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.CreateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..03e39726fb18 --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface CreateBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CreateBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the budget field is set. + */ + boolean hasBudget(); + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The budget. + */ + com.google.cloud.billing.budgets.v1.Budget getBudget(); + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java similarity index 73% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java index 198536b90b3d..7c3c6e7047da 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CustomPeriod} */ -public final class CustomPeriod extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CustomPeriod extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.CustomPeriod) CustomPeriodOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CustomPeriod.newBuilder() to construct. private CustomPeriod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CustomPeriod() {} + private CustomPeriod() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomPeriod(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CustomPeriod.class, - com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1.CustomPeriod.class, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); } public static final int START_DATE_FIELD_NUMBER = 1; private com.google.type.Date startDate_; /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasStartDate() { return startDate_ != null; } /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.type.Date getStartDate() { return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -109,8 +83,6 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { public static final int END_DATE_FIELD_NUMBER = 2; private com.google.type.Date endDate_; /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -118,7 +90,6 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ @java.lang.Override @@ -126,8 +97,6 @@ public boolean hasEndDate() { return endDate_ != null; } /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -135,7 +104,6 @@ public boolean hasEndDate() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ @java.lang.Override @@ -143,8 +111,6 @@ public com.google.type.Date getEndDate() { return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; } /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -159,7 +125,6 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -171,7 +136,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 (startDate_ != null) {
       output.writeMessage(1, getStartDate());
     }
@@ -188,10 +154,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (startDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getStartDate());
     }
     if (endDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getEndDate());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -201,21 +169,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.budgets.v1.CustomPeriod)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.CustomPeriod other =
-        (com.google.cloud.billing.budgets.v1.CustomPeriod) obj;
+    com.google.cloud.billing.budgets.v1.CustomPeriod other = (com.google.cloud.billing.budgets.v1.CustomPeriod) obj;
 
     if (hasStartDate() != other.hasStartDate()) return false;
     if (hasStartDate()) {
-      if (!getStartDate().equals(other.getStartDate())) return false;
+      if (!getStartDate()
+          .equals(other.getStartDate())) return false;
     }
     if (hasEndDate() != other.hasEndDate()) return false;
     if (hasEndDate()) {
-      if (!getEndDate().equals(other.getEndDate())) return false;
+      if (!getEndDate()
+          .equals(other.getEndDate())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -241,136 +210,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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;
   }
   /**
-   *
-   *
    * 
    * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CustomPeriod} */ - 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.budgets.v1.CustomPeriod) com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CustomPeriod.class, - com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1.CustomPeriod.class, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +354,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override @@ -410,11 +375,8 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriod buildPartial() { - com.google.cloud.billing.budgets.v1.CustomPeriod result = - new com.google.cloud.billing.budgets.v1.CustomPeriod(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.CustomPeriod result = new com.google.cloud.billing.budgets.v1.CustomPeriod(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -422,10 +384,14 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1.CustomPeriod result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); + result.startDate_ = startDateBuilder_ == null + ? startDate_ + : startDateBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); + result.endDate_ = endDateBuilder_ == null + ? endDate_ + : endDateBuilder_.build(); } } @@ -433,39 +399,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CustomPeriod resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.budgets.v1.CustomPeriod) { - return mergeFrom((com.google.cloud.billing.budgets.v1.CustomPeriod) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.CustomPeriod)other); } else { super.mergeFrom(other); return this; @@ -473,8 +438,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.CustomPeriod other) { - if (other == com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) return this; if (other.hasStartDate()) { mergeStartDate(other.getStartDate()); } @@ -507,25 +471,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,36 +500,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.type.Date startDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - startDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> startDateBuilder_; /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ public boolean hasStartDate() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ public com.google.type.Date getStartDate() { @@ -575,8 +532,6 @@ public com.google.type.Date getStartDate() { } } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -597,15 +552,14 @@ public Builder setStartDate(com.google.type.Date value) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + public Builder setStartDate( + com.google.type.Date.Builder builderForValue) { if (startDateBuilder_ == null) { startDate_ = builderForValue.build(); } else { @@ -616,8 +570,6 @@ public Builder setStartDate(com.google.type.Date.Builder builderForValue) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -626,9 +578,9 @@ public Builder setStartDate(com.google.type.Date.Builder builderForValue) { */ public Builder mergeStartDate(com.google.type.Date value) { if (startDateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startDate_ != null - && startDate_ != com.google.type.Date.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + startDate_ != null && + startDate_ != com.google.type.Date.getDefaultInstance()) { getStartDateBuilder().mergeFrom(value); } else { startDate_ = value; @@ -641,8 +593,6 @@ public Builder mergeStartDate(com.google.type.Date value) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -660,8 +610,6 @@ public Builder clearStartDate() { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -674,8 +622,6 @@ public com.google.type.Date.Builder getStartDateBuilder() { return getStartDateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -686,12 +632,11 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { if (startDateBuilder_ != null) { return startDateBuilder_.getMessageOrBuilder(); } else { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + return startDate_ == null ? + com.google.type.Date.getDefaultInstance() : startDate_; } } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -699,13 +644,14 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getStartDateFieldBuilder() { if (startDateBuilder_ == null) { - startDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), getParentForChildren(), isClean()); + startDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), + getParentForChildren(), + isClean()); startDate_ = null; } return startDateBuilder_; @@ -713,11 +659,8 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { private com.google.type.Date endDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - endDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> endDateBuilder_; /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -725,15 +668,12 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ public boolean hasEndDate() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -741,7 +681,6 @@ public boolean hasEndDate() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ public com.google.type.Date getEndDate() { @@ -752,8 +691,6 @@ public com.google.type.Date getEndDate() { } } /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -776,8 +713,6 @@ public Builder setEndDate(com.google.type.Date value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -786,7 +721,8 @@ public Builder setEndDate(com.google.type.Date value) {
      *
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
+    public Builder setEndDate(
+        com.google.type.Date.Builder builderForValue) {
       if (endDateBuilder_ == null) {
         endDate_ = builderForValue.build();
       } else {
@@ -797,8 +733,6 @@ public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -809,9 +743,9 @@ public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
      */
     public Builder mergeEndDate(com.google.type.Date value) {
       if (endDateBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endDate_ != null
-            && endDate_ != com.google.type.Date.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endDate_ != null &&
+          endDate_ != com.google.type.Date.getDefaultInstance()) {
           getEndDateBuilder().mergeFrom(value);
         } else {
           endDate_ = value;
@@ -824,8 +758,6 @@ public Builder mergeEndDate(com.google.type.Date value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -845,8 +777,6 @@ public Builder clearEndDate() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -861,8 +791,6 @@ public com.google.type.Date.Builder getEndDateBuilder() {
       return getEndDateFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -875,12 +803,11 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
       if (endDateBuilder_ != null) {
         return endDateBuilder_.getMessageOrBuilder();
       } else {
-        return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_;
+        return endDate_ == null ?
+            com.google.type.Date.getDefaultInstance() : endDate_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -890,20 +817,21 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
+        com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
         getEndDateFieldBuilder() {
       if (endDateBuilder_ == null) {
-        endDateBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
-                getEndDate(), getParentForChildren(), isClean());
+        endDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+                getEndDate(),
+                getParentForChildren(),
+                isClean());
         endDate_ = null;
       }
       return endDateBuilder_;
     }
-
     @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);
     }
 
@@ -913,12 +841,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.CustomPeriod)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.CustomPeriod)
   private static final com.google.cloud.billing.budgets.v1.CustomPeriod DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.CustomPeriod();
   }
@@ -927,27 +855,27 @@ public static com.google.cloud.billing.budgets.v1.CustomPeriod getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CustomPeriod parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CustomPeriod parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -962,4 +890,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.CustomPeriod getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
similarity index 75%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
index e44ef33f30ef..b758ff7812e8 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface CustomPeriodOrBuilder
-    extends
+public interface CustomPeriodOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CustomPeriod)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ boolean hasStartDate(); /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ com.google.type.Date getStartDate(); /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -59,8 +35,6 @@ public interface CustomPeriodOrBuilder com.google.type.DateOrBuilder getStartDateOrBuilder(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -68,13 +42,10 @@ public interface CustomPeriodOrBuilder
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ boolean hasEndDate(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -82,13 +53,10 @@ public interface CustomPeriodOrBuilder
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ com.google.type.Date getEndDate(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
similarity index 63%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
index e6cd1296e88d..281e6530bc01 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
@@ -1,83 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1;
 
 /**
- *
- *
  * 
  * Request for DeleteBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.DeleteBudgetRequest} */ -public final class DeleteBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.DeleteBudgetRequest) DeleteBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBudgetRequest.newBuilder() to construct. private DeleteBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1.DeleteBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other = - (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other = (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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 for DeleteBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.DeleteBudgetRequest} */ - 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.budgets.v1.DeleteBudgetRequest) com.google.cloud.billing.budgets.v1.DeleteBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override @@ -344,11 +312,8 @@ public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest result = - new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest result = new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +329,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.DeleteBudgetReque 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.budgets.v1.DeleteBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -404,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -437,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -489,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -558,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.DeleteBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.DeleteBudgetRequest) private static final com.google.cloud.billing.budgets.v1.DeleteBudgetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(); } @@ -608,27 +544,27 @@ public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..3d3e4a03f3b0 --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface DeleteBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.DeleteBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java similarity index 73% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java index 60534e20378a..f16809924d56 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java @@ -1,86 +1,71 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * A filter for a budget, limiting the scope of the cost to calculate.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.Filter} */ -public final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Filter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.Filter) FilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Filter() { - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Filter(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.Filter.class, - com.google.cloud.billing.budgets.v1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1.Filter.class, com.google.cloud.billing.budgets.v1.Filter.Builder.class); } /** - * - * *
    * Specifies how credits are applied when determining the spend for
    * threshold calculations. Budgets track the total cost minus any applicable
@@ -91,12 +76,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment}
    */
-  public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageEnum {
-    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
+  public enum CreditTypesTreatment
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
+     */
     CREDIT_TYPES_TREATMENT_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -106,8 +92,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     INCLUDE_ALL_CREDITS(1),
     /**
-     *
-     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -117,8 +101,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     EXCLUDE_ALL_CREDITS(2),
     /**
-     *
-     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -132,11 +114,11 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
     UNRECOGNIZED(-1),
     ;
 
-    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
+    /**
+     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
+     */
     public static final int CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -146,8 +128,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int INCLUDE_ALL_CREDITS_VALUE = 1;
     /**
-     *
-     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -157,8 +137,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int EXCLUDE_ALL_CREDITS_VALUE = 2;
     /**
-     *
-     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -170,6 +148,7 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int INCLUDE_SPECIFIED_CREDITS_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -194,16 +173,11 @@ public static CreditTypesTreatment valueOf(int value) {
      */
     public static CreditTypesTreatment forNumber(int value) {
       switch (value) {
-        case 0:
-          return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
-        case 1:
-          return INCLUDE_ALL_CREDITS;
-        case 2:
-          return EXCLUDE_ALL_CREDITS;
-        case 3:
-          return INCLUDE_SPECIFIED_CREDITS;
-        default:
-          return null;
+        case 0: return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
+        case 1: return INCLUDE_ALL_CREDITS;
+        case 2: return EXCLUDE_ALL_CREDITS;
+        case 3: return INCLUDE_SPECIFIED_CREDITS;
+        default: return null;
       }
     }
 
@@ -211,28 +185,28 @@ public static CreditTypesTreatment forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        CreditTypesTreatment> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public CreditTypesTreatment findValueByNumber(int number) {
+              return CreditTypesTreatment.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public CreditTypesTreatment findValueByNumber(int number) {
-                return CreditTypesTreatment.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.budgets.v1.Filter.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -241,7 +215,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static CreditTypesTreatment 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;
@@ -259,19 +234,15 @@ private CreditTypesTreatment(int value) {
   }
 
   private int usagePeriodCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object usagePeriod_;
-
   public enum UsagePeriodCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CALENDAR_PERIOD(8),
     CUSTOM_PERIOD(9),
     USAGEPERIOD_NOT_SET(0);
     private final int value;
-
     private UsagePeriodCase(int value) {
       this.value = value;
     }
@@ -287,34 +258,28 @@ public static UsagePeriodCase valueOf(int value) {
 
     public static UsagePeriodCase forNumber(int value) {
       switch (value) {
-        case 8:
-          return CALENDAR_PERIOD;
-        case 9:
-          return CUSTOM_PERIOD;
-        case 0:
-          return USAGEPERIOD_NOT_SET;
-        default:
-          return null;
+        case 8: return CALENDAR_PERIOD;
+        case 9: return CUSTOM_PERIOD;
+        case 0: return USAGEPERIOD_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public UsagePeriodCase getUsagePeriodCase() {
-    return UsagePeriodCase.forNumber(usagePeriodCase_);
+  public UsagePeriodCase
+  getUsagePeriodCase() {
+    return UsagePeriodCase.forNumber(
+        usagePeriodCase_);
   }
 
   public static final int PROJECTS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList projects_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -323,15 +288,13 @@ public UsagePeriodCase getUsagePeriodCase() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList getProjectsList() { + public com.google.protobuf.ProtocolStringList + getProjectsList() { return projects_; } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -340,15 +303,12 @@ public com.google.protobuf.ProtocolStringList getProjectsList() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -357,7 +317,6 @@ public int getProjectsCount() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -365,8 +324,6 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -375,68 +332,65 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString getProjectsBytes(int index) { + public com.google.protobuf.ByteString + getProjectsBytes(int index) { return projects_.getByteString(index); } public static final int RESOURCE_ANCESTORS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList + getResourceAncestorsList() { return resourceAncestors_; } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -444,33 +398,30 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } public static final int CREDIT_TYPES_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -485,15 +436,13 @@ public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList getCreditTypesList() { + public com.google.protobuf.ProtocolStringList + getCreditTypesList() { return creditTypes_; } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -508,15 +457,12 @@ public com.google.protobuf.ProtocolStringList getCreditTypesList() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -531,7 +477,6 @@ public int getCreditTypesCount() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -539,8 +484,6 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -555,64 +498,45 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString + getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } public static final int CREDIT_TYPES_TREATMENT_FIELD_NUMBER = 4; private int creditTypesTreatment_ = 0; /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override - public int getCreditTypesTreatmentValue() { + @java.lang.Override public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ - @java.lang.Override - public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber( - creditTypesTreatment_); - return result == null - ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); + return result == null ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; } public static final int SERVICES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -623,15 +547,13 @@ public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCredit
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList getServicesList() { + public com.google.protobuf.ProtocolStringList + getServicesList() { return services_; } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -642,15 +564,12 @@ public com.google.protobuf.ProtocolStringList getServicesList() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -661,7 +580,6 @@ public int getServicesCount() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ @@ -669,8 +587,6 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -681,22 +597,19 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString getServicesBytes(int index) { + public com.google.protobuf.ByteString + getServicesBytes(int index) { return services_.getByteString(index); } public static final int SUBACCOUNTS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -707,15 +620,13 @@ public com.google.protobuf.ByteString getServicesBytes(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList getSubaccountsList() { + public com.google.protobuf.ProtocolStringList + getSubaccountsList() { return subaccounts_; } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -726,15 +637,12 @@ public com.google.protobuf.ProtocolStringList getSubaccountsList() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -745,7 +653,6 @@ public int getSubaccountsCount() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -753,8 +660,6 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -765,46 +670,41 @@ public java.lang.String getSubaccounts(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString + getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.ListValue> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.ListValue.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.ListValue.getDefaultInstance()); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ListValue> labels_; private com.google.protobuf.MapField - internalGetLabels() { + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -817,26 +717,23 @@ public int getLabelsCount() {
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -849,17 +746,13 @@ public java.util.Map getLabels(
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -872,25 +765,20 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.protobuf.ListValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -903,15 +791,12 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -922,8 +807,6 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { public static final int CALENDAR_PERIOD_FIELD_NUMBER = 8; /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -933,18 +816,13 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -954,10 +832,7 @@ public boolean hasCalendarPeriod() {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ public int getCalendarPeriodValue() { @@ -967,8 +842,6 @@ public int getCalendarPeriodValue() { return 0; } /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -978,37 +851,26 @@ public int getCalendarPeriodValue() {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1.CalendarPeriod result = - com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null - ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1.CalendarPeriod result = com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED : result; } return com.google.cloud.billing.budgets.v1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } public static final int CUSTOM_PERIOD_FIELD_NUMBER = 9; /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -1016,48 +878,38 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1069,7 +921,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 < projects_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projects_.getRaw(i)); } @@ -1079,17 +932,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < services_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, services_.getRaw(i)); } - if (creditTypesTreatment_ - != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment - .CREDIT_TYPES_TREATMENT_UNSPECIFIED - .getNumber()) { + if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { output.writeEnum(4, creditTypesTreatment_); } for (int i = 0; i < subaccounts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subaccounts_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); for (int i = 0; i < creditTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, creditTypes_.getRaw(i)); } @@ -1132,11 +986,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getServicesList().size(); } - if (creditTypesTreatment_ - != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment - .CREDIT_TYPES_TREATMENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, creditTypesTreatment_); + if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, creditTypesTreatment_); } { int dataSize = 0; @@ -1146,15 +998,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSubaccountsList().size(); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); } { int dataSize = 0; @@ -1165,14 +1017,12 @@ public int getSerializedSize() { size += 1 * getCreditTypesList().size(); } if (usagePeriodCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 8, ((java.lang.Integer) usagePeriod_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, ((java.lang.Integer) usagePeriod_)); } if (usagePeriodCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1182,28 +1032,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1.Filter)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.Filter other = - (com.google.cloud.billing.budgets.v1.Filter) obj; + com.google.cloud.billing.budgets.v1.Filter other = (com.google.cloud.billing.budgets.v1.Filter) obj; - if (!getProjectsList().equals(other.getProjectsList())) return false; - if (!getResourceAncestorsList().equals(other.getResourceAncestorsList())) return false; - if (!getCreditTypesList().equals(other.getCreditTypesList())) return false; + if (!getProjectsList() + .equals(other.getProjectsList())) return false; + if (!getResourceAncestorsList() + .equals(other.getResourceAncestorsList())) return false; + if (!getCreditTypesList() + .equals(other.getCreditTypesList())) return false; if (creditTypesTreatment_ != other.creditTypesTreatment_) return false; - if (!getServicesList().equals(other.getServicesList())) return false; - if (!getSubaccountsList().equals(other.getSubaccountsList())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getServicesList() + .equals(other.getServicesList())) return false; + if (!getSubaccountsList() + .equals(other.getSubaccountsList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!getUsagePeriodCase().equals(other.getUsagePeriodCase())) return false; switch (usagePeriodCase_) { case 8: - if (getCalendarPeriodValue() != other.getCalendarPeriodValue()) return false; + if (getCalendarPeriodValue() + != other.getCalendarPeriodValue()) return false; break; case 9: - if (!getCustomPeriod().equals(other.getCustomPeriod())) return false; + if (!getCustomPeriod() + .equals(other.getCustomPeriod())) return false; break; case 0: default: @@ -1262,166 +1119,169 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1.Filter parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1.Filter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.Filter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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 filter for a budget, limiting the scope of the cost to calculate.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.Filter} */ - 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.budgets.v1.Filter) com.google.cloud.billing.budgets.v1.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.Filter.class, - com.google.cloud.billing.budgets.v1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1.Filter.class, com.google.cloud.billing.budgets.v1.Filter.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.Filter.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableLabels().clear(); if (customPeriodBuilder_ != null) { customPeriodBuilder_.clear(); @@ -1432,9 +1292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto - .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @java.lang.Override @@ -1453,11 +1313,8 @@ public com.google.cloud.billing.budgets.v1.Filter build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter buildPartial() { - com.google.cloud.billing.budgets.v1.Filter result = - new com.google.cloud.billing.budgets.v1.Filter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.Filter result = new com.google.cloud.billing.budgets.v1.Filter(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1497,7 +1354,8 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Filter result) { private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.Filter result) { result.usagePeriodCase_ = usagePeriodCase_; result.usagePeriod_ = this.usagePeriod_; - if (usagePeriodCase_ == 9 && customPeriodBuilder_ != null) { + if (usagePeriodCase_ == 9 && + customPeriodBuilder_ != null) { result.usagePeriod_ = customPeriodBuilder_.build(); } } @@ -1506,39 +1364,38 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.Filter resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.budgets.v1.Filter) { - return mergeFrom((com.google.cloud.billing.budgets.v1.Filter) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.Filter)other); } else { super.mergeFrom(other); return this; @@ -1600,23 +1457,21 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.Filter other) { } onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000040; switch (other.getUsagePeriodCase()) { - case CALENDAR_PERIOD: - { - setCalendarPeriodValue(other.getCalendarPeriodValue()); - break; - } - case CUSTOM_PERIOD: - { - mergeCustomPeriod(other.getCustomPeriod()); - break; - } - case USAGEPERIOD_NOT_SET: - { - break; - } + case CALENDAR_PERIOD: { + setCalendarPeriodValue(other.getCalendarPeriodValue()); + break; + } + case CUSTOM_PERIOD: { + mergeCustomPeriod(other.getCustomPeriod()); + break; + } + case USAGEPERIOD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1644,80 +1499,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureProjectsIsMutable(); - projects_.add(s); - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceAncestorsIsMutable(); - resourceAncestors_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureServicesIsMutable(); - services_.add(s); - break; - } // case 26 - case 32: - { - creditTypesTreatment_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubaccountsIsMutable(); - subaccounts_.add(s); - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry - labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCreditTypesIsMutable(); - creditTypes_.add(s); - break; - } // case 58 - case 64: - { - int rawValue = input.readEnum(); - usagePeriodCase_ = 8; - usagePeriod_ = rawValue; - break; - } // case 64 - case 74: - { - input.readMessage(getCustomPeriodFieldBuilder().getBuilder(), extensionRegistry); - usagePeriodCase_ = 9; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectsIsMutable(); + projects_.add(s); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceAncestorsIsMutable(); + resourceAncestors_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureServicesIsMutable(); + services_.add(s); + break; + } // case 26 + case 32: { + creditTypesTreatment_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubaccountsIsMutable(); + subaccounts_.add(s); + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCreditTypesIsMutable(); + creditTypes_.add(s); + break; + } // case 58 + case 64: { + int rawValue = input.readEnum(); + usagePeriodCase_ = 8; + usagePeriod_ = rawValue; + break; + } // case 64 + case 74: { + input.readMessage( + getCustomPeriodFieldBuilder().getBuilder(), + extensionRegistry); + usagePeriodCase_ = 9; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1727,12 +1571,12 @@ public Builder mergeFrom( } // finally return this; } - private int usagePeriodCase_ = 0; private java.lang.Object usagePeriod_; - - public UsagePeriodCase getUsagePeriodCase() { - return UsagePeriodCase.forNumber(usagePeriodCase_); + public UsagePeriodCase + getUsagePeriodCase() { + return UsagePeriodCase.forNumber( + usagePeriodCase_); } public Builder clearUsagePeriod() { @@ -1746,7 +1590,6 @@ public Builder clearUsagePeriod() { private com.google.protobuf.LazyStringArrayList projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureProjectsIsMutable() { if (!projects_.isModifiable()) { projects_ = new com.google.protobuf.LazyStringArrayList(projects_); @@ -1754,8 +1597,6 @@ private void ensureProjectsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1764,16 +1605,14 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList getProjectsList() { + public com.google.protobuf.ProtocolStringList + getProjectsList() { projects_.makeImmutable(); return projects_; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1782,15 +1621,12 @@ public com.google.protobuf.ProtocolStringList getProjectsList() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1799,7 +1635,6 @@ public int getProjectsCount() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -1807,8 +1642,6 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1817,16 +1650,14 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString getProjectsBytes(int index) { + public com.google.protobuf.ByteString + getProjectsBytes(int index) { return projects_.getByteString(index); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1835,15 +1666,13 @@ public com.google.protobuf.ByteString getProjectsBytes(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The projects to set. * @return This builder for chaining. */ - public Builder setProjects(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjects( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureProjectsIsMutable(); projects_.set(index, value); bitField0_ |= 0x00000001; @@ -1851,8 +1680,6 @@ public Builder setProjects(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1861,14 +1688,12 @@ public Builder setProjects(int index, java.lang.String value) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The projects to add. * @return This builder for chaining. */ - public Builder addProjects(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addProjects( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureProjectsIsMutable(); projects_.add(value); bitField0_ |= 0x00000001; @@ -1876,8 +1701,6 @@ public Builder addProjects(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1886,20 +1709,19 @@ public Builder addProjects(java.lang.String value) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The projects to add. * @return This builder for chaining. */ - public Builder addAllProjects(java.lang.Iterable values) { + public Builder addAllProjects( + java.lang.Iterable values) { ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projects_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1908,19 +1730,16 @@ public Builder addAllProjects(java.lang.Iterable values) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearProjects() { - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1929,14 +1748,12 @@ public Builder clearProjects() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the projects to add. * @return This builder for chaining. */ - public Builder addProjectsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addProjectsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureProjectsIsMutable(); projects_.add(value); @@ -1947,7 +1764,6 @@ public Builder addProjectsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResourceAncestorsIsMutable() { if (!resourceAncestors_.isModifiable()) { resourceAncestors_ = new com.google.protobuf.LazyStringArrayList(resourceAncestors_); @@ -1955,58 +1771,53 @@ private void ensureResourceAncestorsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList + getResourceAncestorsList() { resourceAncestors_.makeImmutable(); return resourceAncestors_; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -2014,47 +1825,43 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The resourceAncestors to set. * @return This builder for chaining. */ - public Builder setResourceAncestors(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceAncestors( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceAncestorsIsMutable(); resourceAncestors_.set(index, value); bitField0_ |= 0x00000002; @@ -2062,26 +1869,23 @@ public Builder setResourceAncestors(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestors(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceAncestors( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); bitField0_ |= 0x00000002; @@ -2089,73 +1893,68 @@ public Builder addResourceAncestors(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param values The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addAllResourceAncestors(java.lang.Iterable values) { + public Builder addAllResourceAncestors( + java.lang.Iterable values) { ensureResourceAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceAncestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceAncestors_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearResourceAncestors() { - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
      * usage from only this set of folders and organizations should be included in
-     * the budget. If omitted, the report includes all usage for all
-     * organizations, regardless of which organization the usage occurred on.
+     * the budget. If omitted, the budget includes all usage that the billing
+     * account pays for. If the folder or organization contains projects that are
+     * paid for by a different Cloud Billing account, the budget *doesn't* apply
+     * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceAncestorsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); @@ -2166,7 +1965,6 @@ public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureCreditTypesIsMutable() { if (!creditTypes_.isModifiable()) { creditTypes_ = new com.google.protobuf.LazyStringArrayList(creditTypes_); @@ -2174,8 +1972,6 @@ private void ensureCreditTypesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2190,16 +1986,14 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList getCreditTypesList() { + public com.google.protobuf.ProtocolStringList + getCreditTypesList() { creditTypes_.makeImmutable(); return creditTypes_; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2214,15 +2008,12 @@ public com.google.protobuf.ProtocolStringList getCreditTypesList() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2237,7 +2028,6 @@ public int getCreditTypesCount() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -2245,8 +2035,6 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2261,16 +2049,14 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString + getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2285,15 +2071,13 @@ public com.google.protobuf.ByteString getCreditTypesBytes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The creditTypes to set. * @return This builder for chaining. */ - public Builder setCreditTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCreditTypes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCreditTypesIsMutable(); creditTypes_.set(index, value); bitField0_ |= 0x00000004; @@ -2301,8 +2085,6 @@ public Builder setCreditTypes(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2317,14 +2099,12 @@ public Builder setCreditTypes(int index, java.lang.String value) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCreditTypes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCreditTypesIsMutable(); creditTypes_.add(value); bitField0_ |= 0x00000004; @@ -2332,8 +2112,6 @@ public Builder addCreditTypes(java.lang.String value) { return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2348,20 +2126,19 @@ public Builder addCreditTypes(java.lang.String value) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The creditTypes to add. * @return This builder for chaining. */ - public Builder addAllCreditTypes(java.lang.Iterable values) { + public Builder addAllCreditTypes( + java.lang.Iterable values) { ensureCreditTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creditTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, creditTypes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2376,19 +2153,16 @@ public Builder addAllCreditTypes(java.lang.Iterable values) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCreditTypes() { - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2403,14 +2177,12 @@ public Builder clearCreditTypes() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCreditTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCreditTypesIsMutable(); creditTypes_.add(value); @@ -2421,33 +2193,22 @@ public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { private int creditTypesTreatment_ = 0; /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override - public int getCreditTypesTreatmentValue() { + @java.lang.Override public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for creditTypesTreatment to set. * @return This builder for chaining. */ @@ -2458,44 +2219,28 @@ public Builder setCreditTypesTreatmentValue(int value) { return this; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment - getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber( - creditTypesTreatment_); - return result == null - ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED - : result; + public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); + return result == null ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The creditTypesTreatment to set. * @return This builder for chaining. */ - public Builder setCreditTypesTreatment( - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment value) { + public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment value) { if (value == null) { throw new NullPointerException(); } @@ -2505,16 +2250,11 @@ public Builder setCreditTypesTreatment( return this; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCreditTypesTreatment() { @@ -2526,7 +2266,6 @@ public Builder clearCreditTypesTreatment() { private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureServicesIsMutable() { if (!services_.isModifiable()) { services_ = new com.google.protobuf.LazyStringArrayList(services_); @@ -2534,8 +2273,6 @@ private void ensureServicesIsMutable() { bitField0_ |= 0x00000010; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2546,16 +2283,14 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList getServicesList() { + public com.google.protobuf.ProtocolStringList + getServicesList() { services_.makeImmutable(); return services_; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2566,15 +2301,12 @@ public com.google.protobuf.ProtocolStringList getServicesList() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2585,7 +2317,6 @@ public int getServicesCount() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ @@ -2593,8 +2324,6 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2605,16 +2334,14 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString getServicesBytes(int index) { + public com.google.protobuf.ByteString + getServicesBytes(int index) { return services_.getByteString(index); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2625,15 +2352,13 @@ public com.google.protobuf.ByteString getServicesBytes(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The services to set. * @return This builder for chaining. */ - public Builder setServices(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServices( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.set(index, value); bitField0_ |= 0x00000010; @@ -2641,8 +2366,6 @@ public Builder setServices(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2653,14 +2376,12 @@ public Builder setServices(int index, java.lang.String value) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The services to add. * @return This builder for chaining. */ - public Builder addServices(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServices( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.add(value); bitField0_ |= 0x00000010; @@ -2668,8 +2389,6 @@ public Builder addServices(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2680,20 +2399,19 @@ public Builder addServices(java.lang.String value) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The services to add. * @return This builder for chaining. */ - public Builder addAllServices(java.lang.Iterable values) { + public Builder addAllServices( + java.lang.Iterable values) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, services_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2704,19 +2422,16 @@ public Builder addAllServices(java.lang.Iterable values) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearServices() { - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2727,14 +2442,12 @@ public Builder clearServices() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the services to add. * @return This builder for chaining. */ - public Builder addServicesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServicesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureServicesIsMutable(); services_.add(value); @@ -2745,7 +2458,6 @@ public Builder addServicesBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureSubaccountsIsMutable() { if (!subaccounts_.isModifiable()) { subaccounts_ = new com.google.protobuf.LazyStringArrayList(subaccounts_); @@ -2753,8 +2465,6 @@ private void ensureSubaccountsIsMutable() { bitField0_ |= 0x00000020; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2765,16 +2475,14 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList getSubaccountsList() { + public com.google.protobuf.ProtocolStringList + getSubaccountsList() { subaccounts_.makeImmutable(); return subaccounts_; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2785,15 +2493,12 @@ public com.google.protobuf.ProtocolStringList getSubaccountsList() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2804,7 +2509,6 @@ public int getSubaccountsCount() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -2812,8 +2516,6 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2824,16 +2526,14 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString + getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2844,15 +2544,13 @@ public com.google.protobuf.ByteString getSubaccountsBytes(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The subaccounts to set. * @return This builder for chaining. */ - public Builder setSubaccounts(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubaccounts( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubaccountsIsMutable(); subaccounts_.set(index, value); bitField0_ |= 0x00000020; @@ -2860,8 +2558,6 @@ public Builder setSubaccounts(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2872,14 +2568,12 @@ public Builder setSubaccounts(int index, java.lang.String value) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccounts(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubaccounts( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubaccountsIsMutable(); subaccounts_.add(value); bitField0_ |= 0x00000020; @@ -2887,8 +2581,6 @@ public Builder addSubaccounts(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2899,20 +2591,19 @@ public Builder addSubaccounts(java.lang.String value) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The subaccounts to add. * @return This builder for chaining. */ - public Builder addAllSubaccounts(java.lang.Iterable values) { + public Builder addAllSubaccounts( + java.lang.Iterable values) { ensureSubaccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subaccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subaccounts_); bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2923,19 +2614,16 @@ public Builder addAllSubaccounts(java.lang.Iterable values) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSubaccounts() { - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - ; + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020);; onChanged(); return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2946,14 +2634,12 @@ public Builder clearSubaccounts() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubaccountsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSubaccountsIsMutable(); subaccounts_.add(value); @@ -2962,20 +2648,21 @@ public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField labels_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ListValue> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2984,13 +2671,10 @@ public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3003,26 +2687,23 @@ public int getLabelsCount() {
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3035,17 +2716,13 @@ public java.util.Map getLabels(
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3058,25 +2735,20 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.protobuf.ListValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3089,15 +2761,12 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3105,15 +2774,13 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3126,26 +2793,25 @@ public Builder clearLabels() {
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3158,24 +2824,19 @@ public java.util.Map getMutable
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + com.google.protobuf.ListValue value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3188,20 +2849,17 @@ public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue val
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels( java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3211,10 +2869,7 @@ public Builder putAllLabels(
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ @java.lang.Override @@ -3222,8 +2877,6 @@ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3233,10 +2886,7 @@ public boolean hasCalendarPeriod() {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ @java.lang.Override @@ -3247,8 +2897,6 @@ public int getCalendarPeriodValue() { return 0; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3258,10 +2906,7 @@ public int getCalendarPeriodValue() {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for calendarPeriod to set. * @return This builder for chaining. */ @@ -3272,8 +2917,6 @@ public Builder setCalendarPeriodValue(int value) { return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3283,27 +2926,19 @@ public Builder setCalendarPeriodValue(int value) {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1.CalendarPeriod result = - com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null - ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1.CalendarPeriod result = com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED : result; } return com.google.cloud.billing.budgets.v1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3313,10 +2948,7 @@ public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param value The calendarPeriod to set. * @return This builder for chaining. */ @@ -3330,8 +2962,6 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1.CalendarPer return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -3341,10 +2971,7 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1.CalendarPer
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCalendarPeriod() { @@ -3357,22 +2984,14 @@ public Builder clearCalendarPeriod() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, - com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> - customPeriodBuilder_; + com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> customPeriodBuilder_; /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -3380,17 +2999,12 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ @java.lang.Override @@ -3408,16 +3022,12 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod() { } } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod value) { if (customPeriodBuilder_ == null) { @@ -3433,16 +3043,12 @@ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomPeriod( com.google.cloud.billing.budgets.v1.CustomPeriod.Builder builderForValue) { @@ -3456,27 +3062,19 @@ public Builder setCustomPeriod( return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod value) { if (customPeriodBuilder_ == null) { - if (usagePeriodCase_ == 9 - && usagePeriod_ - != com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) { - usagePeriod_ = - com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder( - (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_) - .mergeFrom(value) - .buildPartial(); + if (usagePeriodCase_ == 9 && + usagePeriod_ != com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) { + usagePeriod_ = com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder((com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_) + .mergeFrom(value).buildPartial(); } else { usagePeriod_ = value; } @@ -3492,16 +3090,12 @@ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPerio return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCustomPeriod() { if (customPeriodBuilder_ == null) { @@ -3520,31 +3114,23 @@ public Builder clearCustomPeriod() { return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1.CustomPeriod.Builder getCustomPeriodBuilder() { return getCustomPeriodFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { @@ -3558,31 +3144,22 @@ public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriod } } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, - com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> + com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> getCustomPeriodFieldBuilder() { if (customPeriodBuilder_ == null) { if (!(usagePeriodCase_ == 9)) { usagePeriod_ = com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } - customPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, - com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder>( + customPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder>( (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_, getParentForChildren(), isClean()); @@ -3592,9 +3169,9 @@ public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriod onChanged(); return customPeriodBuilder_; } - @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); } @@ -3604,12 +3181,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.Filter) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.Filter) private static final com.google.cloud.billing.budgets.v1.Filter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.Filter(); } @@ -3618,27 +3195,27 @@ public static com.google.cloud.billing.budgets.v1.Filter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3653,4 +3230,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java similarity index 80% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java index 4ce92d816a6f..4bb4b15a7fef 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface FilterOrBuilder - extends +public interface FilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.Filter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -34,13 +16,11 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - java.util.List getProjectsList(); + java.util.List + getProjectsList(); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -49,13 +29,10 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ int getProjectsCount(); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -64,14 +41,11 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ java.lang.String getProjects(int index); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -80,82 +54,78 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - com.google.protobuf.ByteString getProjectsBytes(int index); + com.google.protobuf.ByteString + getProjectsBytes(int index); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the resourceAncestors. */ - java.util.List getResourceAncestorsList(); + java.util.List + getResourceAncestorsList(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of resourceAncestors. */ int getResourceAncestorsCount(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ java.lang.String getResourceAncestors(int index); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
    * usage from only this set of folders and organizations should be included in
-   * the budget. If omitted, the report includes all usage for all
-   * organizations, regardless of which organization the usage occurred on.
+   * the budget. If omitted, the budget includes all usage that the billing
+   * account pays for. If the folder or organization contains projects that are
+   * paid for by a different Cloud Billing account, the budget *doesn't* apply
+   * to those projects.
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - com.google.protobuf.ByteString getResourceAncestorsBytes(int index); + com.google.protobuf.ByteString + getResourceAncestorsBytes(int index); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -170,13 +140,11 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - java.util.List getCreditTypesList(); + java.util.List + getCreditTypesList(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -191,13 +159,10 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ int getCreditTypesCount(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -212,14 +177,11 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ java.lang.String getCreditTypes(int index); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -234,44 +196,32 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - com.google.protobuf.ByteString getCreditTypesBytes(int index); + com.google.protobuf.ByteString + getCreditTypesBytes(int index); /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ int getCreditTypesTreatmentValue(); /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -282,13 +232,11 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - java.util.List getServicesList(); + java.util.List + getServicesList(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -299,13 +247,10 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ int getServicesCount(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -316,14 +261,11 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ java.lang.String getServices(int index); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -334,15 +276,13 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - com.google.protobuf.ByteString getServicesBytes(int index); + com.google.protobuf.ByteString + getServicesBytes(int index); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -353,13 +293,11 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - java.util.List getSubaccountsList(); + java.util.List + getSubaccountsList(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -370,13 +308,10 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ int getSubaccountsCount(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -387,14 +322,11 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ java.lang.String getSubaccounts(int index); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -405,15 +337,13 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - com.google.protobuf.ByteString getSubaccountsBytes(int index); + com.google.protobuf.ByteString + getSubaccountsBytes(int index); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -426,14 +356,10 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -446,17 +372,17 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -469,14 +395,11 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -489,18 +412,14 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.protobuf.ListValue getLabelsOrDefault( +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue); +com.google.protobuf.ListValue defaultValue); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -513,15 +432,12 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key); + com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -531,16 +447,11 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ boolean hasCalendarPeriod(); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -550,16 +461,11 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ int getCalendarPeriodValue(); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -569,55 +475,38 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ boolean hasCustomPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder(); diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java similarity index 64% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java index 5d1a7979a072..af75b502f7f6 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * Request for GetBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.GetBudgetRequest} */ -public final class GetBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.GetBudgetRequest) GetBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBudgetRequest.newBuilder() to construct. private GetBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, - com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1.GetBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.GetBudgetRequest other = - (com.google.cloud.billing.budgets.v1.GetBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.GetBudgetRequest other = (com.google.cloud.billing.budgets.v1.GetBudgetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,135 +157,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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 for GetBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.GetBudgetRequest} */ - 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.budgets.v1.GetBudgetRequest) com.google.cloud.billing.budgets.v1.GetBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, - com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.GetBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override @@ -343,11 +312,8 @@ public com.google.cloud.billing.budgets.v1.GetBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.GetBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.GetBudgetRequest result = - new com.google.cloud.billing.budgets.v1.GetBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.GetBudgetRequest result = new com.google.cloud.billing.budgets.v1.GetBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +329,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.GetBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.GetBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -403,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.GetBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -436,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -488,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -513,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -593,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.GetBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.GetBudgetRequest) private static final com.google.cloud.billing.budgets.v1.GetBudgetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.GetBudgetRequest(); } @@ -607,27 +544,27 @@ public static com.google.cloud.billing.budgets.v1.GetBudgetRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.GetBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..5a7d4e94ab25 --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface GetBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.GetBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java similarity index 65% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java index 6d1e95c3a861..9966d2ae4d72 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * Describes a budget amount targeted to the last
  * [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period]
@@ -33,41 +16,39 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.LastPeriodAmount}
  */
-public final class LastPeriodAmount extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LastPeriodAmount extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.LastPeriodAmount)
     LastPeriodAmountOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LastPeriodAmount.newBuilder() to construct.
   private LastPeriodAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private LastPeriodAmount() {}
+  private LastPeriodAmount() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LastPeriodAmount();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount.class,
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -79,7 +60,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -97,13 +79,12 @@ 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.budgets.v1.LastPeriodAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.LastPeriodAmount other =
-        (com.google.cloud.billing.budgets.v1.LastPeriodAmount) obj;
+    com.google.cloud.billing.budgets.v1.LastPeriodAmount other = (com.google.cloud.billing.budgets.v1.LastPeriodAmount) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -122,103 +103,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.LastPeriodAmount parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.LastPeriodAmount parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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;
   }
   /**
-   *
-   *
    * 
    * Describes a budget amount targeted to the last
    * [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period]
@@ -231,32 +207,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.LastPeriodAmount}
    */
-  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.budgets.v1.LastPeriodAmount)
       com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.LastPeriodAmount.class,
-              com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
+              com.google.cloud.billing.budgets.v1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -264,9 +241,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
@@ -285,8 +262,7 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.LastPeriodAmount buildPartial() {
-      com.google.cloud.billing.budgets.v1.LastPeriodAmount result =
-          new com.google.cloud.billing.budgets.v1.LastPeriodAmount(this);
+      com.google.cloud.billing.budgets.v1.LastPeriodAmount result = new com.google.cloud.billing.budgets.v1.LastPeriodAmount(this);
       onBuilt();
       return result;
     }
@@ -295,39 +271,38 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.LastPeriodAmount) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.LastPeriodAmount)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -335,8 +310,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.LastPeriodAmount other) {
-      if (other == com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -363,13 +337,12 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -379,9 +352,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -391,12 +364,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.LastPeriodAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.LastPeriodAmount)
   private static final com.google.cloud.billing.budgets.v1.LastPeriodAmount DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.LastPeriodAmount();
   }
@@ -405,27 +378,27 @@ public static com.google.cloud.billing.budgets.v1.LastPeriodAmount getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public LastPeriodAmount parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public LastPeriodAmount parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -440,4 +413,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.LastPeriodAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java
new file mode 100644
index 000000000000..e2b52259f1a2
--- /dev/null
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1;
+
+public interface LastPeriodAmountOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.LastPeriodAmount)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
similarity index 56%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
index ff2831c668fc..cebc9847d792 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
+++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
@@ -1,84 +1,60 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1;
 
 /**
- *
- *
  * 
  * Request for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsRequest} */ -public final class ListBudgetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBudgetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ListBudgetsRequest) ListBudgetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBudgetsRequest.newBuilder() to construct. private ListBudgetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBudgetsRequest() { parent_ = ""; + scope_ = ""; pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBudgetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 @@ -87,32 +63,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 { @@ -120,18 +94,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; + public static final int SCOPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object scope_ = ""; /** + *
+   * Optional. Set the scope of the budgets to be returned, in the format of the
+   * resource name. The scope of a budget is the cost that it tracks, such as
+   * costs for a single project, or the costs for all projects in a folder. Only
+   * project scope (in the format of "projects/project-id" or "projects/123") is
+   * supported in this field. When this field is set to a project's resource
+   * name, the budgets returned are tracking the costs for that project.
+   * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } + } + /** + *
+   * Optional. Set the scope of the budgets to be returned, in the format of the
+   * resource name. The scope of a budget is the cost that it tracks, such as
+   * costs for a single project, or the costs for all projects in a folder. Only
+   * project scope (in the format of "projects/project-id" or "projects/123") is
+   * supported in this field. When this field is set to a project's resource
+   * name, the budgets returned are tracking the costs for that project.
+   * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -140,12 +168,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -153,7 +178,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -162,15 +186,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; } } /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -178,15 +201,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -195,7 +219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +230,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -217,6 +241,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scope_); + } getUnknownFields().writeTo(output); } @@ -230,11 +257,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, scope_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -243,17 +274,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1.ListBudgetsRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ListBudgetsRequest other = - (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.billing.budgets.v1.ListBudgetsRequest other = (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getScope() + .equals(other.getScope())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,6 +302,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; @@ -277,150 +314,146 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsRequest} */ - 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.budgets.v1.ListBudgetsRequest) com.google.cloud.billing.budgets.v1.ListBudgetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.ListBudgetsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; + scope_ = ""; pageSize_ = 0; pageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override @@ -439,11 +472,8 @@ public com.google.cloud.billing.budgets.v1.ListBudgetsRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.ListBudgetsRequest buildPartial() { - com.google.cloud.billing.budgets.v1.ListBudgetsRequest result = - new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.ListBudgetsRequest result = new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -454,9 +484,12 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ListBudgetsReques result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; + result.scope_ = scope_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.pageToken_ = pageToken_; } } @@ -465,39 +498,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ListBudgetsReques 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.budgets.v1.ListBudgetsRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsRequest)other); } else { super.mergeFrom(other); return this; @@ -505,19 +537,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsRequest other) { - if (other == com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; onChanged(); } + if (!other.getScope().isEmpty()) { + scope_ = other.scope_; + bitField0_ |= 0x00000002; + onChanged(); + } if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -546,31 +582,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -580,28 +617,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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; @@ -610,24 +642,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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 { @@ -635,41 +664,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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() { @@ -679,24 +697,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -704,17 +716,131 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private java.lang.Object scope_ = ""; /** + *
+     * Optional. Set the scope of the budgets to be returned, in the format of the
+     * resource name. The scope of a budget is the cost that it tracks, such as
+     * costs for a single project, or the costs for all projects in a folder. Only
+     * project scope (in the format of "projects/project-id" or "projects/123") is
+     * supported in this field. When this field is set to a project's resource
+     * name, the budgets returned are tracking the costs for that project.
+     * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. Set the scope of the budgets to be returned, in the format of the
+     * resource name. The scope of a budget is the cost that it tracks, such as
+     * costs for a single project, or the costs for all projects in a folder. Only
+     * project scope (in the format of "projects/project-id" or "projects/123") is
+     * supported in this field. When this field is set to a project's resource
+     * name, the budgets returned are tracking the costs for that project.
+     * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. Set the scope of the budgets to be returned, in the format of the
+     * resource name. The scope of a budget is the cost that it tracks, such as
+     * costs for a single project, or the costs for all projects in a folder. Only
+     * project scope (in the format of "projects/project-id" or "projects/123") is
+     * supported in this field. When this field is set to a project's resource
+     * name, the budgets returned are tracking the costs for that project.
+     * 
+ * + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + scope_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Set the scope of the budgets to be returned, in the format of the
+     * resource name. The scope of a budget is the cost that it tracks, such as
+     * costs for a single project, or the costs for all projects in a folder. Only
+     * project scope (in the format of "projects/project-id" or "projects/123") is
+     * supported in this field. When this field is set to a project's resource
+     * name, the budgets returned are tracking the costs for that project.
+     * 
+ * + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearScope() { + scope_ = getDefaultInstance().getScope(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Optional. Set the scope of the budgets to be returned, in the format of the
+     * resource name. The scope of a budget is the cost that it tracks, such as
+     * costs for a single project, or the costs for all projects in a folder. Only
+     * project scope (in the format of "projects/project-id" or "projects/123") is
+     * supported in this field. When this field is set to a project's resource
+     * name, the budgets returned are tracking the costs for that project.
+     * 
+ * + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + scope_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_ ; + /** *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -722,39 +848,33 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { pageSize_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -762,8 +882,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -771,13 +889,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -786,8 +904,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -795,14 +911,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -810,8 +927,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -819,22 +934,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -842,18 +953,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -861,23 +969,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +993,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ListBudgetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ListBudgetsRequest) private static final com.google.cloud.billing.budgets.v1.ListBudgetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(); } @@ -901,27 +1007,27 @@ public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,4 +1042,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ListBudgetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java similarity index 51% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java index 4eb473317be1..e9864e8a98d2 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java @@ -1,76 +1,76 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface ListBudgetsRequestOrBuilder - extends +public interface ListBudgetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ListBudgetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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. Set the scope of the budgets to be returned, in the format of the
+   * resource name. The scope of a budget is the cost that it tracks, such as
+   * costs for a single project, or the costs for all projects in a folder. Only
+   * project scope (in the format of "projects/project-id" or "projects/123") is
+   * supported in this field. When this field is set to a project's resource
+   * name, the budgets returned are tracking the costs for that project.
+   * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The scope. + */ + java.lang.String getScope(); + /** + *
+   * Optional. Set the scope of the budgets to be returned, in the format of the
+   * resource name. The scope of a budget is the cost that it tracks, such as
+   * costs for a single project, or the costs for all projects in a folder. Only
+   * project scope (in the format of "projects/project-id" or "projects/123") is
+   * supported in this field. When this field is set to a project's resource
+   * name, the budgets returned are tracking the costs for that project.
+   * 
* + * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for scope. + */ + com.google.protobuf.ByteString + getScopeBytes(); + + /** *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -78,13 +78,10 @@ public interface ListBudgetsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -92,8 +89,8 @@ public interface ListBudgetsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java similarity index 72% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java index a8a8d6f7838b..1c43e0a50670 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * Response for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsResponse} */ -public final class ListBudgetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBudgetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ListBudgetsResponse) ListBudgetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBudgetsResponse.newBuilder() to construct. private ListBudgetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBudgetsResponse() { budgets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListBudgetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBudgetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); } public static final int BUDGETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List budgets_; /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -81,8 +59,6 @@ public java.util.List getBudgetsList return budgets_; } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -90,13 +66,11 @@ public java.util.List getBudgetsList * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBudgetsOrBuilderList() { return budgets_; } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -108,8 +82,6 @@ public int getBudgetsCount() { return budgets_.size(); } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { return budgets_.get(index); } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -130,24 +100,21 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index) { + public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( + int index) { return budgets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,30 +123,30 @@ 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; } } /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * 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 { @@ -188,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +166,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 < budgets_.size(); i++) { output.writeMessage(1, budgets_.get(i)); } @@ -217,7 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < budgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, budgets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, budgets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -230,16 +198,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.budgets.v1.ListBudgetsResponse)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ListBudgetsResponse other = - (com.google.cloud.billing.budgets.v1.ListBudgetsResponse) obj; + com.google.cloud.billing.budgets.v1.ListBudgetsResponse other = (com.google.cloud.billing.budgets.v1.ListBudgetsResponse) obj; - if (!getBudgetsList().equals(other.getBudgetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getBudgetsList() + .equals(other.getBudgetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +232,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsResponse} */ - 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.budgets.v1.ListBudgetsResponse) com.google.cloud.billing.budgets.v1.ListBudgetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.ListBudgetsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override @@ -430,18 +394,14 @@ public com.google.cloud.billing.budgets.v1.ListBudgetsResponse build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.ListBudgetsResponse buildPartial() { - com.google.cloud.billing.budgets.v1.ListBudgetsResponse result = - new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(this); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse result = new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.billing.budgets.v1.ListBudgetsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1.ListBudgetsResponse result) { if (budgetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { budgets_ = java.util.Collections.unmodifiableList(budgets_); @@ -464,39 +424,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ListBudgetsRespon 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.budgets.v1.ListBudgetsResponse) { - return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsResponse) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsResponse)other); } else { super.mergeFrom(other); return this; @@ -504,8 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsResponse other) { - if (other == com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()) return this; if (budgetsBuilder_ == null) { if (!other.budgets_.isEmpty()) { if (budgets_.isEmpty()) { @@ -524,10 +482,9 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsResponse budgetsBuilder_ = null; budgets_ = other.budgets_; bitField0_ = (bitField0_ & ~0x00000001); - budgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBudgetsFieldBuilder() - : null; + budgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBudgetsFieldBuilder() : null; } else { budgetsBuilder_.addAllMessages(other.budgets_); } @@ -564,32 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.billing.budgets.v1.Budget m = - input.readMessage( - com.google.cloud.billing.budgets.v1.Budget.parser(), extensionRegistry); - if (budgetsBuilder_ == null) { - ensureBudgetsIsMutable(); - budgets_.add(m); - } else { - budgetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.billing.budgets.v1.Budget m = + input.readMessage( + com.google.cloud.billing.budgets.v1.Budget.parser(), + extensionRegistry); + if (budgetsBuilder_ == null) { + ensureBudgetsIsMutable(); + budgets_.add(m); + } else { + budgetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,28 +554,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List budgets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBudgetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { budgets_ = new java.util.ArrayList(budgets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> - budgetsBuilder_; + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetsBuilder_; /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -635,8 +583,6 @@ public java.util.List getBudgetsList } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -651,8 +597,6 @@ public int getBudgetsCount() { } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -667,15 +611,14 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1.Budget value) { + public Builder setBudgets( + int index, com.google.cloud.billing.budgets.v1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -689,8 +632,6 @@ public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1.Budget return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -709,8 +650,6 @@ public Builder setBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -731,15 +670,14 @@ public Builder addBudgets(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1.Budget value) { + public Builder addBudgets( + int index, com.google.cloud.billing.budgets.v1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -753,15 +691,14 @@ public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1.Budget return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder addBudgets(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder addBudgets( + com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); budgets_.add(builderForValue.build()); @@ -772,8 +709,6 @@ public Builder addBudgets(com.google.cloud.billing.budgets.v1.Budget.Builder bui return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -792,8 +727,6 @@ public Builder addBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -804,7 +737,8 @@ public Builder addAllBudgets( java.lang.Iterable values) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, budgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, budgets_); onChanged(); } else { budgetsBuilder_.addAllMessages(values); @@ -812,8 +746,6 @@ public Builder addAllBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -831,8 +763,6 @@ public Builder clearBudgets() { return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -850,44 +780,39 @@ public Builder removeBudgets(int index) { return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetsBuilder(int index) { + public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetsBuilder( + int index) { return getBudgetsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index) { + public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( + int index) { if (budgetsBuilder_ == null) { - return budgets_.get(index); - } else { + return budgets_.get(index); } else { return budgetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public java.util.List - getBudgetsOrBuilderList() { + public java.util.List + getBudgetsOrBuilderList() { if (budgetsBuilder_ != null) { return budgetsBuilder_.getMessageOrBuilderList(); } else { @@ -895,8 +820,6 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(i } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -904,48 +827,42 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(i * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder() { - return getBudgetsFieldBuilder() - .addBuilder(com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); + return getBudgetsFieldBuilder().addBuilder( + com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder(int index) { - return getBudgetsFieldBuilder() - .addBuilder(index, com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder( + int index) { + return getBudgetsFieldBuilder().addBuilder( + index, com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public java.util.List - getBudgetsBuilderList() { + public java.util.List + getBudgetsBuilderList() { return getBudgetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetsFieldBuilder() { if (budgetsBuilder_ == null) { - budgetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - budgets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + budgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + budgets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); budgets_ = null; } return budgetsBuilder_; @@ -953,21 +870,19 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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; @@ -976,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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 { @@ -999,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1039,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1073,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ListBudgetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ListBudgetsResponse) private static final com.google.cloud.billing.budgets.v1.ListBudgetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(); } @@ -1087,27 +990,27 @@ public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1122,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ListBudgetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java similarity index 69% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java index fc912b35c8a2..85cae48ff761 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface ListBudgetsResponseOrBuilder - extends +public interface ListBudgetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ListBudgetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - java.util.List getBudgetsList(); + java.util.List + getBudgetsList(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -44,8 +25,6 @@ public interface ListBudgetsResponseOrBuilder */ com.google.cloud.billing.budgets.v1.Budget getBudgets(int index); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -54,51 +33,43 @@ public interface ListBudgetsResponseOrBuilder */ int getBudgetsCount(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - java.util.List + java.util.List getBudgetsOrBuilderList(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index); + com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java similarity index 79% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java index 615997bdd8b8..e1620cbf7b77 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * NotificationsRule defines notifications that are sent based on budget spend
  * and thresholds.
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.NotificationsRule}
  */
-public final class NotificationsRule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NotificationsRule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.NotificationsRule)
     NotificationsRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NotificationsRule.newBuilder() to construct.
   private NotificationsRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private NotificationsRule() {
     pubsubTopic_ = "";
     schemaVersion_ = "";
-    monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    monitoringNotificationChannels_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NotificationsRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.NotificationsRule.class,
-            com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
+            com.google.cloud.billing.budgets.v1.NotificationsRule.class, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
   }
 
   public static final int PUBSUB_TOPIC_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object pubsubTopic_ = "";
   /**
-   *
-   *
    * 
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -102,7 +81,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ @java.lang.Override @@ -111,15 +89,14 @@ public java.lang.String getPubsubTopic() { 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(); pubsubTopic_ = s; return s; } } /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -150,15 +127,16 @@ public java.lang.String getPubsubTopic() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -167,12 +145,9 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object schemaVersion_ = ""; /** - * - * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -183,7 +158,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ @java.lang.Override @@ -192,15 +166,14 @@ public java.lang.String getSchemaVersion() { 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(); schemaVersion_ = s; return s; } } /** - * - * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -211,15 +184,16 @@ public java.lang.String getSchemaVersion() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaVersionBytes() { + public com.google.protobuf.ByteString + getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -228,13 +202,10 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() { } public static final int MONITORING_NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -260,18 +231,14 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList + getMonitoringNotificationChannelsList() { return monitoringNotificationChannels_; } /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -297,18 +264,13 @@ public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsL
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -334,10 +296,7 @@ public int getMonitoringNotificationChannelsCount() {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -345,8 +304,6 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -372,22 +329,18 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } public static final int DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER = 4; private boolean disableDefaultIamRecipients_ = false; /** - * - * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -396,7 +349,6 @@ public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -404,8 +356,28 @@ public boolean getDisableDefaultIamRecipients() { return disableDefaultIamRecipients_; } - private byte memoizedIsInitialized = -1; + public static final int ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER = 5; + private boolean enableProjectLevelRecipients_ = false; + /** + *
+   * Optional. When set to true, and when the budget has a single project
+   * configured, notifications will be sent to project level recipients of that
+   * project. This field will be ignored if the budget has multiple or no
+   * project configured.
+   *
+   * Currently, project level recipients are the users with `Owner` role on a
+   * cloud project.
+   * 
+ * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enableProjectLevelRecipients. + */ + @java.lang.Override + public boolean getEnableProjectLevelRecipients() { + return enableProjectLevelRecipients_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -417,7 +389,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(pubsubTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopic_); } @@ -425,12 +398,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaVersion_); } for (int i = 0; i < monitoringNotificationChannels_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, monitoringNotificationChannels_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, monitoringNotificationChannels_.getRaw(i)); } if (disableDefaultIamRecipients_ != false) { output.writeBool(4, disableDefaultIamRecipients_); } + if (enableProjectLevelRecipients_ != false) { + output.writeBool(5, enableProjectLevelRecipients_); + } getUnknownFields().writeTo(output); } @@ -455,8 +430,12 @@ public int getSerializedSize() { size += 1 * getMonitoringNotificationChannelsList().size(); } if (disableDefaultIamRecipients_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableDefaultIamRecipients_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, disableDefaultIamRecipients_); + } + if (enableProjectLevelRecipients_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, enableProjectLevelRecipients_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -466,19 +445,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.budgets.v1.NotificationsRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.NotificationsRule other = - (com.google.cloud.billing.budgets.v1.NotificationsRule) obj; + com.google.cloud.billing.budgets.v1.NotificationsRule other = (com.google.cloud.billing.budgets.v1.NotificationsRule) obj; - if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; - if (!getSchemaVersion().equals(other.getSchemaVersion())) return false; + if (!getPubsubTopic() + .equals(other.getPubsubTopic())) return false; + if (!getSchemaVersion() + .equals(other.getSchemaVersion())) return false; if (!getMonitoringNotificationChannelsList() .equals(other.getMonitoringNotificationChannelsList())) return false; - if (getDisableDefaultIamRecipients() != other.getDisableDefaultIamRecipients()) return false; + if (getDisableDefaultIamRecipients() + != other.getDisableDefaultIamRecipients()) return false; + if (getEnableProjectLevelRecipients() + != other.getEnableProjectLevelRecipients()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -499,111 +482,109 @@ public int hashCode() { hash = (53 * hash) + getMonitoringNotificationChannelsList().hashCode(); } hash = (37 * hash) + DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDefaultIamRecipients()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableDefaultIamRecipients()); + hash = (37 * hash) + ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableProjectLevelRecipients()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.NotificationsRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.NotificationsRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.NotificationsRule 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; } /** - * - * *
    * NotificationsRule defines notifications that are sent based on budget spend
    * and thresholds.
@@ -611,47 +592,50 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.NotificationsRule}
    */
-  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.budgets.v1.NotificationsRule)
       com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.NotificationsRule.class,
-              com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
+              com.google.cloud.billing.budgets.v1.NotificationsRule.class, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.NotificationsRule.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       pubsubTopic_ = "";
       schemaVersion_ = "";
-      monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      monitoringNotificationChannels_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       disableDefaultIamRecipients_ = false;
+      enableProjectLevelRecipients_ = false;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
     }
 
     @java.lang.Override
@@ -670,11 +654,8 @@ public com.google.cloud.billing.budgets.v1.NotificationsRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.NotificationsRule buildPartial() {
-      com.google.cloud.billing.budgets.v1.NotificationsRule result =
-          new com.google.cloud.billing.budgets.v1.NotificationsRule(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.billing.budgets.v1.NotificationsRule result = new com.google.cloud.billing.budgets.v1.NotificationsRule(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -694,45 +675,47 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.NotificationsRule
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.disableDefaultIamRecipients_ = disableDefaultIamRecipients_;
       }
+      if (((from_bitField0_ & 0x00000010) != 0)) {
+        result.enableProjectLevelRecipients_ = enableProjectLevelRecipients_;
+      }
     }
 
     @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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.budgets.v1.NotificationsRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.NotificationsRule) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.NotificationsRule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -740,8 +723,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.NotificationsRule other) {
-      if (other == com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) return this;
       if (!other.getPubsubTopic().isEmpty()) {
         pubsubTopic_ = other.pubsubTopic_;
         bitField0_ |= 0x00000001;
@@ -765,6 +747,9 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.NotificationsRule o
       if (other.getDisableDefaultIamRecipients() != false) {
         setDisableDefaultIamRecipients(other.getDisableDefaultIamRecipients());
       }
+      if (other.getEnableProjectLevelRecipients() != false) {
+        setEnableProjectLevelRecipients(other.getEnableProjectLevelRecipients());
+      }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -791,38 +776,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                pubsubTopic_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                schemaVersion_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureMonitoringNotificationChannelsIsMutable();
-                monitoringNotificationChannels_.add(s);
-                break;
-              } // case 26
-            case 32:
-              {
-                disableDefaultIamRecipients_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              pubsubTopic_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              schemaVersion_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureMonitoringNotificationChannelsIsMutable();
+              monitoringNotificationChannels_.add(s);
+              break;
+            } // case 26
+            case 32: {
+              disableDefaultIamRecipients_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              enableProjectLevelRecipients_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -832,13 +817,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object pubsubTopic_ = "";
     /**
-     *
-     *
      * 
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -869,13 +851,13 @@ public Builder mergeFrom(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; 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(); pubsubTopic_ = s; return s; @@ -884,8 +866,6 @@ public java.lang.String getPubsubTopic() { } } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -916,14 +896,15 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -931,8 +912,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -963,22 +942,18 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPubsubTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pubsubTopic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -1009,7 +984,6 @@ public Builder setPubsubTopic(java.lang.String value) {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPubsubTopic() { @@ -1019,8 +993,6 @@ public Builder clearPubsubTopic() { return this; } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -1051,14 +1023,12 @@ public Builder clearPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPubsubTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pubsubTopic_ = value; bitField0_ |= 0x00000001; @@ -1068,8 +1038,6 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { private java.lang.Object schemaVersion_ = ""; /** - * - * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1080,13 +1048,13 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ public java.lang.String getSchemaVersion() { java.lang.Object ref = schemaVersion_; 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(); schemaVersion_ = s; return s; @@ -1095,8 +1063,6 @@ public java.lang.String getSchemaVersion() { } } /** - * - * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1107,14 +1073,15 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ - public com.google.protobuf.ByteString getSchemaVersionBytes() { + public com.google.protobuf.ByteString + getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -1122,8 +1089,6 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() { } } /** - * - * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1134,22 +1099,18 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1160,7 +1121,6 @@ public Builder setSchemaVersion(java.lang.String value) {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSchemaVersion() { @@ -1170,8 +1130,6 @@ public Builder clearSchemaVersion() { return this; } /** - * - * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1182,14 +1140,12 @@ public Builder clearSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaVersion_ = value; bitField0_ |= 0x00000002; @@ -1199,17 +1155,13 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMonitoringNotificationChannelsIsMutable() { if (!monitoringNotificationChannels_.isModifiable()) { - monitoringNotificationChannels_ = - new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); + monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); } bitField0_ |= 0x00000004; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1235,19 +1187,15 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList + getMonitoringNotificationChannelsList() { monitoringNotificationChannels_.makeImmutable(); return monitoringNotificationChannels_; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1273,18 +1221,13 @@ public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsL
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1310,10 +1253,7 @@ public int getMonitoringNotificationChannelsCount() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -1321,8 +1261,6 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1348,19 +1286,15 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1386,18 +1320,14 @@ public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The monitoringNotificationChannels to set. * @return This builder for chaining. */ - public Builder setMonitoringNotificationChannels(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMonitoringNotificationChannels( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.set(index, value); bitField0_ |= 0x00000004; @@ -1405,8 +1335,6 @@ public Builder setMonitoringNotificationChannels(int index, java.lang.String val return this; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1432,17 +1360,13 @@ public Builder setMonitoringNotificationChannels(int index, java.lang.String val
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannels(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMonitoringNotificationChannels( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); bitField0_ |= 0x00000004; @@ -1450,8 +1374,6 @@ public Builder addMonitoringNotificationChannels(java.lang.String value) { return this; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1477,10 +1399,7 @@ public Builder addMonitoringNotificationChannels(java.lang.String value) {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The monitoringNotificationChannels to add. * @return This builder for chaining. */ @@ -1494,8 +1413,6 @@ public Builder addAllMonitoringNotificationChannels( return this; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1521,22 +1438,17 @@ public Builder addAllMonitoringNotificationChannels(
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearMonitoringNotificationChannels() { - monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + monitoringNotificationChannels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1562,17 +1474,13 @@ public Builder clearMonitoringNotificationChannels() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMonitoringNotificationChannelsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); @@ -1581,10 +1489,8 @@ public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteSt return this; } - private boolean disableDefaultIamRecipients_; + private boolean disableDefaultIamRecipients_ ; /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1592,9 +1498,7 @@ public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteSt
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -1602,8 +1506,6 @@ public boolean getDisableDefaultIamRecipients() { return disableDefaultIamRecipients_; } /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1611,9 +1513,7 @@ public boolean getDisableDefaultIamRecipients() {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The disableDefaultIamRecipients to set. * @return This builder for chaining. */ @@ -1625,8 +1525,6 @@ public Builder setDisableDefaultIamRecipients(boolean value) { return this; } /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1634,9 +1532,7 @@ public Builder setDisableDefaultIamRecipients(boolean value) {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDisableDefaultIamRecipients() { @@ -1646,8 +1542,70 @@ public Builder clearDisableDefaultIamRecipients() { return this; } + private boolean enableProjectLevelRecipients_ ; + /** + *
+     * Optional. When set to true, and when the budget has a single project
+     * configured, notifications will be sent to project level recipients of that
+     * project. This field will be ignored if the budget has multiple or no
+     * project configured.
+     *
+     * Currently, project level recipients are the users with `Owner` role on a
+     * cloud project.
+     * 
+ * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enableProjectLevelRecipients. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public boolean getEnableProjectLevelRecipients() { + return enableProjectLevelRecipients_; + } + /** + *
+     * Optional. When set to true, and when the budget has a single project
+     * configured, notifications will be sent to project level recipients of that
+     * project. This field will be ignored if the budget has multiple or no
+     * project configured.
+     *
+     * Currently, project level recipients are the users with `Owner` role on a
+     * cloud project.
+     * 
+ * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The enableProjectLevelRecipients to set. + * @return This builder for chaining. + */ + public Builder setEnableProjectLevelRecipients(boolean value) { + + enableProjectLevelRecipients_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Optional. When set to true, and when the budget has a single project
+     * configured, notifications will be sent to project level recipients of that
+     * project. This field will be ignored if the budget has multiple or no
+     * project configured.
+     *
+     * Currently, project level recipients are the users with `Owner` role on a
+     * cloud project.
+     * 
+ * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearEnableProjectLevelRecipients() { + bitField0_ = (bitField0_ & ~0x00000010); + enableProjectLevelRecipients_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1657,12 +1615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.NotificationsRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.NotificationsRule) private static final com.google.cloud.billing.budgets.v1.NotificationsRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.NotificationsRule(); } @@ -1671,27 +1629,27 @@ public static com.google.cloud.billing.budgets.v1.NotificationsRule getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationsRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationsRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1706,4 +1664,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.NotificationsRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java similarity index 88% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java index 438aced5f877..df4a6826cae4 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface NotificationsRuleOrBuilder - extends +public interface NotificationsRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.NotificationsRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -56,13 +38,10 @@ public interface NotificationsRuleOrBuilder
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -93,14 +72,12 @@ public interface NotificationsRuleOrBuilder
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString getPubsubTopicBytes(); + com.google.protobuf.ByteString + getPubsubTopicBytes(); /** - * - * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -111,13 +88,10 @@ public interface NotificationsRuleOrBuilder
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ java.lang.String getSchemaVersion(); /** - * - * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -128,14 +102,12 @@ public interface NotificationsRuleOrBuilder
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ - com.google.protobuf.ByteString getSchemaVersionBytes(); + com.google.protobuf.ByteString + getSchemaVersionBytes(); /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -161,16 +133,12 @@ public interface NotificationsRuleOrBuilder
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - java.util.List getMonitoringNotificationChannelsList(); + java.util.List + getMonitoringNotificationChannelsList(); /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -196,16 +164,11 @@ public interface NotificationsRuleOrBuilder
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ int getMonitoringNotificationChannelsCount(); /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -231,17 +194,12 @@ public interface NotificationsRuleOrBuilder
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ java.lang.String getMonitoringNotificationChannels(int index); /** - * - * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -267,18 +225,14 @@ public interface NotificationsRuleOrBuilder
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index); + com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index); /** - * - * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -287,8 +241,23 @@ public interface NotificationsRuleOrBuilder
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultIamRecipients. */ boolean getDisableDefaultIamRecipients(); + + /** + *
+   * Optional. When set to true, and when the budget has a single project
+   * configured, notifications will be sent to project level recipients of that
+   * project. This field will be ignored if the budget has multiple or no
+   * project configured.
+   *
+   * Currently, project level recipients are the users with `Owner` role on a
+   * cloud project.
+   * 
+ * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enableProjectLevelRecipients. + */ + boolean getEnableProjectLevelRecipients(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java similarity index 69% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java index 93ee469e3bac..9c3a03a0b652 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * ThresholdRule contains the definition of a threshold. Threshold rules define
  * the triggering events used to generate a budget notification email. When a
@@ -48,54 +31,49 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.ThresholdRule}
  */
-public final class ThresholdRule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ThresholdRule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ThresholdRule)
     ThresholdRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ThresholdRule.newBuilder() to construct.
   private ThresholdRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ThresholdRule() {
     spendBasis_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ThresholdRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto
-        .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.ThresholdRule.class,
-            com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
+            com.google.cloud.billing.budgets.v1.ThresholdRule.class, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of basis used to determine if spend has passed the threshold.
    * 
* * Protobuf enum {@code google.cloud.billing.budgets.v1.ThresholdRule.Basis} */ - public enum Basis implements com.google.protobuf.ProtocolMessageEnum { + public enum Basis + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified threshold basis.
      * 
@@ -104,8 +82,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ BASIS_UNSPECIFIED(0), /** - * - * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -114,8 +90,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ CURRENT_SPEND(1), /** - * - * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -132,8 +106,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified threshold basis.
      * 
@@ -142,8 +114,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BASIS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -152,8 +122,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CURRENT_SPEND_VALUE = 1; /** - * - * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -167,6 +135,7 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FORECASTED_SPEND_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -191,51 +160,49 @@ public static Basis valueOf(int value) {
      */
     public static Basis forNumber(int value) {
       switch (value) {
-        case 0:
-          return BASIS_UNSPECIFIED;
-        case 1:
-          return CURRENT_SPEND;
-        case 2:
-          return FORECASTED_SPEND;
-        default:
-          return null;
+        case 0: return BASIS_UNSPECIFIED;
+        case 1: return CURRENT_SPEND;
+        case 2: return FORECASTED_SPEND;
+        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<
+        Basis> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Basis findValueByNumber(int number) {
+              return Basis.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Basis findValueByNumber(int number) {
-            return Basis.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() {
-      return com.google.cloud.billing.budgets.v1.ThresholdRule.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.ThresholdRule.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Basis[] VALUES = values();
 
-    public static Basis valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Basis 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;
@@ -255,8 +222,6 @@ private Basis(int value) {
   public static final int THRESHOLD_PERCENT_FIELD_NUMBER = 1;
   private double thresholdPercent_ = 0D;
   /**
-   *
-   *
    * 
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -264,7 +229,6 @@ private Basis(int value) {
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ @java.lang.Override @@ -275,48 +239,32 @@ public double getThresholdPercent() { public static final int SPEND_BASIS_FIELD_NUMBER = 2; private int spendBasis_ = 0; /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override - public int getSpendBasisValue() { + @java.lang.Override public int getSpendBasisValue() { return spendBasis_; } /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ - @java.lang.Override - public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null - ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,12 +276,12 @@ 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(thresholdPercent_) != 0) { output.writeDouble(1, thresholdPercent_); } - if (spendBasis_ - != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + if (spendBasis_ != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { output.writeEnum(2, spendBasis_); } getUnknownFields().writeTo(output); @@ -346,11 +294,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(thresholdPercent_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, thresholdPercent_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, thresholdPercent_); } - if (spendBasis_ - != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spendBasis_); + if (spendBasis_ != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, spendBasis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -360,16 +309,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.budgets.v1.ThresholdRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ThresholdRule other = - (com.google.cloud.billing.budgets.v1.ThresholdRule) obj; + com.google.cloud.billing.budgets.v1.ThresholdRule other = (com.google.cloud.billing.budgets.v1.ThresholdRule) obj; if (java.lang.Double.doubleToLongBits(getThresholdPercent()) - != java.lang.Double.doubleToLongBits(other.getThresholdPercent())) return false; + != java.lang.Double.doubleToLongBits( + other.getThresholdPercent())) return false; if (spendBasis_ != other.spendBasis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -383,10 +332,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THRESHOLD_PERCENT_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThresholdPercent())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThresholdPercent())); hash = (37 * hash) + SPEND_BASIS_FIELD_NUMBER; hash = (53 * hash) + spendBasis_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -395,103 +342,98 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ThresholdRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ThresholdRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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; } /** - * - * *
    * ThresholdRule contains the definition of a threshold. Threshold rules define
    * the triggering events used to generate a budget notification email. When a
@@ -519,32 +461,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.ThresholdRule}
    */
-  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.budgets.v1.ThresholdRule)
       com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.ThresholdRule.class,
-              com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
+              com.google.cloud.billing.budgets.v1.ThresholdRule.class, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.ThresholdRule.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -555,9 +498,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto
-          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
@@ -576,11 +519,8 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.ThresholdRule buildPartial() {
-      com.google.cloud.billing.budgets.v1.ThresholdRule result =
-          new com.google.cloud.billing.budgets.v1.ThresholdRule(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.billing.budgets.v1.ThresholdRule result = new com.google.cloud.billing.budgets.v1.ThresholdRule(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -599,39 +539,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ThresholdRule res
     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.budgets.v1.ThresholdRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.ThresholdRule) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.ThresholdRule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -639,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ThresholdRule other) {
-      if (other == com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()) return this;
       if (other.getThresholdPercent() != 0D) {
         setThresholdPercent(other.getThresholdPercent());
       }
@@ -673,25 +611,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 9:
-              {
-                thresholdPercent_ = input.readDouble();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 9
-            case 16:
-              {
-                spendBasis_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 9: {
+              thresholdPercent_ = input.readDouble();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 9
+            case 16: {
+              spendBasis_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -701,13 +636,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private double thresholdPercent_;
+    private double thresholdPercent_ ;
     /**
-     *
-     *
      * 
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -715,7 +647,6 @@ public Builder mergeFrom(
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ @java.lang.Override @@ -723,8 +654,6 @@ public double getThresholdPercent() { return thresholdPercent_; } /** - * - * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -732,7 +661,6 @@ public double getThresholdPercent() {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The thresholdPercent to set. * @return This builder for chaining. */ @@ -744,8 +672,6 @@ public Builder setThresholdPercent(double value) { return this; } /** - * - * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -753,7 +679,6 @@ public Builder setThresholdPercent(double value) {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearThresholdPercent() { @@ -765,35 +690,24 @@ public Builder clearThresholdPercent() { private int spendBasis_ = 0; /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override - public int getSpendBasisValue() { + @java.lang.Override public int getSpendBasisValue() { return spendBasis_; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for spendBasis to set. * @return This builder for chaining. */ @@ -804,39 +718,26 @@ public Builder setSpendBasisValue(int value) { return this; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null - ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The spendBasis to set. * @return This builder for chaining. */ @@ -850,17 +751,12 @@ public Builder setSpendBasis(com.google.cloud.billing.budgets.v1.ThresholdRule.B return this; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearSpendBasis() { @@ -869,9 +765,9 @@ public Builder clearSpendBasis() { 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); } @@ -881,12 +777,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ThresholdRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ThresholdRule) private static final com.google.cloud.billing.budgets.v1.ThresholdRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ThresholdRule(); } @@ -895,27 +791,27 @@ public static com.google.cloud.billing.budgets.v1.ThresholdRule getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThresholdRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThresholdRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,4 +826,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ThresholdRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java similarity index 55% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java index 2b672e710e60..7fecaa5cf0e3 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface ThresholdRuleOrBuilder - extends +public interface ThresholdRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ThresholdRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -33,38 +15,27 @@ public interface ThresholdRuleOrBuilder
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ double getThresholdPercent(); /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ int getSpendBasisValue(); /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis(); diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java similarity index 67% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java index 0012712b609c..0a96a306e40e 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java @@ -1,79 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** - * - * *
  * Request for UpdateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.UpdateBudgetRequest} */ -public final class UpdateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.UpdateBudgetRequest) UpdateBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBudgetRequest.newBuilder() to construct. private UpdateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateBudgetRequest() {} + private UpdateBudgetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); } public static final int BUDGET_FIELD_NUMBER = 1; private com.google.cloud.billing.budgets.v1.Budget budget_; /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ @java.lang.Override @@ -81,49 +58,34 @@ public boolean hasBudget() { return budget_ != null; } /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Budget getBudget() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -133,9 +95,7 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder()
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -143,8 +103,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -154,9 +112,7 @@ public boolean hasUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -164,8 +120,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -175,8 +129,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -184,7 +137,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,7 +148,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 (budget_ != null) { output.writeMessage(1, getBudget()); } @@ -213,10 +166,12 @@ public int getSerializedSize() { size = 0; if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBudget()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBudget()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -226,21 +181,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.budgets.v1.UpdateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other = - (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other = (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) obj; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget().equals(other.getBudget())) return false; + if (!getBudget() + .equals(other.getBudget())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -267,136 +223,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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 for UpdateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.UpdateBudgetRequest} */ - 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.budgets.v1.UpdateBudgetRequest) com.google.cloud.billing.budgets.v1.UpdateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +366,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto - .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override @@ -436,11 +387,8 @@ public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result = - new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result = new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -448,10 +396,14 @@ public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null + ? budget_ + : budgetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -459,39 +411,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.UpdateBudgetReque 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.budgets.v1.UpdateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -499,8 +450,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()) return this; if (other.hasBudget()) { mergeBudget(other.getBudget()); } @@ -533,25 +483,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBudgetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -561,66 +512,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.billing.budgets.v1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> - budgetBuilder_; + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetBuilder_; /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ public com.google.cloud.billing.budgets.v1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } else { return budgetBuilder_.getMessage(); } } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { @@ -636,18 +567,15 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder setBudget( + com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetBuilder_ == null) { budget_ = builderForValue.build(); } else { @@ -658,22 +586,18 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder buil return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && budget_ != null - && budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + budget_ != null && + budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -686,16 +610,12 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000001); @@ -708,16 +628,12 @@ public Builder clearBudget() { return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000001; @@ -725,50 +641,38 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { return getBudgetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null - ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? + com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; } } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, - com.google.cloud.billing.budgets.v1.Budget.Builder, - com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - getBudget(), getParentForChildren(), isClean()); + budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + getBudget(), + getParentForChildren(), + isClean()); budget_ = null; } return budgetBuilder_; @@ -776,13 +680,8 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() 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_; /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -792,17 +691,13 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder()
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -812,23 +707,17 @@ public boolean hasUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @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(); } } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -838,8 +727,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -855,8 +743,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -866,10 +752,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -880,8 +766,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -891,14 +775,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -911,8 +794,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -922,8 +803,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -936,8 +816,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -947,8 +825,7 @@ public Builder clearUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -956,8 +833,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -967,21 +842,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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_; } } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -991,28 +862,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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); } @@ -1022,12 +889,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.UpdateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.UpdateBudgetRequest) private static final com.google.cloud.billing.budgets.v1.UpdateBudgetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(); } @@ -1036,27 +903,27 @@ public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1071,4 +938,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java similarity index 67% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java index 89ef02418063..e2af918a88d8 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java @@ -1,75 +1,43 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface UpdateBudgetRequestOrBuilder - extends +public interface UpdateBudgetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.UpdateBudgetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ boolean hasBudget(); /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ com.google.cloud.billing.budgets.v1.Budget getBudget(); /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -79,15 +47,11 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -97,15 +61,11 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -115,8 +75,7 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto similarity index 95% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto index 8c2bbcaa4cde..559f0e4f4104 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto @@ -224,6 +224,16 @@ message NotificationsRule { // account. bool disable_default_iam_recipients = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When set to true, and when the budget has a single project + // configured, notifications will be sent to project level recipients of that + // project. This field will be ignored if the budget has multiple or no + // project configured. + // + // Currently, project level recipients are the users with `Owner` role on a + // cloud project. + bool enable_project_level_recipients = 5 + [(google.api.field_behavior) = OPTIONAL]; } // A filter for a budget, limiting the scope of the cost to calculate. @@ -260,8 +270,10 @@ message Filter { // Optional. A set of folder and organization names of the form // `folders/{folderId}` or `organizations/{organizationId}`, specifying that // usage from only this set of folders and organizations should be included in - // the budget. If omitted, the report includes all usage for all - // organizations, regardless of which organization the usage occurred on. + // the budget. If omitted, the budget includes all usage that the billing + // account pays for. If the folder or organization contains projects that are + // paid for by a different Cloud Billing account, the budget *doesn't* apply + // to those projects. repeated string resource_ancestors = 2 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto similarity index 92% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto rename to owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto index b9d6e3df36a1..b892dc255d02 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto +++ b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto @@ -150,6 +150,14 @@ message ListBudgetsRequest { } ]; + // Optional. Set the scope of the budgets to be returned, in the format of the + // resource name. The scope of a budget is the cost that it tracks, such as + // costs for a single project, or the costs for all projects in a folder. Only + // project scope (in the format of "projects/project-id" or "projects/123") is + // supported in this field. When this field is set to a project's resource + // name, the budgets returned are tracking the costs for that project. + string scope = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The maximum number of budgets to return per page. // The default and maximum value are 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java similarity index 98% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java index d6132f9d1355..093f11ce2fff 100644 --- a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java +++ b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java @@ -39,6 +39,7 @@ public static void asyncListBudgets() throws Exception { ListBudgetsRequest request = ListBudgetsRequest.newBuilder() .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setScope("scope109264468") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java similarity index 98% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java index 5070ad2a79c6..56d84f22fd42 100644 --- a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java +++ b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java @@ -40,6 +40,7 @@ public static void asyncListBudgetsPaged() throws Exception { ListBudgetsRequest request = ListBudgetsRequest.newBuilder() .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setScope("scope109264468") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java similarity index 98% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java index a79da694bfe9..962559d24113 100644 --- a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java +++ b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java @@ -38,6 +38,7 @@ public static void syncListBudgets() throws Exception { ListBudgetsRequest request = ListBudgetsRequest.newBuilder() .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setScope("scope109264468") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java similarity index 99% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java index a611a80c3bbe..54f7fab4ea61 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.billing.budgets.v1beta1.stub.BudgetServiceStubSettings; diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java similarity index 99% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java index b0cd886f6b40..3fe00906ecd4 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java @@ -38,6 +38,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java b/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java similarity index 100% rename from java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java rename to owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java b/owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java similarity index 50% rename from java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java rename to owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java index 27a4c429a154..617511713473 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.billing.budgets.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * BudgetService stores Cloud Billing budgets, which define a
  * budget plan and rules to execute as we track spend against that plan.
@@ -36,276 +19,206 @@ private BudgetServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.billing.budgets.v1beta1.BudgetService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getCreateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getCreateBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
-            com.google.cloud.billing.budgets.v1beta1.Budget>
-        getCreateBudgetMethod;
+  public static io.grpc.MethodDescriptor getCreateBudgetMethod() {
+    io.grpc.MethodDescriptor getCreateBudgetMethod;
     if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
-          BudgetServiceGrpc.getCreateBudgetMethod =
-              getCreateBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
-                      .build();
+          BudgetServiceGrpc.getCreateBudgetMethod = getCreateBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
+              .build();
         }
       }
     }
     return getCreateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getUpdateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getUpdateBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
-            com.google.cloud.billing.budgets.v1beta1.Budget>
-        getUpdateBudgetMethod;
+  public static io.grpc.MethodDescriptor getUpdateBudgetMethod() {
+    io.grpc.MethodDescriptor getUpdateBudgetMethod;
     if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
-          BudgetServiceGrpc.getUpdateBudgetMethod =
-              getUpdateBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
-                      .build();
+          BudgetServiceGrpc.getUpdateBudgetMethod = getUpdateBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
+              .build();
         }
       }
     }
     return getUpdateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getGetBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getGetBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
-          com.google.cloud.billing.budgets.v1beta1.Budget>
-      getGetBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
-            com.google.cloud.billing.budgets.v1beta1.Budget>
-        getGetBudgetMethod;
+  public static io.grpc.MethodDescriptor getGetBudgetMethod() {
+    io.grpc.MethodDescriptor getGetBudgetMethod;
     if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
-          BudgetServiceGrpc.getGetBudgetMethod =
-              getGetBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
-                      .build();
+          BudgetServiceGrpc.getGetBudgetMethod = getGetBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
+              .build();
         }
       }
     }
     return getGetBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
-          com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
-      getListBudgetsMethod;
+  private static volatile io.grpc.MethodDescriptor getListBudgetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListBudgets",
       requestType = com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
-          com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
-      getListBudgetsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
-            com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
-        getListBudgetsMethod;
+  public static io.grpc.MethodDescriptor getListBudgetsMethod() {
+    io.grpc.MethodDescriptor getListBudgetsMethod;
     if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
-          BudgetServiceGrpc.getListBudgetsMethod =
-              getListBudgetsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
-                      .build();
+          BudgetServiceGrpc.getListBudgetsMethod = getListBudgetsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
+              .build();
         }
       }
     }
     return getListBudgetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
-      getDeleteBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
-      getDeleteBudgetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
-        getDeleteBudgetMethod;
+  public static io.grpc.MethodDescriptor getDeleteBudgetMethod() {
+    io.grpc.MethodDescriptor getDeleteBudgetMethod;
     if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
-          BudgetServiceGrpc.getDeleteBudgetMethod =
-              getDeleteBudgetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
-                      .build();
+          BudgetServiceGrpc.getDeleteBudgetMethod = getDeleteBudgetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
+              .build();
         }
       }
     }
     return getDeleteBudgetMethod;
   }
 
-  /** 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 BudgetServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceStub(channel, callOptions);
+        }
+      };
     return BudgetServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BudgetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static BudgetServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceBlockingStub(channel, callOptions);
+        }
+      };
     return BudgetServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static BudgetServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static BudgetServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BudgetServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BudgetServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BudgetServiceFutureStub(channel, callOptions);
+        }
+      };
     return BudgetServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -314,25 +227,18 @@ public BudgetServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - default void createBudget( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBudgetMethod(), responseObserver); + default void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBudgetMethod(), responseObserver); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -340,17 +246,12 @@ default void createBudget(
      * this API will not be changed by this method.
      * 
*/ - default void updateBudget( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBudgetMethod(), responseObserver); + default void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBudgetMethod(), responseObserver); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -359,16 +260,12 @@ default void updateBudget(
      * in the Cloud Console.
      * 
*/ - default void getBudget( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + default void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBudgetMethod(), responseObserver); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -377,49 +274,39 @@ default void getBudget(
      * in the Cloud Console.
      * 
*/ - default void listBudgets( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBudgetsMethod(), responseObserver); + default void listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBudgetsMethod(), responseObserver); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - default void deleteBudget( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, + default void deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBudgetMethod(), responseObserver); } } /** * Base class for the server implementation of the service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
    * 
*/ - public abstract static class BudgetServiceImplBase + public static abstract class BudgetServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return BudgetServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -427,37 +314,31 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class BudgetServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private BudgetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected BudgetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected BudgetServiceStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new BudgetServiceStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public void createBudget( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -465,19 +346,13 @@ public void createBudget(
      * this API will not be changed by this method.
      * 
*/ - public void updateBudget( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -486,17 +361,13 @@ public void updateBudget(
      * in the Cloud Console.
      * 
*/ - public void getBudget( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -505,36 +376,26 @@ public void getBudget(
      * in the Cloud Console.
      * 
*/ - public void listBudgets( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBudgetsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public void deleteBudget( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, + public void deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -542,7 +403,8 @@ public void deleteBudget(
    */
   public static final class BudgetServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private BudgetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -553,23 +415,18 @@ protected BudgetServiceBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget createBudget( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -577,15 +434,12 @@ public com.google.cloud.billing.budgets.v1beta1.Budget createBudget(
      * this API will not be changed by this method.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -594,15 +448,12 @@ public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget(
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget getBudget( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBudgetMethod(), getCallOptions(), request); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -611,21 +462,17 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget(
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse listBudgets( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { + public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBudgetsMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.protobuf.Empty deleteBudget( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { + public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); } @@ -633,7 +480,6 @@ public com.google.protobuf.Empty deleteBudget( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service BudgetService. - * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -641,7 +487,8 @@ public com.google.protobuf.Empty deleteBudget(
    */
   public static final class BudgetServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private BudgetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -652,24 +499,19 @@ protected BudgetServiceFutureStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1beta1.Budget> - createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture createBudget( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -677,16 +519,13 @@ protected BudgetServiceFutureStub build(
      * this API will not be changed by this method.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1beta1.Budget> - updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateBudget( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -695,16 +534,13 @@ protected BudgetServiceFutureStub build(
      * in the Cloud Console.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1beta1.Budget> - getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture getBudget( + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request); } /** - * - * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -713,22 +549,19 @@ protected BudgetServiceFutureStub build(
      * in the Cloud Console.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse> - listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listBudgets( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteBudget( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request); } @@ -740,11 +573,11 @@ protected BudgetServiceFutureStub build( private static final int METHODID_LIST_BUDGETS = 3; private static final int METHODID_DELETE_BUDGET = 4; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -758,33 +591,23 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_BUDGET: - serviceImpl.createBudget( - (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createBudget((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_BUDGET: - serviceImpl.updateBudget( - (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateBudget((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BUDGET: - serviceImpl.getBudget( - (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getBudget((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BUDGETS: - serviceImpl.listBudgets( - (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>) - responseObserver); + serviceImpl.listBudgets((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_BUDGET: - serviceImpl.deleteBudget( - (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) request, + serviceImpl.deleteBudget((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -806,44 +629,45 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>( - service, METHODID_CREATE_BUDGET))) + getCreateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>( + service, METHODID_CREATE_BUDGET))) .addMethod( - getUpdateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>( - service, METHODID_UPDATE_BUDGET))) + getUpdateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>( + service, METHODID_UPDATE_BUDGET))) .addMethod( - getGetBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>(service, METHODID_GET_BUDGET))) + getGetBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>( + service, METHODID_GET_BUDGET))) .addMethod( - getListBudgetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>( - service, METHODID_LIST_BUDGETS))) + getListBudgetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>( + service, METHODID_LIST_BUDGETS))) .addMethod( - getDeleteBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_BUDGET))) + getDeleteBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_BUDGET))) .build(); } - private abstract static class BudgetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class BudgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { BudgetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -885,16 +709,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BudgetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) - .addMethod(getCreateBudgetMethod()) - .addMethod(getUpdateBudgetMethod()) - .addMethod(getGetBudgetMethod()) - .addMethod(getListBudgetsMethod()) - .addMethod(getDeleteBudgetMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) + .addMethod(getCreateBudgetMethod()) + .addMethod(getUpdateBudgetMethod()) + .addMethod(getGetBudgetMethod()) + .addMethod(getListBudgetsMethod()) + .addMethod(getDeleteBudgetMethod()) + .build(); } } } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java similarity index 76% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java index 2364c0f35a21..a6787a95f0d6 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * AllUpdatesRule defines notifications that are sent based on budget spend
  * and thresholds.
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.AllUpdatesRule}
  */
-public final class AllUpdatesRule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AllUpdatesRule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.AllUpdatesRule)
     AllUpdatesRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AllUpdatesRule.newBuilder() to construct.
   private AllUpdatesRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AllUpdatesRule() {
     pubsubTopic_ = "";
     schemaVersion_ = "";
-    monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    monitoringNotificationChannels_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AllUpdatesRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class,
-            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
   }
 
   public static final int PUBSUB_TOPIC_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object pubsubTopic_ = "";
   /**
-   *
-   *
    * 
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -87,7 +66,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ @java.lang.Override @@ -96,15 +74,14 @@ public java.lang.String getPubsubTopic() { 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(); pubsubTopic_ = s; return s; } } /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -120,15 +97,16 @@ public java.lang.String getPubsubTopic() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -137,12 +115,9 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object schemaVersion_ = ""; /** - * - * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -153,7 +128,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ @java.lang.Override @@ -162,15 +136,14 @@ public java.lang.String getSchemaVersion() { 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(); schemaVersion_ = s; return s; } } /** - * - * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -181,15 +154,16 @@ public java.lang.String getSchemaVersion() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaVersionBytes() { + public com.google.protobuf.ByteString + getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -198,13 +172,10 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() { } public static final int MONITORING_NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -216,18 +187,14 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() {
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList + getMonitoringNotificationChannelsList() { return monitoringNotificationChannels_; } /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -239,18 +206,13 @@ public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsL
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -262,10 +224,7 @@ public int getMonitoringNotificationChannelsCount() {
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -273,8 +232,6 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -286,22 +243,18 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } public static final int DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER = 4; private boolean disableDefaultIamRecipients_ = false; /** - * - * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -310,7 +263,6 @@ public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -321,8 +273,6 @@ public boolean getDisableDefaultIamRecipients() { public static final int ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER = 5; private boolean enableProjectLevelRecipients_ = false; /** - * - * *
    * Optional. When set to true, and when the budget has a single project
    * configured, notifications will be sent to project level recipients of that
@@ -333,9 +283,7 @@ public boolean getDisableDefaultIamRecipients() {
    * cloud project.
    * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableProjectLevelRecipients. */ @java.lang.Override @@ -344,7 +292,6 @@ public boolean getEnableProjectLevelRecipients() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -356,7 +303,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(pubsubTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopic_); } @@ -364,8 +312,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaVersion_); } for (int i = 0; i < monitoringNotificationChannels_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, monitoringNotificationChannels_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, monitoringNotificationChannels_.getRaw(i)); } if (disableDefaultIamRecipients_ != false) { output.writeBool(4, disableDefaultIamRecipients_); @@ -397,12 +344,12 @@ public int getSerializedSize() { size += 1 * getMonitoringNotificationChannelsList().size(); } if (disableDefaultIamRecipients_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableDefaultIamRecipients_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, disableDefaultIamRecipients_); } if (enableProjectLevelRecipients_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableProjectLevelRecipients_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, enableProjectLevelRecipients_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -412,20 +359,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.budgets.v1beta1.AllUpdatesRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other = - (com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) obj; + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other = (com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) obj; - if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; - if (!getSchemaVersion().equals(other.getSchemaVersion())) return false; + if (!getPubsubTopic() + .equals(other.getPubsubTopic())) return false; + if (!getSchemaVersion() + .equals(other.getSchemaVersion())) return false; if (!getMonitoringNotificationChannelsList() .equals(other.getMonitoringNotificationChannelsList())) return false; - if (getDisableDefaultIamRecipients() != other.getDisableDefaultIamRecipients()) return false; - if (getEnableProjectLevelRecipients() != other.getEnableProjectLevelRecipients()) return false; + if (getDisableDefaultIamRecipients() + != other.getDisableDefaultIamRecipients()) return false; + if (getEnableProjectLevelRecipients() + != other.getEnableProjectLevelRecipients()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -446,114 +396,109 @@ public int hashCode() { hash = (53 * hash) + getMonitoringNotificationChannelsList().hashCode(); } hash = (37 * hash) + DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDefaultIamRecipients()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableDefaultIamRecipients()); hash = (37 * hash) + ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableProjectLevelRecipients()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableProjectLevelRecipients()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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; } /** - * - * *
    * AllUpdatesRule defines notifications that are sent based on budget spend
    * and thresholds.
@@ -561,48 +506,50 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.AllUpdatesRule}
    */
-  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.budgets.v1beta1.AllUpdatesRule)
       com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class,
-              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       pubsubTopic_ = "";
       schemaVersion_ = "";
-      monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      monitoringNotificationChannels_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       disableDefaultIamRecipients_ = false;
       enableProjectLevelRecipients_ = false;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
     }
 
     @java.lang.Override
@@ -621,11 +568,8 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule result =
-          new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule result = new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -654,39 +598,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRu
     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.budgets.v1beta1.AllUpdatesRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -694,8 +637,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) return this;
       if (!other.getPubsubTopic().isEmpty()) {
         pubsubTopic_ = other.pubsubTopic_;
         bitField0_ |= 0x00000001;
@@ -748,44 +690,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                pubsubTopic_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                schemaVersion_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureMonitoringNotificationChannelsIsMutable();
-                monitoringNotificationChannels_.add(s);
-                break;
-              } // case 26
-            case 32:
-              {
-                disableDefaultIamRecipients_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 40:
-              {
-                enableProjectLevelRecipients_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              pubsubTopic_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              schemaVersion_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureMonitoringNotificationChannelsIsMutable();
+              monitoringNotificationChannels_.add(s);
+              break;
+            } // case 26
+            case 32: {
+              disableDefaultIamRecipients_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              enableProjectLevelRecipients_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -795,13 +731,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object pubsubTopic_ = "";
     /**
-     *
-     *
      * 
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -817,13 +750,13 @@ public Builder mergeFrom(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; 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(); pubsubTopic_ = s; return s; @@ -832,8 +765,6 @@ public java.lang.String getPubsubTopic() { } } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -849,14 +780,15 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -864,8 +796,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -881,22 +811,18 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPubsubTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pubsubTopic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -912,7 +838,6 @@ public Builder setPubsubTopic(java.lang.String value) {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPubsubTopic() { @@ -922,8 +847,6 @@ public Builder clearPubsubTopic() { return this; } /** - * - * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -939,14 +862,12 @@ public Builder clearPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPubsubTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pubsubTopic_ = value; bitField0_ |= 0x00000001; @@ -956,8 +877,6 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { private java.lang.Object schemaVersion_ = ""; /** - * - * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -968,13 +887,13 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ public java.lang.String getSchemaVersion() { java.lang.Object ref = schemaVersion_; 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(); schemaVersion_ = s; return s; @@ -983,8 +902,6 @@ public java.lang.String getSchemaVersion() { } } /** - * - * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -995,14 +912,15 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ - public com.google.protobuf.ByteString getSchemaVersionBytes() { + public com.google.protobuf.ByteString + getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -1010,8 +928,6 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() { } } /** - * - * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -1022,22 +938,18 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -1048,7 +960,6 @@ public Builder setSchemaVersion(java.lang.String value) {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSchemaVersion() { @@ -1058,8 +969,6 @@ public Builder clearSchemaVersion() { return this; } /** - * - * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -1070,14 +979,12 @@ public Builder clearSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaVersion_ = value; bitField0_ |= 0x00000002; @@ -1087,17 +994,13 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMonitoringNotificationChannelsIsMutable() { if (!monitoringNotificationChannels_.isModifiable()) { - monitoringNotificationChannels_ = - new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); + monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); } bitField0_ |= 0x00000004; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1109,19 +1012,15 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList + getMonitoringNotificationChannelsList() { monitoringNotificationChannels_.makeImmutable(); return monitoringNotificationChannels_; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1133,18 +1032,13 @@ public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsL
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1156,10 +1050,7 @@ public int getMonitoringNotificationChannelsCount() {
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -1167,8 +1058,6 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1180,19 +1069,15 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1204,18 +1089,14 @@ public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The monitoringNotificationChannels to set. * @return This builder for chaining. */ - public Builder setMonitoringNotificationChannels(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMonitoringNotificationChannels( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.set(index, value); bitField0_ |= 0x00000004; @@ -1223,8 +1104,6 @@ public Builder setMonitoringNotificationChannels(int index, java.lang.String val return this; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1236,17 +1115,13 @@ public Builder setMonitoringNotificationChannels(int index, java.lang.String val
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannels(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMonitoringNotificationChannels( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); bitField0_ |= 0x00000004; @@ -1254,8 +1129,6 @@ public Builder addMonitoringNotificationChannels(java.lang.String value) { return this; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1267,10 +1140,7 @@ public Builder addMonitoringNotificationChannels(java.lang.String value) {
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The monitoringNotificationChannels to add. * @return This builder for chaining. */ @@ -1284,8 +1154,6 @@ public Builder addAllMonitoringNotificationChannels( return this; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1297,22 +1165,17 @@ public Builder addAllMonitoringNotificationChannels(
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearMonitoringNotificationChannels() { - monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + monitoringNotificationChannels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1324,17 +1187,13 @@ public Builder clearMonitoringNotificationChannels() {
      * for more details.
      * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMonitoringNotificationChannelsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); @@ -1343,10 +1202,8 @@ public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteSt return this; } - private boolean disableDefaultIamRecipients_; + private boolean disableDefaultIamRecipients_ ; /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1354,9 +1211,7 @@ public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteSt
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -1364,8 +1219,6 @@ public boolean getDisableDefaultIamRecipients() { return disableDefaultIamRecipients_; } /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1373,9 +1226,7 @@ public boolean getDisableDefaultIamRecipients() {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The disableDefaultIamRecipients to set. * @return This builder for chaining. */ @@ -1387,8 +1238,6 @@ public Builder setDisableDefaultIamRecipients(boolean value) { return this; } /** - * - * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1396,9 +1245,7 @@ public Builder setDisableDefaultIamRecipients(boolean value) {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDisableDefaultIamRecipients() { @@ -1408,10 +1255,8 @@ public Builder clearDisableDefaultIamRecipients() { return this; } - private boolean enableProjectLevelRecipients_; + private boolean enableProjectLevelRecipients_ ; /** - * - * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1422,9 +1267,7 @@ public Builder clearDisableDefaultIamRecipients() {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableProjectLevelRecipients. */ @java.lang.Override @@ -1432,8 +1275,6 @@ public boolean getEnableProjectLevelRecipients() { return enableProjectLevelRecipients_; } /** - * - * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1444,9 +1285,7 @@ public boolean getEnableProjectLevelRecipients() {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enableProjectLevelRecipients to set. * @return This builder for chaining. */ @@ -1458,8 +1297,6 @@ public Builder setEnableProjectLevelRecipients(boolean value) { return this; } /** - * - * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1470,9 +1307,7 @@ public Builder setEnableProjectLevelRecipients(boolean value) {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEnableProjectLevelRecipients() { @@ -1481,9 +1316,9 @@ public Builder clearEnableProjectLevelRecipients() { 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); } @@ -1493,12 +1328,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) private static final com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(); } @@ -1507,27 +1342,27 @@ public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllUpdatesRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllUpdatesRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1542,4 +1377,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java similarity index 81% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java index 7ec52a9a10f0..2be133261c7c 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface AllUpdatesRuleOrBuilder - extends +public interface AllUpdatesRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -41,13 +23,10 @@ public interface AllUpdatesRuleOrBuilder
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** - * - * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -63,14 +42,12 @@ public interface AllUpdatesRuleOrBuilder
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString getPubsubTopicBytes(); + com.google.protobuf.ByteString + getPubsubTopicBytes(); /** - * - * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -81,13 +58,10 @@ public interface AllUpdatesRuleOrBuilder
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The schemaVersion. */ java.lang.String getSchemaVersion(); /** - * - * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -98,14 +72,12 @@ public interface AllUpdatesRuleOrBuilder
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for schemaVersion. */ - com.google.protobuf.ByteString getSchemaVersionBytes(); + com.google.protobuf.ByteString + getSchemaVersionBytes(); /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -117,16 +89,12 @@ public interface AllUpdatesRuleOrBuilder
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the monitoringNotificationChannels. */ - java.util.List getMonitoringNotificationChannelsList(); + java.util.List + getMonitoringNotificationChannelsList(); /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -138,16 +106,11 @@ public interface AllUpdatesRuleOrBuilder
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of monitoringNotificationChannels. */ int getMonitoringNotificationChannelsCount(); /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -159,17 +122,12 @@ public interface AllUpdatesRuleOrBuilder
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ java.lang.String getMonitoringNotificationChannels(int index); /** - * - * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -181,18 +139,14 @@ public interface AllUpdatesRuleOrBuilder
    * for more details.
    * 
* - * - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index); + com.google.protobuf.ByteString + getMonitoringNotificationChannelsBytes(int index); /** - * - * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -201,14 +155,11 @@ public interface AllUpdatesRuleOrBuilder
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultIamRecipients. */ boolean getDisableDefaultIamRecipients(); /** - * - * *
    * Optional. When set to true, and when the budget has a single project
    * configured, notifications will be sent to project level recipients of that
@@ -219,9 +170,7 @@ public interface AllUpdatesRuleOrBuilder
    * cloud project.
    * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableProjectLevelRecipients. */ boolean getEnableProjectLevelRecipients(); diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java similarity index 66% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java index 1ef9e5a7b882..135a870ba672 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * A budget is a plan that describes what you expect to spend on Cloud
  * projects, plus the rules to execute as spend is tracked against that plan,
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Budget}
  */
-public final class Budget extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Budget extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.Budget)
     BudgetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Budget.newBuilder() to construct.
   private Budget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Budget() {
     name_ = "";
     displayName_ = "";
@@ -50,32 +32,28 @@ private Budget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Budget();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.Budget.class,
-            com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.Budget.class, com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -92,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -108,15 +84,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,19 +102,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -146,30 +119,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; } } /** - * - * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; - * * @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 { @@ -180,18 +153,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int BUDGET_FILTER_FIELD_NUMBER = 3; private com.google.cloud.billing.budgets.v1beta1.Filter budgetFilter_; /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ @java.lang.Override @@ -199,59 +167,41 @@ public boolean hasBudgetFilter() { return budgetFilter_ != null; } /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter() { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; } /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder() { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; } public static final int AMOUNT_FIELD_NUMBER = 4; private com.google.cloud.billing.budgets.v1beta1.BudgetAmount amount_; /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ @java.lang.Override @@ -259,49 +209,33 @@ public boolean hasAmount() { return amount_ != null; } /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount() { - return amount_ == null - ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; } /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder() { - return amount_ == null - ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; } public static final int THRESHOLD_RULES_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List thresholdRules_; /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -311,18 +245,13 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountO
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getThresholdRulesList() { + public java.util.List getThresholdRulesList() { return thresholdRules_; } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -332,18 +261,14 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountO
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getThresholdRulesOrBuilderList() { return thresholdRules_; } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -353,17 +278,13 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountO
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getThresholdRulesCount() { return thresholdRules_.size(); } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -373,17 +294,13 @@ public int getThresholdRulesCount() {
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index) { return thresholdRules_.get(index); } /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -393,9 +310,7 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( @@ -406,17 +321,12 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresh public static final int ALL_UPDATES_RULE_FIELD_NUMBER = 6; private com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule allUpdatesRule_; /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allUpdatesRule field is set. */ @java.lang.Override @@ -424,52 +334,35 @@ public boolean hasAllUpdatesRule() { return allUpdatesRule_ != null; } /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The allUpdatesRule. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule() { - return allUpdatesRule_ == null - ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() - : allUpdatesRule_; + return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; } /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder - getAllUpdatesRuleOrBuilder() { - return allUpdatesRule_ == null - ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() - : allUpdatesRule_; + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder() { + return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; } public static final int ETAG_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -477,7 +370,6 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -486,15 +378,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -502,15 +393,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -519,7 +411,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -531,7 +422,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_); } @@ -569,16 +461,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (budgetFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBudgetFilter()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBudgetFilter()); } if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAmount()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAmount()); } for (int i = 0; i < thresholdRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, thresholdRules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, thresholdRules_.get(i)); } if (allUpdatesRule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAllUpdatesRule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getAllUpdatesRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); @@ -591,30 +487,36 @@ 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.budgets.v1beta1.Budget)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.Budget other = - (com.google.cloud.billing.budgets.v1beta1.Budget) obj; + com.google.cloud.billing.budgets.v1beta1.Budget other = (com.google.cloud.billing.budgets.v1beta1.Budget) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasBudgetFilter() != other.hasBudgetFilter()) return false; if (hasBudgetFilter()) { - if (!getBudgetFilter().equals(other.getBudgetFilter())) return false; + if (!getBudgetFilter() + .equals(other.getBudgetFilter())) return false; } if (hasAmount() != other.hasAmount()) return false; if (hasAmount()) { - if (!getAmount().equals(other.getAmount())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; } - if (!getThresholdRulesList().equals(other.getThresholdRulesList())) return false; + if (!getThresholdRulesList() + .equals(other.getThresholdRulesList())) return false; if (hasAllUpdatesRule() != other.hasAllUpdatesRule()) return false; if (hasAllUpdatesRule()) { - if (!getAllUpdatesRule().equals(other.getAllUpdatesRule())) return false; + if (!getAllUpdatesRule() + .equals(other.getAllUpdatesRule())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -653,104 +555,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1beta1.Budget parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1beta1.Budget parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.Budget parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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 budget is a plan that describes what you expect to spend on Cloud
    * projects, plus the rules to execute as spend is tracked against that plan,
@@ -761,32 +658,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Budget}
    */
-  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.budgets.v1beta1.Budget)
       com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.Budget.class,
-              com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.Budget.class, com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.Budget.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -820,9 +718,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
     }
 
     @java.lang.Override
@@ -841,18 +739,14 @@ public com.google.cloud.billing.budgets.v1beta1.Budget build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.Budget buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.Budget result =
-          new com.google.cloud.billing.budgets.v1beta1.Budget(this);
+      com.google.cloud.billing.budgets.v1beta1.Budget result = new com.google.cloud.billing.budgets.v1beta1.Budget(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.billing.budgets.v1beta1.Budget result) {
+    private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1beta1.Budget result) {
       if (thresholdRulesBuilder_ == null) {
         if (((bitField0_ & 0x00000010) != 0)) {
           thresholdRules_ = java.util.Collections.unmodifiableList(thresholdRules_);
@@ -873,15 +767,19 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Budget resul
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.budgetFilter_ =
-            budgetFilterBuilder_ == null ? budgetFilter_ : budgetFilterBuilder_.build();
+        result.budgetFilter_ = budgetFilterBuilder_ == null
+            ? budgetFilter_
+            : budgetFilterBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.amount_ = amountBuilder_ == null ? amount_ : amountBuilder_.build();
+        result.amount_ = amountBuilder_ == null
+            ? amount_
+            : amountBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.allUpdatesRule_ =
-            allUpdatesRuleBuilder_ == null ? allUpdatesRule_ : allUpdatesRuleBuilder_.build();
+        result.allUpdatesRule_ = allUpdatesRuleBuilder_ == null
+            ? allUpdatesRule_
+            : allUpdatesRuleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.etag_ = etag_;
@@ -892,39 +790,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Budget resul
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.budgets.v1beta1.Budget) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Budget) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Budget)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -932,8 +829,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Budget other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -968,10 +864,9 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Budget other)
             thresholdRulesBuilder_ = null;
             thresholdRules_ = other.thresholdRules_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            thresholdRulesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getThresholdRulesFieldBuilder()
-                    : null;
+            thresholdRulesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getThresholdRulesFieldBuilder() : null;
           } else {
             thresholdRulesBuilder_.addAllMessages(other.thresholdRules_);
           }
@@ -1011,63 +906,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getBudgetFilterFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.cloud.billing.budgets.v1beta1.ThresholdRule m =
-                    input.readMessage(
-                        com.google.cloud.billing.budgets.v1beta1.ThresholdRule.parser(),
-                        extensionRegistry);
-                if (thresholdRulesBuilder_ == null) {
-                  ensureThresholdRulesIsMutable();
-                  thresholdRules_.add(m);
-                } else {
-                  thresholdRulesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getAllUpdatesRuleFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getBudgetFilterFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getAmountFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              com.google.cloud.billing.budgets.v1beta1.ThresholdRule m =
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1beta1.ThresholdRule.parser(),
+                      extensionRegistry);
+              if (thresholdRulesBuilder_ == null) {
+                ensureThresholdRulesIsMutable();
+                thresholdRules_.add(m);
+              } else {
+                thresholdRulesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getAllUpdatesRuleFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1077,13 +970,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1091,13 +981,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1106,8 +996,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1115,14 +1003,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1130,8 +1019,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1139,22 +1026,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1162,7 +1045,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1172,8 +1054,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1181,14 +1061,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1198,21 +1076,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; - * * @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; @@ -1221,22 +1097,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; - * * @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 { @@ -1244,37 +1119,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1284,22 +1152,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1309,64 +1173,45 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.budgets.v1beta1.Filter budgetFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, - com.google.cloud.billing.budgets.v1beta1.Filter.Builder, - com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> - budgetFilterBuilder_; + com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> budgetFilterBuilder_; /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ public boolean hasBudgetFilter() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ public com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter() { if (budgetFilterBuilder_ == null) { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; } else { return budgetFilterBuilder_.getMessage(); } } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter value) { if (budgetFilterBuilder_ == null) { @@ -1382,17 +1227,13 @@ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter v return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBudgetFilter( com.google.cloud.billing.budgets.v1beta1.Filter.Builder builderForValue) { @@ -1406,24 +1247,19 @@ public Builder setBudgetFilter( return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter value) { if (budgetFilterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && budgetFilter_ != null - && budgetFilter_ - != com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + budgetFilter_ != null && + budgetFilter_ != com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) { getBudgetFilterBuilder().mergeFrom(value); } else { budgetFilter_ = value; @@ -1436,17 +1272,13 @@ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBudgetFilter() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1459,17 +1291,13 @@ public Builder clearBudgetFilter() { return this; } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.Filter.Builder getBudgetFilterBuilder() { bitField0_ |= 0x00000004; @@ -1477,52 +1305,40 @@ public com.google.cloud.billing.budgets.v1beta1.Filter.Builder getBudgetFilterBu return getBudgetFilterFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder() { if (budgetFilterBuilder_ != null) { return budgetFilterBuilder_.getMessageOrBuilder(); } else { - return budgetFilter_ == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() - : budgetFilter_; + return budgetFilter_ == null ? + com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; } } /** - * - * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, - com.google.cloud.billing.budgets.v1beta1.Filter.Builder, - com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> getBudgetFilterFieldBuilder() { if (budgetFilterBuilder_ == null) { - budgetFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, - com.google.cloud.billing.budgets.v1beta1.Filter.Builder, - com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder>( - getBudgetFilter(), getParentForChildren(), isClean()); + budgetFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder>( + getBudgetFilter(), + getParentForChildren(), + isClean()); budgetFilter_ = null; } return budgetFilterBuilder_; @@ -1530,58 +1346,39 @@ public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterO private com.google.cloud.billing.budgets.v1beta1.BudgetAmount amount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> - amountBuilder_; + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> amountBuilder_; /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ public boolean hasAmount() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount() { if (amountBuilder_ == null) { - return amount_ == null - ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; } else { return amountBuilder_.getMessage(); } } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount value) { if (amountBuilder_ == null) { @@ -1597,15 +1394,11 @@ public Builder setAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount v return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAmount( com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder builderForValue) { @@ -1619,22 +1412,17 @@ public Builder setAmount( return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount value) { if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && amount_ != null - && amount_ - != com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + amount_ != null && + amount_ != com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) { getAmountBuilder().mergeFrom(value); } else { amount_ = value; @@ -1647,15 +1435,11 @@ public Builder mergeAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1668,15 +1452,11 @@ public Builder clearAmount() { return this; } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder getAmountBuilder() { bitField0_ |= 0x00000008; @@ -1684,74 +1464,54 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder getAmountBu return getAmountFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { - return amount_ == null - ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() - : amount_; + return amount_ == null ? + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; } } /** - * - * *
      * Required. Budgeted amount.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { - amountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder>( - getAmount(), getParentForChildren(), isClean()); + amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder>( + getAmount(), + getParentForChildren(), + isClean()); amount_ = null; } return amountBuilder_; } private java.util.List thresholdRules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureThresholdRulesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - thresholdRules_ = - new java.util.ArrayList( - thresholdRules_); + thresholdRules_ = new java.util.ArrayList(thresholdRules_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> - thresholdRulesBuilder_; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> thresholdRulesBuilder_; /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1761,12 +1521,9 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesList() { + public java.util.List getThresholdRulesList() { if (thresholdRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(thresholdRules_); } else { @@ -1774,8 +1531,6 @@ private void ensureThresholdRulesIsMutable() { } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1785,9 +1540,7 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getThresholdRulesCount() { if (thresholdRulesBuilder_ == null) { @@ -1797,8 +1550,6 @@ public int getThresholdRulesCount() { } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1808,9 +1559,7 @@ public int getThresholdRulesCount() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1820,8 +1569,6 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules( } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1831,9 +1578,7 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { @@ -1850,8 +1595,6 @@ public Builder setThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1861,9 +1604,7 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1877,8 +1618,6 @@ public Builder setThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1888,9 +1627,7 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { if (thresholdRulesBuilder_ == null) { @@ -1906,8 +1643,6 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.Thresh return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1917,9 +1652,7 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.Thresh
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { @@ -1936,8 +1669,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1947,9 +1678,7 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1963,8 +1692,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1974,9 +1701,7 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1990,8 +1715,6 @@ public Builder addThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2001,16 +1724,14 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllThresholdRules( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (thresholdRulesBuilder_ == null) { ensureThresholdRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholdRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, thresholdRules_); onChanged(); } else { thresholdRulesBuilder_.addAllMessages(values); @@ -2018,8 +1739,6 @@ public Builder addAllThresholdRules( return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2029,9 +1748,7 @@ public Builder addAllThresholdRules(
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearThresholdRules() { if (thresholdRulesBuilder_ == null) { @@ -2044,8 +1761,6 @@ public Builder clearThresholdRules() { return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2055,9 +1770,7 @@ public Builder clearThresholdRules() {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -2070,8 +1783,6 @@ public Builder removeThresholdRules(int index) { return this; } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2081,17 +1792,13 @@ public Builder removeThresholdRules(int index) {
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresholdRulesBuilder( int index) { return getThresholdRulesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2101,21 +1808,16 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder - getThresholdRulesOrBuilder(int index) { + public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( + int index) { if (thresholdRulesBuilder_ == null) { - return thresholdRules_.get(index); - } else { + return thresholdRules_.get(index); } else { return thresholdRulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2125,12 +1827,10 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesOrBuilderList() { + public java.util.List + getThresholdRulesOrBuilderList() { if (thresholdRulesBuilder_ != null) { return thresholdRulesBuilder_.getMessageOrBuilderList(); } else { @@ -2138,8 +1838,6 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho } } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2149,18 +1847,13 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder - addThresholdRulesBuilder() { - return getThresholdRulesFieldBuilder() - .addBuilder(com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresholdRulesBuilder() { + return getThresholdRulesFieldBuilder().addBuilder( + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2170,19 +1863,14 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresholdRulesBuilder( int index) { - return getThresholdRulesFieldBuilder() - .addBuilder( - index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder().addBuilder( + index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); } /** - * - * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -2192,26 +1880,18 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresho
      * Required if using email notifications.
      * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getThresholdRulesBuilderList() { + public java.util.List + getThresholdRulesBuilderList() { return getThresholdRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> getThresholdRulesFieldBuilder() { if (thresholdRulesBuilder_ == null) { - thresholdRulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, - com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder>( + thresholdRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder>( thresholdRules_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -2223,64 +1903,44 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresho private com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule allUpdatesRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> - allUpdatesRuleBuilder_; + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> allUpdatesRuleBuilder_; /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allUpdatesRule field is set. */ public boolean hasAllUpdatesRule() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The allUpdatesRule. */ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule() { if (allUpdatesRuleBuilder_ == null) { - return allUpdatesRule_ == null - ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() - : allUpdatesRule_; + return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; } else { return allUpdatesRuleBuilder_.getMessage(); } } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAllUpdatesRule( - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { + public Builder setAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { if (allUpdatesRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2294,16 +1954,12 @@ public Builder setAllUpdatesRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAllUpdatesRule( com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder builderForValue) { @@ -2317,24 +1973,18 @@ public Builder setAllUpdatesRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeAllUpdatesRule( - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { + public Builder mergeAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { if (allUpdatesRuleBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && allUpdatesRule_ != null - && allUpdatesRule_ - != com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + allUpdatesRule_ != null && + allUpdatesRule_ != com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) { getAllUpdatesRuleBuilder().mergeFrom(value); } else { allUpdatesRule_ = value; @@ -2347,16 +1997,12 @@ public Builder mergeAllUpdatesRule( return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAllUpdatesRule() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2369,69 +2015,51 @@ public Builder clearAllUpdatesRule() { return this; } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder - getAllUpdatesRuleBuilder() { + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder getAllUpdatesRuleBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAllUpdatesRuleFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder - getAllUpdatesRuleOrBuilder() { + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder() { if (allUpdatesRuleBuilder_ != null) { return allUpdatesRuleBuilder_.getMessageOrBuilder(); } else { - return allUpdatesRule_ == null - ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() - : allUpdatesRule_; + return allUpdatesRule_ == null ? + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; } } /** - * - * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> getAllUpdatesRuleFieldBuilder() { if (allUpdatesRuleBuilder_ == null) { - allUpdatesRuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder>( - getAllUpdatesRule(), getParentForChildren(), isClean()); + allUpdatesRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder>( + getAllUpdatesRule(), + getParentForChildren(), + isClean()); allUpdatesRule_ = null; } return allUpdatesRuleBuilder_; @@ -2439,8 +2067,6 @@ public Builder clearAllUpdatesRule() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2448,13 +2074,13 @@ public Builder clearAllUpdatesRule() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -2463,8 +2089,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2472,14 +2096,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -2487,8 +2112,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2496,22 +2119,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2519,7 +2138,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2529,8 +2147,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2538,23 +2154,21 @@ public Builder clearEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000040; 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); } @@ -2564,12 +2178,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.Budget) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.Budget) private static final com.google.cloud.billing.budgets.v1beta1.Budget DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.Budget(); } @@ -2578,27 +2192,27 @@ public static com.google.cloud.billing.budgets.v1beta1.Budget getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Budget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Budget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2613,4 +2227,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.Budget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java similarity index 74% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java index be8073e99642..13de2cab0510 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java @@ -1,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * The budgeted amount for each usage period.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.BudgetAmount} */ -public final class BudgetAmount extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BudgetAmount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.BudgetAmount) BudgetAmountOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BudgetAmount.newBuilder() to construct. private BudgetAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BudgetAmount() {} + private BudgetAmount() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BudgetAmount(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); } private int budgetAmountCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object budgetAmount_; - public enum BudgetAmountCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SPECIFIED_AMOUNT(1), LAST_PERIOD_AMOUNT(2), BUDGETAMOUNT_NOT_SET(0); private final int value; - private BudgetAmountCase(int value) { this.value = value; } @@ -89,30 +67,25 @@ public static BudgetAmountCase valueOf(int value) { public static BudgetAmountCase forNumber(int value) { switch (value) { - case 1: - return SPECIFIED_AMOUNT; - case 2: - return LAST_PERIOD_AMOUNT; - case 0: - return BUDGETAMOUNT_NOT_SET; - default: - return null; + case 1: return SPECIFIED_AMOUNT; + case 2: return LAST_PERIOD_AMOUNT; + case 0: return BUDGETAMOUNT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public BudgetAmountCase getBudgetAmountCase() { - return BudgetAmountCase.forNumber(budgetAmountCase_); + public BudgetAmountCase + getBudgetAmountCase() { + return BudgetAmountCase.forNumber( + budgetAmountCase_); } public static final int SPECIFIED_AMOUNT_FIELD_NUMBER = 1; /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -122,7 +95,6 @@ public BudgetAmountCase getBudgetAmountCase() {
    * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -130,8 +102,6 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -141,19 +111,16 @@ public boolean hasSpecifiedAmount() {
    * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ @java.lang.Override public com.google.type.Money getSpecifiedAmount() { if (budgetAmountCase_ == 1) { - return (com.google.type.Money) budgetAmount_; + return (com.google.type.Money) budgetAmount_; } return com.google.type.Money.getDefaultInstance(); } /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -167,15 +134,13 @@ public com.google.type.Money getSpecifiedAmount() {
   @java.lang.Override
   public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     if (budgetAmountCase_ == 1) {
-      return (com.google.type.Money) budgetAmount_;
+       return (com.google.type.Money) budgetAmount_;
     }
     return com.google.type.Money.getDefaultInstance();
   }
 
   public static final int LAST_PERIOD_AMOUNT_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -185,7 +150,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -193,8 +157,6 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -204,19 +166,16 @@ public boolean hasLastPeriodAmount() {
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAmount() { if (budgetAmountCase_ == 2) { - return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_; + return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_; } return com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance(); } /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -228,16 +187,14 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm
    * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
    */
   @java.lang.Override
-  public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder
-      getLastPeriodAmountOrBuilder() {
+  public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
     if (budgetAmountCase_ == 2) {
-      return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_;
+       return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_;
     }
     return com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -249,13 +206,13 @@ 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 (budgetAmountCase_ == 1) {
       output.writeMessage(1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      output.writeMessage(
-          2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
+      output.writeMessage(2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
     }
     getUnknownFields().writeTo(output);
   }
@@ -267,14 +224,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (budgetAmountCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.type.Money) budgetAmount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -284,21 +239,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.budgets.v1beta1.BudgetAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.BudgetAmount other =
-        (com.google.cloud.billing.budgets.v1beta1.BudgetAmount) obj;
+    com.google.cloud.billing.budgets.v1beta1.BudgetAmount other = (com.google.cloud.billing.budgets.v1beta1.BudgetAmount) obj;
 
     if (!getBudgetAmountCase().equals(other.getBudgetAmountCase())) return false;
     switch (budgetAmountCase_) {
       case 1:
-        if (!getSpecifiedAmount().equals(other.getSpecifiedAmount())) return false;
+        if (!getSpecifiedAmount()
+            .equals(other.getSpecifiedAmount())) return false;
         break;
       case 2:
-        if (!getLastPeriodAmount().equals(other.getLastPeriodAmount())) return false;
+        if (!getLastPeriodAmount()
+            .equals(other.getLastPeriodAmount())) return false;
         break;
       case 0:
       default:
@@ -332,136 +288,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount prototype) {
+  public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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;
   }
   /**
-   *
-   *
    * 
    * The budgeted amount for each usage period.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.BudgetAmount} */ - 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.budgets.v1beta1.BudgetAmount) com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.BudgetAmount.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override @@ -499,11 +450,8 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmount buildPartial() { - com.google.cloud.billing.budgets.v1beta1.BudgetAmount result = - new com.google.cloud.billing.budgets.v1beta1.BudgetAmount(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.BudgetAmount result = new com.google.cloud.billing.budgets.v1beta1.BudgetAmount(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -516,10 +464,12 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.BudgetAmount private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.BudgetAmount result) { result.budgetAmountCase_ = budgetAmountCase_; result.budgetAmount_ = this.budgetAmount_; - if (budgetAmountCase_ == 1 && specifiedAmountBuilder_ != null) { + if (budgetAmountCase_ == 1 && + specifiedAmountBuilder_ != null) { result.budgetAmount_ = specifiedAmountBuilder_.build(); } - if (budgetAmountCase_ == 2 && lastPeriodAmountBuilder_ != null) { + if (budgetAmountCase_ == 2 && + lastPeriodAmountBuilder_ != null) { result.budgetAmount_ = lastPeriodAmountBuilder_.build(); } } @@ -528,39 +478,38 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.BudgetA 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.budgets.v1beta1.BudgetAmount) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.BudgetAmount) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.BudgetAmount)other); } else { super.mergeFrom(other); return this; @@ -568,23 +517,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.BudgetAmount other) { - if (other == com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) return this; switch (other.getBudgetAmountCase()) { - case SPECIFIED_AMOUNT: - { - mergeSpecifiedAmount(other.getSpecifiedAmount()); - break; - } - case LAST_PERIOD_AMOUNT: - { - mergeLastPeriodAmount(other.getLastPeriodAmount()); - break; - } - case BUDGETAMOUNT_NOT_SET: - { - break; - } + case SPECIFIED_AMOUNT: { + mergeSpecifiedAmount(other.getSpecifiedAmount()); + break; + } + case LAST_PERIOD_AMOUNT: { + mergeLastPeriodAmount(other.getLastPeriodAmount()); + break; + } + case BUDGETAMOUNT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -612,26 +557,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSpecifiedAmountFieldBuilder().getBuilder(), extensionRegistry); - budgetAmountCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getLastPeriodAmountFieldBuilder().getBuilder(), extensionRegistry); - budgetAmountCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSpecifiedAmountFieldBuilder().getBuilder(), + extensionRegistry); + budgetAmountCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getLastPeriodAmountFieldBuilder().getBuilder(), + extensionRegistry); + budgetAmountCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -641,12 +586,12 @@ public Builder mergeFrom( } // finally return this; } - private int budgetAmountCase_ = 0; private java.lang.Object budgetAmount_; - - public BudgetAmountCase getBudgetAmountCase() { - return BudgetAmountCase.forNumber(budgetAmountCase_); + public BudgetAmountCase + getBudgetAmountCase() { + return BudgetAmountCase.forNumber( + budgetAmountCase_); } public Builder clearBudgetAmount() { @@ -659,11 +604,8 @@ public Builder clearBudgetAmount() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - specifiedAmountBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> specifiedAmountBuilder_; /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -673,7 +615,6 @@ public Builder clearBudgetAmount() {
      * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -681,8 +622,6 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -692,7 +631,6 @@ public boolean hasSpecifiedAmount() {
      * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ @java.lang.Override @@ -710,8 +648,6 @@ public com.google.type.Money getSpecifiedAmount() { } } /** - * - * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -736,8 +672,6 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -748,7 +682,8 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
      *
      * .google.type.Money specified_amount = 1;
      */
-    public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue) {
+    public Builder setSpecifiedAmount(
+        com.google.type.Money.Builder builderForValue) {
       if (specifiedAmountBuilder_ == null) {
         budgetAmount_ = builderForValue.build();
         onChanged();
@@ -759,8 +694,6 @@ public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -773,11 +706,10 @@ public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
      */
     public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       if (specifiedAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 1 && budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
-          budgetAmount_ =
-              com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (budgetAmountCase_ == 1 &&
+            budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
+          budgetAmount_ = com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
+              .mergeFrom(value).buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -793,8 +725,6 @@ public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -822,8 +752,6 @@ public Builder clearSpecifiedAmount() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -838,8 +766,6 @@ public com.google.type.Money.Builder getSpecifiedAmountBuilder() {
       return getSpecifiedAmountFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -862,8 +788,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -875,18 +799,17 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * .google.type.Money specified_amount = 1;
      */
     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> 
         getSpecifiedAmountFieldBuilder() {
       if (specifiedAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 1)) {
           budgetAmount_ = com.google.type.Money.getDefaultInstance();
         }
-        specifiedAmountBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Money,
-                com.google.type.Money.Builder,
-                com.google.type.MoneyOrBuilder>(
-                (com.google.type.Money) budgetAmount_, getParentForChildren(), isClean());
+        specifiedAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
+                (com.google.type.Money) budgetAmount_,
+                getParentForChildren(),
+                isClean());
         budgetAmount_ = null;
       }
       budgetAmountCase_ = 1;
@@ -895,13 +818,8 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>
-        lastPeriodAmountBuilder_;
+        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder> lastPeriodAmountBuilder_;
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -911,7 +829,6 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -919,8 +836,6 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** - * - * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -930,7 +845,6 @@ public boolean hasLastPeriodAmount() {
      * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ @java.lang.Override @@ -948,8 +862,6 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm } } /** - * - * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -960,8 +872,7 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder setLastPeriodAmount(
-        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
+    public Builder setLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -975,8 +886,6 @@ public Builder setLastPeriodAmount(
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -999,8 +908,6 @@ public Builder setLastPeriodAmount(
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1011,17 +918,12 @@ public Builder setLastPeriodAmount(
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder mergeLastPeriodAmount(
-        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
+    public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 2
-            && budgetAmount_
-                != com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) {
-          budgetAmount_ =
-              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder(
-                      (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (budgetAmountCase_ == 2 &&
+            budgetAmount_ != com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) {
+          budgetAmount_ = com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_)
+              .mergeFrom(value).buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -1037,8 +939,6 @@ public Builder mergeLastPeriodAmount(
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1066,8 +966,6 @@ public Builder clearLastPeriodAmount() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1078,13 +976,10 @@ public Builder clearLastPeriodAmount() {
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder
-        getLastPeriodAmountBuilder() {
+    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder getLastPeriodAmountBuilder() {
       return getLastPeriodAmountFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1096,8 +991,7 @@ public Builder clearLastPeriodAmount() {
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
     @java.lang.Override
-    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder
-        getLastPeriodAmountOrBuilder() {
+    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
       if ((budgetAmountCase_ == 2) && (lastPeriodAmountBuilder_ != null)) {
         return lastPeriodAmountBuilder_.getMessageOrBuilder();
       } else {
@@ -1108,8 +1002,6 @@ public Builder clearLastPeriodAmount() {
       }
     }
     /**
-     *
-     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1121,20 +1013,14 @@ public Builder clearLastPeriodAmount() {
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>
+        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder> 
         getLastPeriodAmountFieldBuilder() {
       if (lastPeriodAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 2)) {
-          budgetAmount_ =
-              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
+          budgetAmount_ = com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
         }
-        lastPeriodAmountBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
-                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
-                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>(
+        lastPeriodAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>(
                 (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_,
                 getParentForChildren(),
                 isClean());
@@ -1144,9 +1030,9 @@ public Builder clearLastPeriodAmount() {
       onChanged();
       return lastPeriodAmountBuilder_;
     }
-
     @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);
     }
 
@@ -1156,12 +1042,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.BudgetAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.BudgetAmount)
   private static final com.google.cloud.billing.budgets.v1beta1.BudgetAmount DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.BudgetAmount();
   }
@@ -1170,27 +1056,27 @@ public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BudgetAmount parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BudgetAmount parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1205,4 +1091,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
similarity index 83%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
index 2d5ed5c4e4c4..3860d523c051 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface BudgetAmountOrBuilder
-    extends
+public interface BudgetAmountOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.BudgetAmount)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -35,13 +17,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.type.Money specified_amount = 1; - * * @return Whether the specifiedAmount field is set. */ boolean hasSpecifiedAmount(); /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -51,13 +30,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.type.Money specified_amount = 1; - * * @return The specifiedAmount. */ com.google.type.Money getSpecifiedAmount(); /** - * - * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -71,8 +47,6 @@ public interface BudgetAmountOrBuilder
   com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder();
 
   /**
-   *
-   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -82,13 +56,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return Whether the lastPeriodAmount field is set. */ boolean hasLastPeriodAmount(); /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -98,13 +69,10 @@ public interface BudgetAmountOrBuilder
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; - * * @return The lastPeriodAmount. */ com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAmount(); /** - * - * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
new file mode 100644
index 000000000000..5a852f3336b4
--- /dev/null
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
@@ -0,0 +1,198 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1beta1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1beta1;
+
+public final class BudgetModel {
+  private BudgetModel() {}
+  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_budgets_v1beta1_Budget_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n7google/cloud/billing/budgets/v1beta1/b" +
+      "udget_model.proto\022$google.cloud.billing." +
+      "budgets.v1beta1\032\037google/api/field_behavi" +
+      "or.proto\032\031google/api/resource.proto\032\034goo" +
+      "gle/protobuf/struct.proto\032\026google/type/d" +
+      "ate.proto\032\027google/type/money.proto\"\344\003\n\006B" +
+      "udget\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_nam" +
+      "e\030\002 \001(\t\022I\n\rbudget_filter\030\003 \001(\0132,.google." +
+      "cloud.billing.budgets.v1beta1.FilterB\004\342A" +
+      "\001\001\022H\n\006amount\030\004 \001(\01322.google.cloud.billin" +
+      "g.budgets.v1beta1.BudgetAmountB\004\342A\001\002\022R\n\017" +
+      "threshold_rules\030\005 \003(\01323.google.cloud.bil" +
+      "ling.budgets.v1beta1.ThresholdRuleB\004\342A\001\001" +
+      "\022T\n\020all_updates_rule\030\006 \001(\01324.google.clou" +
+      "d.billing.budgets.v1beta1.AllUpdatesRule" +
+      "B\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001\001:]\352AZ\n$billing" +
+      "budgets.googleapis.com/Budget\0222billingAc" +
+      "counts/{billing_account}/budgets/{budget" +
+      "}\"\245\001\n\014BudgetAmount\022.\n\020specified_amount\030\001" +
+      " \001(\0132\022.google.type.MoneyH\000\022T\n\022last_perio" +
+      "d_amount\030\002 \001(\01326.google.cloud.billing.bu" +
+      "dgets.v1beta1.LastPeriodAmountH\000B\017\n\rbudg" +
+      "et_amount\"\022\n\020LastPeriodAmount\"\317\001\n\rThresh" +
+      "oldRule\022\037\n\021threshold_percent\030\001 \001(\001B\004\342A\001\002" +
+      "\022T\n\013spend_basis\030\002 \001(\01629.google.cloud.bil" +
+      "ling.budgets.v1beta1.ThresholdRule.Basis" +
+      "B\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021" +
+      "\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\"" +
+      "\327\001\n\016AllUpdatesRule\022\032\n\014pubsub_topic\030\001 \001(\t" +
+      "B\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004\342A\001\001\022.\n " +
+      "monitoring_notification_channels\030\003 \003(\tB\004" +
+      "\342A\001\001\022,\n\036disable_default_iam_recipients\030\004" +
+      " \001(\010B\004\342A\001\001\022-\n\037enable_project_level_recip" +
+      "ients\030\005 \001(\010B\004\342A\001\001\"\341\005\n\006Filter\022\026\n\010projects" +
+      "\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(\t" +
+      "B\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022g\n\026cr" +
+      "edit_types_treatment\030\004 \001(\0162A.google.clou" +
+      "d.billing.budgets.v1beta1.Filter.CreditT" +
+      "ypesTreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342" +
+      "A\001\001\022\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022N\n\006labels" +
+      "\030\006 \003(\01328.google.cloud.billing.budgets.v1" +
+      "beta1.Filter.LabelsEntryB\004\342A\001\001\022U\n\017calend" +
+      "ar_period\030\010 \001(\01624.google.cloud.billing.b" +
+      "udgets.v1beta1.CalendarPeriodB\004\342A\001\001H\000\022Q\n" +
+      "\rcustom_period\030\t \001(\01322.google.cloud.bill" +
+      "ing.budgets.v1beta1.CustomPeriodB\004\342A\001\001H\000" +
+      "\032I\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 " +
+      "\001(\0132\032.google.protobuf.ListValue:\0028\001\"\217\001\n\024" +
+      "CreditTypesTreatment\022&\n\"CREDIT_TYPES_TRE" +
+      "ATMENT_UNSPECIFIED\020\000\022\027\n\023INCLUDE_ALL_CRED" +
+      "ITS\020\001\022\027\n\023EXCLUDE_ALL_CREDITS\020\002\022\035\n\031INCLUD" +
+      "E_SPECIFIED_CREDITS\020\003B\016\n\014usage_period\"f\n" +
+      "\014CustomPeriod\022+\n\nstart_date\030\001 \001(\0132\021.goog" +
+      "le.type.DateB\004\342A\001\002\022)\n\010end_date\030\002 \001(\0132\021.g" +
+      "oogle.type.DateB\004\342A\001\001*S\n\016CalendarPeriod\022" +
+      "\037\n\033CALENDAR_PERIOD_UNSPECIFIED\020\000\022\t\n\005MONT" +
+      "H\020\001\022\013\n\007QUARTER\020\002\022\010\n\004YEAR\020\003Bp\n(com.google" +
+      ".cloud.billing.budgets.v1beta1P\001ZBcloud." +
+      "google.com/go/billing/budgets/apiv1beta1" +
+      "/budgetspb;budgetspbb\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.protobuf.StructProto.getDescriptor(),
+          com.google.type.DateProto.getDescriptor(),
+          com.google.type.MoneyProto.getDescriptor(),
+        });
+    internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "BudgetFilter", "Amount", "ThresholdRules", "AllUpdatesRule", "Etag", });
+    internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor,
+        new java.lang.String[] { "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", });
+    internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor,
+        new java.lang.String[] { });
+    internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor,
+        new java.lang.String[] { "ThresholdPercent", "SpendBasis", });
+    internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor,
+        new java.lang.String[] { "PubsubTopic", "SchemaVersion", "MonitoringNotificationChannels", "DisableDefaultIamRecipients", "EnableProjectLevelRecipients", });
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor,
+        new java.lang.String[] { "Projects", "ResourceAncestors", "CreditTypes", "CreditTypesTreatment", "Services", "Subaccounts", "Labels", "CalendarPeriod", "CustomPeriod", "UsagePeriod", });
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor =
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor,
+        new java.lang.String[] { "StartDate", "EndDate", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.type.DateProto.getDescriptor();
+    com.google.type.MoneyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
similarity index 100%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
similarity index 66%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
index f9f7acf624be..33b9e9490e9c 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface BudgetOrBuilder
-    extends
+public interface BudgetOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.Budget)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -33,13 +15,10 @@ public interface BudgetOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -47,129 +26,94 @@ public interface BudgetOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the budgetFilter field is set. */ boolean hasBudgetFilter(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The budgetFilter. */ com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter(); /** - * - * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the amount field is set. */ boolean hasAmount(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The amount. */ com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount(); /** - * - * *
    * Required. Budgeted amount.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -179,14 +123,11 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getThresholdRulesList(); + java.util.List + getThresholdRulesList(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -196,14 +137,10 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -213,14 +150,10 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getThresholdRulesCount(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -230,15 +163,11 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getThresholdRulesOrBuilderList(); /** - * - * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -248,60 +177,42 @@ public interface BudgetOrBuilder
    * Required if using email notifications.
    * 
* - * - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( int index); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allUpdatesRule field is set. */ boolean hasAllUpdatesRule(); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The allUpdatesRule. */ com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule(); /** - * - * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder(); /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -309,13 +220,10 @@ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRule
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -323,8 +231,8 @@ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRule
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java new file mode 100644 index 000000000000..12cdfc30eefe --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java @@ -0,0 +1,179 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public final class BudgetServiceOuterClass { + private BudgetServiceOuterClass() {} + 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_budgets_v1beta1_CreateBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/billing/budgets/v1beta1/b" + + "udget_service.proto\022$google.cloud.billin" + + "g.budgets.v1beta1\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\0327google/cloud/billing/budge" + + "ts/v1beta1/budget_model.proto\032\033google/pr" + + "otobuf/empty.proto\032 google/protobuf/fiel" + + "d_mask.proto\"\230\001\n\023CreateBudgetRequest\022=\n\006" + + "parent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.go" + + "ogleapis.com/Budget\022B\n\006budget\030\002 \001(\0132,.go" + + "ogle.cloud.billing.budgets.v1beta1.Budge" + + "tB\004\342A\001\002\"\220\001\n\023UpdateBudgetRequest\022B\n\006budge" + + "t\030\001 \001(\0132,.google.cloud.billing.budgets.v" + + "1beta1.BudgetB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\004\342A\001\001\"O\n\020Ge" + + "tBudgetRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$b" + + "illingbudgets.googleapis.com/Budget\"\233\001\n\022" + + "ListBudgetsRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002" + + "\372A&\022$billingbudgets.googleapis.com/Budge" + + "t\022\023\n\005scope\030\004 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\002 \001(" + + "\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"m\n\023Lis" + + "tBudgetsResponse\022=\n\007budgets\030\001 \003(\0132,.goog" + + "le.cloud.billing.budgets.v1beta1.Budget\022" + + "\027\n\017next_page_token\030\002 \001(\t\"R\n\023DeleteBudget" + + "Request\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$billingb" + + "udgets.googleapis.com/Budget2\367\007\n\rBudgetS" + + "ervice\022\257\001\n\014CreateBudget\0229.google.cloud.b" + + "illing.budgets.v1beta1.CreateBudgetReque" + + "st\032,.google.cloud.billing.budgets.v1beta" + + "1.Budget\"6\202\323\344\223\0020\"+/v1beta1/{parent=billi" + + "ngAccounts/*}/budgets:\001*\022\266\001\n\014UpdateBudge" + + "t\0229.google.cloud.billing.budgets.v1beta1" + + ".UpdateBudgetRequest\032,.google.cloud.bill" + + "ing.budgets.v1beta1.Budget\"=\202\323\344\223\002722/v1b" + + "eta1/{budget.name=billingAccounts/*/budg" + + "ets/*}:\001*\022\246\001\n\tGetBudget\0226.google.cloud.b" + + "illing.budgets.v1beta1.GetBudgetRequest\032" + + ",.google.cloud.billing.budgets.v1beta1.B" + + "udget\"3\202\323\344\223\002-\022+/v1beta1/{name=billingAcc" + + "ounts/*/budgets/*}\022\267\001\n\013ListBudgets\0228.goo" + + "gle.cloud.billing.budgets.v1beta1.ListBu" + + "dgetsRequest\0329.google.cloud.billing.budg" + + "ets.v1beta1.ListBudgetsResponse\"3\202\323\344\223\002-\022" + + "+/v1beta1/{parent=billingAccounts/*}/bud" + + "gets\022\226\001\n\014DeleteBudget\0229.google.cloud.bil" + + "ling.budgets.v1beta1.DeleteBudgetRequest" + + "\032\026.google.protobuf.Empty\"3\202\323\344\223\002-*+/v1bet" + + "a1/{name=billingAccounts/*/budgets/*}\032\177\312" + + "A\035billingbudgets.googleapis.com\322A\\https:" + + "//www.googleapis.com/auth/cloud-billing," + + "https://www.googleapis.com/auth/cloud-pl" + + "atformBp\n(com.google.cloud.billing.budge" + + "ts.v1beta1P\001ZBcloud.google.com/go/billin" + + "g/budgets/apiv1beta1/budgetspb;budgetspb" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor, + new java.lang.String[] { "Parent", "Budget", }); + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor, + new java.lang.String[] { "Budget", "UpdateMask", }); + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor, + new java.lang.String[] { "Parent", "Scope", "PageSize", "PageToken", }); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor, + new java.lang.String[] { "Budgets", "NextPageToken", }); + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor, + new java.lang.String[] { "Name", }); + 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.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.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java similarity index 70% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java index cfc7fbcbde4f..86d01ba9b7eb 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * A `CalendarPeriod` represents the abstract concept of a time period that
  * has a canonical start. Grammatically, "the start of the current
@@ -30,10 +13,9 @@
  *
  * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.CalendarPeriod}
  */
-public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
+public enum CalendarPeriod
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -43,8 +25,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   CALENDAR_PERIOD_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -54,8 +34,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   MONTH(1),
   /**
-   *
-   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -65,8 +43,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   QUARTER(2),
   /**
-   *
-   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -78,8 +54,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -89,8 +63,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int CALENDAR_PERIOD_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -100,8 +72,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MONTH_VALUE = 1;
   /**
-   *
-   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -111,8 +81,6 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int QUARTER_VALUE = 2;
   /**
-   *
-   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -121,6 +89,7 @@ public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int YEAR_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -145,53 +114,50 @@ public static CalendarPeriod valueOf(int value) { */ public static CalendarPeriod forNumber(int value) { switch (value) { - case 0: - return CALENDAR_PERIOD_UNSPECIFIED; - case 1: - return MONTH; - case 2: - return QUARTER; - case 3: - return YEAR; - default: - return null; + case 0: return CALENDAR_PERIOD_UNSPECIFIED; + case 1: return MONTH; + case 2: return QUARTER; + case 3: return YEAR; + 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 internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CalendarPeriod findValueByNumber(int number) { - return CalendarPeriod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + CalendarPeriod> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CalendarPeriod findValueByNumber(int number) { + return CalendarPeriod.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() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor().getEnumTypes().get(0); } private static final CalendarPeriod[] VALUES = values(); - public static CalendarPeriod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CalendarPeriod 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; @@ -207,3 +173,4 @@ private CalendarPeriod(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.billing.budgets.v1beta1.CalendarPeriod) } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java similarity index 60% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java index d22746895682..6d9dd3b70ceb 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * Request for CreateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CreateBudgetRequest} */ -public final class CreateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) CreateBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBudgetRequest.newBuilder() to construct. private CreateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBudgetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 @@ -86,32 +61,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 billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 { @@ -122,16 +95,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BUDGET_FIELD_NUMBER = 2; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ @java.lang.Override @@ -139,44 +107,30 @@ public boolean hasBudget() { return budget_ != null; } /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } /** - * - * *
    * Required. Budget to create.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +142,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_); } @@ -208,7 +163,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBudget()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBudget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +174,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.budgets.v1beta1.CreateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other = - (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget().equals(other.getBudget())) return false; + if (!getBudget() + .equals(other.getBudget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,136 +211,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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 for CreateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CreateBudgetRequest} */ - 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.budgets.v1beta1.CreateBudgetRequest) com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -398,14 +350,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest - getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance(); } @@ -420,23 +371,21 @@ public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result = - new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result) { + private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null + ? budget_ + : budgetBuilder_.build(); } } @@ -444,39 +393,38 @@ private void buildPartial0( 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.budgets.v1beta1.CreateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -484,9 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other) { - if (other - == com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -521,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getBudgetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -549,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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; @@ -579,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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 { @@ -604,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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() { @@ -648,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -675,58 +595,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.budgets.v1beta1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> - budgetBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetBuilder_; /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } else { return budgetBuilder_.getMessage(); } } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { @@ -742,15 +643,11 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget( com.google.cloud.billing.budgets.v1beta1.Budget.Builder builderForValue) { @@ -764,21 +661,17 @@ public Builder setBudget( return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && budget_ != null - && budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + budget_ != null && + budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -791,15 +684,11 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000002); @@ -812,15 +701,11 @@ public Builder clearBudget() { return this; } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000002; @@ -828,55 +713,43 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder( return getBudgetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? + com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } } /** - * - * *
      * Required. Budget to create.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - getBudget(), getParentForChildren(), isClean()); + budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + getBudget(), + getParentForChildren(), + isClean()); budget_ = null; } return budgetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -886,13 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(); } @@ -901,27 +773,27 @@ public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..13e2570d7630 --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface CreateBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the budget field is set. + */ + boolean hasBudget(); + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The budget. + */ + com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); + /** + *
+   * Required. Budget to create.
+   * 
+ * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java similarity index 73% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java index 10e89bdd6d8a..bed26a74be51 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CustomPeriod} */ -public final class CustomPeriod extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CustomPeriod extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.CustomPeriod) CustomPeriodOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CustomPeriod.newBuilder() to construct. private CustomPeriod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CustomPeriod() {} + private CustomPeriod() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomPeriod(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); } public static final int START_DATE_FIELD_NUMBER = 1; private com.google.type.Date startDate_; /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasStartDate() { return startDate_ != null; } /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.type.Date getStartDate() { return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -109,8 +83,6 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { public static final int END_DATE_FIELD_NUMBER = 2; private com.google.type.Date endDate_; /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -118,7 +90,6 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ @java.lang.Override @@ -126,8 +97,6 @@ public boolean hasEndDate() { return endDate_ != null; } /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -135,7 +104,6 @@ public boolean hasEndDate() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ @java.lang.Override @@ -143,8 +111,6 @@ public com.google.type.Date getEndDate() { return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; } /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -159,7 +125,6 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -171,7 +136,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 (startDate_ != null) {
       output.writeMessage(1, getStartDate());
     }
@@ -188,10 +154,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (startDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getStartDate());
     }
     if (endDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getEndDate());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -201,21 +169,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.budgets.v1beta1.CustomPeriod)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.CustomPeriod other =
-        (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) obj;
+    com.google.cloud.billing.budgets.v1beta1.CustomPeriod other = (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) obj;
 
     if (hasStartDate() != other.hasStartDate()) return false;
     if (hasStartDate()) {
-      if (!getStartDate().equals(other.getStartDate())) return false;
+      if (!getStartDate()
+          .equals(other.getStartDate())) return false;
     }
     if (hasEndDate() != other.hasEndDate()) return false;
     if (hasEndDate()) {
-      if (!getEndDate().equals(other.getEndDate())) return false;
+      if (!getEndDate()
+          .equals(other.getEndDate())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -242,136 +211,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod prototype) {
+  public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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;
   }
   /**
-   *
-   *
    * 
    * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CustomPeriod} */ - 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.budgets.v1beta1.CustomPeriod) com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -390,9 +354,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override @@ -411,11 +375,8 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriod buildPartial() { - com.google.cloud.billing.budgets.v1beta1.CustomPeriod result = - new com.google.cloud.billing.budgets.v1beta1.CustomPeriod(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.CustomPeriod result = new com.google.cloud.billing.budgets.v1beta1.CustomPeriod(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -423,10 +384,14 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CustomPeriod result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); + result.startDate_ = startDateBuilder_ == null + ? startDate_ + : startDateBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); + result.endDate_ = endDateBuilder_ == null + ? endDate_ + : endDateBuilder_.build(); } } @@ -434,39 +399,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CustomPeriod) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CustomPeriod)other); } else { super.mergeFrom(other); return this; @@ -474,8 +438,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.CustomPeriod other) { - if (other == com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) return this; if (other.hasStartDate()) { mergeStartDate(other.getStartDate()); } @@ -508,25 +471,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,36 +500,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.type.Date startDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - startDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> startDateBuilder_; /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ public boolean hasStartDate() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ public com.google.type.Date getStartDate() { @@ -576,8 +532,6 @@ public com.google.type.Date getStartDate() { } } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -598,15 +552,14 @@ public Builder setStartDate(com.google.type.Date value) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + public Builder setStartDate( + com.google.type.Date.Builder builderForValue) { if (startDateBuilder_ == null) { startDate_ = builderForValue.build(); } else { @@ -617,8 +570,6 @@ public Builder setStartDate(com.google.type.Date.Builder builderForValue) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -627,9 +578,9 @@ public Builder setStartDate(com.google.type.Date.Builder builderForValue) { */ public Builder mergeStartDate(com.google.type.Date value) { if (startDateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startDate_ != null - && startDate_ != com.google.type.Date.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + startDate_ != null && + startDate_ != com.google.type.Date.getDefaultInstance()) { getStartDateBuilder().mergeFrom(value); } else { startDate_ = value; @@ -642,8 +593,6 @@ public Builder mergeStartDate(com.google.type.Date value) { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -661,8 +610,6 @@ public Builder clearStartDate() { return this; } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -675,8 +622,6 @@ public com.google.type.Date.Builder getStartDateBuilder() { return getStartDateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -687,12 +632,11 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { if (startDateBuilder_ != null) { return startDateBuilder_.getMessageOrBuilder(); } else { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + return startDate_ == null ? + com.google.type.Date.getDefaultInstance() : startDate_; } } /** - * - * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -700,13 +644,14 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getStartDateFieldBuilder() { if (startDateBuilder_ == null) { - startDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), getParentForChildren(), isClean()); + startDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), + getParentForChildren(), + isClean()); startDate_ = null; } return startDateBuilder_; @@ -714,11 +659,8 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { private com.google.type.Date endDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - endDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> endDateBuilder_; /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -726,15 +668,12 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ public boolean hasEndDate() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -742,7 +681,6 @@ public boolean hasEndDate() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ public com.google.type.Date getEndDate() { @@ -753,8 +691,6 @@ public com.google.type.Date getEndDate() { } } /** - * - * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -777,8 +713,6 @@ public Builder setEndDate(com.google.type.Date value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -787,7 +721,8 @@ public Builder setEndDate(com.google.type.Date value) {
      *
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
+    public Builder setEndDate(
+        com.google.type.Date.Builder builderForValue) {
       if (endDateBuilder_ == null) {
         endDate_ = builderForValue.build();
       } else {
@@ -798,8 +733,6 @@ public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -810,9 +743,9 @@ public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
      */
     public Builder mergeEndDate(com.google.type.Date value) {
       if (endDateBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endDate_ != null
-            && endDate_ != com.google.type.Date.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endDate_ != null &&
+          endDate_ != com.google.type.Date.getDefaultInstance()) {
           getEndDateBuilder().mergeFrom(value);
         } else {
           endDate_ = value;
@@ -825,8 +758,6 @@ public Builder mergeEndDate(com.google.type.Date value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -846,8 +777,6 @@ public Builder clearEndDate() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -862,8 +791,6 @@ public com.google.type.Date.Builder getEndDateBuilder() {
       return getEndDateFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -876,12 +803,11 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
       if (endDateBuilder_ != null) {
         return endDateBuilder_.getMessageOrBuilder();
       } else {
-        return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_;
+        return endDate_ == null ?
+            com.google.type.Date.getDefaultInstance() : endDate_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -891,20 +817,21 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
+        com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
         getEndDateFieldBuilder() {
       if (endDateBuilder_ == null) {
-        endDateBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
-                getEndDate(), getParentForChildren(), isClean());
+        endDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+                getEndDate(),
+                getParentForChildren(),
+                isClean());
         endDate_ = null;
       }
       return endDateBuilder_;
     }
-
     @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);
     }
 
@@ -914,12 +841,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.CustomPeriod)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.CustomPeriod)
   private static final com.google.cloud.billing.budgets.v1beta1.CustomPeriod DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.CustomPeriod();
   }
@@ -928,27 +855,27 @@ public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CustomPeriod parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CustomPeriod parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -963,4 +890,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
similarity index 75%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
index af4a6b65fd67..1d3f15ee1185 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface CustomPeriodOrBuilder
-    extends
+public interface CustomPeriodOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CustomPeriod)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the startDate field is set. */ boolean hasStartDate(); /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The startDate. */ com.google.type.Date getStartDate(); /** - * - * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -59,8 +35,6 @@ public interface CustomPeriodOrBuilder com.google.type.DateOrBuilder getStartDateOrBuilder(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -68,13 +42,10 @@ public interface CustomPeriodOrBuilder
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the endDate field is set. */ boolean hasEndDate(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -82,13 +53,10 @@ public interface CustomPeriodOrBuilder
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endDate. */ com.google.type.Date getEndDate(); /** - * - * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
similarity index 62%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
index 325397656561..14432e315d32 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
@@ -1,83 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
 /**
- *
- *
  * 
  * Request for DeleteBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest} */ -public final class DeleteBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) DeleteBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBudgetRequest.newBuilder() to construct. private DeleteBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other = - (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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 for DeleteBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest} */ - 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.budgets.v1beta1.DeleteBudgetRequest) com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,14 +291,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest - getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance(); } @@ -345,17 +312,13 @@ public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result = - new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result) { + private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -366,39 +329,38 @@ private void buildPartial0( 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.budgets.v1beta1.DeleteBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -406,9 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other) { - if (other - == com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * 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; @@ -492,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * 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 { @@ -517,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * 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() { @@ -561,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -597,13 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(); } @@ -612,27 +544,27 @@ public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..39dbfb2b0f50 --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface DeleteBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java similarity index 75% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java index f2991d9b060e..e32b77b5cc4b 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java @@ -1,86 +1,71 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * A filter for a budget, limiting the scope of the cost to calculate.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Filter} */ -public final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Filter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.Filter) FilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Filter() { - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Filter(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.Filter.class, - com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1beta1.Filter.class, com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); } /** - * - * *
    * Specifies how credits are applied when determining the spend for
    * threshold calculations. Budgets track the total cost minus any applicable
@@ -91,12 +76,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment}
    */
-  public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageEnum {
-    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
+  public enum CreditTypesTreatment
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
+     */
     CREDIT_TYPES_TREATMENT_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -106,8 +92,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     INCLUDE_ALL_CREDITS(1),
     /**
-     *
-     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -117,8 +101,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     EXCLUDE_ALL_CREDITS(2),
     /**
-     *
-     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -132,11 +114,11 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
     UNRECOGNIZED(-1),
     ;
 
-    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
+    /**
+     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
+     */
     public static final int CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -146,8 +128,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int INCLUDE_ALL_CREDITS_VALUE = 1;
     /**
-     *
-     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -157,8 +137,6 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int EXCLUDE_ALL_CREDITS_VALUE = 2;
     /**
-     *
-     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -170,6 +148,7 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
      */
     public static final int INCLUDE_SPECIFIED_CREDITS_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -194,16 +173,11 @@ public static CreditTypesTreatment valueOf(int value) {
      */
     public static CreditTypesTreatment forNumber(int value) {
       switch (value) {
-        case 0:
-          return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
-        case 1:
-          return INCLUDE_ALL_CREDITS;
-        case 2:
-          return EXCLUDE_ALL_CREDITS;
-        case 3:
-          return INCLUDE_SPECIFIED_CREDITS;
-        default:
-          return null;
+        case 0: return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
+        case 1: return INCLUDE_ALL_CREDITS;
+        case 2: return EXCLUDE_ALL_CREDITS;
+        case 3: return INCLUDE_SPECIFIED_CREDITS;
+        default: return null;
       }
     }
 
@@ -211,28 +185,28 @@ public static CreditTypesTreatment forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        CreditTypesTreatment> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public CreditTypesTreatment findValueByNumber(int number) {
+              return CreditTypesTreatment.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public CreditTypesTreatment findValueByNumber(int number) {
-                return CreditTypesTreatment.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.budgets.v1beta1.Filter.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -241,7 +215,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static CreditTypesTreatment 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;
@@ -259,19 +234,15 @@ private CreditTypesTreatment(int value) {
   }
 
   private int usagePeriodCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object usagePeriod_;
-
   public enum UsagePeriodCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CALENDAR_PERIOD(8),
     CUSTOM_PERIOD(9),
     USAGEPERIOD_NOT_SET(0);
     private final int value;
-
     private UsagePeriodCase(int value) {
       this.value = value;
     }
@@ -287,34 +258,28 @@ public static UsagePeriodCase valueOf(int value) {
 
     public static UsagePeriodCase forNumber(int value) {
       switch (value) {
-        case 8:
-          return CALENDAR_PERIOD;
-        case 9:
-          return CUSTOM_PERIOD;
-        case 0:
-          return USAGEPERIOD_NOT_SET;
-        default:
-          return null;
+        case 8: return CALENDAR_PERIOD;
+        case 9: return CUSTOM_PERIOD;
+        case 0: return USAGEPERIOD_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public UsagePeriodCase getUsagePeriodCase() {
-    return UsagePeriodCase.forNumber(usagePeriodCase_);
+  public UsagePeriodCase
+  getUsagePeriodCase() {
+    return UsagePeriodCase.forNumber(
+        usagePeriodCase_);
   }
 
   public static final int PROJECTS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList projects_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -323,15 +288,13 @@ public UsagePeriodCase getUsagePeriodCase() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList getProjectsList() { + public com.google.protobuf.ProtocolStringList + getProjectsList() { return projects_; } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -340,15 +303,12 @@ public com.google.protobuf.ProtocolStringList getProjectsList() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -357,7 +317,6 @@ public int getProjectsCount() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -365,8 +324,6 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -375,22 +332,19 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString getProjectsBytes(int index) { + public com.google.protobuf.ByteString + getProjectsBytes(int index) { return projects_.getByteString(index); } public static final int RESOURCE_ANCESTORS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -402,15 +356,13 @@ public com.google.protobuf.ByteString getProjectsBytes(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList + getResourceAncestorsList() { return resourceAncestors_; } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -422,15 +374,12 @@ public com.google.protobuf.ProtocolStringList getResourceAncestorsList() {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -442,7 +391,6 @@ public int getResourceAncestorsCount() {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -450,8 +398,6 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -463,22 +409,19 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } public static final int CREDIT_TYPES_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -493,15 +436,13 @@ public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList getCreditTypesList() { + public com.google.protobuf.ProtocolStringList + getCreditTypesList() { return creditTypes_; } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -516,15 +457,12 @@ public com.google.protobuf.ProtocolStringList getCreditTypesList() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -539,7 +477,6 @@ public int getCreditTypesCount() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -547,8 +484,6 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -563,65 +498,45 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString + getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } public static final int CREDIT_TYPES_TREATMENT_FIELD_NUMBER = 4; private int creditTypesTreatment_ = 0; /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override - public int getCreditTypesTreatmentValue() { + @java.lang.Override public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ - @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment - getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber( - creditTypesTreatment_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; } public static final int SERVICES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -632,15 +547,13 @@ public int getCreditTypesTreatmentValue() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList getServicesList() { + public com.google.protobuf.ProtocolStringList + getServicesList() { return services_; } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -651,15 +564,12 @@ public com.google.protobuf.ProtocolStringList getServicesList() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -670,7 +580,6 @@ public int getServicesCount() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ @@ -678,8 +587,6 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -690,22 +597,19 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString getServicesBytes(int index) { + public com.google.protobuf.ByteString + getServicesBytes(int index) { return services_.getByteString(index); } public static final int SUBACCOUNTS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -716,15 +620,13 @@ public com.google.protobuf.ByteString getServicesBytes(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList getSubaccountsList() { + public com.google.protobuf.ProtocolStringList + getSubaccountsList() { return subaccounts_; } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -735,15 +637,12 @@ public com.google.protobuf.ProtocolStringList getSubaccountsList() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -754,7 +653,6 @@ public int getSubaccountsCount() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -762,8 +660,6 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -774,46 +670,41 @@ public java.lang.String getSubaccounts(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString + getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.ListValue> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.ListValue.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.ListValue.getDefaultInstance()); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ListValue> labels_; private com.google.protobuf.MapField - internalGetLabels() { + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -826,26 +717,23 @@ public int getLabelsCount() {
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -858,17 +746,13 @@ public java.util.Map getLabels(
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -881,25 +765,20 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.protobuf.ListValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -912,15 +791,12 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -931,8 +807,6 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { public static final int CALENDAR_PERIOD_FIELD_NUMBER = 8; /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -942,18 +816,13 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -963,10 +832,7 @@ public boolean hasCalendarPeriod() {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ public int getCalendarPeriodValue() { @@ -976,8 +842,6 @@ public int getCalendarPeriodValue() { return 0; } /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -987,37 +851,26 @@ public int getCalendarPeriodValue() {
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED : result; } return com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } public static final int CUSTOM_PERIOD_FIELD_NUMBER = 9; /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -1025,48 +878,38 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1078,7 +921,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 < projects_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projects_.getRaw(i)); } @@ -1088,17 +932,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < services_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, services_.getRaw(i)); } - if (creditTypesTreatment_ - != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment - .CREDIT_TYPES_TREATMENT_UNSPECIFIED - .getNumber()) { + if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { output.writeEnum(4, creditTypesTreatment_); } for (int i = 0; i < subaccounts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subaccounts_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); for (int i = 0; i < creditTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, creditTypes_.getRaw(i)); } @@ -1141,11 +986,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getServicesList().size(); } - if (creditTypesTreatment_ - != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment - .CREDIT_TYPES_TREATMENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, creditTypesTreatment_); + if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, creditTypesTreatment_); } { int dataSize = 0; @@ -1155,15 +998,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSubaccountsList().size(); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); } { int dataSize = 0; @@ -1174,14 +1017,12 @@ public int getSerializedSize() { size += 1 * getCreditTypesList().size(); } if (usagePeriodCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 8, ((java.lang.Integer) usagePeriod_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, ((java.lang.Integer) usagePeriod_)); } if (usagePeriodCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1191,28 +1032,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.Filter)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.Filter other = - (com.google.cloud.billing.budgets.v1beta1.Filter) obj; + com.google.cloud.billing.budgets.v1beta1.Filter other = (com.google.cloud.billing.budgets.v1beta1.Filter) obj; - if (!getProjectsList().equals(other.getProjectsList())) return false; - if (!getResourceAncestorsList().equals(other.getResourceAncestorsList())) return false; - if (!getCreditTypesList().equals(other.getCreditTypesList())) return false; + if (!getProjectsList() + .equals(other.getProjectsList())) return false; + if (!getResourceAncestorsList() + .equals(other.getResourceAncestorsList())) return false; + if (!getCreditTypesList() + .equals(other.getCreditTypesList())) return false; if (creditTypesTreatment_ != other.creditTypesTreatment_) return false; - if (!getServicesList().equals(other.getServicesList())) return false; - if (!getSubaccountsList().equals(other.getSubaccountsList())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getServicesList() + .equals(other.getServicesList())) return false; + if (!getSubaccountsList() + .equals(other.getSubaccountsList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!getUsagePeriodCase().equals(other.getUsagePeriodCase())) return false; switch (usagePeriodCase_) { case 8: - if (getCalendarPeriodValue() != other.getCalendarPeriodValue()) return false; + if (getCalendarPeriodValue() + != other.getCalendarPeriodValue()) return false; break; case 9: - if (!getCustomPeriod().equals(other.getCustomPeriod())) return false; + if (!getCustomPeriod() + .equals(other.getCustomPeriod())) return false; break; case 0: default: @@ -1271,166 +1119,169 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1beta1.Filter parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1beta1.Filter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.Filter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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 filter for a budget, limiting the scope of the cost to calculate.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Filter} */ - 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.budgets.v1beta1.Filter) com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.Filter.class, - com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1beta1.Filter.class, com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.Filter.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableLabels().clear(); if (customPeriodBuilder_ != null) { customPeriodBuilder_.clear(); @@ -1441,9 +1292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel - .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @java.lang.Override @@ -1462,11 +1313,8 @@ public com.google.cloud.billing.budgets.v1beta1.Filter build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter buildPartial() { - com.google.cloud.billing.budgets.v1beta1.Filter result = - new com.google.cloud.billing.budgets.v1beta1.Filter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.Filter result = new com.google.cloud.billing.budgets.v1beta1.Filter(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1506,7 +1354,8 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Filter resul private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.Filter result) { result.usagePeriodCase_ = usagePeriodCase_; result.usagePeriod_ = this.usagePeriod_; - if (usagePeriodCase_ == 9 && customPeriodBuilder_ != null) { + if (usagePeriodCase_ == 9 && + customPeriodBuilder_ != null) { result.usagePeriod_ = customPeriodBuilder_.build(); } } @@ -1515,39 +1364,38 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Filter) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Filter)other); } else { super.mergeFrom(other); return this; @@ -1555,8 +1403,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Filter other) { - if (other == com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) return this; if (!other.projects_.isEmpty()) { if (projects_.isEmpty()) { projects_ = other.projects_; @@ -1610,23 +1457,21 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Filter other) } onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000040; switch (other.getUsagePeriodCase()) { - case CALENDAR_PERIOD: - { - setCalendarPeriodValue(other.getCalendarPeriodValue()); - break; - } - case CUSTOM_PERIOD: - { - mergeCustomPeriod(other.getCustomPeriod()); - break; - } - case USAGEPERIOD_NOT_SET: - { - break; - } + case CALENDAR_PERIOD: { + setCalendarPeriodValue(other.getCalendarPeriodValue()); + break; + } + case CUSTOM_PERIOD: { + mergeCustomPeriod(other.getCustomPeriod()); + break; + } + case USAGEPERIOD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1654,80 +1499,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureProjectsIsMutable(); - projects_.add(s); - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceAncestorsIsMutable(); - resourceAncestors_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureServicesIsMutable(); - services_.add(s); - break; - } // case 26 - case 32: - { - creditTypesTreatment_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubaccountsIsMutable(); - subaccounts_.add(s); - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry - labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCreditTypesIsMutable(); - creditTypes_.add(s); - break; - } // case 58 - case 64: - { - int rawValue = input.readEnum(); - usagePeriodCase_ = 8; - usagePeriod_ = rawValue; - break; - } // case 64 - case 74: - { - input.readMessage(getCustomPeriodFieldBuilder().getBuilder(), extensionRegistry); - usagePeriodCase_ = 9; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectsIsMutable(); + projects_.add(s); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceAncestorsIsMutable(); + resourceAncestors_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureServicesIsMutable(); + services_.add(s); + break; + } // case 26 + case 32: { + creditTypesTreatment_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubaccountsIsMutable(); + subaccounts_.add(s); + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCreditTypesIsMutable(); + creditTypes_.add(s); + break; + } // case 58 + case 64: { + int rawValue = input.readEnum(); + usagePeriodCase_ = 8; + usagePeriod_ = rawValue; + break; + } // case 64 + case 74: { + input.readMessage( + getCustomPeriodFieldBuilder().getBuilder(), + extensionRegistry); + usagePeriodCase_ = 9; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1737,12 +1571,12 @@ public Builder mergeFrom( } // finally return this; } - private int usagePeriodCase_ = 0; private java.lang.Object usagePeriod_; - - public UsagePeriodCase getUsagePeriodCase() { - return UsagePeriodCase.forNumber(usagePeriodCase_); + public UsagePeriodCase + getUsagePeriodCase() { + return UsagePeriodCase.forNumber( + usagePeriodCase_); } public Builder clearUsagePeriod() { @@ -1756,7 +1590,6 @@ public Builder clearUsagePeriod() { private com.google.protobuf.LazyStringArrayList projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureProjectsIsMutable() { if (!projects_.isModifiable()) { projects_ = new com.google.protobuf.LazyStringArrayList(projects_); @@ -1764,8 +1597,6 @@ private void ensureProjectsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1774,16 +1605,14 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList getProjectsList() { + public com.google.protobuf.ProtocolStringList + getProjectsList() { projects_.makeImmutable(); return projects_; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1792,15 +1621,12 @@ public com.google.protobuf.ProtocolStringList getProjectsList() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1809,7 +1635,6 @@ public int getProjectsCount() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -1817,8 +1642,6 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1827,16 +1650,14 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString getProjectsBytes(int index) { + public com.google.protobuf.ByteString + getProjectsBytes(int index) { return projects_.getByteString(index); } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1845,15 +1666,13 @@ public com.google.protobuf.ByteString getProjectsBytes(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The projects to set. * @return This builder for chaining. */ - public Builder setProjects(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjects( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureProjectsIsMutable(); projects_.set(index, value); bitField0_ |= 0x00000001; @@ -1861,8 +1680,6 @@ public Builder setProjects(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1871,14 +1688,12 @@ public Builder setProjects(int index, java.lang.String value) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The projects to add. * @return This builder for chaining. */ - public Builder addProjects(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addProjects( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureProjectsIsMutable(); projects_.add(value); bitField0_ |= 0x00000001; @@ -1886,8 +1701,6 @@ public Builder addProjects(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1896,20 +1709,19 @@ public Builder addProjects(java.lang.String value) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The projects to add. * @return This builder for chaining. */ - public Builder addAllProjects(java.lang.Iterable values) { + public Builder addAllProjects( + java.lang.Iterable values) { ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projects_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1918,19 +1730,16 @@ public Builder addAllProjects(java.lang.Iterable values) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearProjects() { - projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1939,14 +1748,12 @@ public Builder clearProjects() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the projects to add. * @return This builder for chaining. */ - public Builder addProjectsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addProjectsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureProjectsIsMutable(); projects_.add(value); @@ -1957,7 +1764,6 @@ public Builder addProjectsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResourceAncestorsIsMutable() { if (!resourceAncestors_.isModifiable()) { resourceAncestors_ = new com.google.protobuf.LazyStringArrayList(resourceAncestors_); @@ -1965,8 +1771,6 @@ private void ensureResourceAncestorsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1977,18 +1781,15 @@ private void ensureResourceAncestorsIsMutable() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList + getResourceAncestorsList() { resourceAncestors_.makeImmutable(); return resourceAncestors_; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1999,17 +1800,13 @@ public com.google.protobuf.ProtocolStringList getResourceAncestorsList() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2020,9 +1817,7 @@ public int getResourceAncestorsCount() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -2030,8 +1825,6 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2042,18 +1835,15 @@ public java.lang.String getResourceAncestors(int index) {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2064,17 +1854,14 @@ public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The resourceAncestors to set. * @return This builder for chaining. */ - public Builder setResourceAncestors(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceAncestors( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceAncestorsIsMutable(); resourceAncestors_.set(index, value); bitField0_ |= 0x00000002; @@ -2082,8 +1869,6 @@ public Builder setResourceAncestors(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2094,16 +1879,13 @@ public Builder setResourceAncestors(int index, java.lang.String value) {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestors(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceAncestors( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); bitField0_ |= 0x00000002; @@ -2111,8 +1893,6 @@ public Builder addResourceAncestors(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2123,22 +1903,20 @@ public Builder addResourceAncestors(java.lang.String value) {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param values The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addAllResourceAncestors(java.lang.Iterable values) { + public Builder addAllResourceAncestors( + java.lang.Iterable values) { ensureResourceAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceAncestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceAncestors_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2149,21 +1927,17 @@ public Builder addAllResourceAncestors(java.lang.Iterable valu
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearResourceAncestors() { - resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + resourceAncestors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -2174,16 +1948,13 @@ public Builder clearResourceAncestors() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceAncestorsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); @@ -2194,7 +1965,6 @@ public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureCreditTypesIsMutable() { if (!creditTypes_.isModifiable()) { creditTypes_ = new com.google.protobuf.LazyStringArrayList(creditTypes_); @@ -2202,8 +1972,6 @@ private void ensureCreditTypesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2218,16 +1986,14 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList getCreditTypesList() { + public com.google.protobuf.ProtocolStringList + getCreditTypesList() { creditTypes_.makeImmutable(); return creditTypes_; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2242,15 +2008,12 @@ public com.google.protobuf.ProtocolStringList getCreditTypesList() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2265,7 +2028,6 @@ public int getCreditTypesCount() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -2273,8 +2035,6 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2289,16 +2049,14 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString + getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2313,15 +2071,13 @@ public com.google.protobuf.ByteString getCreditTypesBytes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The creditTypes to set. * @return This builder for chaining. */ - public Builder setCreditTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCreditTypes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCreditTypesIsMutable(); creditTypes_.set(index, value); bitField0_ |= 0x00000004; @@ -2329,8 +2085,6 @@ public Builder setCreditTypes(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2345,14 +2099,12 @@ public Builder setCreditTypes(int index, java.lang.String value) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCreditTypes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCreditTypesIsMutable(); creditTypes_.add(value); bitField0_ |= 0x00000004; @@ -2360,8 +2112,6 @@ public Builder addCreditTypes(java.lang.String value) { return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2376,20 +2126,19 @@ public Builder addCreditTypes(java.lang.String value) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The creditTypes to add. * @return This builder for chaining. */ - public Builder addAllCreditTypes(java.lang.Iterable values) { + public Builder addAllCreditTypes( + java.lang.Iterable values) { ensureCreditTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creditTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, creditTypes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2404,19 +2153,16 @@ public Builder addAllCreditTypes(java.lang.Iterable values) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCreditTypes() { - creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + creditTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2431,14 +2177,12 @@ public Builder clearCreditTypes() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCreditTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCreditTypesIsMutable(); creditTypes_.add(value); @@ -2449,33 +2193,22 @@ public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { private int creditTypesTreatment_ = 0; /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override - public int getCreditTypesTreatmentValue() { + @java.lang.Override public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for creditTypesTreatment to set. * @return This builder for chaining. */ @@ -2486,44 +2219,28 @@ public Builder setCreditTypesTreatmentValue(int value) { return this; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment - getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber( - creditTypesTreatment_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED - : result; + public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The creditTypesTreatment to set. * @return This builder for chaining. */ - public Builder setCreditTypesTreatment( - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment value) { + public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment value) { if (value == null) { throw new NullPointerException(); } @@ -2533,16 +2250,11 @@ public Builder setCreditTypesTreatment( return this; } /** - * - * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCreditTypesTreatment() { @@ -2554,7 +2266,6 @@ public Builder clearCreditTypesTreatment() { private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureServicesIsMutable() { if (!services_.isModifiable()) { services_ = new com.google.protobuf.LazyStringArrayList(services_); @@ -2562,8 +2273,6 @@ private void ensureServicesIsMutable() { bitField0_ |= 0x00000010; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2574,16 +2283,14 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList getServicesList() { + public com.google.protobuf.ProtocolStringList + getServicesList() { services_.makeImmutable(); return services_; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2594,15 +2301,12 @@ public com.google.protobuf.ProtocolStringList getServicesList() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2613,7 +2317,6 @@ public int getServicesCount() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ @@ -2621,8 +2324,6 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2633,16 +2334,14 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString getServicesBytes(int index) { + public com.google.protobuf.ByteString + getServicesBytes(int index) { return services_.getByteString(index); } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2653,15 +2352,13 @@ public com.google.protobuf.ByteString getServicesBytes(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The services to set. * @return This builder for chaining. */ - public Builder setServices(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServices( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.set(index, value); bitField0_ |= 0x00000010; @@ -2669,8 +2366,6 @@ public Builder setServices(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2681,14 +2376,12 @@ public Builder setServices(int index, java.lang.String value) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The services to add. * @return This builder for chaining. */ - public Builder addServices(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServices( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.add(value); bitField0_ |= 0x00000010; @@ -2696,8 +2389,6 @@ public Builder addServices(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2708,20 +2399,19 @@ public Builder addServices(java.lang.String value) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The services to add. * @return This builder for chaining. */ - public Builder addAllServices(java.lang.Iterable values) { + public Builder addAllServices( + java.lang.Iterable values) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, services_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2732,19 +2422,16 @@ public Builder addAllServices(java.lang.Iterable values) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearServices() { - services_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + services_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2755,14 +2442,12 @@ public Builder clearServices() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the services to add. * @return This builder for chaining. */ - public Builder addServicesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServicesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureServicesIsMutable(); services_.add(value); @@ -2773,7 +2458,6 @@ public Builder addServicesBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureSubaccountsIsMutable() { if (!subaccounts_.isModifiable()) { subaccounts_ = new com.google.protobuf.LazyStringArrayList(subaccounts_); @@ -2781,8 +2465,6 @@ private void ensureSubaccountsIsMutable() { bitField0_ |= 0x00000020; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2793,16 +2475,14 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList getSubaccountsList() { + public com.google.protobuf.ProtocolStringList + getSubaccountsList() { subaccounts_.makeImmutable(); return subaccounts_; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2813,15 +2493,12 @@ public com.google.protobuf.ProtocolStringList getSubaccountsList() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2832,7 +2509,6 @@ public int getSubaccountsCount() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -2840,8 +2516,6 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2852,16 +2526,14 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString + getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2872,15 +2544,13 @@ public com.google.protobuf.ByteString getSubaccountsBytes(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The subaccounts to set. * @return This builder for chaining. */ - public Builder setSubaccounts(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubaccounts( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubaccountsIsMutable(); subaccounts_.set(index, value); bitField0_ |= 0x00000020; @@ -2888,8 +2558,6 @@ public Builder setSubaccounts(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2900,14 +2568,12 @@ public Builder setSubaccounts(int index, java.lang.String value) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccounts(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubaccounts( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubaccountsIsMutable(); subaccounts_.add(value); bitField0_ |= 0x00000020; @@ -2915,8 +2581,6 @@ public Builder addSubaccounts(java.lang.String value) { return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2927,20 +2591,19 @@ public Builder addSubaccounts(java.lang.String value) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The subaccounts to add. * @return This builder for chaining. */ - public Builder addAllSubaccounts(java.lang.Iterable values) { + public Builder addAllSubaccounts( + java.lang.Iterable values) { ensureSubaccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subaccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subaccounts_); bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2951,19 +2614,16 @@ public Builder addAllSubaccounts(java.lang.Iterable values) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSubaccounts() { - subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - ; + subaccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020);; onChanged(); return this; } /** - * - * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2974,14 +2634,12 @@ public Builder clearSubaccounts() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubaccountsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSubaccountsIsMutable(); subaccounts_.add(value); @@ -2990,20 +2648,21 @@ public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField labels_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ListValue> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3012,13 +2671,10 @@ public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3031,26 +2687,23 @@ public int getLabelsCount() {
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3063,17 +2716,13 @@ public java.util.Map getLabels(
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3086,25 +2735,20 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.protobuf.ListValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3117,15 +2761,12 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3133,15 +2774,13 @@ public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3154,26 +2793,25 @@ public Builder clearLabels() {
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3186,24 +2824,19 @@ public java.util.Map getMutable
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + com.google.protobuf.ListValue value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -3216,20 +2849,17 @@ public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue val
      *  allowed._
      * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels( java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3239,10 +2869,7 @@ public Builder putAllLabels(
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ @java.lang.Override @@ -3250,8 +2877,6 @@ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3261,10 +2886,7 @@ public boolean hasCalendarPeriod() {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ @java.lang.Override @@ -3275,8 +2897,6 @@ public int getCalendarPeriodValue() { return 0; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3286,10 +2906,7 @@ public int getCalendarPeriodValue() {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for calendarPeriod to set. * @return This builder for chaining. */ @@ -3300,8 +2917,6 @@ public Builder setCalendarPeriodValue(int value) { return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3311,27 +2926,19 @@ public Builder setCalendarPeriodValue(int value) {
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED : result; } return com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3341,15 +2948,11 @@ public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param value The calendarPeriod to set. * @return This builder for chaining. */ - public Builder setCalendarPeriod( - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod value) { + public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1beta1.CalendarPeriod value) { if (value == null) { throw new NullPointerException(); } @@ -3359,8 +2962,6 @@ public Builder setCalendarPeriod( return this; } /** - * - * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -3370,10 +2971,7 @@ public Builder setCalendarPeriod(
      * so on.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCalendarPeriod() { @@ -3386,22 +2984,14 @@ public Builder clearCalendarPeriod() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> - customPeriodBuilder_; + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> customPeriodBuilder_; /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -3409,17 +2999,12 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ @java.lang.Override @@ -3437,16 +3022,12 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod() { } } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPeriod value) { if (customPeriodBuilder_ == null) { @@ -3462,16 +3043,12 @@ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPe return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomPeriod( com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder builderForValue) { @@ -3485,27 +3062,19 @@ public Builder setCustomPeriod( return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPeriod value) { if (customPeriodBuilder_ == null) { - if (usagePeriodCase_ == 9 - && usagePeriod_ - != com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) { - usagePeriod_ = - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder( - (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_) - .mergeFrom(value) - .buildPartial(); + if (usagePeriodCase_ == 9 && + usagePeriod_ != com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) { + usagePeriod_ = com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder((com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_) + .mergeFrom(value).buildPartial(); } else { usagePeriod_ = value; } @@ -3521,16 +3090,12 @@ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1beta1.Custom return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCustomPeriod() { if (customPeriodBuilder_ == null) { @@ -3549,35 +3114,26 @@ public Builder clearCustomPeriod() { return this; } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder getCustomPeriodBuilder() { return getCustomPeriodFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder - getCustomPeriodOrBuilder() { + public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { if ((usagePeriodCase_ == 9) && (customPeriodBuilder_ != null)) { return customPeriodBuilder_.getMessageOrBuilder(); } else { @@ -3588,31 +3144,22 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder getCustomPe } } /** - * - * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> getCustomPeriodFieldBuilder() { if (customPeriodBuilder_ == null) { if (!(usagePeriodCase_ == 9)) { usagePeriod_ = com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } - customPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, - com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder>( + customPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder>( (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_, getParentForChildren(), isClean()); @@ -3622,9 +3169,9 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder getCustomPe onChanged(); return customPeriodBuilder_; } - @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); } @@ -3634,12 +3181,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.Filter) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.Filter) private static final com.google.cloud.billing.budgets.v1beta1.Filter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.Filter(); } @@ -3648,27 +3195,27 @@ public static com.google.cloud.billing.budgets.v1beta1.Filter getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3683,4 +3230,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java similarity index 83% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java index 88f716939663..6d6ed75fa958 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface FilterOrBuilder - extends +public interface FilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.Filter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -34,13 +16,11 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the projects. */ - java.util.List getProjectsList(); + java.util.List + getProjectsList(); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -49,13 +29,10 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of projects. */ int getProjectsCount(); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -64,14 +41,11 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The projects at the given index. */ java.lang.String getProjects(int index); /** - * - * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -80,15 +54,13 @@ public interface FilterOrBuilder
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - com.google.protobuf.ByteString getProjectsBytes(int index); + com.google.protobuf.ByteString + getProjectsBytes(int index); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -100,13 +72,11 @@ public interface FilterOrBuilder
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the resourceAncestors. */ - java.util.List getResourceAncestorsList(); + java.util.List + getResourceAncestorsList(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -118,13 +88,10 @@ public interface FilterOrBuilder
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of resourceAncestors. */ int getResourceAncestorsCount(); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -136,14 +103,11 @@ public interface FilterOrBuilder
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ java.lang.String getResourceAncestors(int index); /** - * - * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -155,15 +119,13 @@ public interface FilterOrBuilder
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - com.google.protobuf.ByteString getResourceAncestorsBytes(int index); + com.google.protobuf.ByteString + getResourceAncestorsBytes(int index); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -178,13 +140,11 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the creditTypes. */ - java.util.List getCreditTypesList(); + java.util.List + getCreditTypesList(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -199,13 +159,10 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of creditTypes. */ int getCreditTypesCount(); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -220,14 +177,11 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The creditTypes at the given index. */ java.lang.String getCreditTypes(int index); /** - * - * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -242,44 +196,32 @@ public interface FilterOrBuilder
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - com.google.protobuf.ByteString getCreditTypesBytes(int index); + com.google.protobuf.ByteString + getCreditTypesBytes(int index); /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for creditTypesTreatment. */ int getCreditTypesTreatmentValue(); /** - * - * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The creditTypesTreatment. */ com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -290,13 +232,11 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the services. */ - java.util.List getServicesList(); + java.util.List + getServicesList(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -307,13 +247,10 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of services. */ int getServicesCount(); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -324,14 +261,11 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The services at the given index. */ java.lang.String getServices(int index); /** - * - * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -342,15 +276,13 @@ public interface FilterOrBuilder
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - com.google.protobuf.ByteString getServicesBytes(int index); + com.google.protobuf.ByteString + getServicesBytes(int index); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -361,13 +293,11 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the subaccounts. */ - java.util.List getSubaccountsList(); + java.util.List + getSubaccountsList(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -378,13 +308,10 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of subaccounts. */ int getSubaccountsCount(); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -395,14 +322,11 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The subaccounts at the given index. */ java.lang.String getSubaccounts(int index); /** - * - * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -413,15 +337,13 @@ public interface FilterOrBuilder
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - com.google.protobuf.ByteString getSubaccountsBytes(int index); + com.google.protobuf.ByteString + getSubaccountsBytes(int index); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -434,14 +356,10 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -454,17 +372,17 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -477,14 +395,11 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -497,18 +412,14 @@ public interface FilterOrBuilder
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.protobuf.ListValue getLabelsOrDefault( +com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.ListValue defaultValue); +com.google.protobuf.ListValue defaultValue); /** - * - * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -521,15 +432,12 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key); + com.google.protobuf.ListValue getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -539,16 +447,11 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the calendarPeriod field is set. */ boolean hasCalendarPeriod(); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -558,16 +461,11 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for calendarPeriod. */ int getCalendarPeriodValue(); /** - * - * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -577,55 +475,38 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * so on.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The calendarPeriod. */ com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customPeriod field is set. */ boolean hasCustomPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The customPeriod. */ com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod(); /** - * - * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder(); diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java similarity index 63% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java index c35946915029..6cb5a3e603dd 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * Request for GetBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.GetBudgetRequest} */ -public final class GetBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) GetBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBudgetRequest.newBuilder() to construct. private GetBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other = - (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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 for GetBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.GetBudgetRequest} */ - 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.budgets.v1beta1.GetBudgetRequest) com.google.cloud.billing.budgets.v1beta1.GetBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override @@ -344,11 +312,8 @@ public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest result = - new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +329,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.GetBudgetReq 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.budgets.v1beta1.GetBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -404,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -437,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -489,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -558,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) private static final com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(); } @@ -608,27 +544,27 @@ public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..dbdcc744a53e --- /dev/null +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface GetBudgetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java similarity index 65% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java index c390cddb2a5b..f461f262596e 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * Describes a budget amount targeted to the last
  * [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period]
@@ -35,41 +18,39 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.LastPeriodAmount}
  */
-public final class LastPeriodAmount extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LastPeriodAmount extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
     LastPeriodAmountOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LastPeriodAmount.newBuilder() to construct.
   private LastPeriodAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private LastPeriodAmount() {}
+  private LastPeriodAmount() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LastPeriodAmount();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class,
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -81,7 +62,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -99,13 +81,12 @@ 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.budgets.v1beta1.LastPeriodAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other =
-        (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) obj;
+    com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other = (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -124,104 +105,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount prototype) {
+  public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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;
   }
   /**
-   *
-   *
    * 
    * Describes a budget amount targeted to the last
    * [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period]
@@ -236,32 +211,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.LastPeriodAmount}
    */
-  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.budgets.v1beta1.LastPeriodAmount)
       com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class,
-              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -269,9 +245,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
@@ -290,8 +266,7 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount result =
-          new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount(this);
+      com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount result = new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount(this);
       onBuilt();
       return result;
     }
@@ -300,39 +275,38 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -340,8 +314,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -368,13 +341,12 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -384,9 +356,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -396,12 +368,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
   private static final com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount();
   }
@@ -410,27 +382,27 @@ public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public LastPeriodAmount parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public LastPeriodAmount parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -445,4 +417,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java
new file mode 100644
index 000000000000..78785ce8b259
--- /dev/null
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1beta1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1beta1;
+
+public interface LastPeriodAmountOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
similarity index 72%
rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
index 3435d17fd6d4..e6d912bd4ec8 100644
--- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
+++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
 /**
- *
- *
  * 
  * Request for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsRequest} */ -public final class ListBudgetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBudgetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) ListBudgetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBudgetsRequest.newBuilder() to construct. private ListBudgetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBudgetsRequest() { parent_ = ""; scope_ = ""; @@ -45,41 +27,34 @@ private ListBudgetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBudgetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -88,32 +63,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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 { @@ -122,12 +95,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SCOPE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object scope_ = ""; /** - * - * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -138,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The scope. */ @java.lang.Override @@ -147,15 +116,14 @@ public java.lang.String getScope() { 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(); scope_ = s; return s; } } /** - * - * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -166,15 +134,16 @@ public java.lang.String getScope() {
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; 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); scope_ = b; return b; } else { @@ -185,15 +154,12 @@ public com.google.protobuf.ByteString getScopeBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -202,12 +168,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -215,7 +178,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -224,15 +186,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; } } /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -240,15 +201,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -257,7 +219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +230,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -295,7 +257,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -311,18 +274,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other = - (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getScope().equals(other.getScope())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other = (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getScope() + .equals(other.getScope())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +314,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsRequest} */ - 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.budgets.v1beta1.ListBudgetsRequest) com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +451,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override @@ -511,11 +472,8 @@ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest result = - new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest result = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -540,39 +498,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ListBudgetsR 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.budgets.v1beta1.ListBudgetsRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest)other); } else { super.mergeFrom(other); return this; @@ -580,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -626,37 +582,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - scope_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -666,28 +617,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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; @@ -696,24 +642,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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 { @@ -721,41 +664,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * 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() { @@ -765,24 +697,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -792,8 +718,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object scope_ = ""; /** - * - * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -804,13 +728,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; 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(); scope_ = s; return s; @@ -819,8 +743,6 @@ public java.lang.String getScope() { } } /** - * - * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -831,14 +753,15 @@ public java.lang.String getScope() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for scope. */ - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; 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); scope_ = b; return b; } else { @@ -846,8 +769,6 @@ public com.google.protobuf.ByteString getScopeBytes() { } } /** - * - * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -858,22 +779,18 @@ public com.google.protobuf.ByteString getScopeBytes() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setScope( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } scope_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -884,7 +801,6 @@ public Builder setScope(java.lang.String value) {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearScope() { @@ -894,8 +810,6 @@ public Builder clearScope() { return this; } /** - * - * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -906,14 +820,12 @@ public Builder clearScope() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); scope_ = value; bitField0_ |= 0x00000002; @@ -921,17 +833,14 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -939,15 +848,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -959,15 +865,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -979,8 +882,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -988,13 +889,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1003,8 +904,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -1012,14 +911,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1027,8 +927,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -1036,22 +934,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -1059,7 +953,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1069,8 +962,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -1078,23 +969,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1104,12 +993,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(); } @@ -1118,27 +1007,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1153,4 +1042,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java similarity index 72% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java index 26135769502b..ba882c4c2570 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ListBudgetsRequestOrBuilder - extends +public interface ListBudgetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * - * 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. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -67,13 +40,10 @@ public interface ListBudgetsRequestOrBuilder
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The scope. */ java.lang.String getScope(); /** - * - * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -84,28 +54,23 @@ public interface ListBudgetsRequestOrBuilder
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for scope. */ - com.google.protobuf.ByteString getScopeBytes(); + com.google.protobuf.ByteString + getScopeBytes(); /** - * - * *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -113,13 +78,10 @@ public interface ListBudgetsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -127,8 +89,8 @@ public interface ListBudgetsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java similarity index 71% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java index 97f4f3f2131e..b4af81ab449b 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * Response for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsResponse} */ -public final class ListBudgetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBudgetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) ListBudgetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBudgetsResponse.newBuilder() to construct. private ListBudgetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBudgetsResponse() { budgets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListBudgetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBudgetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); } public static final int BUDGETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List budgets_; /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -81,8 +59,6 @@ public java.util.List getBudget return budgets_; } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -90,13 +66,11 @@ public java.util.List getBudget * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBudgetsOrBuilderList() { return budgets_; } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -108,8 +82,6 @@ public int getBudgetsCount() { return budgets_.size(); } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { return budgets_.get(index); } /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -130,24 +100,21 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index) { + public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( + int index) { return budgets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,30 +123,30 @@ 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; } } /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * 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 { @@ -188,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +166,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 < budgets_.size(); i++) { output.writeMessage(1, budgets_.get(i)); } @@ -217,7 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < budgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, budgets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, budgets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -230,16 +198,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.budgets.v1beta1.ListBudgetsResponse)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other = - (com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) obj; + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other = (com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) obj; - if (!getBudgetsList().equals(other.getBudgetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getBudgetsList() + .equals(other.getBudgetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +232,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsResponse} */ - 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.budgets.v1beta1.ListBudgetsResponse) com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,14 +373,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse - getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance(); } @@ -431,18 +394,14 @@ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse buildPartial() { - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result = - new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(this); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { if (budgetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { budgets_ = java.util.Collections.unmodifiableList(budgets_); @@ -454,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { + private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -466,39 +424,38 @@ private void buildPartial0( 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.budgets.v1beta1.ListBudgetsResponse) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse)other); } else { super.mergeFrom(other); return this; @@ -506,9 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other) { - if (other - == com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()) return this; if (budgetsBuilder_ == null) { if (!other.budgets_.isEmpty()) { if (budgets_.isEmpty()) { @@ -527,10 +482,9 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRes budgetsBuilder_ = null; budgets_ = other.budgets_; bitField0_ = (bitField0_ & ~0x00000001); - budgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBudgetsFieldBuilder() - : null; + budgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBudgetsFieldBuilder() : null; } else { budgetsBuilder_.addAllMessages(other.budgets_); } @@ -567,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.billing.budgets.v1beta1.Budget m = - input.readMessage( - com.google.cloud.billing.budgets.v1beta1.Budget.parser(), - extensionRegistry); - if (budgetsBuilder_ == null) { - ensureBudgetsIsMutable(); - budgets_.add(m); - } else { - budgetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.billing.budgets.v1beta1.Budget m = + input.readMessage( + com.google.cloud.billing.budgets.v1beta1.Budget.parser(), + extensionRegistry); + if (budgetsBuilder_ == null) { + ensureBudgetsIsMutable(); + budgets_.add(m); + } else { + budgetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,29 +554,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List budgets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBudgetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - budgets_ = - new java.util.ArrayList(budgets_); + budgets_ = new java.util.ArrayList(budgets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> - budgetsBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetsBuilder_; /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -640,8 +583,6 @@ public java.util.List getBudget } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -656,8 +597,6 @@ public int getBudgetsCount() { } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -672,15 +611,14 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { + public Builder setBudgets( + int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,8 +632,6 @@ public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Bu return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -714,8 +650,6 @@ public Builder setBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -736,15 +670,14 @@ public Builder addBudgets(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { + public Builder addBudgets( + int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -758,8 +691,6 @@ public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Bu return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -778,8 +709,6 @@ public Builder addBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -798,8 +727,6 @@ public Builder addBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -810,7 +737,8 @@ public Builder addAllBudgets( java.lang.Iterable values) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, budgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, budgets_); onChanged(); } else { budgetsBuilder_.addAllMessages(values); @@ -818,8 +746,6 @@ public Builder addAllBudgets( return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -837,8 +763,6 @@ public Builder clearBudgets() { return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -856,44 +780,39 @@ public Builder removeBudgets(int index) { return this; } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetsBuilder(int index) { + public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetsBuilder( + int index) { return getBudgetsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index) { + public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( + int index) { if (budgetsBuilder_ == null) { - return budgets_.get(index); - } else { + return budgets_.get(index); } else { return budgetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public java.util.List - getBudgetsOrBuilderList() { + public java.util.List + getBudgetsOrBuilderList() { if (budgetsBuilder_ != null) { return budgetsBuilder_.getMessageOrBuilderList(); } else { @@ -901,8 +820,6 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuil } } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -910,48 +827,42 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuil * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder() { - return getBudgetsFieldBuilder() - .addBuilder(com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); + return getBudgetsFieldBuilder().addBuilder( + com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder(int index) { - return getBudgetsFieldBuilder() - .addBuilder(index, com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder( + int index) { + return getBudgetsFieldBuilder().addBuilder( + index, com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); } /** - * - * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public java.util.List - getBudgetsBuilderList() { + public java.util.List + getBudgetsBuilderList() { return getBudgetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetsFieldBuilder() { if (budgetsBuilder_ == null) { - budgetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - budgets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + budgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + budgets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); budgets_ = null; } return budgetsBuilder_; @@ -959,21 +870,19 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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; @@ -982,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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 { @@ -1005,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1045,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1079,13 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) - private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(); } @@ -1094,27 +990,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java similarity index 71% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java index 204d066b8680..63c67c8fb5dc 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ListBudgetsResponseOrBuilder - extends +public interface ListBudgetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - java.util.List getBudgetsList(); + java.util.List + getBudgetsList(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -44,8 +25,6 @@ public interface ListBudgetsResponseOrBuilder */ com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -54,51 +33,43 @@ public interface ListBudgetsResponseOrBuilder */ int getBudgetsCount(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - java.util.List + java.util.List getBudgetsOrBuilderList(); /** - * - * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index); + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java similarity index 68% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java index 4ad22b1f581c..7a3f5750da88 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * ThresholdRule contains the definition of a threshold. Threshold rules define
  * the triggering events used to generate a budget notification email. When a
@@ -48,54 +31,49 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ThresholdRule}
  */
-public final class ThresholdRule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ThresholdRule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ThresholdRule)
     ThresholdRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ThresholdRule.newBuilder() to construct.
   private ThresholdRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ThresholdRule() {
     spendBasis_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ThresholdRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-        .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class,
-            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of basis used to determine if spend has passed the threshold.
    * 
* * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis} */ - public enum Basis implements com.google.protobuf.ProtocolMessageEnum { + public enum Basis + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified threshold basis.
      * 
@@ -104,8 +82,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ BASIS_UNSPECIFIED(0), /** - * - * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -114,8 +90,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ CURRENT_SPEND(1), /** - * - * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -132,8 +106,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified threshold basis.
      * 
@@ -142,8 +114,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BASIS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -152,8 +122,6 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CURRENT_SPEND_VALUE = 1; /** - * - * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -167,6 +135,7 @@ public enum Basis implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FORECASTED_SPEND_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -191,51 +160,49 @@ public static Basis valueOf(int value) {
      */
     public static Basis forNumber(int value) {
       switch (value) {
-        case 0:
-          return BASIS_UNSPECIFIED;
-        case 1:
-          return CURRENT_SPEND;
-        case 2:
-          return FORECASTED_SPEND;
-        default:
-          return null;
+        case 0: return BASIS_UNSPECIFIED;
+        case 1: return CURRENT_SPEND;
+        case 2: return FORECASTED_SPEND;
+        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<
+        Basis> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Basis findValueByNumber(int number) {
+              return Basis.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Basis findValueByNumber(int number) {
-            return Basis.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() {
-      return com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Basis[] VALUES = values();
 
-    public static Basis valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Basis 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;
@@ -255,8 +222,6 @@ private Basis(int value) {
   public static final int THRESHOLD_PERCENT_FIELD_NUMBER = 1;
   private double thresholdPercent_ = 0D;
   /**
-   *
-   *
    * 
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -264,7 +229,6 @@ private Basis(int value) {
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ @java.lang.Override @@ -275,48 +239,32 @@ public double getThresholdPercent() { public static final int SPEND_BASIS_FIELD_NUMBER = 2; private int spendBasis_ = 0; /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override - public int getSpendBasisValue() { + @java.lang.Override public int getSpendBasisValue() { return spendBasis_; } /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ - @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,13 +276,12 @@ 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(thresholdPercent_) != 0) { output.writeDouble(1, thresholdPercent_); } - if (spendBasis_ - != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED - .getNumber()) { + if (spendBasis_ != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { output.writeEnum(2, spendBasis_); } getUnknownFields().writeTo(output); @@ -347,12 +294,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(thresholdPercent_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, thresholdPercent_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, thresholdPercent_); } - if (spendBasis_ - != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spendBasis_); + if (spendBasis_ != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, spendBasis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -362,16 +309,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.budgets.v1beta1.ThresholdRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ThresholdRule other = - (com.google.cloud.billing.budgets.v1beta1.ThresholdRule) obj; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule other = (com.google.cloud.billing.budgets.v1beta1.ThresholdRule) obj; if (java.lang.Double.doubleToLongBits(getThresholdPercent()) - != java.lang.Double.doubleToLongBits(other.getThresholdPercent())) return false; + != java.lang.Double.doubleToLongBits( + other.getThresholdPercent())) return false; if (spendBasis_ != other.spendBasis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -385,10 +332,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THRESHOLD_PERCENT_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThresholdPercent())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThresholdPercent())); hash = (37 * hash) + SPEND_BASIS_FIELD_NUMBER; hash = (53 * hash) + spendBasis_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -397,104 +342,98 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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; } /** - * - * *
    * ThresholdRule contains the definition of a threshold. Threshold rules define
    * the triggering events used to generate a budget notification email. When a
@@ -522,32 +461,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ThresholdRule}
    */
-  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.budgets.v1beta1.ThresholdRule)
       com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class,
-              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.ThresholdRule.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -558,9 +498,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
-          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
@@ -579,11 +519,8 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.ThresholdRule buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.ThresholdRule result =
-          new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.billing.budgets.v1beta1.ThresholdRule result = new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -602,39 +539,38 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ThresholdRul
     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.budgets.v1beta1.ThresholdRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ThresholdRule) other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ThresholdRule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -642,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ThresholdRule other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()) return this;
       if (other.getThresholdPercent() != 0D) {
         setThresholdPercent(other.getThresholdPercent());
       }
@@ -676,25 +611,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 9:
-              {
-                thresholdPercent_ = input.readDouble();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 9
-            case 16:
-              {
-                spendBasis_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 9: {
+              thresholdPercent_ = input.readDouble();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 9
+            case 16: {
+              spendBasis_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -704,13 +636,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private double thresholdPercent_;
+    private double thresholdPercent_ ;
     /**
-     *
-     *
      * 
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -718,7 +647,6 @@ public Builder mergeFrom(
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ @java.lang.Override @@ -726,8 +654,6 @@ public double getThresholdPercent() { return thresholdPercent_; } /** - * - * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -735,7 +661,6 @@ public double getThresholdPercent() {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The thresholdPercent to set. * @return This builder for chaining. */ @@ -747,8 +672,6 @@ public Builder setThresholdPercent(double value) { return this; } /** - * - * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -756,7 +679,6 @@ public Builder setThresholdPercent(double value) {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearThresholdPercent() { @@ -768,35 +690,24 @@ public Builder clearThresholdPercent() { private int spendBasis_ = 0; /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override - public int getSpendBasisValue() { + @java.lang.Override public int getSpendBasisValue() { return spendBasis_; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for spendBasis to set. * @return This builder for chaining. */ @@ -807,44 +718,30 @@ public Builder setSpendBasisValue(int value) { return this; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null - ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED - : result; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The spendBasis to set. * @return This builder for chaining. */ - public Builder setSpendBasis( - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis value) { + public Builder setSpendBasis(com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis value) { if (value == null) { throw new NullPointerException(); } @@ -854,17 +751,12 @@ public Builder setSpendBasis( return this; } /** - * - * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearSpendBasis() { @@ -873,9 +765,9 @@ public Builder clearSpendBasis() { 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); } @@ -885,12 +777,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ThresholdRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ThresholdRule) private static final com.google.cloud.billing.budgets.v1beta1.ThresholdRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(); } @@ -899,27 +791,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThresholdRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThresholdRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -934,4 +826,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java similarity index 55% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java index 46dd4b4bec7a..efaaef4ae53d 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ThresholdRuleOrBuilder - extends +public interface ThresholdRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ThresholdRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -33,38 +15,27 @@ public interface ThresholdRuleOrBuilder
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The thresholdPercent. */ double getThresholdPercent(); /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for spendBasis. */ int getSpendBasisValue(); /** - * - * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The spendBasis. */ com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis(); diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java similarity index 66% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java index 356fbba005ec..598d6b738493 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java @@ -1,79 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** - * - * *
  * Request for UpdateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest} */ -public final class UpdateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBudgetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) UpdateBudgetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBudgetRequest.newBuilder() to construct. private UpdateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateBudgetRequest() {} + private UpdateBudgetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); } public static final int BUDGET_FIELD_NUMBER = 1; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ @java.lang.Override @@ -81,49 +58,34 @@ public boolean hasBudget() { return budget_ != null; } /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -133,9 +95,7 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -143,8 +103,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -154,9 +112,7 @@ public boolean hasUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -164,8 +120,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -175,8 +129,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -184,7 +137,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,7 +148,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 (budget_ != null) { output.writeMessage(1, getBudget()); } @@ -213,10 +166,12 @@ public int getSerializedSize() { size = 0; if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBudget()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBudget()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -226,21 +181,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.budgets.v1beta1.UpdateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other = - (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) obj; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget().equals(other.getBudget())) return false; + if (!getBudget() + .equals(other.getBudget())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -267,136 +223,131 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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 for UpdateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest} */ - 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.budgets.v1beta1.UpdateBudgetRequest) com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,14 +366,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass - .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest - getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance(); } @@ -437,23 +387,23 @@ public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result = - new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result) { + private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null + ? budget_ + : budgetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -461,39 +411,38 @@ private void buildPartial0( 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.budgets.v1beta1.UpdateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest)other); } else { super.mergeFrom(other); return this; @@ -501,9 +450,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other) { - if (other - == com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()) return this; if (other.hasBudget()) { mergeBudget(other.getBudget()); } @@ -536,25 +483,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBudgetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -564,66 +512,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> - budgetBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetBuilder_; /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } else { return budgetBuilder_.getMessage(); } } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { @@ -639,16 +567,12 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBudget( com.google.cloud.billing.budgets.v1beta1.Budget.Builder builderForValue) { @@ -662,22 +586,18 @@ public Builder setBudget( return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && budget_ != null - && budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + budget_ != null && + budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -690,16 +610,12 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000001); @@ -712,16 +628,12 @@ public Builder clearBudget() { return this; } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000001; @@ -729,50 +641,38 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder( return getBudgetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null - ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() - : budget_; + return budget_ == null ? + com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; } } /** - * - * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, - com.google.cloud.billing.budgets.v1beta1.Budget.Builder, - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - getBudget(), getParentForChildren(), isClean()); + budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + getBudget(), + getParentForChildren(), + isClean()); budget_ = null; } return budgetBuilder_; @@ -780,13 +680,8 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild 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_; /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -796,17 +691,13 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -816,23 +707,17 @@ public boolean hasUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @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(); } } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -842,8 +727,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -859,8 +743,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -870,10 +752,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -884,8 +766,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -895,14 +775,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -915,8 +794,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -926,8 +803,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -940,8 +816,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -951,8 +825,7 @@ public Builder clearUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -960,8 +833,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -971,21 +842,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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_; } } /** - * - * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -995,28 +862,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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); } @@ -1026,13 +889,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(); } @@ -1041,27 +903,27 @@ public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1076,4 +938,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java similarity index 67% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java index 78d271936191..1d6feb44e56c 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java +++ b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java @@ -1,75 +1,43 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface UpdateBudgetRequestOrBuilder - extends +public interface UpdateBudgetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the budget field is set. */ boolean hasBudget(); /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The budget. */ com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); /** - * - * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -79,15 +47,11 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -97,15 +61,11 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -115,8 +75,7 @@ public interface UpdateBudgetRequestOrBuilder
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto similarity index 100% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto similarity index 100% rename from java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto rename to owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java b/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java similarity index 100% rename from java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java rename to owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java From b8c03a106254270833c0d40bd9ae8ed4d3c1a059 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 22 Aug 2023 20:48:45 +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 --- .../budgets/v1/BudgetServiceClient.java | 0 .../budgets/v1/BudgetServiceSettings.java | 1 - .../billing/budgets/v1/gapic_metadata.json | 0 .../billing/budgets/v1/package-info.java | 0 .../budgets/v1/stub/BudgetServiceStub.java | 0 .../v1/stub/BudgetServiceStubSettings.java | 0 .../GrpcBudgetServiceCallableFactory.java | 0 .../v1/stub/GrpcBudgetServiceStub.java | 1 - .../HttpJsonBudgetServiceCallableFactory.java | 0 .../v1/stub/HttpJsonBudgetServiceStub.java | 0 .../budgets/v1beta1/BudgetServiceClient.java | 0 .../v1beta1/BudgetServiceSettings.java | 1 - .../budgets/v1beta1/gapic_metadata.json | 0 .../billing/budgets/v1beta1/package-info.java | 0 .../v1beta1/stub/BudgetServiceStub.java | 0 .../stub/BudgetServiceStubSettings.java | 0 .../GrpcBudgetServiceCallableFactory.java | 0 .../v1beta1/stub/GrpcBudgetServiceStub.java | 1 - .../reflect-config.json | 0 .../reflect-config.json | 0 .../v1/BudgetServiceClientHttpJsonTest.java | 0 .../budgets/v1/BudgetServiceClientTest.java | 0 .../billing/budgets/v1/MockBudgetService.java | 0 .../budgets/v1/MockBudgetServiceImpl.java | 0 .../v1beta1/BudgetServiceClientTest.java | 0 .../budgets/v1beta1/MockBudgetService.java | 0 .../v1beta1/MockBudgetServiceImpl.java | 0 .../billing/budgets/v1/BudgetServiceGrpc.java | 583 +++--- .../budgets/v1beta1/BudgetServiceGrpc.java | 604 ++++--- .../budgets/v1/BillingAccountName.java | 0 .../cloud/billing/budgets/v1/Budget.java | 1136 ++++++++---- .../billing/budgets/v1/BudgetAmount.java | 488 ++++-- .../budgets/v1/BudgetAmountOrBuilder.java | 34 +- .../billing/budgets/v1/BudgetModelProto.java | 236 +++ .../cloud/billing/budgets/v1/BudgetName.java | 0 .../billing/budgets/v1/BudgetOrBuilder.java | 143 +- .../budgets/v1/BudgetServiceProto.java | 199 +++ .../billing/budgets/v1/CalendarPeriod.java | 93 +- .../budgets/v1/CreateBudgetRequest.java | 495 ++++-- .../v1/CreateBudgetRequestOrBuilder.java | 97 + .../billing/budgets/v1/CustomPeriod.java | 404 +++-- .../budgets/v1/CustomPeriodOrBuilder.java | 34 +- .../budgets/v1/DeleteBudgetRequest.java | 350 ++-- .../v1/DeleteBudgetRequestOrBuilder.java | 56 + .../cloud/billing/budgets/v1/Filter.java | 1547 ++++++++++------ .../billing/budgets/v1/FilterOrBuilder.java | 213 ++- .../billing/budgets/v1/GetBudgetRequest.java | 347 ++-- .../budgets/v1/GetBudgetRequestOrBuilder.java | 56 + .../billing/budgets/v1/LastPeriodAmount.java | 245 +-- .../budgets/v1/LastPeriodAmountOrBuilder.java | 24 + .../budgets/v1/ListBudgetsRequest.java | 527 +++--- .../v1/ListBudgetsRequestOrBuilder.java | 56 +- .../budgets/v1/ListBudgetsResponse.java | 483 +++-- .../v1/ListBudgetsResponseOrBuilder.java | 45 +- .../billing/budgets/v1/NotificationsRule.java | 643 ++++--- .../v1/NotificationsRuleOrBuilder.java | 79 +- .../billing/budgets/v1/ThresholdRule.java | 444 +++-- .../budgets/v1/ThresholdRuleOrBuilder.java | 35 +- .../budgets/v1/UpdateBudgetRequest.java | 523 +++--- .../v1/UpdateBudgetRequestOrBuilder.java | 55 +- .../billing/budgets/v1/budget_model.proto | 0 .../billing/budgets/v1/budget_service.proto | 0 .../budgets/v1beta1/AllUpdatesRule.java | 643 ++++--- .../v1beta1/AllUpdatesRuleOrBuilder.java | 79 +- .../cloud/billing/budgets/v1beta1/Budget.java | 1154 ++++++++---- .../billing/budgets/v1beta1/BudgetAmount.java | 500 ++++-- .../v1beta1/BudgetAmountOrBuilder.java | 34 +- .../billing/budgets/v1beta1/BudgetModel.java | 239 +++ .../billing/budgets/v1beta1/BudgetName.java | 0 .../budgets/v1beta1/BudgetOrBuilder.java | 140 +- .../v1beta1/BudgetServiceOuterClass.java | 199 +++ .../budgets/v1beta1/CalendarPeriod.java | 93 +- .../budgets/v1beta1/CreateBudgetRequest.java | 502 ++++-- .../v1beta1/CreateBudgetRequestOrBuilder.java | 97 + .../billing/budgets/v1beta1/CustomPeriod.java | 407 +++-- .../v1beta1/CustomPeriodOrBuilder.java | 34 +- .../budgets/v1beta1/DeleteBudgetRequest.java | 360 ++-- .../v1beta1/DeleteBudgetRequestOrBuilder.java | 56 + .../cloud/billing/budgets/v1beta1/Filter.java | 1557 +++++++++++------ .../budgets/v1beta1/FilterOrBuilder.java | 213 ++- .../budgets/v1beta1/GetBudgetRequest.java | 350 ++-- .../v1beta1/GetBudgetRequestOrBuilder.java | 56 + .../budgets/v1beta1/LastPeriodAmount.java | 248 +-- .../v1beta1/LastPeriodAmountOrBuilder.java | 24 + .../budgets/v1beta1/ListBudgetsRequest.java | 527 +++--- .../v1beta1/ListBudgetsRequestOrBuilder.java | 56 +- .../budgets/v1beta1/ListBudgetsResponse.java | 494 +++--- .../v1beta1/ListBudgetsResponseOrBuilder.java | 45 +- .../budgets/v1beta1/ThresholdRule.java | 452 +++-- .../v1beta1/ThresholdRuleOrBuilder.java | 35 +- .../budgets/v1beta1/UpdateBudgetRequest.java | 530 +++--- .../v1beta1/UpdateBudgetRequestOrBuilder.java | 55 +- .../budgets/v1beta1/budget_model.proto | 0 .../budgets/v1beta1/budget_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbudget/AsyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 ...cCreateBudgetBillingaccountnameBudget.java | 0 .../SyncCreateBudgetStringBudget.java | 0 .../deletebudget/AsyncDeleteBudget.java | 0 .../deletebudget/SyncDeleteBudget.java | 0 .../SyncDeleteBudgetBudgetname.java | 0 .../deletebudget/SyncDeleteBudgetString.java | 0 .../getbudget/AsyncGetBudget.java | 0 .../getbudget/SyncGetBudget.java | 0 .../getbudget/SyncGetBudgetBudgetname.java | 0 .../getbudget/SyncGetBudgetString.java | 0 .../listbudgets/AsyncListBudgets.java | 0 .../listbudgets/AsyncListBudgetsPaged.java | 0 .../listbudgets/SyncListBudgets.java | 0 .../SyncListBudgetsBillingaccountname.java | 0 .../listbudgets/SyncListBudgetsString.java | 0 .../updatebudget/AsyncUpdateBudget.java | 0 .../updatebudget/SyncUpdateBudget.java | 0 .../SyncUpdateBudgetBudgetFieldmask.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbudget/AsyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../deletebudget/AsyncDeleteBudget.java | 0 .../deletebudget/SyncDeleteBudget.java | 0 .../getbudget/AsyncGetBudget.java | 0 .../getbudget/SyncGetBudget.java | 0 .../listbudgets/AsyncListBudgets.java | 0 .../listbudgets/AsyncListBudgetsPaged.java | 0 .../listbudgets/SyncListBudgets.java | 0 .../updatebudget/AsyncUpdateBudget.java | 0 .../updatebudget/SyncUpdateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../createbudget/SyncCreateBudget.java | 0 .../billing/budgets/v1/BudgetModelProto.java | 197 --- .../budgets/v1/BudgetServiceProto.java | 179 -- .../v1/CreateBudgetRequestOrBuilder.java | 58 - .../v1/DeleteBudgetRequestOrBuilder.java | 31 - .../budgets/v1/GetBudgetRequestOrBuilder.java | 31 - .../budgets/v1/LastPeriodAmountOrBuilder.java | 9 - .../billing/budgets/v1beta1/BudgetModel.java | 198 --- .../v1beta1/BudgetServiceOuterClass.java | 179 -- .../v1beta1/CreateBudgetRequestOrBuilder.java | 58 - .../v1beta1/DeleteBudgetRequestOrBuilder.java | 31 - .../v1beta1/GetBudgetRequestOrBuilder.java | 31 - .../v1beta1/LastPeriodAmountOrBuilder.java | 9 - 146 files changed, 12959 insertions(+), 7509 deletions(-) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java (99%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java (99%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java (99%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java (99%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java (52%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java (50%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java (67%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java (75%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java (83%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java (66%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java (70%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java (61%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java (73%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java (75%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java (63%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java (75%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java (83%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java (64%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java (65%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java (72%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java (72%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java (72%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java (69%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java (82%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java (88%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java (69%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java (55%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java (67%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java (67%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java (76%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java (81%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java (66%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java (74%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java (83%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java (66%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java (70%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java (60%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java (73%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java (75%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java (62%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java (75%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java (83%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java (63%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java (65%) create mode 100644 java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java (72%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java (72%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java (71%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java (71%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java (68%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java (55%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java (66%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java (67%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java (100%) rename {owl-bot-staging/java-billingbudgets/v1beta1 => java-billingbudgets}/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java (100%) delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java similarity index 99% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java index 226f074161e3..2c4366092d95 100644 --- a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java @@ -28,7 +28,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.budgets.v1.stub.BudgetServiceStubSettings; diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java similarity index 99% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java index 2faf2b586325..c0b7eae1f516 100644 --- a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java @@ -37,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java similarity index 99% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java index 54f7fab4ea61..a611a80c3bbe 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java @@ -27,7 +27,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.budgets.v1beta1.stub.BudgetServiceStubSettings; diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java similarity index 99% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java rename to java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java index 3fe00906ecd4..b0cd886f6b40 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java @@ -38,7 +38,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json b/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json rename to java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json b/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json rename to java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java diff --git a/owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java b/java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java rename to java-billingbudgets/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java diff --git a/owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java similarity index 52% rename from owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java rename to java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java index f9432bd17118..b9ff2840f9fc 100644 --- a/owl-bot-staging/java-billingbudgets/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.billing.budgets.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * BudgetService stores Cloud Billing budgets, which define a
  * budget plan and rules to execute as we track spend against that plan.
@@ -19,206 +36,276 @@ private BudgetServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.billing.budgets.v1.BudgetService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getCreateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateBudget",
       requestType = com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateBudgetMethod() {
-    io.grpc.MethodDescriptor getCreateBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getCreateBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1.CreateBudgetRequest,
+            com.google.cloud.billing.budgets.v1.Budget>
+        getCreateBudgetMethod;
     if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
-          BudgetServiceGrpc.getCreateBudgetMethod = getCreateBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
-              .build();
+          BudgetServiceGrpc.getCreateBudgetMethod =
+              getCreateBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.CreateBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
+                      .build();
         }
       }
     }
     return getCreateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getUpdateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateBudget",
       requestType = com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateBudgetMethod() {
-    io.grpc.MethodDescriptor getUpdateBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getUpdateBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1.UpdateBudgetRequest,
+            com.google.cloud.billing.budgets.v1.Budget>
+        getUpdateBudgetMethod;
     if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
-          BudgetServiceGrpc.getUpdateBudgetMethod = getUpdateBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
-              .build();
+          BudgetServiceGrpc.getUpdateBudgetMethod =
+              getUpdateBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.UpdateBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
+                      .build();
         }
       }
     }
     return getUpdateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.GetBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getGetBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetBudget",
       requestType = com.google.cloud.billing.budgets.v1.GetBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetBudgetMethod() {
-    io.grpc.MethodDescriptor getGetBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.GetBudgetRequest,
+          com.google.cloud.billing.budgets.v1.Budget>
+      getGetBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1.GetBudgetRequest,
+            com.google.cloud.billing.budgets.v1.Budget>
+        getGetBudgetMethod;
     if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
-          BudgetServiceGrpc.getGetBudgetMethod = getGetBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
-              .build();
+          BudgetServiceGrpc.getGetBudgetMethod =
+              getGetBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.GetBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
+                      .build();
         }
       }
     }
     return getGetBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListBudgetsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
+          com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
+      getListBudgetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListBudgets",
       requestType = com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class,
       responseType = com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListBudgetsMethod() {
-    io.grpc.MethodDescriptor getListBudgetsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
+          com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
+      getListBudgetsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1.ListBudgetsRequest,
+            com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
+        getListBudgetsMethod;
     if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
-          BudgetServiceGrpc.getListBudgetsMethod = getListBudgetsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
-              .build();
+          BudgetServiceGrpc.getListBudgetsMethod =
+              getListBudgetsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.ListBudgetsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.ListBudgetsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
+                      .build();
         }
       }
     }
     return getListBudgetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
+      getDeleteBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteBudget",
       requestType = com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteBudgetMethod() {
-    io.grpc.MethodDescriptor getDeleteBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
+      getDeleteBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, com.google.protobuf.Empty>
+        getDeleteBudgetMethod;
     if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
-          BudgetServiceGrpc.getDeleteBudgetMethod = getDeleteBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
-              .build();
+          BudgetServiceGrpc.getDeleteBudgetMethod =
+              getDeleteBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1.DeleteBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
+                      .build();
         }
       }
     }
     return getDeleteBudgetMethod;
   }
 
-  /**
-   * 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 BudgetServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceStub(channel, callOptions);
+          }
+        };
     return BudgetServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BudgetServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static BudgetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceBlockingStub(channel, callOptions);
+          }
+        };
     return BudgetServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static BudgetServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static BudgetServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceFutureStub(channel, callOptions);
+          }
+        };
     return BudgetServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -227,18 +314,24 @@ public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOpti
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - default void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, + default void createBudget( + com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBudgetMethod(), responseObserver); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -246,12 +339,16 @@ default void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetReques
      * this API will not be changed by this method.
      * 
*/ - default void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, + default void updateBudget( + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBudgetMethod(), responseObserver); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -260,12 +357,15 @@ default void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetReques
      * in the Cloud Console.
      * 
*/ - default void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request, + default void getBudget( + com.google.cloud.billing.budgets.v1.GetBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBudgetMethod(), responseObserver); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -274,39 +374,49 @@ default void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest requ
      * in the Cloud Console.
      * 
*/ - default void listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBudgetsMethod(), responseObserver); + default void listBudgets( + com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBudgetsMethod(), responseObserver); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - default void deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, + default void deleteBudget( + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBudgetMethod(), responseObserver); } } /** * Base class for the server implementation of the service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
    * 
*/ - public static abstract class BudgetServiceImplBase + public abstract static class BudgetServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return BudgetServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -314,31 +424,36 @@ public static abstract class BudgetServiceImplBase
    */
   public static final class BudgetServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private BudgetServiceStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected BudgetServiceStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected BudgetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new BudgetServiceStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, + public void createBudget( + com.google.cloud.billing.budgets.v1.CreateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -346,13 +461,18 @@ public void createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest
      * this API will not be changed by this method.
      * 
*/ - public void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, + public void updateBudget( + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -361,13 +481,16 @@ public void updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest
      * in the Cloud Console.
      * 
*/ - public void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request, + public void getBudget( + com.google.cloud.billing.budgets.v1.GetBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -376,26 +499,36 @@ public void getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest reque
      * in the Cloud Console.
      * 
*/ - public void listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listBudgets( + com.google.cloud.billing.budgets.v1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListBudgetsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public void deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, + public void deleteBudget( + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -403,8 +536,7 @@ public void deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest
    */
   public static final class BudgetServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private BudgetServiceBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -415,18 +547,23 @@ protected BudgetServiceBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget createBudget( + com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -434,12 +571,15 @@ public com.google.cloud.billing.budgets.v1.Budget createBudget(com.google.cloud.
      * this API will not be changed by this method.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget updateBudget( + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -448,12 +588,15 @@ public com.google.cloud.billing.budgets.v1.Budget updateBudget(com.google.cloud.
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1.Budget getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { + public com.google.cloud.billing.budgets.v1.Budget getBudget( + com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -462,17 +605,21 @@ public com.google.cloud.billing.budgets.v1.Budget getBudget(com.google.cloud.bil
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1.ListBudgetsResponse listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { + public com.google.cloud.billing.budgets.v1.ListBudgetsResponse listBudgets( + com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBudgetsMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { + public com.google.protobuf.Empty deleteBudget( + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); } @@ -480,6 +627,7 @@ public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v /** * A stub to allow clients to do ListenableFuture-style rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -487,8 +635,7 @@ public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v
    */
   public static final class BudgetServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private BudgetServiceFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -499,19 +646,24 @@ protected BudgetServiceFutureStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createBudget( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.billing.budgets.v1.Budget> + createBudget(com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -519,13 +671,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateBudget(
-        com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1.Budget>
+        updateBudget(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -534,13 +689,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture getBudget(
-        com.google.cloud.billing.budgets.v1.GetBudgetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1.Budget>
+        getBudget(com.google.cloud.billing.budgets.v1.GetBudgetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -549,19 +707,22 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listBudgets(
-        com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1.ListBudgetsResponse>
+        listBudgets(com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteBudget( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteBudget(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request); } @@ -573,11 +734,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -591,23 +752,32 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_BUDGET: - serviceImpl.createBudget((com.google.cloud.billing.budgets.v1.CreateBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.createBudget( + (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_BUDGET: - serviceImpl.updateBudget((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.updateBudget( + (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_BUDGET: - serviceImpl.getBudget((com.google.cloud.billing.budgets.v1.GetBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getBudget( + (com.google.cloud.billing.budgets.v1.GetBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_LIST_BUDGETS: - serviceImpl.listBudgets((com.google.cloud.billing.budgets.v1.ListBudgetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listBudgets( + (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_DELETE_BUDGET: - serviceImpl.deleteBudget((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) request, + serviceImpl.deleteBudget( + (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -629,45 +799,42 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.CreateBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>( - service, METHODID_CREATE_BUDGET))) + getCreateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.CreateBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_CREATE_BUDGET))) .addMethod( - getUpdateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>( - service, METHODID_UPDATE_BUDGET))) + getUpdateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_UPDATE_BUDGET))) .addMethod( - getGetBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.GetBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>( - service, METHODID_GET_BUDGET))) + getGetBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.GetBudgetRequest, + com.google.cloud.billing.budgets.v1.Budget>(service, METHODID_GET_BUDGET))) .addMethod( - getListBudgetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.ListBudgetsRequest, - com.google.cloud.billing.budgets.v1.ListBudgetsResponse>( - service, METHODID_LIST_BUDGETS))) + getListBudgetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.ListBudgetsRequest, + com.google.cloud.billing.budgets.v1.ListBudgetsResponse>( + service, METHODID_LIST_BUDGETS))) .addMethod( - getDeleteBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_BUDGET))) + getDeleteBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_BUDGET))) .build(); } - private static abstract class BudgetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class BudgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { BudgetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -709,14 +876,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BudgetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) - .addMethod(getCreateBudgetMethod()) - .addMethod(getUpdateBudgetMethod()) - .addMethod(getGetBudgetMethod()) - .addMethod(getListBudgetsMethod()) - .addMethod(getDeleteBudgetMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) + .addMethod(getCreateBudgetMethod()) + .addMethod(getUpdateBudgetMethod()) + .addMethod(getGetBudgetMethod()) + .addMethod(getListBudgetsMethod()) + .addMethod(getDeleteBudgetMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java similarity index 50% rename from owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java rename to java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java index 617511713473..27a4c429a154 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.billing.budgets.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * BudgetService stores Cloud Billing budgets, which define a
  * budget plan and rules to execute as we track spend against that plan.
@@ -19,206 +36,276 @@ private BudgetServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.billing.budgets.v1beta1.BudgetService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getCreateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateBudgetMethod() {
-    io.grpc.MethodDescriptor getCreateBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getCreateBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest,
+            com.google.cloud.billing.budgets.v1beta1.Budget>
+        getCreateBudgetMethod;
     if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getCreateBudgetMethod = BudgetServiceGrpc.getCreateBudgetMethod) == null) {
-          BudgetServiceGrpc.getCreateBudgetMethod = getCreateBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
-              .build();
+          BudgetServiceGrpc.getCreateBudgetMethod =
+              getCreateBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("CreateBudget"))
+                      .build();
         }
       }
     }
     return getCreateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getUpdateBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateBudgetMethod() {
-    io.grpc.MethodDescriptor getUpdateBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getUpdateBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest,
+            com.google.cloud.billing.budgets.v1beta1.Budget>
+        getUpdateBudgetMethod;
     if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getUpdateBudgetMethod = BudgetServiceGrpc.getUpdateBudgetMethod) == null) {
-          BudgetServiceGrpc.getUpdateBudgetMethod = getUpdateBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
-              .build();
+          BudgetServiceGrpc.getUpdateBudgetMethod =
+              getUpdateBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("UpdateBudget"))
+                      .build();
         }
       }
     }
     return getUpdateBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getGetBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.Budget.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetBudgetMethod() {
-    io.grpc.MethodDescriptor getGetBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
+          com.google.cloud.billing.budgets.v1beta1.Budget>
+      getGetBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest,
+            com.google.cloud.billing.budgets.v1beta1.Budget>
+        getGetBudgetMethod;
     if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getGetBudgetMethod = BudgetServiceGrpc.getGetBudgetMethod) == null) {
-          BudgetServiceGrpc.getGetBudgetMethod = getGetBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
-              .build();
+          BudgetServiceGrpc.getGetBudgetMethod =
+              getGetBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()))
+                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("GetBudget"))
+                      .build();
         }
       }
     }
     return getGetBudgetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListBudgetsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
+          com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
+      getListBudgetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListBudgets",
       requestType = com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class,
       responseType = com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListBudgetsMethod() {
-    io.grpc.MethodDescriptor getListBudgetsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
+          com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
+      getListBudgetsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest,
+            com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
+        getListBudgetsMethod;
     if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getListBudgetsMethod = BudgetServiceGrpc.getListBudgetsMethod) == null) {
-          BudgetServiceGrpc.getListBudgetsMethod = getListBudgetsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
-              .build();
+          BudgetServiceGrpc.getListBudgetsMethod =
+              getListBudgetsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBudgets"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("ListBudgets"))
+                      .build();
         }
       }
     }
     return getListBudgetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteBudgetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
+      getDeleteBudgetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteBudget",
       requestType = com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteBudgetMethod() {
-    io.grpc.MethodDescriptor getDeleteBudgetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
+      getDeleteBudgetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, com.google.protobuf.Empty>
+        getDeleteBudgetMethod;
     if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
       synchronized (BudgetServiceGrpc.class) {
         if ((getDeleteBudgetMethod = BudgetServiceGrpc.getDeleteBudgetMethod) == null) {
-          BudgetServiceGrpc.getDeleteBudgetMethod = getDeleteBudgetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
-              .build();
+          BudgetServiceGrpc.getDeleteBudgetMethod =
+              getDeleteBudgetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBudget"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BudgetServiceMethodDescriptorSupplier("DeleteBudget"))
+                      .build();
         }
       }
     }
     return getDeleteBudgetMethod;
   }
 
-  /**
-   * 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 BudgetServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceStub(channel, callOptions);
+          }
+        };
     return BudgetServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BudgetServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static BudgetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceBlockingStub(channel, callOptions);
+          }
+        };
     return BudgetServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static BudgetServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static BudgetServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BudgetServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BudgetServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BudgetServiceFutureStub(channel, callOptions);
+          }
+        };
     return BudgetServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -227,18 +314,25 @@ public BudgetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOpti
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - default void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBudgetMethod(), responseObserver); + default void createBudget( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBudgetMethod(), responseObserver); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -246,12 +340,17 @@ default void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetR
      * this API will not be changed by this method.
      * 
*/ - default void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBudgetMethod(), responseObserver); + default void updateBudget( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBudgetMethod(), responseObserver); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -260,12 +359,16 @@ default void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetR
      * in the Cloud Console.
      * 
*/ - default void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + default void getBudget( + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBudgetMethod(), responseObserver); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -274,39 +377,49 @@ default void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest
      * in the Cloud Console.
      * 
*/ - default void listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBudgetsMethod(), responseObserver); + default void listBudgets( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBudgetsMethod(), responseObserver); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - default void deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, + default void deleteBudget( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBudgetMethod(), responseObserver); } } /** * Base class for the server implementation of the service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
    * 
*/ - public static abstract class BudgetServiceImplBase + public abstract static class BudgetServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return BudgetServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -314,31 +427,37 @@ public static abstract class BudgetServiceImplBase
    */
   public static final class BudgetServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private BudgetServiceStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected BudgetServiceStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected BudgetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new BudgetServiceStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createBudget( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -346,13 +465,19 @@ public void createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRe
      * this API will not be changed by this method.
      * 
*/ - public void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateBudget( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -361,13 +486,17 @@ public void updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRe
      * in the Cloud Console.
      * 
*/ - public void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getBudget( + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -376,26 +505,36 @@ public void getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest
      * in the Cloud Console.
      * 
*/ - public void listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listBudgets( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListBudgetsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public void deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, + public void deleteBudget( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -403,8 +542,7 @@ public void deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRe
    */
   public static final class BudgetServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private BudgetServiceBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -415,18 +553,23 @@ protected BudgetServiceBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget createBudget( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -434,12 +577,15 @@ public com.google.cloud.billing.budgets.v1beta1.Budget createBudget(com.google.c
      * this API will not be changed by this method.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -448,12 +594,15 @@ public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget(com.google.c
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.Budget getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { + public com.google.cloud.billing.budgets.v1beta1.Budget getBudget( + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBudgetMethod(), getCallOptions(), request); } /** + * + * *
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -462,17 +611,21 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget(com.google.clou
      * in the Cloud Console.
      * 
*/ - public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { + public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse listBudgets( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBudgetsMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { + public com.google.protobuf.Empty deleteBudget( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); } @@ -480,6 +633,7 @@ public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v /** * A stub to allow clients to do ListenableFuture-style rpc calls to service BudgetService. + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
@@ -487,8 +641,7 @@ public com.google.protobuf.Empty deleteBudget(com.google.cloud.billing.budgets.v
    */
   public static final class BudgetServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private BudgetServiceFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BudgetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -499,19 +652,24 @@ protected BudgetServiceFutureStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates a new budget. See
      * [Quotas and limits](https://cloud.google.com/billing/quotas)
      * for more information on the limits of the number of budgets you can create.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createBudget( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.billing.budgets.v1beta1.Budget> + createBudget(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBudgetMethod(), getCallOptions()), request); } /** + * + * *
      * Updates a budget and returns the updated budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -519,13 +677,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateBudget(
-        com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1beta1.Budget>
+        updateBudget(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Returns a budget.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -534,13 +695,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture getBudget(
-        com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1beta1.Budget>
+        getBudget(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetBudgetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Returns a list of budgets for a billing account.
      * WARNING: There are some fields exposed on the Google Cloud Console that
@@ -549,19 +713,22 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listBudgets(
-        com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>
+        listBudgets(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListBudgetsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Deletes a budget. Returns successfully if already deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteBudget( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request); } @@ -573,11 +740,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -591,23 +758,33 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_BUDGET: - serviceImpl.createBudget((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.createBudget( + (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_BUDGET: - serviceImpl.updateBudget((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.updateBudget( + (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_BUDGET: - serviceImpl.getBudget((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getBudget( + (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_LIST_BUDGETS: - serviceImpl.listBudgets((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listBudgets( + (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>) + responseObserver); break; case METHODID_DELETE_BUDGET: - serviceImpl.deleteBudget((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) request, + serviceImpl.deleteBudget( + (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -629,45 +806,44 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>( - service, METHODID_CREATE_BUDGET))) + getCreateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>( + service, METHODID_CREATE_BUDGET))) .addMethod( - getUpdateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>( - service, METHODID_UPDATE_BUDGET))) + getUpdateBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>( + service, METHODID_UPDATE_BUDGET))) .addMethod( - getGetBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest, - com.google.cloud.billing.budgets.v1beta1.Budget>( - service, METHODID_GET_BUDGET))) + getGetBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest, + com.google.cloud.billing.budgets.v1beta1.Budget>(service, METHODID_GET_BUDGET))) .addMethod( - getListBudgetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest, - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>( - service, METHODID_LIST_BUDGETS))) + getListBudgetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>( + service, METHODID_LIST_BUDGETS))) .addMethod( - getDeleteBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_BUDGET))) + getDeleteBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_BUDGET))) .build(); } - private static abstract class BudgetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class BudgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { BudgetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -709,14 +885,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BudgetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) - .addMethod(getCreateBudgetMethod()) - .addMethod(getUpdateBudgetMethod()) - .addMethod(getGetBudgetMethod()) - .addMethod(getListBudgetsMethod()) - .addMethod(getDeleteBudgetMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BudgetServiceFileDescriptorSupplier()) + .addMethod(getCreateBudgetMethod()) + .addMethod(getUpdateBudgetMethod()) + .addMethod(getGetBudgetMethod()) + .addMethod(getListBudgetsMethod()) + .addMethod(getDeleteBudgetMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java similarity index 67% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java index fd6004206b3d..cc9908d846ca 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * A budget is a plan that describes what you expect to spend on Cloud
  * projects, plus the rules to execute as spend is tracked against that plan,
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.Budget}
  */
-public final class Budget extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Budget extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.Budget)
     BudgetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Budget.newBuilder() to construct.
   private Budget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Budget() {
     name_ = "";
     displayName_ = "";
@@ -32,28 +50,32 @@ private Budget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Budget();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.Budget.class, com.google.cloud.billing.budgets.v1.Budget.Builder.class);
+            com.google.cloud.billing.budgets.v1.Budget.class,
+            com.google.cloud.billing.budgets.v1.Budget.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -69,14 +92,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -84,16 +108,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -102,15 +125,19 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -119,30 +146,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; } } /** + * + * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; + * * @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 { @@ -153,13 +180,18 @@ public java.lang.String getDisplayName() { public static final int BUDGET_FILTER_FIELD_NUMBER = 3; private com.google.cloud.billing.budgets.v1.Filter budgetFilter_; /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ @java.lang.Override @@ -167,41 +199,59 @@ public boolean hasBudgetFilter() { return budgetFilter_ != null; } /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter getBudgetFilter() { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() + : budgetFilter_; } /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder() { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() + : budgetFilter_; } public static final int AMOUNT_FIELD_NUMBER = 4; private com.google.cloud.billing.budgets.v1.BudgetAmount amount_; /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ @java.lang.Override @@ -209,33 +259,49 @@ public boolean hasAmount() { return amount_ != null; } /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmount getAmount() { - return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() + : amount_; } /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder() { - return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() + : amount_; } public static final int THRESHOLD_RULES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List thresholdRules_; /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -245,13 +311,17 @@ public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuil
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getThresholdRulesList() { return thresholdRules_; } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -261,14 +331,18 @@ public java.util.List getThre
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getThresholdRulesOrBuilderList() { return thresholdRules_; } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -278,13 +352,17 @@ public java.util.List getThre
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getThresholdRulesCount() { return thresholdRules_.size(); } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -294,13 +372,17 @@ public int getThresholdRulesCount() {
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index) { return thresholdRules_.get(index); } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -310,7 +392,9 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( @@ -321,12 +405,17 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu public static final int NOTIFICATIONS_RULE_FIELD_NUMBER = 6; private com.google.cloud.billing.budgets.v1.NotificationsRule notificationsRule_; /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the notificationsRule field is set. */ @java.lang.Override @@ -334,35 +423,52 @@ public boolean hasNotificationsRule() { return notificationsRule_ != null; } /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The notificationsRule. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule() { - return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; + return notificationsRule_ == null + ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() + : notificationsRule_; } /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder() { - return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; + public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder + getNotificationsRuleOrBuilder() { + return notificationsRule_ == null + ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() + : notificationsRule_; } public static final int ETAG_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -370,6 +476,7 @@ public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotific
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -378,14 +485,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -393,16 +501,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -411,6 +518,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -422,8 +530,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_); } @@ -461,20 +568,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (budgetFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBudgetFilter()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBudgetFilter()); } if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAmount()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAmount()); } for (int i = 0; i < thresholdRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, thresholdRules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, thresholdRules_.get(i)); } if (notificationsRule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getNotificationsRule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNotificationsRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); @@ -487,36 +590,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.budgets.v1.Budget)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.Budget other = (com.google.cloud.billing.budgets.v1.Budget) obj; + com.google.cloud.billing.budgets.v1.Budget other = + (com.google.cloud.billing.budgets.v1.Budget) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasBudgetFilter() != other.hasBudgetFilter()) return false; if (hasBudgetFilter()) { - if (!getBudgetFilter() - .equals(other.getBudgetFilter())) return false; + if (!getBudgetFilter().equals(other.getBudgetFilter())) return false; } if (hasAmount() != other.hasAmount()) return false; if (hasAmount()) { - if (!getAmount() - .equals(other.getAmount())) return false; + if (!getAmount().equals(other.getAmount())) return false; } - if (!getThresholdRulesList() - .equals(other.getThresholdRulesList())) return false; + if (!getThresholdRulesList().equals(other.getThresholdRulesList())) return false; if (hasNotificationsRule() != other.hasNotificationsRule()) return false; if (hasNotificationsRule()) { - if (!getNotificationsRule() - .equals(other.getNotificationsRule())) return false; + if (!getNotificationsRule().equals(other.getNotificationsRule())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -555,99 +652,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1.Budget parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1.Budget parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.Budget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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.budgets.v1.Budget 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 budget is a plan that describes what you expect to spend on Cloud
    * projects, plus the rules to execute as spend is tracked against that plan,
@@ -658,33 +760,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.Budget}
    */
-  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.budgets.v1.Budget)
       com.google.cloud.billing.budgets.v1.BudgetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.Budget.class, com.google.cloud.billing.budgets.v1.Budget.Builder.class);
+              com.google.cloud.billing.budgets.v1.Budget.class,
+              com.google.cloud.billing.budgets.v1.Budget.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.Budget.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -718,9 +819,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
     }
 
     @java.lang.Override
@@ -739,9 +840,12 @@ public com.google.cloud.billing.budgets.v1.Budget build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.Budget buildPartial() {
-      com.google.cloud.billing.budgets.v1.Budget result = new com.google.cloud.billing.budgets.v1.Budget(this);
+      com.google.cloud.billing.budgets.v1.Budget result =
+          new com.google.cloud.billing.budgets.v1.Budget(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -767,19 +871,17 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Budget result) {
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.budgetFilter_ = budgetFilterBuilder_ == null
-            ? budgetFilter_
-            : budgetFilterBuilder_.build();
+        result.budgetFilter_ =
+            budgetFilterBuilder_ == null ? budgetFilter_ : budgetFilterBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.amount_ = amountBuilder_ == null
-            ? amount_
-            : amountBuilder_.build();
+        result.amount_ = amountBuilder_ == null ? amount_ : amountBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.notificationsRule_ = notificationsRuleBuilder_ == null
-            ? notificationsRule_
-            : notificationsRuleBuilder_.build();
+        result.notificationsRule_ =
+            notificationsRuleBuilder_ == null
+                ? notificationsRule_
+                : notificationsRuleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.etag_ = etag_;
@@ -790,38 +892,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Budget result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.budgets.v1.Budget) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.Budget)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.Budget) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -864,9 +967,10 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.Budget other) {
             thresholdRulesBuilder_ = null;
             thresholdRules_ = other.thresholdRules_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            thresholdRulesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getThresholdRulesFieldBuilder() : null;
+            thresholdRulesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getThresholdRulesFieldBuilder()
+                    : null;
           } else {
             thresholdRulesBuilder_.addAllMessages(other.thresholdRules_);
           }
@@ -906,61 +1010,64 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getBudgetFilterFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getAmountFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              com.google.cloud.billing.budgets.v1.ThresholdRule m =
-                  input.readMessage(
-                      com.google.cloud.billing.budgets.v1.ThresholdRule.parser(),
-                      extensionRegistry);
-              if (thresholdRulesBuilder_ == null) {
-                ensureThresholdRulesIsMutable();
-                thresholdRules_.add(m);
-              } else {
-                thresholdRulesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getNotificationsRuleFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getBudgetFilterFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.cloud.billing.budgets.v1.ThresholdRule m =
+                    input.readMessage(
+                        com.google.cloud.billing.budgets.v1.ThresholdRule.parser(),
+                        extensionRegistry);
+                if (thresholdRulesBuilder_ == null) {
+                  ensureThresholdRulesIsMutable();
+                  thresholdRules_.add(m);
+                } else {
+                  thresholdRulesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(
+                    getNotificationsRuleFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -970,10 +1077,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -981,13 +1091,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -996,6 +1106,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1003,15 +1115,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1019,6 +1130,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1026,18 +1139,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1045,6 +1162,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1054,6 +1172,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1061,12 +1181,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1076,19 +1198,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; + * * @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; @@ -1097,21 +1221,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; + * * @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 { @@ -1119,30 +1244,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1152,18 +1284,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * User data for display name in UI. The name must be less than or equal to 60
      * characters.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1173,45 +1309,64 @@ public Builder setDisplayNameBytes( private com.google.cloud.billing.budgets.v1.Filter budgetFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder> budgetFilterBuilder_; + com.google.cloud.billing.budgets.v1.Filter, + com.google.cloud.billing.budgets.v1.Filter.Builder, + com.google.cloud.billing.budgets.v1.FilterOrBuilder> + budgetFilterBuilder_; /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ public boolean hasBudgetFilter() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ public com.google.cloud.billing.budgets.v1.Filter getBudgetFilter() { if (budgetFilterBuilder_ == null) { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() + : budgetFilter_; } else { return budgetFilterBuilder_.getMessage(); } } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) { if (budgetFilterBuilder_ == null) { @@ -1227,13 +1382,17 @@ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBudgetFilter( com.google.cloud.billing.budgets.v1.Filter.Builder builderForValue) { @@ -1247,19 +1406,23 @@ public Builder setBudgetFilter( return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value) { if (budgetFilterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - budgetFilter_ != null && - budgetFilter_ != com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && budgetFilter_ != null + && budgetFilter_ != com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance()) { getBudgetFilterBuilder().mergeFrom(value); } else { budgetFilter_ = value; @@ -1272,13 +1435,17 @@ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1.Filter valu return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBudgetFilter() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1291,13 +1458,17 @@ public Builder clearBudgetFilter() { return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.Filter.Builder getBudgetFilterBuilder() { bitField0_ |= 0x00000004; @@ -1305,40 +1476,52 @@ public com.google.cloud.billing.budgets.v1.Filter.Builder getBudgetFilterBuilder return getBudgetFilterFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder() { if (budgetFilterBuilder_ != null) { return budgetFilterBuilder_.getMessageOrBuilder(); } else { - return budgetFilter_ == null ? - com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1.Filter.getDefaultInstance() + : budgetFilter_; } } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder> + com.google.cloud.billing.budgets.v1.Filter, + com.google.cloud.billing.budgets.v1.Filter.Builder, + com.google.cloud.billing.budgets.v1.FilterOrBuilder> getBudgetFilterFieldBuilder() { if (budgetFilterBuilder_ == null) { - budgetFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Filter, com.google.cloud.billing.budgets.v1.Filter.Builder, com.google.cloud.billing.budgets.v1.FilterOrBuilder>( - getBudgetFilter(), - getParentForChildren(), - isClean()); + budgetFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Filter, + com.google.cloud.billing.budgets.v1.Filter.Builder, + com.google.cloud.billing.budgets.v1.FilterOrBuilder>( + getBudgetFilter(), getParentForChildren(), isClean()); budgetFilter_ = null; } return budgetFilterBuilder_; @@ -1346,39 +1529,58 @@ public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuil private com.google.cloud.billing.budgets.v1.BudgetAmount amount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> amountBuilder_; + com.google.cloud.billing.budgets.v1.BudgetAmount, + com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> + amountBuilder_; /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ public boolean hasAmount() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ public com.google.cloud.billing.budgets.v1.BudgetAmount getAmount() { if (amountBuilder_ == null) { - return amount_ == null ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() + : amount_; } else { return amountBuilder_.getMessage(); } } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) { if (amountBuilder_ == null) { @@ -1394,11 +1596,15 @@ public Builder setAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAmount( com.google.cloud.billing.budgets.v1.BudgetAmount.Builder builderForValue) { @@ -1412,17 +1618,21 @@ public Builder setAmount( return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAmount(com.google.cloud.billing.budgets.v1.BudgetAmount value) { if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - amount_ != null && - amount_ != com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && amount_ != null + && amount_ != com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) { getAmountBuilder().mergeFrom(value); } else { amount_ = value; @@ -1435,11 +1645,15 @@ public Builder mergeAmount(com.google.cloud.billing.budgets.v1.BudgetAmount valu return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1452,11 +1666,15 @@ public Builder clearAmount() { return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.BudgetAmount.Builder getAmountBuilder() { bitField0_ |= 0x00000008; @@ -1464,54 +1682,74 @@ public com.google.cloud.billing.budgets.v1.BudgetAmount.Builder getAmountBuilder return getAmountFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { - return amount_ == null ? - com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance() + : amount_; } } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> + com.google.cloud.billing.budgets.v1.BudgetAmount, + com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.BudgetAmount, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder>( - getAmount(), - getParentForChildren(), - isClean()); + amountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.BudgetAmount, + com.google.cloud.billing.budgets.v1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder>( + getAmount(), getParentForChildren(), isClean()); amount_ = null; } return amountBuilder_; } private java.util.List thresholdRules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureThresholdRulesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - thresholdRules_ = new java.util.ArrayList(thresholdRules_); + thresholdRules_ = + new java.util.ArrayList( + thresholdRules_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> thresholdRulesBuilder_; + com.google.cloud.billing.budgets.v1.ThresholdRule, + com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> + thresholdRulesBuilder_; /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1521,9 +1759,12 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getThresholdRulesList() { + public java.util.List + getThresholdRulesList() { if (thresholdRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(thresholdRules_); } else { @@ -1531,6 +1772,8 @@ public java.util.List getThre } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1540,7 +1783,9 @@ public java.util.List getThre
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getThresholdRulesCount() { if (thresholdRulesBuilder_ == null) { @@ -1550,6 +1795,8 @@ public int getThresholdRulesCount() { } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1559,7 +1806,9 @@ public int getThresholdRulesCount() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1569,6 +1818,8 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1578,7 +1829,9 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule value) { @@ -1595,6 +1848,8 @@ public Builder setThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1604,7 +1859,9 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1618,6 +1875,8 @@ public Builder setThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1627,7 +1886,9 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRule value) { if (thresholdRulesBuilder_ == null) { @@ -1643,6 +1904,8 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRu return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1652,7 +1915,9 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRu
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule value) { @@ -1669,6 +1934,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1678,7 +1945,9 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1692,6 +1961,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1701,7 +1972,9 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder builderForValue) { @@ -1715,6 +1988,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1724,14 +1999,15 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllThresholdRules( java.lang.Iterable values) { if (thresholdRulesBuilder_ == null) { ensureThresholdRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, thresholdRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholdRules_); onChanged(); } else { thresholdRulesBuilder_.addAllMessages(values); @@ -1739,6 +2015,8 @@ public Builder addAllThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1748,7 +2026,9 @@ public Builder addAllThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearThresholdRules() { if (thresholdRulesBuilder_ == null) { @@ -1761,6 +2041,8 @@ public Builder clearThresholdRules() { return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1770,7 +2052,9 @@ public Builder clearThresholdRules() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1783,6 +2067,8 @@ public Builder removeThresholdRules(int index) { return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1792,13 +2078,17 @@ public Builder removeThresholdRules(int index) {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder getThresholdRulesBuilder( int index) { return getThresholdRulesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1808,16 +2098,21 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder getThresholdRul
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( int index) { if (thresholdRulesBuilder_ == null) { - return thresholdRules_.get(index); } else { + return thresholdRules_.get(index); + } else { return thresholdRulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1827,10 +2122,12 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getThresholdRulesOrBuilderList() { + public java.util.List + getThresholdRulesOrBuilderList() { if (thresholdRulesBuilder_ != null) { return thresholdRulesBuilder_.getMessageOrBuilderList(); } else { @@ -1838,6 +2135,8 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1847,13 +2146,17 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRulesBuilder() { - return getThresholdRulesFieldBuilder().addBuilder( - com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder() + .addBuilder(com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1863,14 +2166,19 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRulesBuilder( int index) { - return getThresholdRulesFieldBuilder().addBuilder( - index, com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder() + .addBuilder( + index, com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1880,18 +2188,26 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getThresholdRulesBuilderList() { + public java.util.List + getThresholdRulesBuilderList() { return getThresholdRulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> + com.google.cloud.billing.budgets.v1.ThresholdRule, + com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> getThresholdRulesFieldBuilder() { if (thresholdRulesBuilder_ == null) { - thresholdRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.ThresholdRule, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder>( + thresholdRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1.ThresholdRule, + com.google.cloud.billing.budgets.v1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder>( thresholdRules_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -1903,44 +2219,64 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul private com.google.cloud.billing.budgets.v1.NotificationsRule notificationsRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> notificationsRuleBuilder_; + com.google.cloud.billing.budgets.v1.NotificationsRule, + com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, + com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> + notificationsRuleBuilder_; /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the notificationsRule field is set. */ public boolean hasNotificationsRule() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The notificationsRule. */ public com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule() { if (notificationsRuleBuilder_ == null) { - return notificationsRule_ == null ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; + return notificationsRule_ == null + ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() + : notificationsRule_; } else { return notificationsRuleBuilder_.getMessage(); } } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setNotificationsRule(com.google.cloud.billing.budgets.v1.NotificationsRule value) { + public Builder setNotificationsRule( + com.google.cloud.billing.budgets.v1.NotificationsRule value) { if (notificationsRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1954,12 +2290,16 @@ public Builder setNotificationsRule(com.google.cloud.billing.budgets.v1.Notifica return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNotificationsRule( com.google.cloud.billing.budgets.v1.NotificationsRule.Builder builderForValue) { @@ -1973,18 +2313,24 @@ public Builder setNotificationsRule( return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeNotificationsRule(com.google.cloud.billing.budgets.v1.NotificationsRule value) { + public Builder mergeNotificationsRule( + com.google.cloud.billing.budgets.v1.NotificationsRule value) { if (notificationsRuleBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - notificationsRule_ != null && - notificationsRule_ != com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && notificationsRule_ != null + && notificationsRule_ + != com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) { getNotificationsRuleBuilder().mergeFrom(value); } else { notificationsRule_ = value; @@ -1997,12 +2343,16 @@ public Builder mergeNotificationsRule(com.google.cloud.billing.budgets.v1.Notifi return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNotificationsRule() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2015,51 +2365,69 @@ public Builder clearNotificationsRule() { return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1.NotificationsRule.Builder getNotificationsRuleBuilder() { + public com.google.cloud.billing.budgets.v1.NotificationsRule.Builder + getNotificationsRuleBuilder() { bitField0_ |= 0x00000020; onChanged(); return getNotificationsRuleFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder() { + public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder + getNotificationsRuleOrBuilder() { if (notificationsRuleBuilder_ != null) { return notificationsRuleBuilder_.getMessageOrBuilder(); } else { - return notificationsRule_ == null ? - com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() : notificationsRule_; + return notificationsRule_ == null + ? com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance() + : notificationsRule_; } } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> + com.google.cloud.billing.budgets.v1.NotificationsRule, + com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, + com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder> getNotificationsRuleFieldBuilder() { if (notificationsRuleBuilder_ == null) { - notificationsRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.NotificationsRule, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder>( - getNotificationsRule(), - getParentForChildren(), - isClean()); + notificationsRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.NotificationsRule, + com.google.cloud.billing.budgets.v1.NotificationsRule.Builder, + com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder>( + getNotificationsRule(), getParentForChildren(), isClean()); notificationsRule_ = null; } return notificationsRuleBuilder_; @@ -2067,6 +2435,8 @@ public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotific private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2074,13 +2444,13 @@ public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotific
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -2089,6 +2459,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2096,15 +2468,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -2112,6 +2483,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2119,18 +2492,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2138,6 +2515,7 @@ public Builder setEtag(
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2147,6 +2525,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2154,21 +2534,23 @@ public Builder clearEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000040; 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); } @@ -2178,12 +2560,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.Budget) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.Budget) private static final com.google.cloud.billing.budgets.v1.Budget DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.Budget(); } @@ -2192,27 +2574,27 @@ public static com.google.cloud.billing.budgets.v1.Budget getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Budget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Budget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2227,6 +2609,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.Budget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java similarity index 75% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java index 8a191ce5a0fc..a020eaa55bb5 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java @@ -1,57 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * The budgeted amount for each usage period.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.BudgetAmount} */ -public final class BudgetAmount extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BudgetAmount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.BudgetAmount) BudgetAmountOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BudgetAmount.newBuilder() to construct. private BudgetAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BudgetAmount() { - } + + private BudgetAmount() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BudgetAmount(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.BudgetAmount.class, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1.BudgetAmount.class, + com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); } private int budgetAmountCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object budgetAmount_; + public enum BudgetAmountCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SPECIFIED_AMOUNT(1), LAST_PERIOD_AMOUNT(2), BUDGETAMOUNT_NOT_SET(0); private final int value; + private BudgetAmountCase(int value) { this.value = value; } @@ -67,25 +89,30 @@ public static BudgetAmountCase valueOf(int value) { public static BudgetAmountCase forNumber(int value) { switch (value) { - case 1: return SPECIFIED_AMOUNT; - case 2: return LAST_PERIOD_AMOUNT; - case 0: return BUDGETAMOUNT_NOT_SET; - default: return null; + case 1: + return SPECIFIED_AMOUNT; + case 2: + return LAST_PERIOD_AMOUNT; + case 0: + return BUDGETAMOUNT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public BudgetAmountCase - getBudgetAmountCase() { - return BudgetAmountCase.forNumber( - budgetAmountCase_); + public BudgetAmountCase getBudgetAmountCase() { + return BudgetAmountCase.forNumber(budgetAmountCase_); } public static final int SPECIFIED_AMOUNT_FIELD_NUMBER = 1; /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -95,6 +122,7 @@ public int getNumber() {
    * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -102,6 +130,8 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -111,16 +141,19 @@ public boolean hasSpecifiedAmount() {
    * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ @java.lang.Override public com.google.type.Money getSpecifiedAmount() { if (budgetAmountCase_ == 1) { - return (com.google.type.Money) budgetAmount_; + return (com.google.type.Money) budgetAmount_; } return com.google.type.Money.getDefaultInstance(); } /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -134,13 +167,15 @@ public com.google.type.Money getSpecifiedAmount() {
   @java.lang.Override
   public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     if (budgetAmountCase_ == 1) {
-       return (com.google.type.Money) budgetAmount_;
+      return (com.google.type.Money) budgetAmount_;
     }
     return com.google.type.Money.getDefaultInstance();
   }
 
   public static final int LAST_PERIOD_AMOUNT_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -150,6 +185,7 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -157,6 +193,8 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -166,16 +204,19 @@ public boolean hasLastPeriodAmount() {
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount() { if (budgetAmountCase_ == 2) { - return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_; + return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_; } return com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance(); } /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -187,14 +228,16 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount(
    * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
    */
   @java.lang.Override
-  public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
+  public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder
+      getLastPeriodAmountOrBuilder() {
     if (budgetAmountCase_ == 2) {
-       return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_;
+      return (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_;
     }
     return com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,8 +249,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 (budgetAmountCase_ == 1) {
       output.writeMessage(1, (com.google.type.Money) budgetAmount_);
     }
@@ -224,12 +266,14 @@ public int getSerializedSize() {
 
     size = 0;
     if (budgetAmountCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.type.Money) budgetAmount_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -239,22 +283,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.budgets.v1.BudgetAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.BudgetAmount other = (com.google.cloud.billing.budgets.v1.BudgetAmount) obj;
+    com.google.cloud.billing.budgets.v1.BudgetAmount other =
+        (com.google.cloud.billing.budgets.v1.BudgetAmount) obj;
 
     if (!getBudgetAmountCase().equals(other.getBudgetAmountCase())) return false;
     switch (budgetAmountCase_) {
       case 1:
-        if (!getSpecifiedAmount()
-            .equals(other.getSpecifiedAmount())) return false;
+        if (!getSpecifiedAmount().equals(other.getSpecifiedAmount())) return false;
         break;
       case 2:
-        if (!getLastPeriodAmount()
-            .equals(other.getLastPeriodAmount())) return false;
+        if (!getLastPeriodAmount().equals(other.getLastPeriodAmount())) return false;
         break;
       case 0:
       default:
@@ -287,132 +330,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.BudgetAmount parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount 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;
   }
   /**
+   *
+   *
    * 
    * The budgeted amount for each usage period.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.BudgetAmount} */ - 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.budgets.v1.BudgetAmount) com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.BudgetAmount.class, com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1.BudgetAmount.class, + com.google.cloud.billing.budgets.v1.BudgetAmount.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.BudgetAmount.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; } @java.lang.Override @@ -450,8 +497,11 @@ public com.google.cloud.billing.budgets.v1.BudgetAmount build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetAmount buildPartial() { - com.google.cloud.billing.budgets.v1.BudgetAmount result = new com.google.cloud.billing.budgets.v1.BudgetAmount(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.BudgetAmount result = + new com.google.cloud.billing.budgets.v1.BudgetAmount(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -464,12 +514,10 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.BudgetAmount resu private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.BudgetAmount result) { result.budgetAmountCase_ = budgetAmountCase_; result.budgetAmount_ = this.budgetAmount_; - if (budgetAmountCase_ == 1 && - specifiedAmountBuilder_ != null) { + if (budgetAmountCase_ == 1 && specifiedAmountBuilder_ != null) { result.budgetAmount_ = specifiedAmountBuilder_.build(); } - if (budgetAmountCase_ == 2 && - lastPeriodAmountBuilder_ != null) { + if (budgetAmountCase_ == 2 && lastPeriodAmountBuilder_ != null) { result.budgetAmount_ = lastPeriodAmountBuilder_.build(); } } @@ -478,38 +526,39 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.BudgetAmount 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.budgets.v1.BudgetAmount) { - return mergeFrom((com.google.cloud.billing.budgets.v1.BudgetAmount)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.BudgetAmount) other); } else { super.mergeFrom(other); return this; @@ -517,19 +566,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.BudgetAmount other) { - if (other == com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.BudgetAmount.getDefaultInstance()) + return this; switch (other.getBudgetAmountCase()) { - case SPECIFIED_AMOUNT: { - mergeSpecifiedAmount(other.getSpecifiedAmount()); - break; - } - case LAST_PERIOD_AMOUNT: { - mergeLastPeriodAmount(other.getLastPeriodAmount()); - break; - } - case BUDGETAMOUNT_NOT_SET: { - break; - } + case SPECIFIED_AMOUNT: + { + mergeSpecifiedAmount(other.getSpecifiedAmount()); + break; + } + case LAST_PERIOD_AMOUNT: + { + mergeLastPeriodAmount(other.getLastPeriodAmount()); + break; + } + case BUDGETAMOUNT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -557,26 +610,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSpecifiedAmountFieldBuilder().getBuilder(), - extensionRegistry); - budgetAmountCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getLastPeriodAmountFieldBuilder().getBuilder(), - extensionRegistry); - budgetAmountCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSpecifiedAmountFieldBuilder().getBuilder(), extensionRegistry); + budgetAmountCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getLastPeriodAmountFieldBuilder().getBuilder(), extensionRegistry); + budgetAmountCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -586,12 +639,12 @@ public Builder mergeFrom( } // finally return this; } + private int budgetAmountCase_ = 0; private java.lang.Object budgetAmount_; - public BudgetAmountCase - getBudgetAmountCase() { - return BudgetAmountCase.forNumber( - budgetAmountCase_); + + public BudgetAmountCase getBudgetAmountCase() { + return BudgetAmountCase.forNumber(budgetAmountCase_); } public Builder clearBudgetAmount() { @@ -604,8 +657,11 @@ public Builder clearBudgetAmount() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> specifiedAmountBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + specifiedAmountBuilder_; /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -615,6 +671,7 @@ public Builder clearBudgetAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -622,6 +679,8 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -631,6 +690,7 @@ public boolean hasSpecifiedAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ @java.lang.Override @@ -648,6 +708,8 @@ public com.google.type.Money getSpecifiedAmount() { } } /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -672,6 +734,8 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -682,8 +746,7 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
      *
      * .google.type.Money specified_amount = 1;
      */
-    public Builder setSpecifiedAmount(
-        com.google.type.Money.Builder builderForValue) {
+    public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue) {
       if (specifiedAmountBuilder_ == null) {
         budgetAmount_ = builderForValue.build();
         onChanged();
@@ -694,6 +757,8 @@ public Builder setSpecifiedAmount(
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -706,10 +771,11 @@ public Builder setSpecifiedAmount(
      */
     public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       if (specifiedAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 1 &&
-            budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
-          budgetAmount_ = com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
-              .mergeFrom(value).buildPartial();
+        if (budgetAmountCase_ == 1 && budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
+          budgetAmount_ =
+              com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -725,6 +791,8 @@ public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -752,6 +820,8 @@ public Builder clearSpecifiedAmount() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -766,6 +836,8 @@ public com.google.type.Money.Builder getSpecifiedAmountBuilder() {
       return getSpecifiedAmountFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -788,6 +860,8 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -799,17 +873,18 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * .google.type.Money specified_amount = 1;
      */
     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>
         getSpecifiedAmountFieldBuilder() {
       if (specifiedAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 1)) {
           budgetAmount_ = com.google.type.Money.getDefaultInstance();
         }
-        specifiedAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
-                (com.google.type.Money) budgetAmount_,
-                getParentForChildren(),
-                isClean());
+        specifiedAmountBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Money,
+                com.google.type.Money.Builder,
+                com.google.type.MoneyOrBuilder>(
+                (com.google.type.Money) budgetAmount_, getParentForChildren(), isClean());
         budgetAmount_ = null;
       }
       budgetAmountCase_ = 1;
@@ -818,8 +893,13 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder> lastPeriodAmountBuilder_;
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount,
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
+            com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>
+        lastPeriodAmountBuilder_;
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -829,6 +909,7 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -836,6 +917,8 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** + * + * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -845,6 +928,7 @@ public boolean hasLastPeriodAmount() {
      * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ @java.lang.Override @@ -862,6 +946,8 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount( } } /** + * + * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -886,6 +972,8 @@ public Builder setLastPeriodAmount(com.google.cloud.billing.budgets.v1.LastPerio
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -908,6 +996,8 @@ public Builder setLastPeriodAmount(
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -918,12 +1008,17 @@ public Builder setLastPeriodAmount(
      *
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1.LastPeriodAmount value) {
+    public Builder mergeLastPeriodAmount(
+        com.google.cloud.billing.budgets.v1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 2 &&
-            budgetAmount_ != com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) {
-          budgetAmount_ = com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder((com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_)
-              .mergeFrom(value).buildPartial();
+        if (budgetAmountCase_ == 2
+            && budgetAmount_
+                != com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) {
+          budgetAmount_ =
+              com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder(
+                      (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -939,6 +1034,8 @@ public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1.LastPer
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -966,6 +1063,8 @@ public Builder clearLastPeriodAmount() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -976,10 +1075,13 @@ public Builder clearLastPeriodAmount() {
      *
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
-    public com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder getLastPeriodAmountBuilder() {
+    public com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder
+        getLastPeriodAmountBuilder() {
       return getLastPeriodAmountFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -991,7 +1093,8 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder getLastPerio
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
     @java.lang.Override
-    public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
+    public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder
+        getLastPeriodAmountOrBuilder() {
       if ((budgetAmountCase_ == 2) && (lastPeriodAmountBuilder_ != null)) {
         return lastPeriodAmountBuilder_.getMessageOrBuilder();
       } else {
@@ -1002,6 +1105,8 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeri
       }
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1013,14 +1118,19 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeri
      * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder> 
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount,
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
+            com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>
         getLastPeriodAmountFieldBuilder() {
       if (lastPeriodAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 2)) {
           budgetAmount_ = com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance();
         }
-        lastPeriodAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>(
+        lastPeriodAmountBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.billing.budgets.v1.LastPeriodAmount,
+                com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder,
+                com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder>(
                 (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_,
                 getParentForChildren(),
                 isClean());
@@ -1030,9 +1140,9 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeri
       onChanged();
       return lastPeriodAmountBuilder_;
     }
+
     @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);
     }
 
@@ -1042,12 +1152,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.BudgetAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.BudgetAmount)
   private static final com.google.cloud.billing.budgets.v1.BudgetAmount DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.BudgetAmount();
   }
@@ -1056,27 +1166,27 @@ public static com.google.cloud.billing.budgets.v1.BudgetAmount getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BudgetAmount parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BudgetAmount parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1091,6 +1201,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.BudgetAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
index 4df69f28b1b1..a85cbf0038c9 100644
--- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface BudgetAmountOrBuilder extends
+public interface BudgetAmountOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.BudgetAmount)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -17,10 +35,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ boolean hasSpecifiedAmount(); /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -30,10 +51,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ com.google.type.Money getSpecifiedAmount(); /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -47,6 +71,8 @@ public interface BudgetAmountOrBuilder extends
   com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder();
 
   /**
+   *
+   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -56,10 +82,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ boolean hasLastPeriodAmount(); /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -69,10 +98,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount(); /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java
new file mode 100644
index 000000000000..7550c7e44a40
--- /dev/null
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java
@@ -0,0 +1,236 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1;
+
+public final class BudgetModelProto {
+  private BudgetModelProto() {}
+
+  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_budgets_v1_Budget_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_Filter_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n2google/cloud/billing/budgets/v1/budget"
+          + "_model.proto\022\037google.cloud.billing.budge"
+          + "ts.v1\032\037google/api/field_behavior.proto\032\031"
+          + "google/api/resource.proto\032\034google/protob"
+          + "uf/struct.proto\032\026google/type/date.proto\032"
+          + "\027google/type/money.proto\"\325\003\n\006Budget\022\022\n\004n"
+          + "ame\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\002 \001(\t\022D\n"
+          + "\rbudget_filter\030\003 \001(\0132\'.google.cloud.bill"
+          + "ing.budgets.v1.FilterB\004\342A\001\001\022C\n\006amount\030\004 "
+          + "\001(\0132-.google.cloud.billing.budgets.v1.Bu"
+          + "dgetAmountB\004\342A\001\002\022M\n\017threshold_rules\030\005 \003("
+          + "\0132..google.cloud.billing.budgets.v1.Thre"
+          + "sholdRuleB\004\342A\001\001\022T\n\022notifications_rule\030\006 "
+          + "\001(\01322.google.cloud.billing.budgets.v1.No"
+          + "tificationsRuleB\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001"
+          + "\001:]\352AZ\n$billingbudgets.googleapis.com/Bu"
+          + "dget\0222billingAccounts/{billing_account}/"
+          + "budgets/{budget}\"\240\001\n\014BudgetAmount\022.\n\020spe"
+          + "cified_amount\030\001 \001(\0132\022.google.type.MoneyH"
+          + "\000\022O\n\022last_period_amount\030\002 \001(\01321.google.c"
+          + "loud.billing.budgets.v1.LastPeriodAmount"
+          + "H\000B\017\n\rbudget_amount\"\022\n\020LastPeriodAmount\""
+          + "\312\001\n\rThresholdRule\022\037\n\021threshold_percent\030\001"
+          + " \001(\001B\004\342A\001\002\022O\n\013spend_basis\030\002 \001(\01624.google"
+          + ".cloud.billing.budgets.v1.ThresholdRule."
+          + "BasisB\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIE"
+          + "D\020\000\022\021\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPE"
+          + "ND\020\002\"\332\001\n\021NotificationsRule\022\032\n\014pubsub_top"
+          + "ic\030\001 \001(\tB\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004"
+          + "\342A\001\001\022.\n monitoring_notification_channels"
+          + "\030\003 \003(\tB\004\342A\001\001\022,\n\036disable_default_iam_reci"
+          + "pients\030\004 \001(\010B\004\342A\001\001\022-\n\037enable_project_lev"
+          + "el_recipients\030\005 \001(\010B\004\342A\001\001\"\315\005\n\006Filter\022\026\n\010"
+          + "projects\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancesto"
+          + "rs\030\002 \003(\tB\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A"
+          + "\001\001\022b\n\026credit_types_treatment\030\004 \001(\0162<.goo"
+          + "gle.cloud.billing.budgets.v1.Filter.Cred"
+          + "itTypesTreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\t"
+          + "B\004\342A\001\001\022\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022I\n\006lab"
+          + "els\030\006 \003(\01323.google.cloud.billing.budgets"
+          + ".v1.Filter.LabelsEntryB\004\342A\001\001\022P\n\017calendar"
+          + "_period\030\010 \001(\0162/.google.cloud.billing.bud"
+          + "gets.v1.CalendarPeriodB\004\342A\001\001H\000\022L\n\rcustom"
+          + "_period\030\t \001(\0132-.google.cloud.billing.bud"
+          + "gets.v1.CustomPeriodB\004\342A\001\001H\000\032I\n\013LabelsEn"
+          + "try\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google"
+          + ".protobuf.ListValue:\0028\001\"\217\001\n\024CreditTypesT"
+          + "reatment\022&\n\"CREDIT_TYPES_TREATMENT_UNSPE"
+          + "CIFIED\020\000\022\027\n\023INCLUDE_ALL_CREDITS\020\001\022\027\n\023EXC"
+          + "LUDE_ALL_CREDITS\020\002\022\035\n\031INCLUDE_SPECIFIED_"
+          + "CREDITS\020\003B\016\n\014usage_period\"f\n\014CustomPerio"
+          + "d\022+\n\nstart_date\030\001 \001(\0132\021.google.type.Date"
+          + "B\004\342A\001\002\022)\n\010end_date\030\002 \001(\0132\021.google.type.D"
+          + "ateB\004\342A\001\001*S\n\016CalendarPeriod\022\037\n\033CALENDAR_"
+          + "PERIOD_UNSPECIFIED\020\000\022\t\n\005MONTH\020\001\022\013\n\007QUART"
+          + "ER\020\002\022\010\n\004YEAR\020\003Bx\n#com.google.cloud.billi"
+          + "ng.budgets.v1B\020BudgetModelProtoP\001Z=cloud"
+          + ".google.com/go/billing/budgets/apiv1/bud"
+          + "getspb;budgetspbb\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.protobuf.StructProto.getDescriptor(),
+              com.google.type.DateProto.getDescriptor(),
+              com.google.type.MoneyProto.getDescriptor(),
+            });
+    internal_static_google_cloud_billing_budgets_v1_Budget_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_Budget_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "DisplayName",
+              "BudgetFilter",
+              "Amount",
+              "ThresholdRules",
+              "NotificationsRule",
+              "Etag",
+            });
+    internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor,
+            new java.lang.String[] {
+              "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount",
+            });
+    internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor,
+            new java.lang.String[] {});
+    internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor,
+            new java.lang.String[] {
+              "ThresholdPercent", "SpendBasis",
+            });
+    internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor,
+            new java.lang.String[] {
+              "PubsubTopic",
+              "SchemaVersion",
+              "MonitoringNotificationChannels",
+              "DisableDefaultIamRecipients",
+              "EnableProjectLevelRecipients",
+            });
+    internal_static_google_cloud_billing_budgets_v1_Filter_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_Filter_descriptor,
+            new java.lang.String[] {
+              "Projects",
+              "ResourceAncestors",
+              "CreditTypes",
+              "CreditTypesTreatment",
+              "Services",
+              "Subaccounts",
+              "Labels",
+              "CalendarPeriod",
+              "CustomPeriod",
+              "UsagePeriod",
+            });
+    internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor =
+        internal_static_google_cloud_billing_budgets_v1_Filter_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor,
+            new java.lang.String[] {
+              "StartDate", "EndDate",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.type.DateProto.getDescriptor();
+    com.google.type.MoneyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
similarity index 100%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
similarity index 66%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
index f3693adf8d87..0d257e227b36 100644
--- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface BudgetOrBuilder extends
+public interface BudgetOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.Budget)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -15,10 +33,13 @@ public interface BudgetOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -26,94 +47,129 @@ public interface BudgetOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User data for display name in UI. The name must be less than or equal to 60
    * characters.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ boolean hasBudgetFilter(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ com.google.cloud.billing.budgets.v1.Filter getBudgetFilter(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuilder(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ boolean hasAmount(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ com.google.cloud.billing.budgets.v1.BudgetAmount getAmount(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuilder(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -123,11 +179,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getThresholdRulesList(); + java.util.List getThresholdRulesList(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -137,10 +196,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int index); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -150,10 +213,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getThresholdRulesCount(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -163,11 +230,15 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getThresholdRulesOrBuilderList(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -177,42 +248,59 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( - int index); + com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder(int index); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the notificationsRule field is set. */ boolean hasNotificationsRule(); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The notificationsRule. */ com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRule(); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotificationsRuleOrBuilder(); /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -220,10 +308,13 @@ com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBu
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -231,8 +322,8 @@ com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRulesOrBu
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java new file mode 100644 index 000000000000..0c7ea46b8fbe --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java @@ -0,0 +1,199 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public final class BudgetServiceProto { + private BudgetServiceProto() {} + + 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_budgets_v1_CreateBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/billing/budgets/v1/budget" + + "_service.proto\022\037google.cloud.billing.bud" + + "gets.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\0322google/cloud/billing/budgets/v1/budg" + + "et_model.proto\032\033google/protobuf/empty.pr" + + "oto\032 google/protobuf/field_mask.proto\"\223\001" + + "\n\023CreateBudgetRequest\022=\n\006parent\030\001 \001(\tB-\342" + + "A\001\002\372A&\022$billingbudgets.googleapis.com/Bu" + + "dget\022=\n\006budget\030\002 \001(\0132\'.google.cloud.bill" + + "ing.budgets.v1.BudgetB\004\342A\001\002\"\213\001\n\023UpdateBu" + + "dgetRequest\022=\n\006budget\030\001 \001(\0132\'.google.clo" + + "ud.billing.budgets.v1.BudgetB\004\342A\001\002\0225\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\004\342A\001\001\"O\n\020GetBudgetRequest\022;\n\004name\030\001 " + + "\001(\tB-\342A\001\002\372A&\n$billingbudgets.googleapis." + + "com/Budget\"\233\001\n\022ListBudgetsRequest\022=\n\006par" + + "ent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.googl" + + "eapis.com/Budget\022\023\n\005scope\030\004 \001(\tB\004\342A\001\001\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001" + + "(\tB\004\342A\001\001\"h\n\023ListBudgetsResponse\0228\n\007budge" + + "ts\030\001 \003(\0132\'.google.cloud.billing.budgets." + + "v1.Budget\022\027\n\017next_page_token\030\002 \001(\t\"R\n\023De" + + "leteBudgetRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&" + + "\n$billingbudgets.googleapis.com/Budget2\367" + + "\007\n\rBudgetService\022\265\001\n\014CreateBudget\0224.goog" + + "le.cloud.billing.budgets.v1.CreateBudget" + + "Request\032\'.google.cloud.billing.budgets.v" + + "1.Budget\"F\332A\rparent,budget\202\323\344\223\0020\"&/v1/{p" + + "arent=billingAccounts/*}/budgets:\006budget" + + "\022\301\001\n\014UpdateBudget\0224.google.cloud.billing" + + ".budgets.v1.UpdateBudgetRequest\032\'.google" + + ".cloud.billing.budgets.v1.Budget\"R\332A\022bud" + + "get,update_mask\202\323\344\223\00272-/v1/{budget.name=" + + "billingAccounts/*/budgets/*}:\006budget\022\236\001\n" + + "\tGetBudget\0221.google.cloud.billing.budget" + + "s.v1.GetBudgetRequest\032\'.google.cloud.bil" + + "ling.budgets.v1.Budget\"5\332A\004name\202\323\344\223\002(\022&/" + + "v1/{name=billingAccounts/*/budgets/*}\022\261\001" + + "\n\013ListBudgets\0223.google.cloud.billing.bud" + + "gets.v1.ListBudgetsRequest\0324.google.clou" + + "d.billing.budgets.v1.ListBudgetsResponse" + + "\"7\332A\006parent\202\323\344\223\002(\022&/v1/{parent=billingAc" + + "counts/*}/budgets\022\223\001\n\014DeleteBudget\0224.goo" + + "gle.cloud.billing.budgets.v1.DeleteBudge" + + "tRequest\032\026.google.protobuf.Empty\"5\332A\004nam" + + "e\202\323\344\223\002(*&/v1/{name=billingAccounts/*/bud" + + "gets/*}\032\177\312A\035billingbudgets.googleapis.co" + + "m\322A\\https://www.googleapis.com/auth/clou" + + "d-billing,https://www.googleapis.com/aut" + + "h/cloud-platformBz\n#com.google.cloud.bil" + + "ling.budgets.v1B\022BudgetServiceProtoP\001Z=c" + + "loud.google.com/go/billing/budgets/apiv1" + + "/budgetspb;budgetspbb\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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor, + new java.lang.String[] { + "Parent", "Budget", + }); + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor, + new java.lang.String[] { + "Budget", "UpdateMask", + }); + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor, + new java.lang.String[] { + "Parent", "Scope", "PageSize", "PageToken", + }); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor, + new java.lang.String[] { + "Budgets", "NextPageToken", + }); + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java similarity index 70% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java index 33880f22bcab..491c95765080 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * A `CalendarPeriod` represents the abstract concept of a time period that
  * has a canonical start. Grammatically, "the start of the current
@@ -13,9 +30,10 @@
  *
  * Protobuf enum {@code google.cloud.billing.budgets.v1.CalendarPeriod}
  */
-public enum CalendarPeriod
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -25,6 +43,8 @@ public enum CalendarPeriod
    */
   CALENDAR_PERIOD_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -34,6 +54,8 @@ public enum CalendarPeriod
    */
   MONTH(1),
   /**
+   *
+   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -43,6 +65,8 @@ public enum CalendarPeriod
    */
   QUARTER(2),
   /**
+   *
+   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -54,6 +78,8 @@ public enum CalendarPeriod ; /** + * + * *
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -63,6 +89,8 @@ public enum CalendarPeriod
    */
   public static final int CALENDAR_PERIOD_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -72,6 +100,8 @@ public enum CalendarPeriod
    */
   public static final int MONTH_VALUE = 1;
   /**
+   *
+   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -81,6 +111,8 @@ public enum CalendarPeriod
    */
   public static final int QUARTER_VALUE = 2;
   /**
+   *
+   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -89,7 +121,6 @@ public enum CalendarPeriod */ public static final int YEAR_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -114,50 +145,53 @@ public static CalendarPeriod valueOf(int value) { */ public static CalendarPeriod forNumber(int value) { switch (value) { - case 0: return CALENDAR_PERIOD_UNSPECIFIED; - case 1: return MONTH; - case 2: return QUARTER; - case 3: return YEAR; - default: return null; + case 0: + return CALENDAR_PERIOD_UNSPECIFIED; + case 1: + return MONTH; + case 2: + return QUARTER; + case 3: + return YEAR; + 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< - CalendarPeriod> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CalendarPeriod findValueByNumber(int number) { - return CalendarPeriod.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 CalendarPeriod findValueByNumber(int number) { + return CalendarPeriod.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() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final CalendarPeriod[] VALUES = values(); - public static CalendarPeriod valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CalendarPeriod 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; @@ -173,4 +207,3 @@ private CalendarPeriod(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.billing.budgets.v1.CalendarPeriod) } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java similarity index 61% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java index 4b9a17386873..d77555c3db95 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * Request for CreateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CreateBudgetRequest} */ -public final class CreateBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.CreateBudgetRequest) CreateBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateBudgetRequest.newBuilder() to construct. private CreateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateBudgetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 @@ -61,30 +86,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 billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 { @@ -95,11 +122,16 @@ public java.lang.String getParent() { public static final int BUDGET_FIELD_NUMBER = 2; private com.google.cloud.billing.budgets.v1.Budget budget_; /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ @java.lang.Override @@ -107,30 +139,44 @@ public boolean hasBudget() { return budget_ != null; } /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Budget getBudget() { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +188,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_); } @@ -163,8 +208,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBudget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBudget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +218,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.budgets.v1.CreateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.CreateBudgetRequest other = (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.CreateBudgetRequest other = + (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget() - .equals(other.getBudget())) return false; + if (!getBudget().equals(other.getBudget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +254,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest 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.budgets.v1.CreateBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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 for CreateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CreateBudgetRequest} */ - 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.budgets.v1.CreateBudgetRequest) com.google.cloud.billing.budgets.v1.CreateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.class, + com.google.cloud.billing.budgets.v1.CreateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.CreateBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor; } @java.lang.Override @@ -371,8 +419,11 @@ public com.google.cloud.billing.budgets.v1.CreateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.CreateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.CreateBudgetRequest result = new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.CreateBudgetRequest result = + new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -383,9 +434,7 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CreateBudgetReque result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.budget_ = budgetBuilder_ == null - ? budget_ - : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); } } @@ -393,38 +442,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CreateBudgetReque 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.budgets.v1.CreateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.CreateBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.CreateBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -432,7 +482,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.CreateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.CreateBudgetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -467,24 +518,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getBudgetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,23 +546,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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; @@ -519,21 +576,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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 { @@ -541,30 +601,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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() { @@ -574,18 +645,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -595,39 +672,58 @@ public Builder setParentBytes( private com.google.cloud.billing.budgets.v1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetBuilder_; + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + budgetBuilder_; /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ public com.google.cloud.billing.budgets.v1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } else { return budgetBuilder_.getMessage(); } } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { @@ -643,14 +739,17 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBudget( - com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetBuilder_ == null) { budget_ = builderForValue.build(); } else { @@ -661,17 +760,21 @@ public Builder setBudget( return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - budget_ != null && - budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && budget_ != null + && budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -684,11 +787,15 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +808,15 @@ public Builder clearBudget() { return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000002; @@ -713,43 +824,55 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { return getBudgetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null ? - com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - getBudget(), - getParentForChildren(), - isClean()); + budgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + getBudget(), getParentForChildren(), isClean()); budget_ = null; } return budgetBuilder_; } + @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); } @@ -759,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.CreateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.CreateBudgetRequest) private static final com.google.cloud.billing.budgets.v1.CreateBudgetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(); } @@ -773,27 +896,27 @@ public static com.google.cloud.billing.budgets.v1.CreateBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,6 +931,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.CreateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..e0cc805bfb54 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface CreateBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CreateBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the budget field is set. + */ + boolean hasBudget(); + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The budget. + */ + com.google.cloud.billing.budgets.v1.Budget getBudget(); + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java similarity index 73% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java index 7c3c6e7047da..198536b90b3d 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java @@ -1,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CustomPeriod} */ -public final class CustomPeriod extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CustomPeriod extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.CustomPeriod) CustomPeriodOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomPeriod.newBuilder() to construct. private CustomPeriod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomPeriod() { - } + + private CustomPeriod() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomPeriod(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CustomPeriod.class, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1.CustomPeriod.class, + com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); } public static final int START_DATE_FIELD_NUMBER = 1; private com.google.type.Date startDate_; /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ @java.lang.Override @@ -57,11 +78,14 @@ public boolean hasStartDate() { return startDate_ != null; } /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ @java.lang.Override @@ -69,6 +93,8 @@ public com.google.type.Date getStartDate() { return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -83,6 +109,8 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { public static final int END_DATE_FIELD_NUMBER = 2; private com.google.type.Date endDate_; /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -90,6 +118,7 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ @java.lang.Override @@ -97,6 +126,8 @@ public boolean hasEndDate() { return endDate_ != null; } /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -104,6 +135,7 @@ public boolean hasEndDate() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ @java.lang.Override @@ -111,6 +143,8 @@ public com.google.type.Date getEndDate() { return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; } /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -125,6 +159,7 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -136,8 +171,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 (startDate_ != null) {
       output.writeMessage(1, getStartDate());
     }
@@ -154,12 +188,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (startDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getStartDate());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate());
     }
     if (endDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getEndDate());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -169,22 +201,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.budgets.v1.CustomPeriod)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.CustomPeriod other = (com.google.cloud.billing.budgets.v1.CustomPeriod) obj;
+    com.google.cloud.billing.budgets.v1.CustomPeriod other =
+        (com.google.cloud.billing.budgets.v1.CustomPeriod) obj;
 
     if (hasStartDate() != other.hasStartDate()) return false;
     if (hasStartDate()) {
-      if (!getStartDate()
-          .equals(other.getStartDate())) return false;
+      if (!getStartDate().equals(other.getStartDate())) return false;
     }
     if (hasEndDate() != other.hasEndDate()) return false;
     if (hasEndDate()) {
-      if (!getEndDate()
-          .equals(other.getEndDate())) return false;
+      if (!getEndDate().equals(other.getEndDate())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -210,132 +241,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.CustomPeriod parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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.budgets.v1.CustomPeriod 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;
   }
   /**
+   *
+   *
    * 
    * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.CustomPeriod} */ - 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.budgets.v1.CustomPeriod) com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.CustomPeriod.class, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1.CustomPeriod.class, + com.google.cloud.billing.budgets.v1.CustomPeriod.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; } @java.lang.Override @@ -375,8 +410,11 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriod buildPartial() { - com.google.cloud.billing.budgets.v1.CustomPeriod result = new com.google.cloud.billing.budgets.v1.CustomPeriod(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.CustomPeriod result = + new com.google.cloud.billing.budgets.v1.CustomPeriod(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,14 +422,10 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1.CustomPeriod result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startDate_ = startDateBuilder_ == null - ? startDate_ - : startDateBuilder_.build(); + result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endDate_ = endDateBuilder_ == null - ? endDate_ - : endDateBuilder_.build(); + result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); } } @@ -399,38 +433,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.CustomPeriod resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.budgets.v1.CustomPeriod) { - return mergeFrom((com.google.cloud.billing.budgets.v1.CustomPeriod)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.CustomPeriod) other); } else { super.mergeFrom(other); return this; @@ -438,7 +473,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.CustomPeriod other) { - if (other == com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) + return this; if (other.hasStartDate()) { mergeStartDate(other.getStartDate()); } @@ -471,26 +507,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartDateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndDateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,28 +535,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.Date startDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> startDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ public boolean hasStartDate() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ public com.google.type.Date getStartDate() { @@ -532,6 +575,8 @@ public com.google.type.Date getStartDate() { } } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -552,14 +597,15 @@ public Builder setStartDate(com.google.type.Date value) { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartDate( - com.google.type.Date.Builder builderForValue) { + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { if (startDateBuilder_ == null) { startDate_ = builderForValue.build(); } else { @@ -570,6 +616,8 @@ public Builder setStartDate( return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -578,9 +626,9 @@ public Builder setStartDate( */ public Builder mergeStartDate(com.google.type.Date value) { if (startDateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startDate_ != null && - startDate_ != com.google.type.Date.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startDate_ != null + && startDate_ != com.google.type.Date.getDefaultInstance()) { getStartDateBuilder().mergeFrom(value); } else { startDate_ = value; @@ -593,6 +641,8 @@ public Builder mergeStartDate(com.google.type.Date value) { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -610,6 +660,8 @@ public Builder clearStartDate() { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -622,6 +674,8 @@ public com.google.type.Date.Builder getStartDateBuilder() { return getStartDateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -632,11 +686,12 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { if (startDateBuilder_ != null) { return startDateBuilder_.getMessageOrBuilder(); } else { - return startDate_ == null ? - com.google.type.Date.getDefaultInstance() : startDate_; + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -644,14 +699,13 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getStartDateFieldBuilder() { if (startDateBuilder_ == null) { - startDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), - getParentForChildren(), - isClean()); + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); startDate_ = null; } return startDateBuilder_; @@ -659,8 +713,11 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { private com.google.type.Date endDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> endDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -668,12 +725,15 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ public boolean hasEndDate() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -681,6 +741,7 @@ public boolean hasEndDate() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ public com.google.type.Date getEndDate() { @@ -691,6 +752,8 @@ public com.google.type.Date getEndDate() { } } /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -713,6 +776,8 @@ public Builder setEndDate(com.google.type.Date value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -721,8 +786,7 @@ public Builder setEndDate(com.google.type.Date value) {
      *
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setEndDate(
-        com.google.type.Date.Builder builderForValue) {
+    public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
       if (endDateBuilder_ == null) {
         endDate_ = builderForValue.build();
       } else {
@@ -733,6 +797,8 @@ public Builder setEndDate(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -743,9 +809,9 @@ public Builder setEndDate(
      */
     public Builder mergeEndDate(com.google.type.Date value) {
       if (endDateBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endDate_ != null &&
-          endDate_ != com.google.type.Date.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endDate_ != null
+            && endDate_ != com.google.type.Date.getDefaultInstance()) {
           getEndDateBuilder().mergeFrom(value);
         } else {
           endDate_ = value;
@@ -758,6 +824,8 @@ public Builder mergeEndDate(com.google.type.Date value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -777,6 +845,8 @@ public Builder clearEndDate() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -791,6 +861,8 @@ public com.google.type.Date.Builder getEndDateBuilder() {
       return getEndDateFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -803,11 +875,12 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
       if (endDateBuilder_ != null) {
         return endDateBuilder_.getMessageOrBuilder();
       } else {
-        return endDate_ == null ?
-            com.google.type.Date.getDefaultInstance() : endDate_;
+        return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -817,21 +890,20 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
+            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
         getEndDateFieldBuilder() {
       if (endDateBuilder_ == null) {
-        endDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
-                getEndDate(),
-                getParentForChildren(),
-                isClean());
+        endDateBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+                getEndDate(), getParentForChildren(), isClean());
         endDate_ = null;
       }
       return endDateBuilder_;
     }
+
     @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);
     }
 
@@ -841,12 +913,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.CustomPeriod)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.CustomPeriod)
   private static final com.google.cloud.billing.budgets.v1.CustomPeriod DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.CustomPeriod();
   }
@@ -855,27 +927,27 @@ public static com.google.cloud.billing.budgets.v1.CustomPeriod getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CustomPeriod parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CustomPeriod parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +962,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.CustomPeriod getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
similarity index 75%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
index b758ff7812e8..e44ef33f30ef 100644
--- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1;
 
-public interface CustomPeriodOrBuilder extends
+public interface CustomPeriodOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CustomPeriod)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ boolean hasStartDate(); /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ com.google.type.Date getStartDate(); /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -35,6 +59,8 @@ public interface CustomPeriodOrBuilder extends com.google.type.DateOrBuilder getStartDateOrBuilder(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -42,10 +68,13 @@ public interface CustomPeriodOrBuilder extends
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ boolean hasEndDate(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -53,10 +82,13 @@ public interface CustomPeriodOrBuilder extends
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ com.google.type.Date getEndDate(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
similarity index 63%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
index 281e6530bc01..e6cd1296e88d 100644
--- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
@@ -1,58 +1,83 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1;
 
 /**
+ *
+ *
  * 
  * Request for DeleteBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.DeleteBudgetRequest} */ -public final class DeleteBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.DeleteBudgetRequest) DeleteBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteBudgetRequest.newBuilder() to construct. private DeleteBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1.DeleteBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other = (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other = + (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest 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.budgets.v1.DeleteBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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 for DeleteBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.DeleteBudgetRequest} */ - 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.budgets.v1.DeleteBudgetRequest) com.google.cloud.billing.budgets.v1.DeleteBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.class, + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; } @java.lang.Override @@ -312,8 +344,11 @@ public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest result = new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest result = + new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +364,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.DeleteBudgetReque 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.budgets.v1.DeleteBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +404,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.DeleteBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.DeleteBudgetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +459,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,21 +489,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -467,30 +514,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -500,27 +558,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.DeleteBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.DeleteBudgetRequest) private static final com.google.cloud.billing.budgets.v1.DeleteBudgetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(); } @@ -544,27 +608,27 @@ public static com.google.cloud.billing.budgets.v1.DeleteBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..4801b06da438 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface DeleteBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.DeleteBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java similarity index 75% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java index f16809924d56..5b37759ff5ff 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java @@ -1,71 +1,86 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * A filter for a budget, limiting the scope of the cost to calculate.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.Filter} */ -public final class Filter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.Filter) FilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Filter() { - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Filter(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.Filter.class, com.google.cloud.billing.budgets.v1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1.Filter.class, + com.google.cloud.billing.budgets.v1.Filter.Builder.class); } /** + * + * *
    * Specifies how credits are applied when determining the spend for
    * threshold calculations. Budgets track the total cost minus any applicable
@@ -76,13 +91,12 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment}
    */
-  public enum CreditTypesTreatment
-      implements com.google.protobuf.ProtocolMessageEnum {
-    /**
-     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
-     */
+  public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageEnum {
+    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
     CREDIT_TYPES_TREATMENT_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -92,6 +106,8 @@ public enum CreditTypesTreatment
      */
     INCLUDE_ALL_CREDITS(1),
     /**
+     *
+     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -101,6 +117,8 @@ public enum CreditTypesTreatment
      */
     EXCLUDE_ALL_CREDITS(2),
     /**
+     *
+     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -114,11 +132,11 @@ public enum CreditTypesTreatment
     UNRECOGNIZED(-1),
     ;
 
-    /**
-     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
-     */
+    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
     public static final int CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -128,6 +146,8 @@ public enum CreditTypesTreatment
      */
     public static final int INCLUDE_ALL_CREDITS_VALUE = 1;
     /**
+     *
+     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -137,6 +157,8 @@ public enum CreditTypesTreatment
      */
     public static final int EXCLUDE_ALL_CREDITS_VALUE = 2;
     /**
+     *
+     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -148,7 +170,6 @@ public enum CreditTypesTreatment
      */
     public static final int INCLUDE_SPECIFIED_CREDITS_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -173,11 +194,16 @@ public static CreditTypesTreatment valueOf(int value) {
      */
     public static CreditTypesTreatment forNumber(int value) {
       switch (value) {
-        case 0: return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
-        case 1: return INCLUDE_ALL_CREDITS;
-        case 2: return EXCLUDE_ALL_CREDITS;
-        case 3: return INCLUDE_SPECIFIED_CREDITS;
-        default: return null;
+        case 0:
+          return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
+        case 1:
+          return INCLUDE_ALL_CREDITS;
+        case 2:
+          return EXCLUDE_ALL_CREDITS;
+        case 3:
+          return INCLUDE_SPECIFIED_CREDITS;
+        default:
+          return null;
       }
     }
 
@@ -185,28 +211,28 @@ public static CreditTypesTreatment forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        CreditTypesTreatment> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public CreditTypesTreatment findValueByNumber(int number) {
-              return CreditTypesTreatment.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 CreditTypesTreatment findValueByNumber(int number) {
+                return CreditTypesTreatment.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.budgets.v1.Filter.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -215,8 +241,7 @@ public CreditTypesTreatment findValueByNumber(int number) {
     public static CreditTypesTreatment 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;
@@ -234,15 +259,19 @@ private CreditTypesTreatment(int value) {
   }
 
   private int usagePeriodCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object usagePeriod_;
+
   public enum UsagePeriodCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CALENDAR_PERIOD(8),
     CUSTOM_PERIOD(9),
     USAGEPERIOD_NOT_SET(0);
     private final int value;
+
     private UsagePeriodCase(int value) {
       this.value = value;
     }
@@ -258,28 +287,34 @@ public static UsagePeriodCase valueOf(int value) {
 
     public static UsagePeriodCase forNumber(int value) {
       switch (value) {
-        case 8: return CALENDAR_PERIOD;
-        case 9: return CUSTOM_PERIOD;
-        case 0: return USAGEPERIOD_NOT_SET;
-        default: return null;
+        case 8:
+          return CALENDAR_PERIOD;
+        case 9:
+          return CUSTOM_PERIOD;
+        case 0:
+          return USAGEPERIOD_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public UsagePeriodCase
-  getUsagePeriodCase() {
-    return UsagePeriodCase.forNumber(
-        usagePeriodCase_);
+  public UsagePeriodCase getUsagePeriodCase() {
+    return UsagePeriodCase.forNumber(usagePeriodCase_);
   }
 
   public static final int PROJECTS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList projects_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -288,13 +323,15 @@ public int getNumber() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList - getProjectsList() { + public com.google.protobuf.ProtocolStringList getProjectsList() { return projects_; } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -303,12 +340,15 @@ public int getNumber() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -317,6 +357,7 @@ public int getProjectsCount() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -324,6 +365,8 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -332,19 +375,22 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString - getProjectsBytes(int index) { + public com.google.protobuf.ByteString getProjectsBytes(int index) { return projects_.getByteString(index); } public static final int RESOURCE_ANCESTORS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -356,13 +402,15 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList - getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { return resourceAncestors_; } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -374,12 +422,15 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -391,6 +442,7 @@ public int getResourceAncestorsCount() {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -398,6 +450,8 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -409,19 +463,22 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString - getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } public static final int CREDIT_TYPES_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -436,13 +493,15 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList - getCreditTypesList() { + public com.google.protobuf.ProtocolStringList getCreditTypesList() { return creditTypes_; } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -457,12 +516,15 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -477,6 +539,7 @@ public int getCreditTypesCount() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -484,6 +547,8 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -498,45 +563,64 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString - getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } public static final int CREDIT_TYPES_TREATMENT_FIELD_NUMBER = 4; private int creditTypesTreatment_ = 0; /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override public int getCreditTypesTreatmentValue() { + @java.lang.Override + public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ - @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber( + creditTypesTreatment_); + return result == null + ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED + : result; } public static final int SERVICES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -547,13 +631,15 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList - getServicesList() { + public com.google.protobuf.ProtocolStringList getServicesList() { return services_; } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -564,12 +650,15 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -580,6 +669,7 @@ public int getServicesCount() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ @@ -587,6 +677,8 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -597,19 +689,22 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString - getServicesBytes(int index) { + public com.google.protobuf.ByteString getServicesBytes(int index) { return services_.getByteString(index); } public static final int SUBACCOUNTS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -620,13 +715,15 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList - getSubaccountsList() { + public com.google.protobuf.ProtocolStringList getSubaccountsList() { return subaccounts_; } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -637,12 +734,15 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -653,6 +753,7 @@ public int getSubaccountsCount() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -660,6 +761,8 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -670,41 +773,46 @@ public java.lang.String getSubaccounts(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString - getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.ListValue> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.ListValue.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.ListValue.getDefaultInstance()); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ListValue> labels_; + private com.google.protobuf.MapField labels_; + private com.google.protobuf.MapField - internalGetLabels() { + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -717,23 +825,26 @@ public int getLabelsCount() {
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -746,13 +857,17 @@ public java.util.Map getLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -765,20 +880,25 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.protobuf.ListValue defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -791,12 +911,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -807,6 +930,8 @@ public com.google.protobuf.ListValue getLabelsOrThrow( public static final int CALENDAR_PERIOD_FIELD_NUMBER = 8; /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -816,13 +941,18 @@ public com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -832,7 +962,10 @@ public boolean hasCalendarPeriod() {
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ public int getCalendarPeriodValue() { @@ -842,6 +975,8 @@ public int getCalendarPeriodValue() { return 0; } /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -851,26 +986,37 @@ public int getCalendarPeriodValue() {
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1.CalendarPeriod result = com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1.CalendarPeriod result = + com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null + ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED + : result; } return com.google.cloud.billing.budgets.v1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } public static final int CUSTOM_PERIOD_FIELD_NUMBER = 9; /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -878,38 +1024,48 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -921,8 +1077,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 < projects_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projects_.getRaw(i)); } @@ -932,18 +1087,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < services_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, services_.getRaw(i)); } - if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { + if (creditTypesTreatment_ + != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment + .CREDIT_TYPES_TREATMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(4, creditTypesTreatment_); } for (int i = 0; i < subaccounts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subaccounts_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); for (int i = 0; i < creditTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, creditTypes_.getRaw(i)); } @@ -986,9 +1140,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getServicesList().size(); } - if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, creditTypesTreatment_); + if (creditTypesTreatment_ + != com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment + .CREDIT_TYPES_TREATMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, creditTypesTreatment_); } { int dataSize = 0; @@ -998,15 +1154,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSubaccountsList().size(); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } { int dataSize = 0; @@ -1017,12 +1173,14 @@ public int getSerializedSize() { size += 1 * getCreditTypesList().size(); } if (usagePeriodCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, ((java.lang.Integer) usagePeriod_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 8, ((java.lang.Integer) usagePeriod_)); } if (usagePeriodCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1032,35 +1190,28 @@ 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.budgets.v1.Filter)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.Filter other = (com.google.cloud.billing.budgets.v1.Filter) obj; + com.google.cloud.billing.budgets.v1.Filter other = + (com.google.cloud.billing.budgets.v1.Filter) obj; - if (!getProjectsList() - .equals(other.getProjectsList())) return false; - if (!getResourceAncestorsList() - .equals(other.getResourceAncestorsList())) return false; - if (!getCreditTypesList() - .equals(other.getCreditTypesList())) return false; + if (!getProjectsList().equals(other.getProjectsList())) return false; + if (!getResourceAncestorsList().equals(other.getResourceAncestorsList())) return false; + if (!getCreditTypesList().equals(other.getCreditTypesList())) return false; if (creditTypesTreatment_ != other.creditTypesTreatment_) return false; - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!getSubaccountsList() - .equals(other.getSubaccountsList())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getServicesList().equals(other.getServicesList())) return false; + if (!getSubaccountsList().equals(other.getSubaccountsList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getUsagePeriodCase().equals(other.getUsagePeriodCase())) return false; switch (usagePeriodCase_) { case 8: - if (getCalendarPeriodValue() - != other.getCalendarPeriodValue()) return false; + if (getCalendarPeriodValue() != other.getCalendarPeriodValue()) return false; break; case 9: - if (!getCustomPeriod() - .equals(other.getCustomPeriod())) return false; + if (!getCustomPeriod().equals(other.getCustomPeriod())) return false; break; case 0: default: @@ -1119,169 +1270,166 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1.Filter parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1.Filter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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.budgets.v1.Filter 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 filter for a budget, limiting the scope of the cost to calculate.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.Filter} */ - 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.budgets.v1.Filter) com.google.cloud.billing.budgets.v1.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.Filter.class, com.google.cloud.billing.budgets.v1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1.Filter.class, + com.google.cloud.billing.budgets.v1.Filter.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.Filter.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableLabels().clear(); if (customPeriodBuilder_ != null) { customPeriodBuilder_.clear(); @@ -1292,9 +1440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetModelProto + .internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; } @java.lang.Override @@ -1313,8 +1461,11 @@ public com.google.cloud.billing.budgets.v1.Filter build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.Filter buildPartial() { - com.google.cloud.billing.budgets.v1.Filter result = new com.google.cloud.billing.budgets.v1.Filter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.Filter result = + new com.google.cloud.billing.budgets.v1.Filter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1354,8 +1505,7 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.Filter result) { private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.Filter result) { result.usagePeriodCase_ = usagePeriodCase_; result.usagePeriod_ = this.usagePeriod_; - if (usagePeriodCase_ == 9 && - customPeriodBuilder_ != null) { + if (usagePeriodCase_ == 9 && customPeriodBuilder_ != null) { result.usagePeriod_ = customPeriodBuilder_.build(); } } @@ -1364,38 +1514,39 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1.Filter resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.budgets.v1.Filter) { - return mergeFrom((com.google.cloud.billing.budgets.v1.Filter)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.Filter) other); } else { super.mergeFrom(other); return this; @@ -1457,21 +1608,23 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.Filter other) { } onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000040; switch (other.getUsagePeriodCase()) { - case CALENDAR_PERIOD: { - setCalendarPeriodValue(other.getCalendarPeriodValue()); - break; - } - case CUSTOM_PERIOD: { - mergeCustomPeriod(other.getCustomPeriod()); - break; - } - case USAGEPERIOD_NOT_SET: { - break; - } + case CALENDAR_PERIOD: + { + setCalendarPeriodValue(other.getCalendarPeriodValue()); + break; + } + case CUSTOM_PERIOD: + { + mergeCustomPeriod(other.getCustomPeriod()); + break; + } + case USAGEPERIOD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1499,69 +1652,80 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureProjectsIsMutable(); - projects_.add(s); - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceAncestorsIsMutable(); - resourceAncestors_.add(s); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureServicesIsMutable(); - services_.add(s); - break; - } // case 26 - case 32: { - creditTypesTreatment_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubaccountsIsMutable(); - subaccounts_.add(s); - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - ensureCreditTypesIsMutable(); - creditTypes_.add(s); - break; - } // case 58 - case 64: { - int rawValue = input.readEnum(); - usagePeriodCase_ = 8; - usagePeriod_ = rawValue; - break; - } // case 64 - case 74: { - input.readMessage( - getCustomPeriodFieldBuilder().getBuilder(), - extensionRegistry); - usagePeriodCase_ = 9; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectsIsMutable(); + projects_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceAncestorsIsMutable(); + resourceAncestors_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServicesIsMutable(); + services_.add(s); + break; + } // case 26 + case 32: + { + creditTypesTreatment_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubaccountsIsMutable(); + subaccounts_.add(s); + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry + labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCreditTypesIsMutable(); + creditTypes_.add(s); + break; + } // case 58 + case 64: + { + int rawValue = input.readEnum(); + usagePeriodCase_ = 8; + usagePeriod_ = rawValue; + break; + } // case 64 + case 74: + { + input.readMessage(getCustomPeriodFieldBuilder().getBuilder(), extensionRegistry); + usagePeriodCase_ = 9; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1571,12 +1735,12 @@ public Builder mergeFrom( } // finally return this; } + private int usagePeriodCase_ = 0; private java.lang.Object usagePeriod_; - public UsagePeriodCase - getUsagePeriodCase() { - return UsagePeriodCase.forNumber( - usagePeriodCase_); + + public UsagePeriodCase getUsagePeriodCase() { + return UsagePeriodCase.forNumber(usagePeriodCase_); } public Builder clearUsagePeriod() { @@ -1590,6 +1754,7 @@ public Builder clearUsagePeriod() { private com.google.protobuf.LazyStringArrayList projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureProjectsIsMutable() { if (!projects_.isModifiable()) { projects_ = new com.google.protobuf.LazyStringArrayList(projects_); @@ -1597,6 +1762,8 @@ private void ensureProjectsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1605,14 +1772,16 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList - getProjectsList() { + public com.google.protobuf.ProtocolStringList getProjectsList() { projects_.makeImmutable(); return projects_; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1621,12 +1790,15 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1635,6 +1807,7 @@ public int getProjectsCount() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -1642,6 +1815,8 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1650,14 +1825,16 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString - getProjectsBytes(int index) { + public com.google.protobuf.ByteString getProjectsBytes(int index) { return projects_.getByteString(index); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1666,13 +1843,15 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The projects to set. * @return This builder for chaining. */ - public Builder setProjects( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureProjectsIsMutable(); projects_.set(index, value); bitField0_ |= 0x00000001; @@ -1680,6 +1859,8 @@ public Builder setProjects( return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1688,12 +1869,14 @@ public Builder setProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The projects to add. * @return This builder for chaining. */ - public Builder addProjects( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureProjectsIsMutable(); projects_.add(value); bitField0_ |= 0x00000001; @@ -1701,6 +1884,8 @@ public Builder addProjects( return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1709,19 +1894,20 @@ public Builder addProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The projects to add. * @return This builder for chaining. */ - public Builder addAllProjects( - java.lang.Iterable values) { + public Builder addAllProjects(java.lang.Iterable values) { ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projects_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1730,16 +1916,19 @@ public Builder addAllProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProjects() { - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1748,12 +1937,14 @@ public Builder clearProjects() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the projects to add. * @return This builder for chaining. */ - public Builder addProjectsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureProjectsIsMutable(); projects_.add(value); @@ -1764,6 +1955,7 @@ public Builder addProjectsBytes( private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResourceAncestorsIsMutable() { if (!resourceAncestors_.isModifiable()) { resourceAncestors_ = new com.google.protobuf.LazyStringArrayList(resourceAncestors_); @@ -1771,6 +1963,8 @@ private void ensureResourceAncestorsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1781,15 +1975,18 @@ private void ensureResourceAncestorsIsMutable() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList - getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { resourceAncestors_.makeImmutable(); return resourceAncestors_; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1800,13 +1997,17 @@ private void ensureResourceAncestorsIsMutable() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1817,7 +2018,9 @@ public int getResourceAncestorsCount() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -1825,6 +2028,8 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1835,15 +2040,18 @@ public java.lang.String getResourceAncestors(int index) {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString - getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1854,14 +2062,17 @@ public java.lang.String getResourceAncestors(int index) {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The resourceAncestors to set. * @return This builder for chaining. */ - public Builder setResourceAncestors( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceAncestors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceAncestorsIsMutable(); resourceAncestors_.set(index, value); bitField0_ |= 0x00000002; @@ -1869,6 +2080,8 @@ public Builder setResourceAncestors( return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1879,13 +2092,16 @@ public Builder setResourceAncestors(
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestors( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceAncestors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); bitField0_ |= 0x00000002; @@ -1893,6 +2109,8 @@ public Builder addResourceAncestors( return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1903,20 +2121,22 @@ public Builder addResourceAncestors(
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addAllResourceAncestors( - java.lang.Iterable values) { + public Builder addAllResourceAncestors(java.lang.Iterable values) { ensureResourceAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceAncestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceAncestors_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1927,17 +2147,21 @@ public Builder addAllResourceAncestors(
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearResourceAncestors() { - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1948,13 +2172,16 @@ public Builder clearResourceAncestors() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestorsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); @@ -1965,6 +2192,7 @@ public Builder addResourceAncestorsBytes( private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureCreditTypesIsMutable() { if (!creditTypes_.isModifiable()) { creditTypes_ = new com.google.protobuf.LazyStringArrayList(creditTypes_); @@ -1972,6 +2200,8 @@ private void ensureCreditTypesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -1986,14 +2216,16 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList - getCreditTypesList() { + public com.google.protobuf.ProtocolStringList getCreditTypesList() { creditTypes_.makeImmutable(); return creditTypes_; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2008,12 +2240,15 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2028,6 +2263,7 @@ public int getCreditTypesCount() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -2035,6 +2271,8 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2049,14 +2287,16 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString - getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2071,13 +2311,15 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The creditTypes to set. * @return This builder for chaining. */ - public Builder setCreditTypes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCreditTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCreditTypesIsMutable(); creditTypes_.set(index, value); bitField0_ |= 0x00000004; @@ -2085,6 +2327,8 @@ public Builder setCreditTypes( return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2099,12 +2343,14 @@ public Builder setCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCreditTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCreditTypesIsMutable(); creditTypes_.add(value); bitField0_ |= 0x00000004; @@ -2112,6 +2358,8 @@ public Builder addCreditTypes( return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2126,19 +2374,20 @@ public Builder addCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The creditTypes to add. * @return This builder for chaining. */ - public Builder addAllCreditTypes( - java.lang.Iterable values) { + public Builder addAllCreditTypes(java.lang.Iterable values) { ensureCreditTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, creditTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creditTypes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2153,16 +2402,19 @@ public Builder addAllCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCreditTypes() { - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -2177,12 +2429,14 @@ public Builder clearCreditTypes() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureCreditTypesIsMutable(); creditTypes_.add(value); @@ -2193,22 +2447,33 @@ public Builder addCreditTypesBytes( private int creditTypesTreatment_ = 0; /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override public int getCreditTypesTreatmentValue() { + @java.lang.Override + public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for creditTypesTreatment to set. * @return This builder for chaining. */ @@ -2219,28 +2484,44 @@ public Builder setCreditTypesTreatmentValue(int value) { return this; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment + getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.forNumber( + creditTypesTreatment_); + return result == null + ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The creditTypesTreatment to set. * @return This builder for chaining. */ - public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment value) { + public Builder setCreditTypesTreatment( + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment value) { if (value == null) { throw new NullPointerException(); } @@ -2250,11 +2531,16 @@ public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1.Filte return this; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCreditTypesTreatment() { @@ -2266,6 +2552,7 @@ public Builder clearCreditTypesTreatment() { private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureServicesIsMutable() { if (!services_.isModifiable()) { services_ = new com.google.protobuf.LazyStringArrayList(services_); @@ -2273,6 +2560,8 @@ private void ensureServicesIsMutable() { bitField0_ |= 0x00000010; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2283,14 +2572,16 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList - getServicesList() { + public com.google.protobuf.ProtocolStringList getServicesList() { services_.makeImmutable(); return services_; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2301,12 +2592,15 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2317,6 +2611,7 @@ public int getServicesCount() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ @@ -2324,6 +2619,8 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2334,14 +2631,16 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString - getServicesBytes(int index) { + public com.google.protobuf.ByteString getServicesBytes(int index) { return services_.getByteString(index); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2352,13 +2651,15 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The services to set. * @return This builder for chaining. */ - public Builder setServices( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServices(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServicesIsMutable(); services_.set(index, value); bitField0_ |= 0x00000010; @@ -2366,6 +2667,8 @@ public Builder setServices( return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2376,12 +2679,14 @@ public Builder setServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The services to add. * @return This builder for chaining. */ - public Builder addServices( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServices(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServicesIsMutable(); services_.add(value); bitField0_ |= 0x00000010; @@ -2389,6 +2694,8 @@ public Builder addServices( return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2399,19 +2706,20 @@ public Builder addServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The services to add. * @return This builder for chaining. */ - public Builder addAllServices( - java.lang.Iterable values) { + public Builder addAllServices(java.lang.Iterable values) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2422,16 +2730,19 @@ public Builder addAllServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServices() { - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2442,12 +2753,14 @@ public Builder clearServices() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the services to add. * @return This builder for chaining. */ - public Builder addServicesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServicesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureServicesIsMutable(); services_.add(value); @@ -2458,6 +2771,7 @@ public Builder addServicesBytes( private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSubaccountsIsMutable() { if (!subaccounts_.isModifiable()) { subaccounts_ = new com.google.protobuf.LazyStringArrayList(subaccounts_); @@ -2465,6 +2779,8 @@ private void ensureSubaccountsIsMutable() { bitField0_ |= 0x00000020; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2475,14 +2791,16 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList - getSubaccountsList() { + public com.google.protobuf.ProtocolStringList getSubaccountsList() { subaccounts_.makeImmutable(); return subaccounts_; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2493,12 +2811,15 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2509,6 +2830,7 @@ public int getSubaccountsCount() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -2516,6 +2838,8 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2526,14 +2850,16 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString - getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2544,13 +2870,15 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The subaccounts to set. * @return This builder for chaining. */ - public Builder setSubaccounts( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubaccounts(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubaccountsIsMutable(); subaccounts_.set(index, value); bitField0_ |= 0x00000020; @@ -2558,6 +2886,8 @@ public Builder setSubaccounts( return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2568,12 +2898,14 @@ public Builder setSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccounts( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubaccounts(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubaccountsIsMutable(); subaccounts_.add(value); bitField0_ |= 0x00000020; @@ -2581,6 +2913,8 @@ public Builder addSubaccounts( return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2591,19 +2925,20 @@ public Builder addSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The subaccounts to add. * @return This builder for chaining. */ - public Builder addAllSubaccounts( - java.lang.Iterable values) { + public Builder addAllSubaccounts(java.lang.Iterable values) { ensureSubaccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subaccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subaccounts_); bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2614,16 +2949,19 @@ public Builder addAllSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSubaccounts() { - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020);; + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2634,12 +2972,14 @@ public Builder clearSubaccounts() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccountsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSubaccountsIsMutable(); subaccounts_.add(value); @@ -2648,21 +2988,20 @@ public Builder addSubaccountsBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ListValue> labels_; + private com.google.protobuf.MapField labels_; + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2671,10 +3010,13 @@ public Builder addSubaccountsBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2687,23 +3029,26 @@ public int getLabelsCount() {
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2716,13 +3061,17 @@ public java.util.Map getLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2735,20 +3084,25 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.protobuf.ListValue defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2761,12 +3115,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2774,13 +3131,15 @@ public com.google.protobuf.ListValue getLabelsOrThrow( } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2793,25 +3152,26 @@ public Builder clearLabels() {
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2824,19 +3184,24 @@ public Builder removeLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putLabels( - java.lang.String key, - com.google.protobuf.ListValue value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2849,17 +3214,20 @@ public Builder putLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllLabels( java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2869,7 +3237,10 @@ public Builder putAllLabels(
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ @java.lang.Override @@ -2877,6 +3248,8 @@ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2886,7 +3259,10 @@ public boolean hasCalendarPeriod() {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ @java.lang.Override @@ -2897,6 +3273,8 @@ public int getCalendarPeriodValue() { return 0; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2906,7 +3284,10 @@ public int getCalendarPeriodValue() {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for calendarPeriod to set. * @return This builder for chaining. */ @@ -2917,6 +3298,8 @@ public Builder setCalendarPeriodValue(int value) { return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2926,19 +3309,27 @@ public Builder setCalendarPeriodValue(int value) {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1.CalendarPeriod result = com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1.CalendarPeriod result = + com.google.cloud.billing.budgets.v1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null + ? com.google.cloud.billing.budgets.v1.CalendarPeriod.UNRECOGNIZED + : result; } return com.google.cloud.billing.budgets.v1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2948,7 +3339,10 @@ public com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod() {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The calendarPeriod to set. * @return This builder for chaining. */ @@ -2962,6 +3356,8 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1.CalendarPer return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -2971,7 +3367,10 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1.CalendarPer
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCalendarPeriod() { @@ -2984,14 +3383,22 @@ public Builder clearCalendarPeriod() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> customPeriodBuilder_; + com.google.cloud.billing.budgets.v1.CustomPeriod, + com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> + customPeriodBuilder_; /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -2999,12 +3406,17 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ @java.lang.Override @@ -3022,12 +3434,16 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod() { } } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod value) { if (customPeriodBuilder_ == null) { @@ -3043,12 +3459,16 @@ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomPeriod( com.google.cloud.billing.budgets.v1.CustomPeriod.Builder builderForValue) { @@ -3062,19 +3482,27 @@ public Builder setCustomPeriod( return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPeriod value) { if (customPeriodBuilder_ == null) { - if (usagePeriodCase_ == 9 && - usagePeriod_ != com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) { - usagePeriod_ = com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder((com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_) - .mergeFrom(value).buildPartial(); + if (usagePeriodCase_ == 9 + && usagePeriod_ + != com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance()) { + usagePeriod_ = + com.google.cloud.billing.budgets.v1.CustomPeriod.newBuilder( + (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_) + .mergeFrom(value) + .buildPartial(); } else { usagePeriod_ = value; } @@ -3090,12 +3518,16 @@ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1.CustomPerio return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCustomPeriod() { if (customPeriodBuilder_ == null) { @@ -3114,23 +3546,31 @@ public Builder clearCustomPeriod() { return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1.CustomPeriod.Builder getCustomPeriodBuilder() { return getCustomPeriodFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { @@ -3144,22 +3584,31 @@ public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriod } } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> + com.google.cloud.billing.budgets.v1.CustomPeriod, + com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder> getCustomPeriodFieldBuilder() { if (customPeriodBuilder_ == null) { if (!(usagePeriodCase_ == 9)) { usagePeriod_ = com.google.cloud.billing.budgets.v1.CustomPeriod.getDefaultInstance(); } - customPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.CustomPeriod, com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder>( + customPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.CustomPeriod, + com.google.cloud.billing.budgets.v1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder>( (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_, getParentForChildren(), isClean()); @@ -3169,9 +3618,9 @@ public com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriod onChanged(); return customPeriodBuilder_; } + @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); } @@ -3181,12 +3630,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.Filter) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.Filter) private static final com.google.cloud.billing.budgets.v1.Filter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.Filter(); } @@ -3195,27 +3644,27 @@ public static com.google.cloud.billing.budgets.v1.Filter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3230,6 +3679,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java similarity index 83% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java index 4bb4b15a7fef..9f85f1cfca45 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface FilterOrBuilder extends +public interface FilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.Filter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -16,11 +34,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - java.util.List - getProjectsList(); + java.util.List getProjectsList(); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -29,10 +49,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ int getProjectsCount(); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -41,11 +64,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ java.lang.String getProjects(int index); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -54,13 +80,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - com.google.protobuf.ByteString - getProjectsBytes(int index); + com.google.protobuf.ByteString getProjectsBytes(int index); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -72,11 +100,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the resourceAncestors. */ - java.util.List - getResourceAncestorsList(); + java.util.List getResourceAncestorsList(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -88,10 +118,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of resourceAncestors. */ int getResourceAncestorsCount(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -103,11 +136,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ java.lang.String getResourceAncestors(int index); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -119,13 +155,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - com.google.protobuf.ByteString - getResourceAncestorsBytes(int index); + com.google.protobuf.ByteString getResourceAncestorsBytes(int index); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -140,11 +178,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - java.util.List - getCreditTypesList(); + java.util.List getCreditTypesList(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -159,10 +199,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ int getCreditTypesCount(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -177,11 +220,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ java.lang.String getCreditTypes(int index); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -196,32 +242,44 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - com.google.protobuf.ByteString - getCreditTypesBytes(int index); + com.google.protobuf.ByteString getCreditTypesBytes(int index); /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ int getCreditTypesTreatmentValue(); /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -232,11 +290,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - java.util.List - getServicesList(); + java.util.List getServicesList(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -247,10 +307,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ int getServicesCount(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -261,11 +324,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ java.lang.String getServices(int index); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -276,13 +342,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - com.google.protobuf.ByteString - getServicesBytes(int index); + com.google.protobuf.ByteString getServicesBytes(int index); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -293,11 +361,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - java.util.List - getSubaccountsList(); + java.util.List getSubaccountsList(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -308,10 +378,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ int getSubaccountsCount(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -322,11 +395,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ java.lang.String getSubaccounts(int index); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -337,13 +413,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - com.google.protobuf.ByteString - getSubaccountsBytes(int index); + com.google.protobuf.ByteString getSubaccountsBytes(int index); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -356,10 +434,14 @@ public interface FilterOrBuilder extends
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getLabelsCount(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -372,17 +454,17 @@ public interface FilterOrBuilder extends
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -395,11 +477,14 @@ boolean containsLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -412,14 +497,18 @@ boolean containsLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue); + com.google.protobuf.ListValue defaultValue); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -432,12 +521,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key); + com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -447,11 +539,16 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ boolean hasCalendarPeriod(); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -461,11 +558,16 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ int getCalendarPeriodValue(); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget
@@ -475,38 +577,55 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ com.google.cloud.billing.budgets.v1.CalendarPeriod getCalendarPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ boolean hasCustomPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ com.google.cloud.billing.budgets.v1.CustomPeriod getCustomPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1.CustomPeriodOrBuilder getCustomPeriodOrBuilder(); diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java similarity index 64% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java index af75b502f7f6..5d1a7979a072 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * Request for GetBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.GetBudgetRequest} */ -public final class GetBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.GetBudgetRequest) GetBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetBudgetRequest.newBuilder() to construct. private GetBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, + com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1.GetBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.GetBudgetRequest other = (com.google.cloud.billing.budgets.v1.GetBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.GetBudgetRequest other = + (com.google.cloud.billing.budgets.v1.GetBudgetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,135 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.GetBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest 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 for GetBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.GetBudgetRequest} */ - 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.budgets.v1.GetBudgetRequest) com.google.cloud.billing.budgets.v1.GetBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.GetBudgetRequest.class, + com.google.cloud.billing.budgets.v1.GetBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.GetBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; } @java.lang.Override @@ -312,8 +343,11 @@ public com.google.cloud.billing.budgets.v1.GetBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.GetBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.GetBudgetRequest result = new com.google.cloud.billing.budgets.v1.GetBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.GetBudgetRequest result = + new com.google.cloud.billing.budgets.v1.GetBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +363,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.budgets.v1.GetBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.GetBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.GetBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +403,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.GetBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.GetBudgetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +458,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,21 +488,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -467,30 +513,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -500,27 +557,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.GetBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.GetBudgetRequest) private static final com.google.cloud.billing.budgets.v1.GetBudgetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.GetBudgetRequest(); } @@ -544,27 +607,27 @@ public static com.google.cloud.billing.budgets.v1.GetBudgetRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.GetBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..b5c42e0da212 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1/budget_service.proto + +package com.google.cloud.billing.budgets.v1; + +public interface GetBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.GetBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java similarity index 65% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java index 9966d2ae4d72..6d1e95c3a861 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * Describes a budget amount targeted to the last
  * [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period]
@@ -16,39 +33,41 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.LastPeriodAmount}
  */
-public final class LastPeriodAmount extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LastPeriodAmount extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.LastPeriodAmount)
     LastPeriodAmountOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LastPeriodAmount.newBuilder() to construct.
   private LastPeriodAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LastPeriodAmount() {
-  }
+
+  private LastPeriodAmount() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LastPeriodAmount();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount.class,
+            com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -60,8 +79,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -79,12 +97,13 @@ 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.budgets.v1.LastPeriodAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1.LastPeriodAmount other = (com.google.cloud.billing.budgets.v1.LastPeriodAmount) obj;
+    com.google.cloud.billing.budgets.v1.LastPeriodAmount other =
+        (com.google.cloud.billing.budgets.v1.LastPeriodAmount) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -103,98 +122,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1.LastPeriodAmount parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1.LastPeriodAmount parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount 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;
   }
   /**
+   *
+   *
    * 
    * Describes a budget amount targeted to the last
    * [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period]
@@ -207,33 +231,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.LastPeriodAmount}
    */
-  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.budgets.v1.LastPeriodAmount)
       com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
+              com.google.cloud.billing.budgets.v1.LastPeriodAmount.class,
+              com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.LastPeriodAmount.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -241,9 +264,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
@@ -262,7 +285,8 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.LastPeriodAmount buildPartial() {
-      com.google.cloud.billing.budgets.v1.LastPeriodAmount result = new com.google.cloud.billing.budgets.v1.LastPeriodAmount(this);
+      com.google.cloud.billing.budgets.v1.LastPeriodAmount result =
+          new com.google.cloud.billing.budgets.v1.LastPeriodAmount(this);
       onBuilt();
       return result;
     }
@@ -271,38 +295,39 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount 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.budgets.v1.LastPeriodAmount) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.LastPeriodAmount)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.LastPeriodAmount) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -310,7 +335,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.LastPeriodAmount other) {
-      if (other == com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1.LastPeriodAmount.getDefaultInstance())
+        return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -337,12 +363,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -352,9 +379,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -364,12 +391,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.LastPeriodAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.LastPeriodAmount)
   private static final com.google.cloud.billing.budgets.v1.LastPeriodAmount DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.LastPeriodAmount();
   }
@@ -378,27 +405,27 @@ public static com.google.cloud.billing.budgets.v1.LastPeriodAmount getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public LastPeriodAmount parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public LastPeriodAmount parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -413,6 +440,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.LastPeriodAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java
new file mode 100644
index 000000000000..673b35957419
--- /dev/null
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1;
+
+public interface LastPeriodAmountOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.LastPeriodAmount)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
similarity index 72%
rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
index cebc9847d792..6f3aee1080a7 100644
--- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1;
 
 /**
+ *
+ *
  * 
  * Request for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsRequest} */ -public final class ListBudgetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBudgetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ListBudgetsRequest) ListBudgetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBudgetsRequest.newBuilder() to construct. private ListBudgetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBudgetsRequest() { parent_ = ""; scope_ = ""; @@ -27,34 +45,41 @@ private ListBudgetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 { @@ -95,9 +122,12 @@ public java.lang.String getParent() { } public static final int SCOPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object scope_ = ""; /** + * + * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -108,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scope. */ @java.lang.Override @@ -116,14 +147,15 @@ public java.lang.String getScope() { 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(); scope_ = s; return s; } } /** + * + * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -134,16 +166,15 @@ public java.lang.String getScope() {
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; 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); scope_ = b; return b; } else { @@ -154,12 +185,15 @@ public java.lang.String getScope() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -168,9 +202,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -178,6 +215,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -186,14 +224,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; } } /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -201,16 +240,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -219,6 +257,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +269,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_); } @@ -257,8 +295,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -274,21 +311,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.budgets.v1.ListBudgetsRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ListBudgetsRequest other = (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getScope() - .equals(other.getScope())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.billing.budgets.v1.ListBudgetsRequest other = + (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getScope().equals(other.getScope())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -314,131 +348,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest 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.budgets.v1.ListBudgetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsRequest} */ - 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.budgets.v1.ListBudgetsRequest) com.google.cloud.billing.budgets.v1.ListBudgetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.class, + com.google.cloud.billing.budgets.v1.ListBudgetsRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.ListBudgetsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -451,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; } @java.lang.Override @@ -472,8 +511,11 @@ public com.google.cloud.billing.budgets.v1.ListBudgetsRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.ListBudgetsRequest buildPartial() { - com.google.cloud.billing.budgets.v1.ListBudgetsRequest result = new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.ListBudgetsRequest result = + new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -498,38 +540,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ListBudgetsReques 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.budgets.v1.ListBudgetsRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsRequest) other); } else { super.mergeFrom(other); return this; @@ -537,7 +580,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsRequest other) { - if (other == com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.ListBudgetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -582,32 +626,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - scope_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,23 +666,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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; @@ -642,21 +696,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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 { @@ -664,30 +721,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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() { @@ -697,18 +765,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -718,6 +792,8 @@ public Builder setParentBytes( private java.lang.Object scope_ = ""; /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -728,13 +804,13 @@ public Builder setParentBytes(
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; 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(); scope_ = s; return s; @@ -743,6 +819,8 @@ public java.lang.String getScope() { } } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -753,15 +831,14 @@ public java.lang.String getScope() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for scope. */ - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; 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); scope_ = b; return b; } else { @@ -769,6 +846,8 @@ public java.lang.String getScope() { } } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -779,18 +858,22 @@ public java.lang.String getScope() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } scope_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -801,6 +884,7 @@ public Builder setScope(
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearScope() { @@ -810,6 +894,8 @@ public Builder clearScope() { return this; } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -820,12 +906,14 @@ public Builder clearScope() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); scope_ = value; bitField0_ |= 0x00000002; @@ -833,14 +921,17 @@ public Builder setScopeBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -848,12 +939,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -865,12 +959,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -882,6 +979,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -889,13 +988,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -904,6 +1003,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -911,15 +1012,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -927,6 +1027,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -934,18 +1036,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -953,6 +1059,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -962,6 +1069,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -969,21 +1078,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -993,12 +1104,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ListBudgetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ListBudgetsRequest) private static final com.google.cloud.billing.budgets.v1.ListBudgetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(); } @@ -1007,27 +1118,27 @@ public static com.google.cloud.billing.budgets.v1.ListBudgetsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,6 +1153,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ListBudgetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java index e9864e8a98d2..e03a918d78d7 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface ListBudgetsRequestOrBuilder extends +public interface ListBudgetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ListBudgetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -40,10 +67,13 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scope. */ java.lang.String getScope(); /** + * + * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -54,23 +84,28 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for scope. */ - com.google.protobuf.ByteString - getScopeBytes(); + com.google.protobuf.ByteString getScopeBytes(); /** + * + * *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -78,10 +113,13 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -89,8 +127,8 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java similarity index 72% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java index 1c43e0a50670..a8a8d6f7838b 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * Response for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsResponse} */ -public final class ListBudgetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBudgetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ListBudgetsResponse) ListBudgetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBudgetsResponse.newBuilder() to construct. private ListBudgetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBudgetsResponse() { budgets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListBudgetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); } public static final int BUDGETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List budgets_; /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -59,6 +81,8 @@ public java.util.List getBudgetsList return budgets_; } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -66,11 +90,13 @@ public java.util.List getBudgetsList * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBudgetsOrBuilderList() { return budgets_; } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -82,6 +108,8 @@ public int getBudgetsCount() { return budgets_.size(); } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { return budgets_.get(index); } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -100,21 +130,24 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( - int index) { + public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index) { return budgets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +156,30 @@ 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; } } /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * 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 { @@ -155,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +200,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 < budgets_.size(); i++) { output.writeMessage(1, budgets_.get(i)); } @@ -184,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < budgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, budgets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, budgets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +230,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.budgets.v1.ListBudgetsResponse)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ListBudgetsResponse other = (com.google.cloud.billing.budgets.v1.ListBudgetsResponse) obj; + com.google.cloud.billing.budgets.v1.ListBudgetsResponse other = + (com.google.cloud.billing.budgets.v1.ListBudgetsResponse) obj; - if (!getBudgetsList() - .equals(other.getBudgetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBudgetsList().equals(other.getBudgetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +263,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse 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.budgets.v1.ListBudgetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.ListBudgetsResponse} */ - 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.budgets.v1.ListBudgetsResponse) com.google.cloud.billing.budgets.v1.ListBudgetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.class, + com.google.cloud.billing.budgets.v1.ListBudgetsResponse.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.ListBudgetsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; } @java.lang.Override @@ -394,14 +430,18 @@ public com.google.cloud.billing.budgets.v1.ListBudgetsResponse build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.ListBudgetsResponse buildPartial() { - com.google.cloud.billing.budgets.v1.ListBudgetsResponse result = new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(this); + com.google.cloud.billing.budgets.v1.ListBudgetsResponse result = + new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1.ListBudgetsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.billing.budgets.v1.ListBudgetsResponse result) { if (budgetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { budgets_ = java.util.Collections.unmodifiableList(budgets_); @@ -424,38 +464,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ListBudgetsRespon 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.budgets.v1.ListBudgetsResponse) { - return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsResponse)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.ListBudgetsResponse) other); } else { super.mergeFrom(other); return this; @@ -463,7 +504,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsResponse other) { - if (other == com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.ListBudgetsResponse.getDefaultInstance()) + return this; if (budgetsBuilder_ == null) { if (!other.budgets_.isEmpty()) { if (budgets_.isEmpty()) { @@ -482,9 +524,10 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ListBudgetsResponse budgetsBuilder_ = null; budgets_ = other.budgets_; bitField0_ = (bitField0_ & ~0x00000001); - budgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBudgetsFieldBuilder() : null; + budgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBudgetsFieldBuilder() + : null; } else { budgetsBuilder_.addAllMessages(other.budgets_); } @@ -521,30 +564,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.billing.budgets.v1.Budget m = - input.readMessage( - com.google.cloud.billing.budgets.v1.Budget.parser(), - extensionRegistry); - if (budgetsBuilder_ == null) { - ensureBudgetsIsMutable(); - budgets_.add(m); - } else { - budgetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.billing.budgets.v1.Budget m = + input.readMessage( + com.google.cloud.billing.budgets.v1.Budget.parser(), extensionRegistry); + if (budgetsBuilder_ == null) { + ensureBudgetsIsMutable(); + budgets_.add(m); + } else { + budgetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +599,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List budgets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBudgetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { budgets_ = new java.util.ArrayList(budgets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetsBuilder_; + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + budgetsBuilder_; /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -583,6 +635,8 @@ public java.util.List getBudgetsList } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -597,6 +651,8 @@ public int getBudgetsCount() { } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -611,14 +667,15 @@ public com.google.cloud.billing.budgets.v1.Budget getBudgets(int index) { } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder setBudgets( - int index, com.google.cloud.billing.budgets.v1.Budget value) { + public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -632,6 +689,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -650,6 +709,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -670,14 +731,15 @@ public Builder addBudgets(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder addBudgets( - int index, com.google.cloud.billing.budgets.v1.Budget value) { + public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -691,14 +753,15 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public Builder addBudgets( - com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder addBudgets(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); budgets_.add(builderForValue.build()); @@ -709,6 +772,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -727,6 +792,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -737,8 +804,7 @@ public Builder addAllBudgets( java.lang.Iterable values) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, budgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, budgets_); onChanged(); } else { budgetsBuilder_.addAllMessages(values); @@ -746,6 +812,8 @@ public Builder addAllBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -763,6 +831,8 @@ public Builder clearBudgets() { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -780,39 +850,44 @@ public Builder removeBudgets(int index) { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetsBuilder( - int index) { + public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetsBuilder(int index) { return getBudgetsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( - int index) { + public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index) { if (budgetsBuilder_ == null) { - return budgets_.get(index); } else { + return budgets_.get(index); + } else { return budgetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public java.util.List - getBudgetsOrBuilderList() { + public java.util.List + getBudgetsOrBuilderList() { if (budgetsBuilder_ != null) { return budgetsBuilder_.getMessageOrBuilderList(); } else { @@ -820,6 +895,8 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -827,42 +904,48 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder() { - return getBudgetsFieldBuilder().addBuilder( - com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); + return getBudgetsFieldBuilder() + .addBuilder(com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder( - int index) { - return getBudgetsFieldBuilder().addBuilder( - index, com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder(int index) { + return getBudgetsFieldBuilder() + .addBuilder(index, com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - public java.util.List - getBudgetsBuilderList() { + public java.util.List + getBudgetsBuilderList() { return getBudgetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetsFieldBuilder() { if (budgetsBuilder_ == null) { - budgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - budgets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + budgetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + budgets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); budgets_ = null; } return budgetsBuilder_; @@ -870,19 +953,21 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder addBudgetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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; @@ -891,21 +976,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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 { @@ -913,30 +999,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -946,27 +1039,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,12 +1073,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ListBudgetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ListBudgetsResponse) private static final com.google.cloud.billing.budgets.v1.ListBudgetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ListBudgetsResponse(); } @@ -990,27 +1087,27 @@ public static com.google.cloud.billing.budgets.v1.ListBudgetsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1122,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ListBudgetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java index 85cae48ff761..fc912b35c8a2 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface ListBudgetsResponseOrBuilder extends +public interface ListBudgetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ListBudgetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - java.util.List - getBudgetsList(); + java.util.List getBudgetsList(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -25,6 +44,8 @@ public interface ListBudgetsResponseOrBuilder extends */ com.google.cloud.billing.budgets.v1.Budget getBudgets(int index); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -33,43 +54,51 @@ public interface ListBudgetsResponseOrBuilder extends */ int getBudgetsCount(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - java.util.List + java.util.List getBudgetsOrBuilderList(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1.Budget budgets = 1; */ - com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( - int index); + com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder(int index); /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java similarity index 82% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java index e1620cbf7b77..b554a7393528 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * NotificationsRule defines notifications that are sent based on budget spend
  * and thresholds.
@@ -11,46 +28,50 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.NotificationsRule}
  */
-public final class NotificationsRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NotificationsRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.NotificationsRule)
     NotificationsRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NotificationsRule.newBuilder() to construct.
   private NotificationsRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NotificationsRule() {
     pubsubTopic_ = "";
     schemaVersion_ = "";
-    monitoringNotificationChannels_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NotificationsRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.NotificationsRule.class, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
+            com.google.cloud.billing.budgets.v1.NotificationsRule.class,
+            com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
   }
 
   public static final int PUBSUB_TOPIC_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object pubsubTopic_ = "";
   /**
+   *
+   *
    * 
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -81,6 +102,7 @@ protected java.lang.Object newInstance(
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ @java.lang.Override @@ -89,14 +111,15 @@ public java.lang.String getPubsubTopic() { 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(); pubsubTopic_ = s; return s; } } /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -127,16 +150,15 @@ public java.lang.String getPubsubTopic() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -145,9 +167,12 @@ public java.lang.String getPubsubTopic() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object schemaVersion_ = ""; /** + * + * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -158,6 +183,7 @@ public java.lang.String getPubsubTopic() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ @java.lang.Override @@ -166,14 +192,15 @@ public java.lang.String getSchemaVersion() { 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(); schemaVersion_ = s; return s; } } /** + * + * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -184,16 +211,15 @@ public java.lang.String getSchemaVersion() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaVersionBytes() { + public com.google.protobuf.ByteString getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -202,10 +228,13 @@ public java.lang.String getSchemaVersion() { } public static final int MONITORING_NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -231,14 +260,18 @@ public java.lang.String getSchemaVersion() {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList - getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { return monitoringNotificationChannels_; } /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -264,13 +297,18 @@ public java.lang.String getSchemaVersion() {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -296,7 +334,10 @@ public int getMonitoringNotificationChannelsCount() {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -304,6 +345,8 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -329,18 +372,22 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } public static final int DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER = 4; private boolean disableDefaultIamRecipients_ = false; /** + * + * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -349,6 +396,7 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -359,6 +407,8 @@ public boolean getDisableDefaultIamRecipients() { public static final int ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER = 5; private boolean enableProjectLevelRecipients_ = false; /** + * + * *
    * Optional. When set to true, and when the budget has a single project
    * configured, notifications will be sent to project level recipients of that
@@ -369,7 +419,9 @@ public boolean getDisableDefaultIamRecipients() {
    * cloud project.
    * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableProjectLevelRecipients. */ @java.lang.Override @@ -378,6 +430,7 @@ public boolean getEnableProjectLevelRecipients() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -389,8 +442,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(pubsubTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopic_); } @@ -398,7 +450,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaVersion_); } for (int i = 0; i < monitoringNotificationChannels_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, monitoringNotificationChannels_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, monitoringNotificationChannels_.getRaw(i)); } if (disableDefaultIamRecipients_ != false) { output.writeBool(4, disableDefaultIamRecipients_); @@ -430,12 +483,12 @@ public int getSerializedSize() { size += 1 * getMonitoringNotificationChannelsList().size(); } if (disableDefaultIamRecipients_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, disableDefaultIamRecipients_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableDefaultIamRecipients_); } if (enableProjectLevelRecipients_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, enableProjectLevelRecipients_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableProjectLevelRecipients_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -445,23 +498,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.budgets.v1.NotificationsRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.NotificationsRule other = (com.google.cloud.billing.budgets.v1.NotificationsRule) obj; + com.google.cloud.billing.budgets.v1.NotificationsRule other = + (com.google.cloud.billing.budgets.v1.NotificationsRule) obj; - if (!getPubsubTopic() - .equals(other.getPubsubTopic())) return false; - if (!getSchemaVersion() - .equals(other.getSchemaVersion())) return false; + if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; + if (!getSchemaVersion().equals(other.getSchemaVersion())) return false; if (!getMonitoringNotificationChannelsList() .equals(other.getMonitoringNotificationChannelsList())) return false; - if (getDisableDefaultIamRecipients() - != other.getDisableDefaultIamRecipients()) return false; - if (getEnableProjectLevelRecipients() - != other.getEnableProjectLevelRecipients()) return false; + if (getDisableDefaultIamRecipients() != other.getDisableDefaultIamRecipients()) return false; + if (getEnableProjectLevelRecipients() != other.getEnableProjectLevelRecipients()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -482,109 +532,114 @@ public int hashCode() { hash = (53 * hash) + getMonitoringNotificationChannelsList().hashCode(); } hash = (37 * hash) + DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableDefaultIamRecipients()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDefaultIamRecipients()); hash = (37 * hash) + ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableProjectLevelRecipients()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableProjectLevelRecipients()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.NotificationsRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.NotificationsRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule 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.budgets.v1.NotificationsRule prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.NotificationsRule 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; } /** + * + * *
    * NotificationsRule defines notifications that are sent based on budget spend
    * and thresholds.
@@ -592,50 +647,48 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.NotificationsRule}
    */
-  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.budgets.v1.NotificationsRule)
       com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.NotificationsRule.class, com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
+              com.google.cloud.billing.budgets.v1.NotificationsRule.class,
+              com.google.cloud.billing.budgets.v1.NotificationsRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.NotificationsRule.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       pubsubTopic_ = "";
       schemaVersion_ = "";
-      monitoringNotificationChannels_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
       disableDefaultIamRecipients_ = false;
       enableProjectLevelRecipients_ = false;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor;
     }
 
     @java.lang.Override
@@ -654,8 +707,11 @@ public com.google.cloud.billing.budgets.v1.NotificationsRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.NotificationsRule buildPartial() {
-      com.google.cloud.billing.budgets.v1.NotificationsRule result = new com.google.cloud.billing.budgets.v1.NotificationsRule(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.billing.budgets.v1.NotificationsRule result =
+          new com.google.cloud.billing.budgets.v1.NotificationsRule(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -684,38 +740,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.NotificationsRule
     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.budgets.v1.NotificationsRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.NotificationsRule)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.NotificationsRule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -723,7 +780,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.NotificationsRule other) {
-      if (other == com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1.NotificationsRule.getDefaultInstance())
+        return this;
       if (!other.getPubsubTopic().isEmpty()) {
         pubsubTopic_ = other.pubsubTopic_;
         bitField0_ |= 0x00000001;
@@ -776,38 +834,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              pubsubTopic_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              schemaVersion_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureMonitoringNotificationChannelsIsMutable();
-              monitoringNotificationChannels_.add(s);
-              break;
-            } // case 26
-            case 32: {
-              disableDefaultIamRecipients_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              enableProjectLevelRecipients_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                pubsubTopic_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                schemaVersion_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureMonitoringNotificationChannelsIsMutable();
+                monitoringNotificationChannels_.add(s);
+                break;
+              } // case 26
+            case 32:
+              {
+                disableDefaultIamRecipients_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                enableProjectLevelRecipients_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -817,10 +881,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object pubsubTopic_ = "";
     /**
+     *
+     *
      * 
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -851,13 +918,13 @@ public Builder mergeFrom(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; 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(); pubsubTopic_ = s; return s; @@ -866,6 +933,8 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -896,15 +965,14 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -912,6 +980,8 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -942,18 +1012,22 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPubsubTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pubsubTopic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -984,6 +1058,7 @@ public Builder setPubsubTopic(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPubsubTopic() { @@ -993,6 +1068,8 @@ public Builder clearPubsubTopic() { return this; } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget-related messages are
      * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -1023,12 +1100,14 @@ public Builder clearPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pubsubTopic_ = value; bitField0_ |= 0x00000001; @@ -1038,6 +1117,8 @@ public Builder setPubsubTopicBytes( private java.lang.Object schemaVersion_ = ""; /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1048,13 +1129,13 @@ public Builder setPubsubTopicBytes(
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ public java.lang.String getSchemaVersion() { java.lang.Object ref = schemaVersion_; 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(); schemaVersion_ = s; return s; @@ -1063,6 +1144,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1073,15 +1156,14 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ - public com.google.protobuf.ByteString - getSchemaVersionBytes() { + public com.google.protobuf.ByteString getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -1089,6 +1171,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1099,18 +1183,22 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schemaVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1121,6 +1209,7 @@ public Builder setSchemaVersion(
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSchemaVersion() { @@ -1130,6 +1219,8 @@ public Builder clearSchemaVersion() { return this; } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -1140,12 +1231,14 @@ public Builder clearSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schemaVersion_ = value; bitField0_ |= 0x00000002; @@ -1155,13 +1248,17 @@ public Builder setSchemaVersionBytes( private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMonitoringNotificationChannelsIsMutable() { if (!monitoringNotificationChannels_.isModifiable()) { - monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); + monitoringNotificationChannels_ = + new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); } bitField0_ |= 0x00000004; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1187,15 +1284,19 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList - getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { monitoringNotificationChannels_.makeImmutable(); return monitoringNotificationChannels_; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1221,13 +1322,18 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1253,7 +1359,10 @@ public int getMonitoringNotificationChannelsCount() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -1261,6 +1370,8 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1286,15 +1397,19 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1320,14 +1435,18 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The monitoringNotificationChannels to set. * @return This builder for chaining. */ - public Builder setMonitoringNotificationChannels( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMonitoringNotificationChannels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.set(index, value); bitField0_ |= 0x00000004; @@ -1335,6 +1454,8 @@ public Builder setMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1360,13 +1481,17 @@ public Builder setMonitoringNotificationChannels(
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannels( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMonitoringNotificationChannels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); bitField0_ |= 0x00000004; @@ -1374,6 +1499,8 @@ public Builder addMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1399,7 +1526,10 @@ public Builder addMonitoringNotificationChannels(
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The monitoringNotificationChannels to add. * @return This builder for chaining. */ @@ -1413,6 +1543,8 @@ public Builder addAllMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1438,17 +1570,22 @@ public Builder addAllMonitoringNotificationChannels(
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearMonitoringNotificationChannels() { - monitoringNotificationChannels_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Optional. Email targets to send notifications to when a threshold is
      * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -1474,13 +1611,17 @@ public Builder clearMonitoringNotificationChannels() {
      * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannelsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); @@ -1489,8 +1630,10 @@ public Builder addMonitoringNotificationChannelsBytes( return this; } - private boolean disableDefaultIamRecipients_ ; + private boolean disableDefaultIamRecipients_; /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1498,7 +1641,9 @@ public Builder addMonitoringNotificationChannelsBytes(
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -1506,6 +1651,8 @@ public boolean getDisableDefaultIamRecipients() { return disableDefaultIamRecipients_; } /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1513,7 +1660,9 @@ public boolean getDisableDefaultIamRecipients() {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The disableDefaultIamRecipients to set. * @return This builder for chaining. */ @@ -1525,6 +1674,8 @@ public Builder setDisableDefaultIamRecipients(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1532,7 +1683,9 @@ public Builder setDisableDefaultIamRecipients(boolean value) {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearDisableDefaultIamRecipients() { @@ -1542,8 +1695,10 @@ public Builder clearDisableDefaultIamRecipients() { return this; } - private boolean enableProjectLevelRecipients_ ; + private boolean enableProjectLevelRecipients_; /** + * + * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1554,7 +1709,9 @@ public Builder clearDisableDefaultIamRecipients() {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableProjectLevelRecipients. */ @java.lang.Override @@ -1562,6 +1719,8 @@ public boolean getEnableProjectLevelRecipients() { return enableProjectLevelRecipients_; } /** + * + * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1572,7 +1731,9 @@ public boolean getEnableProjectLevelRecipients() {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableProjectLevelRecipients to set. * @return This builder for chaining. */ @@ -1584,6 +1745,8 @@ public Builder setEnableProjectLevelRecipients(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1594,7 +1757,9 @@ public Builder setEnableProjectLevelRecipients(boolean value) {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableProjectLevelRecipients() { @@ -1603,9 +1768,9 @@ public Builder clearEnableProjectLevelRecipients() { 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 +1780,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.NotificationsRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.NotificationsRule) private static final com.google.cloud.billing.budgets.v1.NotificationsRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.NotificationsRule(); } @@ -1629,27 +1794,27 @@ public static com.google.cloud.billing.budgets.v1.NotificationsRule getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationsRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationsRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1664,6 +1829,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.NotificationsRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java similarity index 88% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java index df4a6826cae4..966c367caa13 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface NotificationsRuleOrBuilder extends +public interface NotificationsRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.NotificationsRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -38,10 +56,13 @@ public interface NotificationsRuleOrBuilder extends
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget-related messages are
    * published, in the form `projects/{project_id}/topics/{topic_id}`. Updates
@@ -72,12 +93,14 @@ public interface NotificationsRuleOrBuilder extends
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString - getPubsubTopicBytes(); + com.google.protobuf.ByteString getPubsubTopicBytes(); /** + * + * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -88,10 +111,13 @@ public interface NotificationsRuleOrBuilder extends
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ java.lang.String getSchemaVersion(); /** + * + * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -102,12 +128,14 @@ public interface NotificationsRuleOrBuilder extends
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ - com.google.protobuf.ByteString - getSchemaVersionBytes(); + com.google.protobuf.ByteString getSchemaVersionBytes(); /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -133,12 +161,16 @@ public interface NotificationsRuleOrBuilder extends
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - java.util.List - getMonitoringNotificationChannelsList(); + java.util.List getMonitoringNotificationChannelsList(); /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -164,11 +196,16 @@ public interface NotificationsRuleOrBuilder extends
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ int getMonitoringNotificationChannelsCount(); /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -194,12 +231,17 @@ public interface NotificationsRuleOrBuilder extends
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ java.lang.String getMonitoringNotificationChannels(int index); /** + * + * *
    * Optional. Email targets to send notifications to when a threshold is
    * exceeded. This is in addition to the `DefaultIamRecipients` who receive
@@ -225,14 +267,18 @@ public interface NotificationsRuleOrBuilder extends
    * notifications](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications).
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index); + com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index); /** + * + * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -241,11 +287,14 @@ public interface NotificationsRuleOrBuilder extends
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultIamRecipients. */ boolean getDisableDefaultIamRecipients(); /** + * + * *
    * Optional. When set to true, and when the budget has a single project
    * configured, notifications will be sent to project level recipients of that
@@ -256,7 +305,9 @@ public interface NotificationsRuleOrBuilder extends
    * cloud project.
    * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableProjectLevelRecipients. */ boolean getEnableProjectLevelRecipients(); diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java similarity index 69% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java index 9c3a03a0b652..93ee469e3bac 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * ThresholdRule contains the definition of a threshold. Threshold rules define
  * the triggering events used to generate a budget notification email. When a
@@ -31,49 +48,54 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1.ThresholdRule}
  */
-public final class ThresholdRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ThresholdRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.ThresholdRule)
     ThresholdRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ThresholdRule.newBuilder() to construct.
   private ThresholdRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ThresholdRule() {
     spendBasis_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ThresholdRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1.BudgetModelProto
+        .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1.ThresholdRule.class, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
+            com.google.cloud.billing.budgets.v1.ThresholdRule.class,
+            com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of basis used to determine if spend has passed the threshold.
    * 
* * Protobuf enum {@code google.cloud.billing.budgets.v1.ThresholdRule.Basis} */ - public enum Basis - implements com.google.protobuf.ProtocolMessageEnum { + public enum Basis implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified threshold basis.
      * 
@@ -82,6 +104,8 @@ public enum Basis */ BASIS_UNSPECIFIED(0), /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -90,6 +114,8 @@ public enum Basis */ CURRENT_SPEND(1), /** + * + * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -106,6 +132,8 @@ public enum Basis
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified threshold basis.
      * 
@@ -114,6 +142,8 @@ public enum Basis */ public static final int BASIS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -122,6 +152,8 @@ public enum Basis */ public static final int CURRENT_SPEND_VALUE = 1; /** + * + * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -135,7 +167,6 @@ public enum Basis
      */
     public static final int FORECASTED_SPEND_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -160,49 +191,51 @@ public static Basis valueOf(int value) {
      */
     public static Basis forNumber(int value) {
       switch (value) {
-        case 0: return BASIS_UNSPECIFIED;
-        case 1: return CURRENT_SPEND;
-        case 2: return FORECASTED_SPEND;
-        default: return null;
+        case 0:
+          return BASIS_UNSPECIFIED;
+        case 1:
+          return CURRENT_SPEND;
+        case 2:
+          return FORECASTED_SPEND;
+        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<
-        Basis> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Basis findValueByNumber(int number) {
-              return Basis.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 Basis findValueByNumber(int number) {
+            return Basis.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() {
-      return com.google.cloud.billing.budgets.v1.ThresholdRule.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.ThresholdRule.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Basis[] VALUES = values();
 
-    public static Basis valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Basis 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;
@@ -222,6 +255,8 @@ private Basis(int value) {
   public static final int THRESHOLD_PERCENT_FIELD_NUMBER = 1;
   private double thresholdPercent_ = 0D;
   /**
+   *
+   *
    * 
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -229,6 +264,7 @@ private Basis(int value) {
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -239,32 +275,48 @@ public double getThresholdPercent() { public static final int SPEND_BASIS_FIELD_NUMBER = 2; private int spendBasis_ = 0; /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override public int getSpendBasisValue() { + @java.lang.Override + public int getSpendBasisValue() { return spendBasis_; } /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ - @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null + ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,12 +328,12 @@ 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(thresholdPercent_) != 0) { output.writeDouble(1, thresholdPercent_); } - if (spendBasis_ != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + if (spendBasis_ + != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { output.writeEnum(2, spendBasis_); } getUnknownFields().writeTo(output); @@ -294,12 +346,11 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(thresholdPercent_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, thresholdPercent_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, thresholdPercent_); } - if (spendBasis_ != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, spendBasis_); + if (spendBasis_ + != com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spendBasis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -309,16 +360,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.budgets.v1.ThresholdRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.ThresholdRule other = (com.google.cloud.billing.budgets.v1.ThresholdRule) obj; + com.google.cloud.billing.budgets.v1.ThresholdRule other = + (com.google.cloud.billing.budgets.v1.ThresholdRule) obj; if (java.lang.Double.doubleToLongBits(getThresholdPercent()) - != java.lang.Double.doubleToLongBits( - other.getThresholdPercent())) return false; + != java.lang.Double.doubleToLongBits(other.getThresholdPercent())) return false; if (spendBasis_ != other.spendBasis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -332,8 +383,10 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THRESHOLD_PERCENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThresholdPercent())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThresholdPercent())); hash = (37 * hash) + SPEND_BASIS_FIELD_NUMBER; hash = (53 * hash) + spendBasis_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -342,98 +395,103 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.ThresholdRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.ThresholdRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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.budgets.v1.ThresholdRule 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; } /** + * + * *
    * ThresholdRule contains the definition of a threshold. Threshold rules define
    * the triggering events used to generate a budget notification email. When a
@@ -461,33 +519,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1.ThresholdRule}
    */
-  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.budgets.v1.ThresholdRule)
       com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1.ThresholdRule.class, com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
+              com.google.cloud.billing.budgets.v1.ThresholdRule.class,
+              com.google.cloud.billing.budgets.v1.ThresholdRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1.ThresholdRule.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,9 +555,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1.BudgetModelProto.internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1.BudgetModelProto
+          .internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
@@ -519,8 +576,11 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1.ThresholdRule buildPartial() {
-      com.google.cloud.billing.budgets.v1.ThresholdRule result = new com.google.cloud.billing.budgets.v1.ThresholdRule(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.billing.budgets.v1.ThresholdRule result =
+          new com.google.cloud.billing.budgets.v1.ThresholdRule(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -539,38 +599,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.ThresholdRule res
     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.budgets.v1.ThresholdRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1.ThresholdRule)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1.ThresholdRule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -578,7 +639,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1.ThresholdRule other) {
-      if (other == com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1.ThresholdRule.getDefaultInstance())
+        return this;
       if (other.getThresholdPercent() != 0D) {
         setThresholdPercent(other.getThresholdPercent());
       }
@@ -611,22 +673,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 9: {
-              thresholdPercent_ = input.readDouble();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 9
-            case 16: {
-              spendBasis_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 9:
+              {
+                thresholdPercent_ = input.readDouble();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 9
+            case 16:
+              {
+                spendBasis_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -636,10 +701,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private double thresholdPercent_ ;
+    private double thresholdPercent_;
     /**
+     *
+     *
      * 
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -647,6 +715,7 @@ public Builder mergeFrom(
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -654,6 +723,8 @@ public double getThresholdPercent() { return thresholdPercent_; } /** + * + * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -661,6 +732,7 @@ public double getThresholdPercent() {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The thresholdPercent to set. * @return This builder for chaining. */ @@ -672,6 +744,8 @@ public Builder setThresholdPercent(double value) { return this; } /** + * + * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -679,6 +753,7 @@ public Builder setThresholdPercent(double value) {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearThresholdPercent() { @@ -690,24 +765,35 @@ public Builder clearThresholdPercent() { private int spendBasis_ = 0; /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override public int getSpendBasisValue() { + @java.lang.Override + public int getSpendBasisValue() { return spendBasis_; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for spendBasis to set. * @return This builder for chaining. */ @@ -718,26 +804,39 @@ public Builder setSpendBasisValue(int value) { return this; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = + com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null + ? com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The spendBasis to set. * @return This builder for chaining. */ @@ -751,12 +850,17 @@ public Builder setSpendBasis(com.google.cloud.billing.budgets.v1.ThresholdRule.B return this; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearSpendBasis() { @@ -765,9 +869,9 @@ public Builder clearSpendBasis() { 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); } @@ -777,12 +881,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.ThresholdRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.ThresholdRule) private static final com.google.cloud.billing.budgets.v1.ThresholdRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.ThresholdRule(); } @@ -791,27 +895,27 @@ public static com.google.cloud.billing.budgets.v1.ThresholdRule getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThresholdRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThresholdRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +930,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.ThresholdRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java similarity index 55% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java index 7fecaa5cf0e3..2b672e710e60 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; -public interface ThresholdRuleOrBuilder extends +public interface ThresholdRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.ThresholdRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -15,27 +33,38 @@ public interface ThresholdRuleOrBuilder extends
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ double getThresholdPercent(); /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ int getSpendBasisValue(); /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis(); diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java similarity index 67% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java index 0a96a306e40e..0012712b609c 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java @@ -1,56 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * Request for UpdateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.UpdateBudgetRequest} */ -public final class UpdateBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1.UpdateBudgetRequest) UpdateBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateBudgetRequest.newBuilder() to construct. private UpdateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateBudgetRequest() { - } + + private UpdateBudgetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); } public static final int BUDGET_FIELD_NUMBER = 1; private com.google.cloud.billing.budgets.v1.Budget budget_; /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ @java.lang.Override @@ -58,34 +81,49 @@ public boolean hasBudget() { return budget_ != null; } /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1.Budget getBudget() { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -95,7 +133,9 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder()
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -103,6 +143,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -112,7 +154,9 @@ public boolean hasUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -120,6 +164,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -129,7 +175,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -137,6 +184,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,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 (budget_ != null) { output.writeMessage(1, getBudget()); } @@ -166,12 +213,10 @@ public int getSerializedSize() { size = 0; if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBudget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBudget()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -181,22 +226,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.budgets.v1.UpdateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other = (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other = + (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) obj; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget() - .equals(other.getBudget())) return false; + if (!getBudget().equals(other.getBudget())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -223,131 +267,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest 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.budgets.v1.UpdateBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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 for UpdateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1.UpdateBudgetRequest} */ - 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.budgets.v1.UpdateBudgetRequest) com.google.cloud.billing.budgets.v1.UpdateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.class, + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1.BudgetServiceProto.internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1.BudgetServiceProto + .internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; } @java.lang.Override @@ -387,8 +436,11 @@ public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result = new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result = + new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -396,14 +448,10 @@ public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.budget_ = budgetBuilder_ == null - ? budget_ - : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -411,38 +459,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1.UpdateBudgetReque 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.budgets.v1.UpdateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -450,7 +499,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1.UpdateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1.UpdateBudgetRequest.getDefaultInstance()) + return this; if (other.hasBudget()) { mergeBudget(other.getBudget()); } @@ -483,26 +533,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getBudgetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -512,46 +561,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.billing.budgets.v1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> budgetBuilder_; + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + budgetBuilder_; /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ public com.google.cloud.billing.budgets.v1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } else { return budgetBuilder_.getMessage(); } } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { @@ -567,15 +636,18 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBudget( - com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { + public Builder setBudget(com.google.cloud.billing.budgets.v1.Budget.Builder builderForValue) { if (budgetBuilder_ == null) { budget_ = builderForValue.build(); } else { @@ -586,18 +658,22 @@ public Builder setBudget( return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - budget_ != null && - budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && budget_ != null + && budget_ != com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -610,12 +686,16 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1.Budget value) { return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000001); @@ -628,12 +708,16 @@ public Builder clearBudget() { return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000001; @@ -641,38 +725,50 @@ public com.google.cloud.billing.budgets.v1.Budget.Builder getBudgetBuilder() { return getBudgetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null ? - com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1.Budget.getDefaultInstance() + : budget_; } } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1.Budget, com.google.cloud.billing.budgets.v1.Budget.Builder, com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( - getBudget(), - getParentForChildren(), - isClean()); + budgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1.Budget, + com.google.cloud.billing.budgets.v1.Budget.Builder, + com.google.cloud.billing.budgets.v1.BudgetOrBuilder>( + getBudget(), getParentForChildren(), isClean()); budget_ = null; } return budgetBuilder_; @@ -680,8 +776,13 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() 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_; /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -691,13 +792,17 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder()
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -707,17 +812,23 @@ public boolean hasUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @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(); } } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -727,7 +838,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -743,6 +855,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -752,10 +866,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -766,6 +880,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -775,13 +891,14 @@ public Builder setUpdateMask(
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -794,6 +911,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -803,7 +922,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -816,6 +936,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -825,7 +947,8 @@ public Builder clearUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -833,6 +956,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -842,17 +967,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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_; } } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -862,24 +991,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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); } @@ -889,12 +1022,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1.UpdateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1.UpdateBudgetRequest) private static final com.google.cloud.billing.budgets.v1.UpdateBudgetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(); } @@ -903,27 +1036,27 @@ public static com.google.cloud.billing.budgets.v1.UpdateBudgetRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -938,6 +1071,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java index e2af918a88d8..89ef02418063 100644 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_service.proto package com.google.cloud.billing.budgets.v1; -public interface UpdateBudgetRequestOrBuilder extends +public interface UpdateBudgetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.UpdateBudgetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ boolean hasBudget(); /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ com.google.cloud.billing.budgets.v1.Budget getBudget(); /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -47,11 +79,15 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -61,11 +97,15 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -75,7 +115,8 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java similarity index 76% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java index a6787a95f0d6..2364c0f35a21 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * AllUpdatesRule defines notifications that are sent based on budget spend
  * and thresholds.
@@ -11,46 +28,50 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.AllUpdatesRule}
  */
-public final class AllUpdatesRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AllUpdatesRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.AllUpdatesRule)
     AllUpdatesRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AllUpdatesRule.newBuilder() to construct.
   private AllUpdatesRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AllUpdatesRule() {
     pubsubTopic_ = "";
     schemaVersion_ = "";
-    monitoringNotificationChannels_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AllUpdatesRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class,
+            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
   }
 
   public static final int PUBSUB_TOPIC_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object pubsubTopic_ = "";
   /**
+   *
+   *
    * 
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -66,6 +87,7 @@ protected java.lang.Object newInstance(
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ @java.lang.Override @@ -74,14 +96,15 @@ public java.lang.String getPubsubTopic() { 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(); pubsubTopic_ = s; return s; } } /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -97,16 +120,15 @@ public java.lang.String getPubsubTopic() {
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -115,9 +137,12 @@ public java.lang.String getPubsubTopic() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object schemaVersion_ = ""; /** + * + * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -128,6 +153,7 @@ public java.lang.String getPubsubTopic() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ @java.lang.Override @@ -136,14 +162,15 @@ public java.lang.String getSchemaVersion() { 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(); schemaVersion_ = s; return s; } } /** + * + * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -154,16 +181,15 @@ public java.lang.String getSchemaVersion() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaVersionBytes() { + public com.google.protobuf.ByteString getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -172,10 +198,13 @@ public java.lang.String getSchemaVersion() { } public static final int MONITORING_NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -187,14 +216,18 @@ public java.lang.String getSchemaVersion() {
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList - getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { return monitoringNotificationChannels_; } /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -206,13 +239,18 @@ public java.lang.String getSchemaVersion() {
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -224,7 +262,10 @@ public int getMonitoringNotificationChannelsCount() {
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -232,6 +273,8 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -243,18 +286,22 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } public static final int DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER = 4; private boolean disableDefaultIamRecipients_ = false; /** + * + * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -263,6 +310,7 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -273,6 +321,8 @@ public boolean getDisableDefaultIamRecipients() { public static final int ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER = 5; private boolean enableProjectLevelRecipients_ = false; /** + * + * *
    * Optional. When set to true, and when the budget has a single project
    * configured, notifications will be sent to project level recipients of that
@@ -283,7 +333,9 @@ public boolean getDisableDefaultIamRecipients() {
    * cloud project.
    * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableProjectLevelRecipients. */ @java.lang.Override @@ -292,6 +344,7 @@ public boolean getEnableProjectLevelRecipients() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -303,8 +356,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(pubsubTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopic_); } @@ -312,7 +364,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaVersion_); } for (int i = 0; i < monitoringNotificationChannels_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, monitoringNotificationChannels_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, monitoringNotificationChannels_.getRaw(i)); } if (disableDefaultIamRecipients_ != false) { output.writeBool(4, disableDefaultIamRecipients_); @@ -344,12 +397,12 @@ public int getSerializedSize() { size += 1 * getMonitoringNotificationChannelsList().size(); } if (disableDefaultIamRecipients_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, disableDefaultIamRecipients_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableDefaultIamRecipients_); } if (enableProjectLevelRecipients_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, enableProjectLevelRecipients_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableProjectLevelRecipients_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -359,23 +412,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.budgets.v1beta1.AllUpdatesRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other = (com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) obj; + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other = + (com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) obj; - if (!getPubsubTopic() - .equals(other.getPubsubTopic())) return false; - if (!getSchemaVersion() - .equals(other.getSchemaVersion())) return false; + if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; + if (!getSchemaVersion().equals(other.getSchemaVersion())) return false; if (!getMonitoringNotificationChannelsList() .equals(other.getMonitoringNotificationChannelsList())) return false; - if (getDisableDefaultIamRecipients() - != other.getDisableDefaultIamRecipients()) return false; - if (getEnableProjectLevelRecipients() - != other.getEnableProjectLevelRecipients()) return false; + if (getDisableDefaultIamRecipients() != other.getDisableDefaultIamRecipients()) return false; + if (getEnableProjectLevelRecipients() != other.getEnableProjectLevelRecipients()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -396,109 +446,114 @@ public int hashCode() { hash = (53 * hash) + getMonitoringNotificationChannelsList().hashCode(); } hash = (37 * hash) + DISABLE_DEFAULT_IAM_RECIPIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableDefaultIamRecipients()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDefaultIamRecipients()); hash = (37 * hash) + ENABLE_PROJECT_LEVEL_RECIPIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableProjectLevelRecipients()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableProjectLevelRecipients()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule 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.budgets.v1beta1.AllUpdatesRule prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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; } /** + * + * *
    * AllUpdatesRule defines notifications that are sent based on budget spend
    * and thresholds.
@@ -506,50 +561,48 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.AllUpdatesRule}
    */
-  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.budgets.v1beta1.AllUpdatesRule)
       com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.class,
+              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       pubsubTopic_ = "";
       schemaVersion_ = "";
-      monitoringNotificationChannels_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
       disableDefaultIamRecipients_ = false;
       enableProjectLevelRecipients_ = false;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
     }
 
     @java.lang.Override
@@ -568,8 +621,11 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule result = new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule result =
+          new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -598,38 +654,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRu
     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.budgets.v1beta1.AllUpdatesRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -637,7 +694,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance())
+        return this;
       if (!other.getPubsubTopic().isEmpty()) {
         pubsubTopic_ = other.pubsubTopic_;
         bitField0_ |= 0x00000001;
@@ -690,38 +748,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              pubsubTopic_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              schemaVersion_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureMonitoringNotificationChannelsIsMutable();
-              monitoringNotificationChannels_.add(s);
-              break;
-            } // case 26
-            case 32: {
-              disableDefaultIamRecipients_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              enableProjectLevelRecipients_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                pubsubTopic_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                schemaVersion_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureMonitoringNotificationChannelsIsMutable();
+                monitoringNotificationChannels_.add(s);
+                break;
+              } // case 26
+            case 32:
+              {
+                disableDefaultIamRecipients_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                enableProjectLevelRecipients_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -731,10 +795,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object pubsubTopic_ = "";
     /**
+     *
+     *
      * 
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -750,13 +817,13 @@ public Builder mergeFrom(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; 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(); pubsubTopic_ = s; return s; @@ -765,6 +832,8 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -780,15 +849,14 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; 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); pubsubTopic_ = b; return b; } else { @@ -796,6 +864,8 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -811,18 +881,22 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPubsubTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pubsubTopic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -838,6 +912,7 @@ public Builder setPubsubTopic(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPubsubTopic() { @@ -847,6 +922,8 @@ public Builder clearPubsubTopic() { return this; } /** + * + * *
      * Optional. The name of the Pub/Sub topic where budget related messages will
      * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -862,12 +939,14 @@ public Builder clearPubsubTopic() {
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pubsubTopic_ = value; bitField0_ |= 0x00000001; @@ -877,6 +956,8 @@ public Builder setPubsubTopicBytes( private java.lang.Object schemaVersion_ = ""; /** + * + * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -887,13 +968,13 @@ public Builder setPubsubTopicBytes(
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ public java.lang.String getSchemaVersion() { java.lang.Object ref = schemaVersion_; 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(); schemaVersion_ = s; return s; @@ -902,6 +983,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -912,15 +995,14 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ - public com.google.protobuf.ByteString - getSchemaVersionBytes() { + public com.google.protobuf.ByteString getSchemaVersionBytes() { java.lang.Object ref = schemaVersion_; 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); schemaVersion_ = b; return b; } else { @@ -928,6 +1010,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -938,18 +1022,22 @@ public java.lang.String getSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schemaVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -960,6 +1048,7 @@ public Builder setSchemaVersion(
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSchemaVersion() { @@ -969,6 +1058,8 @@ public Builder clearSchemaVersion() { return this; } /** + * + * *
      * Optional. Required when
      * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -979,12 +1070,14 @@ public Builder clearSchemaVersion() {
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for schemaVersion to set. * @return This builder for chaining. */ - public Builder setSchemaVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schemaVersion_ = value; bitField0_ |= 0x00000002; @@ -994,13 +1087,17 @@ public Builder setSchemaVersionBytes( private com.google.protobuf.LazyStringArrayList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMonitoringNotificationChannelsIsMutable() { if (!monitoringNotificationChannels_.isModifiable()) { - monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); + monitoringNotificationChannels_ = + new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); } bitField0_ |= 0x00000004; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1012,15 +1109,19 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList - getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { monitoringNotificationChannels_.makeImmutable(); return monitoringNotificationChannels_; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1032,13 +1133,18 @@ private void ensureMonitoringNotificationChannelsIsMutable() {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ public int getMonitoringNotificationChannelsCount() { return monitoringNotificationChannels_.size(); } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1050,7 +1156,10 @@ public int getMonitoringNotificationChannelsCount() {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ @@ -1058,6 +1167,8 @@ public java.lang.String getMonitoringNotificationChannels(int index) { return monitoringNotificationChannels_.get(index); } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1069,15 +1180,19 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - public com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index) { return monitoringNotificationChannels_.getByteString(index); } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1089,14 +1204,18 @@ public java.lang.String getMonitoringNotificationChannels(int index) {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The monitoringNotificationChannels to set. * @return This builder for chaining. */ - public Builder setMonitoringNotificationChannels( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMonitoringNotificationChannels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.set(index, value); bitField0_ |= 0x00000004; @@ -1104,6 +1223,8 @@ public Builder setMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1115,13 +1236,17 @@ public Builder setMonitoringNotificationChannels(
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannels( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMonitoringNotificationChannels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); bitField0_ |= 0x00000004; @@ -1129,6 +1254,8 @@ public Builder addMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1140,7 +1267,10 @@ public Builder addMonitoringNotificationChannels(
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The monitoringNotificationChannels to add. * @return This builder for chaining. */ @@ -1154,6 +1284,8 @@ public Builder addAllMonitoringNotificationChannels( return this; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1165,17 +1297,22 @@ public Builder addAllMonitoringNotificationChannels(
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearMonitoringNotificationChannels() { - monitoringNotificationChannels_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1187,13 +1324,17 @@ public Builder clearMonitoringNotificationChannels() {
      * for more details.
      * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the monitoringNotificationChannels to add. * @return This builder for chaining. */ - public Builder addMonitoringNotificationChannelsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); @@ -1202,8 +1343,10 @@ public Builder addMonitoringNotificationChannelsBytes( return this; } - private boolean disableDefaultIamRecipients_ ; + private boolean disableDefaultIamRecipients_; /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1211,7 +1354,9 @@ public Builder addMonitoringNotificationChannelsBytes(
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The disableDefaultIamRecipients. */ @java.lang.Override @@ -1219,6 +1364,8 @@ public boolean getDisableDefaultIamRecipients() { return disableDefaultIamRecipients_; } /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1226,7 +1373,9 @@ public boolean getDisableDefaultIamRecipients() {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The disableDefaultIamRecipients to set. * @return This builder for chaining. */ @@ -1238,6 +1387,8 @@ public Builder setDisableDefaultIamRecipients(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1245,7 +1396,9 @@ public Builder setDisableDefaultIamRecipients(boolean value) {
      * account.
      * 
* - * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearDisableDefaultIamRecipients() { @@ -1255,8 +1408,10 @@ public Builder clearDisableDefaultIamRecipients() { return this; } - private boolean enableProjectLevelRecipients_ ; + private boolean enableProjectLevelRecipients_; /** + * + * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1267,7 +1422,9 @@ public Builder clearDisableDefaultIamRecipients() {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableProjectLevelRecipients. */ @java.lang.Override @@ -1275,6 +1432,8 @@ public boolean getEnableProjectLevelRecipients() { return enableProjectLevelRecipients_; } /** + * + * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1285,7 +1444,9 @@ public boolean getEnableProjectLevelRecipients() {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableProjectLevelRecipients to set. * @return This builder for chaining. */ @@ -1297,6 +1458,8 @@ public Builder setEnableProjectLevelRecipients(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, and when the budget has a single project
      * configured, notifications will be sent to project level recipients of that
@@ -1307,7 +1470,9 @@ public Builder setEnableProjectLevelRecipients(boolean value) {
      * cloud project.
      * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableProjectLevelRecipients() { @@ -1316,9 +1481,9 @@ public Builder clearEnableProjectLevelRecipients() { 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); } @@ -1328,12 +1493,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) private static final com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(); } @@ -1342,27 +1507,27 @@ public static com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllUpdatesRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllUpdatesRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1377,6 +1542,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java similarity index 81% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java index 2be133261c7c..7ec52a9a10f0 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface AllUpdatesRuleOrBuilder extends +public interface AllUpdatesRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.AllUpdatesRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -23,10 +41,13 @@ public interface AllUpdatesRuleOrBuilder extends
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** + * + * *
    * Optional. The name of the Pub/Sub topic where budget related messages will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -42,12 +63,14 @@ public interface AllUpdatesRuleOrBuilder extends
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString - getPubsubTopicBytes(); + com.google.protobuf.ByteString getPubsubTopicBytes(); /** + * + * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -58,10 +81,13 @@ public interface AllUpdatesRuleOrBuilder extends
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ java.lang.String getSchemaVersion(); /** + * + * *
    * Optional. Required when
    * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
@@ -72,12 +98,14 @@ public interface AllUpdatesRuleOrBuilder extends
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for schemaVersion. */ - com.google.protobuf.ByteString - getSchemaVersionBytes(); + com.google.protobuf.ByteString getSchemaVersionBytes(); /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -89,12 +117,16 @@ public interface AllUpdatesRuleOrBuilder extends
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the monitoringNotificationChannels. */ - java.util.List - getMonitoringNotificationChannelsList(); + java.util.List getMonitoringNotificationChannelsList(); /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -106,11 +138,16 @@ public interface AllUpdatesRuleOrBuilder extends
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of monitoringNotificationChannels. */ int getMonitoringNotificationChannelsCount(); /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -122,12 +159,17 @@ public interface AllUpdatesRuleOrBuilder extends
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The monitoringNotificationChannels at the given index. */ java.lang.String getMonitoringNotificationChannels(int index); /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -139,14 +181,18 @@ public interface AllUpdatesRuleOrBuilder extends
    * for more details.
    * 
* - * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string monitoring_notification_channels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the monitoringNotificationChannels at the given index. */ - com.google.protobuf.ByteString - getMonitoringNotificationChannelsBytes(int index); + com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int index); /** + * + * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -155,11 +201,14 @@ public interface AllUpdatesRuleOrBuilder extends
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultIamRecipients. */ boolean getDisableDefaultIamRecipients(); /** + * + * *
    * Optional. When set to true, and when the budget has a single project
    * configured, notifications will be sent to project level recipients of that
@@ -170,7 +219,9 @@ public interface AllUpdatesRuleOrBuilder extends
    * cloud project.
    * 
* - * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_project_level_recipients = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableProjectLevelRecipients. */ boolean getEnableProjectLevelRecipients(); diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java similarity index 66% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java index 135a870ba672..1ef9e5a7b882 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * A budget is a plan that describes what you expect to spend on Cloud
  * projects, plus the rules to execute as spend is tracked against that plan,
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Budget}
  */
-public final class Budget extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Budget extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.Budget)
     BudgetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Budget.newBuilder() to construct.
   private Budget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Budget() {
     name_ = "";
     displayName_ = "";
@@ -32,28 +50,32 @@ private Budget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Budget();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.Budget.class, com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.Budget.class,
+            com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -69,14 +92,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -84,16 +108,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -102,15 +125,19 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -119,30 +146,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; } } /** + * + * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; + * * @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 { @@ -153,13 +180,18 @@ public java.lang.String getDisplayName() { public static final int BUDGET_FILTER_FIELD_NUMBER = 3; private com.google.cloud.billing.budgets.v1beta1.Filter budgetFilter_; /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ @java.lang.Override @@ -167,41 +199,59 @@ public boolean hasBudgetFilter() { return budgetFilter_ != null; } /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter() { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() + : budgetFilter_; } /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder() { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() + : budgetFilter_; } public static final int AMOUNT_FIELD_NUMBER = 4; private com.google.cloud.billing.budgets.v1beta1.BudgetAmount amount_; /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ @java.lang.Override @@ -209,33 +259,49 @@ public boolean hasAmount() { return amount_ != null; } /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount() { - return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() + : amount_; } /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder() { - return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() + : amount_; } public static final int THRESHOLD_RULES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List thresholdRules_; /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -245,13 +311,18 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountO
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getThresholdRulesList() { + public java.util.List + getThresholdRulesList() { return thresholdRules_; } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -261,14 +332,18 @@ public java.util.List ge
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getThresholdRulesOrBuilderList() { return thresholdRules_; } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -278,13 +353,17 @@ public java.util.List ge
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getThresholdRulesCount() { return thresholdRules_.size(); } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -294,13 +373,17 @@ public int getThresholdRulesCount() {
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index) { return thresholdRules_.get(index); } /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -310,7 +393,9 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( @@ -321,12 +406,17 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresh public static final int ALL_UPDATES_RULE_FIELD_NUMBER = 6; private com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule allUpdatesRule_; /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allUpdatesRule field is set. */ @java.lang.Override @@ -334,35 +424,52 @@ public boolean hasAllUpdatesRule() { return allUpdatesRule_ != null; } /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allUpdatesRule. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule() { - return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; + return allUpdatesRule_ == null + ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() + : allUpdatesRule_; } /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder() { - return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder + getAllUpdatesRuleOrBuilder() { + return allUpdatesRule_ == null + ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() + : allUpdatesRule_; } public static final int ETAG_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -370,6 +477,7 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUp
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -378,14 +486,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -393,16 +502,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -411,6 +519,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -422,8 +531,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_); } @@ -461,20 +569,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (budgetFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBudgetFilter()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBudgetFilter()); } if (amount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAmount()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAmount()); } for (int i = 0; i < thresholdRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, thresholdRules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, thresholdRules_.get(i)); } if (allUpdatesRule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getAllUpdatesRule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAllUpdatesRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); @@ -487,36 +591,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.budgets.v1beta1.Budget)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.Budget other = (com.google.cloud.billing.budgets.v1beta1.Budget) obj; + com.google.cloud.billing.budgets.v1beta1.Budget other = + (com.google.cloud.billing.budgets.v1beta1.Budget) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasBudgetFilter() != other.hasBudgetFilter()) return false; if (hasBudgetFilter()) { - if (!getBudgetFilter() - .equals(other.getBudgetFilter())) return false; + if (!getBudgetFilter().equals(other.getBudgetFilter())) return false; } if (hasAmount() != other.hasAmount()) return false; if (hasAmount()) { - if (!getAmount() - .equals(other.getAmount())) return false; + if (!getAmount().equals(other.getAmount())) return false; } - if (!getThresholdRulesList() - .equals(other.getThresholdRulesList())) return false; + if (!getThresholdRulesList().equals(other.getThresholdRulesList())) return false; if (hasAllUpdatesRule() != other.hasAllUpdatesRule()) return false; if (hasAllUpdatesRule()) { - if (!getAllUpdatesRule() - .equals(other.getAllUpdatesRule())) return false; + if (!getAllUpdatesRule().equals(other.getAllUpdatesRule())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -555,99 +653,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1beta1.Budget parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1beta1.Budget parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.Budget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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.budgets.v1beta1.Budget 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 budget is a plan that describes what you expect to spend on Cloud
    * projects, plus the rules to execute as spend is tracked against that plan,
@@ -658,33 +761,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Budget}
    */
-  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.budgets.v1beta1.Budget)
       com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.Budget.class, com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.Budget.class,
+              com.google.cloud.billing.budgets.v1beta1.Budget.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.Budget.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -718,9 +820,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor;
     }
 
     @java.lang.Override
@@ -739,14 +841,18 @@ public com.google.cloud.billing.budgets.v1beta1.Budget build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.Budget buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.Budget result = new com.google.cloud.billing.budgets.v1beta1.Budget(this);
+      com.google.cloud.billing.budgets.v1beta1.Budget result =
+          new com.google.cloud.billing.budgets.v1beta1.Budget(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1beta1.Budget result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.billing.budgets.v1beta1.Budget result) {
       if (thresholdRulesBuilder_ == null) {
         if (((bitField0_ & 0x00000010) != 0)) {
           thresholdRules_ = java.util.Collections.unmodifiableList(thresholdRules_);
@@ -767,19 +873,15 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Budget resul
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.budgetFilter_ = budgetFilterBuilder_ == null
-            ? budgetFilter_
-            : budgetFilterBuilder_.build();
+        result.budgetFilter_ =
+            budgetFilterBuilder_ == null ? budgetFilter_ : budgetFilterBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.amount_ = amountBuilder_ == null
-            ? amount_
-            : amountBuilder_.build();
+        result.amount_ = amountBuilder_ == null ? amount_ : amountBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.allUpdatesRule_ = allUpdatesRuleBuilder_ == null
-            ? allUpdatesRule_
-            : allUpdatesRuleBuilder_.build();
+        result.allUpdatesRule_ =
+            allUpdatesRuleBuilder_ == null ? allUpdatesRule_ : allUpdatesRuleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.etag_ = etag_;
@@ -790,38 +892,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Budget resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.budgets.v1beta1.Budget) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Budget)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Budget) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -829,7 +932,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Budget other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -864,9 +968,10 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Budget other)
             thresholdRulesBuilder_ = null;
             thresholdRules_ = other.thresholdRules_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            thresholdRulesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getThresholdRulesFieldBuilder() : null;
+            thresholdRulesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getThresholdRulesFieldBuilder()
+                    : null;
           } else {
             thresholdRulesBuilder_.addAllMessages(other.thresholdRules_);
           }
@@ -906,61 +1011,63 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getBudgetFilterFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getAmountFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              com.google.cloud.billing.budgets.v1beta1.ThresholdRule m =
-                  input.readMessage(
-                      com.google.cloud.billing.budgets.v1beta1.ThresholdRule.parser(),
-                      extensionRegistry);
-              if (thresholdRulesBuilder_ == null) {
-                ensureThresholdRulesIsMutable();
-                thresholdRules_.add(m);
-              } else {
-                thresholdRulesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getAllUpdatesRuleFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getBudgetFilterFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.cloud.billing.budgets.v1beta1.ThresholdRule m =
+                    input.readMessage(
+                        com.google.cloud.billing.budgets.v1beta1.ThresholdRule.parser(),
+                        extensionRegistry);
+                if (thresholdRulesBuilder_ == null) {
+                  ensureThresholdRulesIsMutable();
+                  thresholdRules_.add(m);
+                } else {
+                  thresholdRulesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getAllUpdatesRuleFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -970,10 +1077,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -981,13 +1091,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -996,6 +1106,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1003,15 +1115,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1019,6 +1130,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1026,18 +1139,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1045,6 +1162,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1054,6 +1172,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1061,12 +1181,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1076,19 +1198,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; + * * @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; @@ -1097,21 +1221,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; + * * @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 { @@ -1119,30 +1244,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1152,18 +1284,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * User data for display name in UI.
      * Validation: <= 60 chars.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1173,45 +1309,64 @@ public Builder setDisplayNameBytes( private com.google.cloud.billing.budgets.v1beta1.Filter budgetFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> budgetFilterBuilder_; + com.google.cloud.billing.budgets.v1beta1.Filter, + com.google.cloud.billing.budgets.v1beta1.Filter.Builder, + com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> + budgetFilterBuilder_; /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ public boolean hasBudgetFilter() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ public com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter() { if (budgetFilterBuilder_ == null) { - return budgetFilter_ == null ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() + : budgetFilter_; } else { return budgetFilterBuilder_.getMessage(); } } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter value) { if (budgetFilterBuilder_ == null) { @@ -1227,13 +1382,17 @@ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter v return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBudgetFilter( com.google.cloud.billing.budgets.v1beta1.Filter.Builder builderForValue) { @@ -1247,19 +1406,24 @@ public Builder setBudgetFilter( return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter value) { if (budgetFilterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - budgetFilter_ != null && - budgetFilter_ != com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && budgetFilter_ != null + && budgetFilter_ + != com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) { getBudgetFilterBuilder().mergeFrom(value); } else { budgetFilter_ = value; @@ -1272,13 +1436,17 @@ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1beta1.Filter return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBudgetFilter() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1291,13 +1459,17 @@ public Builder clearBudgetFilter() { return this; } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.Filter.Builder getBudgetFilterBuilder() { bitField0_ |= 0x00000004; @@ -1305,40 +1477,52 @@ public com.google.cloud.billing.budgets.v1beta1.Filter.Builder getBudgetFilterBu return getBudgetFilterFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder() { if (budgetFilterBuilder_ != null) { return budgetFilterBuilder_.getMessageOrBuilder(); } else { - return budgetFilter_ == null ? - com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() : budgetFilter_; + return budgetFilter_ == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance() + : budgetFilter_; } } /** + * + * *
      * Optional. Filters that define which resources are used to compute the
      * actual spend against the budget amount, such as projects, services, and the
      * budget's time period, as well as other filters.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Filter, + com.google.cloud.billing.budgets.v1beta1.Filter.Builder, + com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder> getBudgetFilterFieldBuilder() { if (budgetFilterBuilder_ == null) { - budgetFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Filter, com.google.cloud.billing.budgets.v1beta1.Filter.Builder, com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder>( - getBudgetFilter(), - getParentForChildren(), - isClean()); + budgetFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Filter, + com.google.cloud.billing.budgets.v1beta1.Filter.Builder, + com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder>( + getBudgetFilter(), getParentForChildren(), isClean()); budgetFilter_ = null; } return budgetFilterBuilder_; @@ -1346,39 +1530,58 @@ public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterO private com.google.cloud.billing.budgets.v1beta1.BudgetAmount amount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> amountBuilder_; + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> + amountBuilder_; /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ public boolean hasAmount() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount() { if (amountBuilder_ == null) { - return amount_ == null ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() + : amount_; } else { return amountBuilder_.getMessage(); } } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount value) { if (amountBuilder_ == null) { @@ -1394,11 +1597,15 @@ public Builder setAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount v return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAmount( com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder builderForValue) { @@ -1412,17 +1619,22 @@ public Builder setAmount( return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount value) { if (amountBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - amount_ != null && - amount_ != com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && amount_ != null + && amount_ + != com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) { getAmountBuilder().mergeFrom(value); } else { amount_ = value; @@ -1435,11 +1647,15 @@ public Builder mergeAmount(com.google.cloud.billing.budgets.v1beta1.BudgetAmount return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1452,11 +1668,15 @@ public Builder clearAmount() { return this; } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder getAmountBuilder() { bitField0_ |= 0x00000008; @@ -1464,54 +1684,74 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder getAmountBu return getAmountFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { - return amount_ == null ? - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() : amount_; + return amount_ == null + ? com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance() + : amount_; } } /** + * + * *
      * Required. Budgeted amount.
      * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.BudgetAmount, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder>( - getAmount(), - getParentForChildren(), - isClean()); + amountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.BudgetAmount, + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder>( + getAmount(), getParentForChildren(), isClean()); amount_ = null; } return amountBuilder_; } private java.util.List thresholdRules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureThresholdRulesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - thresholdRules_ = new java.util.ArrayList(thresholdRules_); + thresholdRules_ = + new java.util.ArrayList( + thresholdRules_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> thresholdRulesBuilder_; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> + thresholdRulesBuilder_; /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1521,9 +1761,12 @@ private void ensureThresholdRulesIsMutable() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getThresholdRulesList() { + public java.util.List + getThresholdRulesList() { if (thresholdRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(thresholdRules_); } else { @@ -1531,6 +1774,8 @@ public java.util.List ge } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1540,7 +1785,9 @@ public java.util.List ge
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getThresholdRulesCount() { if (thresholdRulesBuilder_ == null) { @@ -1550,6 +1797,8 @@ public int getThresholdRulesCount() { } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1559,7 +1808,9 @@ public int getThresholdRulesCount() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1569,6 +1820,8 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules( } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1578,7 +1831,9 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { @@ -1595,6 +1850,8 @@ public Builder setThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1604,7 +1861,9 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1618,6 +1877,8 @@ public Builder setThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1627,7 +1888,9 @@ public Builder setThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { if (thresholdRulesBuilder_ == null) { @@ -1643,6 +1906,8 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.Thresh return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1652,7 +1917,9 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1beta1.Thresh
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule value) { @@ -1669,6 +1936,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1678,7 +1947,9 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1692,6 +1963,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1701,7 +1974,9 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addThresholdRules( int index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder builderForValue) { @@ -1715,6 +1990,8 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1724,14 +2001,16 @@ public Builder addThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllThresholdRules( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (thresholdRulesBuilder_ == null) { ensureThresholdRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, thresholdRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, thresholdRules_); onChanged(); } else { thresholdRulesBuilder_.addAllMessages(values); @@ -1739,6 +2018,8 @@ public Builder addAllThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1748,7 +2029,9 @@ public Builder addAllThresholdRules(
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearThresholdRules() { if (thresholdRulesBuilder_ == null) { @@ -1761,6 +2044,8 @@ public Builder clearThresholdRules() { return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1770,7 +2055,9 @@ public Builder clearThresholdRules() {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeThresholdRules(int index) { if (thresholdRulesBuilder_ == null) { @@ -1783,6 +2070,8 @@ public Builder removeThresholdRules(int index) { return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1792,13 +2081,17 @@ public Builder removeThresholdRules(int index) {
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresholdRulesBuilder( int index) { return getThresholdRulesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1808,16 +2101,21 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder getThresho
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( - int index) { + public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder + getThresholdRulesOrBuilder(int index) { if (thresholdRulesBuilder_ == null) { - return thresholdRules_.get(index); } else { + return thresholdRules_.get(index); + } else { return thresholdRulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1827,10 +2125,12 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresh
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getThresholdRulesOrBuilderList() { + public java.util.List + getThresholdRulesOrBuilderList() { if (thresholdRulesBuilder_ != null) { return thresholdRulesBuilder_.getMessageOrBuilderList(); } else { @@ -1838,6 +2138,8 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresh } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1847,13 +2149,18 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresh
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresholdRulesBuilder() { - return getThresholdRulesFieldBuilder().addBuilder( - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder + addThresholdRulesBuilder() { + return getThresholdRulesFieldBuilder() + .addBuilder(com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1863,14 +2170,19 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresho
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresholdRulesBuilder( int index) { - return getThresholdRulesFieldBuilder().addBuilder( - index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); + return getThresholdRulesFieldBuilder() + .addBuilder( + index, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()); } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1880,18 +2192,26 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresho
      * Required if using email notifications.
      * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getThresholdRulesBuilderList() { + public java.util.List + getThresholdRulesBuilderList() { return getThresholdRulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder> getThresholdRulesFieldBuilder() { if (thresholdRulesBuilder_ == null) { - thresholdRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.ThresholdRule, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder>( + thresholdRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.ThresholdRule, + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder, + com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder>( thresholdRules_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -1903,44 +2223,64 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder addThresho private com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule allUpdatesRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> allUpdatesRuleBuilder_; + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> + allUpdatesRuleBuilder_; /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allUpdatesRule field is set. */ public boolean hasAllUpdatesRule() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allUpdatesRule. */ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule() { if (allUpdatesRuleBuilder_ == null) { - return allUpdatesRule_ == null ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; + return allUpdatesRule_ == null + ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() + : allUpdatesRule_; } else { return allUpdatesRuleBuilder_.getMessage(); } } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { + public Builder setAllUpdatesRule( + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { if (allUpdatesRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1954,12 +2294,16 @@ public Builder setAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllUpd return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAllUpdatesRule( com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder builderForValue) { @@ -1973,18 +2317,24 @@ public Builder setAllUpdatesRule( return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { + public Builder mergeAllUpdatesRule( + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule value) { if (allUpdatesRuleBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - allUpdatesRule_ != null && - allUpdatesRule_ != com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && allUpdatesRule_ != null + && allUpdatesRule_ + != com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance()) { getAllUpdatesRuleBuilder().mergeFrom(value); } else { allUpdatesRule_ = value; @@ -1997,12 +2347,16 @@ public Builder mergeAllUpdatesRule(com.google.cloud.billing.budgets.v1beta1.AllU return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAllUpdatesRule() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2015,51 +2369,69 @@ public Builder clearAllUpdatesRule() { return this; } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder getAllUpdatesRuleBuilder() { + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder + getAllUpdatesRuleBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAllUpdatesRuleFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder() { + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder + getAllUpdatesRuleOrBuilder() { if (allUpdatesRuleBuilder_ != null) { return allUpdatesRuleBuilder_.getMessageOrBuilder(); } else { - return allUpdatesRule_ == null ? - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() : allUpdatesRule_; + return allUpdatesRule_ == null + ? com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.getDefaultInstance() + : allUpdatesRule_; } } /** + * + * *
      * Optional. Rules to apply to notifications sent based on budget spend and
      * thresholds.
      * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder> getAllUpdatesRuleFieldBuilder() { if (allUpdatesRuleBuilder_ == null) { - allUpdatesRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder>( - getAllUpdatesRule(), - getParentForChildren(), - isClean()); + allUpdatesRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder, + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder>( + getAllUpdatesRule(), getParentForChildren(), isClean()); allUpdatesRule_ = null; } return allUpdatesRuleBuilder_; @@ -2067,6 +2439,8 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUp private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2074,13 +2448,13 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUp
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -2089,6 +2463,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2096,15 +2472,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -2112,6 +2487,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2119,18 +2496,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2138,6 +2519,7 @@ public Builder setEtag(
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2147,6 +2529,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2154,21 +2538,23 @@ public Builder clearEtag() {
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000040; 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); } @@ -2178,12 +2564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.Budget) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.Budget) private static final com.google.cloud.billing.budgets.v1beta1.Budget DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.Budget(); } @@ -2192,27 +2578,27 @@ public static com.google.cloud.billing.budgets.v1beta1.Budget getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Budget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Budget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2227,6 +2613,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.Budget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java similarity index 74% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java index 13de2cab0510..be8073e99642 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java @@ -1,57 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * The budgeted amount for each usage period.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.BudgetAmount} */ -public final class BudgetAmount extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BudgetAmount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.BudgetAmount) BudgetAmountOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BudgetAmount.newBuilder() to construct. private BudgetAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BudgetAmount() { - } + + private BudgetAmount() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BudgetAmount(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); } private int budgetAmountCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object budgetAmount_; + public enum BudgetAmountCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SPECIFIED_AMOUNT(1), LAST_PERIOD_AMOUNT(2), BUDGETAMOUNT_NOT_SET(0); private final int value; + private BudgetAmountCase(int value) { this.value = value; } @@ -67,25 +89,30 @@ public static BudgetAmountCase valueOf(int value) { public static BudgetAmountCase forNumber(int value) { switch (value) { - case 1: return SPECIFIED_AMOUNT; - case 2: return LAST_PERIOD_AMOUNT; - case 0: return BUDGETAMOUNT_NOT_SET; - default: return null; + case 1: + return SPECIFIED_AMOUNT; + case 2: + return LAST_PERIOD_AMOUNT; + case 0: + return BUDGETAMOUNT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public BudgetAmountCase - getBudgetAmountCase() { - return BudgetAmountCase.forNumber( - budgetAmountCase_); + public BudgetAmountCase getBudgetAmountCase() { + return BudgetAmountCase.forNumber(budgetAmountCase_); } public static final int SPECIFIED_AMOUNT_FIELD_NUMBER = 1; /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -95,6 +122,7 @@ public int getNumber() {
    * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -102,6 +130,8 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -111,16 +141,19 @@ public boolean hasSpecifiedAmount() {
    * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ @java.lang.Override public com.google.type.Money getSpecifiedAmount() { if (budgetAmountCase_ == 1) { - return (com.google.type.Money) budgetAmount_; + return (com.google.type.Money) budgetAmount_; } return com.google.type.Money.getDefaultInstance(); } /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -134,13 +167,15 @@ public com.google.type.Money getSpecifiedAmount() {
   @java.lang.Override
   public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     if (budgetAmountCase_ == 1) {
-       return (com.google.type.Money) budgetAmount_;
+      return (com.google.type.Money) budgetAmount_;
     }
     return com.google.type.Money.getDefaultInstance();
   }
 
   public static final int LAST_PERIOD_AMOUNT_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -150,6 +185,7 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -157,6 +193,8 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -166,16 +204,19 @@ public boolean hasLastPeriodAmount() {
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAmount() { if (budgetAmountCase_ == 2) { - return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_; + return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_; } return com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance(); } /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -187,14 +228,16 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm
    * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
    */
   @java.lang.Override
-  public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
+  public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder
+      getLastPeriodAmountOrBuilder() {
     if (budgetAmountCase_ == 2) {
-       return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_;
+      return (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_;
     }
     return com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,13 +249,13 @@ 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 (budgetAmountCase_ == 1) {
       output.writeMessage(1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      output.writeMessage(2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
+      output.writeMessage(
+          2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
     }
     getUnknownFields().writeTo(output);
   }
@@ -224,12 +267,14 @@ public int getSerializedSize() {
 
     size = 0;
     if (budgetAmountCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.type.Money) budgetAmount_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.type.Money) budgetAmount_);
     }
     if (budgetAmountCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -239,22 +284,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.BudgetAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.BudgetAmount other = (com.google.cloud.billing.budgets.v1beta1.BudgetAmount) obj;
+    com.google.cloud.billing.budgets.v1beta1.BudgetAmount other =
+        (com.google.cloud.billing.budgets.v1beta1.BudgetAmount) obj;
 
     if (!getBudgetAmountCase().equals(other.getBudgetAmountCase())) return false;
     switch (budgetAmountCase_) {
       case 1:
-        if (!getSpecifiedAmount()
-            .equals(other.getSpecifiedAmount())) return false;
+        if (!getSpecifiedAmount().equals(other.getSpecifiedAmount())) return false;
         break;
       case 2:
-        if (!getLastPeriodAmount()
-            .equals(other.getLastPeriodAmount())) return false;
+        if (!getLastPeriodAmount().equals(other.getLastPeriodAmount())) return false;
         break;
       case 0:
       default:
@@ -288,131 +332,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount 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.budgets.v1beta1.BudgetAmount prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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;
   }
   /**
+   *
+   *
    * 
    * The budgeted amount for each usage period.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.BudgetAmount} */ - 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.budgets.v1beta1.BudgetAmount) com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.class, + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.BudgetAmount.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; } @java.lang.Override @@ -450,8 +499,11 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetAmount buildPartial() { - com.google.cloud.billing.budgets.v1beta1.BudgetAmount result = new com.google.cloud.billing.budgets.v1beta1.BudgetAmount(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.BudgetAmount result = + new com.google.cloud.billing.budgets.v1beta1.BudgetAmount(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -464,12 +516,10 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.BudgetAmount private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.BudgetAmount result) { result.budgetAmountCase_ = budgetAmountCase_; result.budgetAmount_ = this.budgetAmount_; - if (budgetAmountCase_ == 1 && - specifiedAmountBuilder_ != null) { + if (budgetAmountCase_ == 1 && specifiedAmountBuilder_ != null) { result.budgetAmount_ = specifiedAmountBuilder_.build(); } - if (budgetAmountCase_ == 2 && - lastPeriodAmountBuilder_ != null) { + if (budgetAmountCase_ == 2 && lastPeriodAmountBuilder_ != null) { result.budgetAmount_ = lastPeriodAmountBuilder_.build(); } } @@ -478,38 +528,39 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.BudgetA 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.budgets.v1beta1.BudgetAmount) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.BudgetAmount)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.BudgetAmount) other); } else { super.mergeFrom(other); return this; @@ -517,19 +568,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.BudgetAmount other) { - if (other == com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1beta1.BudgetAmount.getDefaultInstance()) + return this; switch (other.getBudgetAmountCase()) { - case SPECIFIED_AMOUNT: { - mergeSpecifiedAmount(other.getSpecifiedAmount()); - break; - } - case LAST_PERIOD_AMOUNT: { - mergeLastPeriodAmount(other.getLastPeriodAmount()); - break; - } - case BUDGETAMOUNT_NOT_SET: { - break; - } + case SPECIFIED_AMOUNT: + { + mergeSpecifiedAmount(other.getSpecifiedAmount()); + break; + } + case LAST_PERIOD_AMOUNT: + { + mergeLastPeriodAmount(other.getLastPeriodAmount()); + break; + } + case BUDGETAMOUNT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -557,26 +612,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSpecifiedAmountFieldBuilder().getBuilder(), - extensionRegistry); - budgetAmountCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getLastPeriodAmountFieldBuilder().getBuilder(), - extensionRegistry); - budgetAmountCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSpecifiedAmountFieldBuilder().getBuilder(), extensionRegistry); + budgetAmountCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getLastPeriodAmountFieldBuilder().getBuilder(), extensionRegistry); + budgetAmountCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -586,12 +641,12 @@ public Builder mergeFrom( } // finally return this; } + private int budgetAmountCase_ = 0; private java.lang.Object budgetAmount_; - public BudgetAmountCase - getBudgetAmountCase() { - return BudgetAmountCase.forNumber( - budgetAmountCase_); + + public BudgetAmountCase getBudgetAmountCase() { + return BudgetAmountCase.forNumber(budgetAmountCase_); } public Builder clearBudgetAmount() { @@ -604,8 +659,11 @@ public Builder clearBudgetAmount() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> specifiedAmountBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + specifiedAmountBuilder_; /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -615,6 +673,7 @@ public Builder clearBudgetAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -622,6 +681,8 @@ public boolean hasSpecifiedAmount() { return budgetAmountCase_ == 1; } /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -631,6 +692,7 @@ public boolean hasSpecifiedAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ @java.lang.Override @@ -648,6 +710,8 @@ public com.google.type.Money getSpecifiedAmount() { } } /** + * + * *
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -672,6 +736,8 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -682,8 +748,7 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
      *
      * .google.type.Money specified_amount = 1;
      */
-    public Builder setSpecifiedAmount(
-        com.google.type.Money.Builder builderForValue) {
+    public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue) {
       if (specifiedAmountBuilder_ == null) {
         budgetAmount_ = builderForValue.build();
         onChanged();
@@ -694,6 +759,8 @@ public Builder setSpecifiedAmount(
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -706,10 +773,11 @@ public Builder setSpecifiedAmount(
      */
     public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       if (specifiedAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 1 &&
-            budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
-          budgetAmount_ = com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
-              .mergeFrom(value).buildPartial();
+        if (budgetAmountCase_ == 1 && budgetAmount_ != com.google.type.Money.getDefaultInstance()) {
+          budgetAmount_ =
+              com.google.type.Money.newBuilder((com.google.type.Money) budgetAmount_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -725,6 +793,8 @@ public Builder mergeSpecifiedAmount(com.google.type.Money value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -752,6 +822,8 @@ public Builder clearSpecifiedAmount() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -766,6 +838,8 @@ public com.google.type.Money.Builder getSpecifiedAmountBuilder() {
       return getSpecifiedAmountFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -788,6 +862,8 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A specified amount to use as the budget.
      * `currency_code` is optional. If specified when creating a budget, it must
@@ -799,17 +875,18 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * .google.type.Money specified_amount = 1;
      */
     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>
         getSpecifiedAmountFieldBuilder() {
       if (specifiedAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 1)) {
           budgetAmount_ = com.google.type.Money.getDefaultInstance();
         }
-        specifiedAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
-                (com.google.type.Money) budgetAmount_,
-                getParentForChildren(),
-                isClean());
+        specifiedAmountBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Money,
+                com.google.type.Money.Builder,
+                com.google.type.MoneyOrBuilder>(
+                (com.google.type.Money) budgetAmount_, getParentForChildren(), isClean());
         budgetAmount_ = null;
       }
       budgetAmountCase_ = 1;
@@ -818,8 +895,13 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder> lastPeriodAmountBuilder_;
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>
+        lastPeriodAmountBuilder_;
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -829,6 +911,7 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
      * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ @java.lang.Override @@ -836,6 +919,8 @@ public boolean hasLastPeriodAmount() { return budgetAmountCase_ == 2; } /** + * + * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -845,6 +930,7 @@ public boolean hasLastPeriodAmount() {
      * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ @java.lang.Override @@ -862,6 +948,8 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm } } /** + * + * *
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -872,7 +960,8 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAm
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder setLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
+    public Builder setLastPeriodAmount(
+        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -886,6 +975,8 @@ public Builder setLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.Last
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -908,6 +999,8 @@ public Builder setLastPeriodAmount(
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -918,12 +1011,17 @@ public Builder setLastPeriodAmount(
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
+    public Builder mergeLastPeriodAmount(
+        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount value) {
       if (lastPeriodAmountBuilder_ == null) {
-        if (budgetAmountCase_ == 2 &&
-            budgetAmount_ != com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) {
-          budgetAmount_ = com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_)
-              .mergeFrom(value).buildPartial();
+        if (budgetAmountCase_ == 2
+            && budgetAmount_
+                != com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) {
+          budgetAmount_ =
+              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder(
+                      (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           budgetAmount_ = value;
         }
@@ -939,6 +1037,8 @@ public Builder mergeLastPeriodAmount(com.google.cloud.billing.budgets.v1beta1.La
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -966,6 +1066,8 @@ public Builder clearLastPeriodAmount() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -976,10 +1078,13 @@ public Builder clearLastPeriodAmount() {
      *
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
-    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder getLastPeriodAmountBuilder() {
+    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder
+        getLastPeriodAmountBuilder() {
       return getLastPeriodAmountFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -991,7 +1096,8 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder getLast
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
     @java.lang.Override
-    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder() {
+    public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder
+        getLastPeriodAmountOrBuilder() {
       if ((budgetAmountCase_ == 2) && (lastPeriodAmountBuilder_ != null)) {
         return lastPeriodAmountBuilder_.getMessageOrBuilder();
       } else {
@@ -1002,6 +1108,8 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLas
       }
     }
     /**
+     *
+     *
      * 
      * Use the last period's actual spend as the budget for the present period.
      * LastPeriodAmount can only be set when the budget's time period is a
@@ -1013,14 +1121,20 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLas
      * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder> 
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>
         getLastPeriodAmountFieldBuilder() {
       if (lastPeriodAmountBuilder_ == null) {
         if (!(budgetAmountCase_ == 2)) {
-          budgetAmount_ = com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
+          budgetAmount_ =
+              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance();
         }
-        lastPeriodAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>(
+        lastPeriodAmountBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount,
+                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder,
+                com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder>(
                 (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_,
                 getParentForChildren(),
                 isClean());
@@ -1030,9 +1144,9 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLas
       onChanged();
       return lastPeriodAmountBuilder_;
     }
+
     @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);
     }
 
@@ -1042,12 +1156,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.BudgetAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.BudgetAmount)
   private static final com.google.cloud.billing.budgets.v1beta1.BudgetAmount DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.BudgetAmount();
   }
@@ -1056,27 +1170,27 @@ public static com.google.cloud.billing.budgets.v1beta1.BudgetAmount getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BudgetAmount parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BudgetAmount parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1091,6 +1205,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.BudgetAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
index 3860d523c051..2d5ed5c4e4c4 100644
--- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface BudgetAmountOrBuilder extends
+public interface BudgetAmountOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.BudgetAmount)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -17,10 +35,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ boolean hasSpecifiedAmount(); /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -30,10 +51,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ com.google.type.Money getSpecifiedAmount(); /** + * + * *
    * A specified amount to use as the budget.
    * `currency_code` is optional. If specified when creating a budget, it must
@@ -47,6 +71,8 @@ public interface BudgetAmountOrBuilder extends
   com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder();
 
   /**
+   *
+   *
    * 
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -56,10 +82,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return Whether the lastPeriodAmount field is set. */ boolean hasLastPeriodAmount(); /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
@@ -69,10 +98,13 @@ public interface BudgetAmountOrBuilder extends
    * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getLastPeriodAmount(); /** + * + * *
    * Use the last period's actual spend as the budget for the present period.
    * LastPeriodAmount can only be set when the budget's time period is a
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
new file mode 100644
index 000000000000..0296683b9357
--- /dev/null
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
@@ -0,0 +1,239 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1beta1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1beta1;
+
+public final class BudgetModel {
+  private BudgetModel() {}
+
+  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_budgets_v1beta1_Budget_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n7google/cloud/billing/budgets/v1beta1/b"
+          + "udget_model.proto\022$google.cloud.billing."
+          + "budgets.v1beta1\032\037google/api/field_behavi"
+          + "or.proto\032\031google/api/resource.proto\032\034goo"
+          + "gle/protobuf/struct.proto\032\026google/type/d"
+          + "ate.proto\032\027google/type/money.proto\"\344\003\n\006B"
+          + "udget\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_nam"
+          + "e\030\002 \001(\t\022I\n\rbudget_filter\030\003 \001(\0132,.google."
+          + "cloud.billing.budgets.v1beta1.FilterB\004\342A"
+          + "\001\001\022H\n\006amount\030\004 \001(\01322.google.cloud.billin"
+          + "g.budgets.v1beta1.BudgetAmountB\004\342A\001\002\022R\n\017"
+          + "threshold_rules\030\005 \003(\01323.google.cloud.bil"
+          + "ling.budgets.v1beta1.ThresholdRuleB\004\342A\001\001"
+          + "\022T\n\020all_updates_rule\030\006 \001(\01324.google.clou"
+          + "d.billing.budgets.v1beta1.AllUpdatesRule"
+          + "B\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001\001:]\352AZ\n$billing"
+          + "budgets.googleapis.com/Budget\0222billingAc"
+          + "counts/{billing_account}/budgets/{budget"
+          + "}\"\245\001\n\014BudgetAmount\022.\n\020specified_amount\030\001"
+          + " \001(\0132\022.google.type.MoneyH\000\022T\n\022last_perio"
+          + "d_amount\030\002 \001(\01326.google.cloud.billing.bu"
+          + "dgets.v1beta1.LastPeriodAmountH\000B\017\n\rbudg"
+          + "et_amount\"\022\n\020LastPeriodAmount\"\317\001\n\rThresh"
+          + "oldRule\022\037\n\021threshold_percent\030\001 \001(\001B\004\342A\001\002"
+          + "\022T\n\013spend_basis\030\002 \001(\01629.google.cloud.bil"
+          + "ling.budgets.v1beta1.ThresholdRule.Basis"
+          + "B\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021"
+          + "\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\""
+          + "\327\001\n\016AllUpdatesRule\022\032\n\014pubsub_topic\030\001 \001(\t"
+          + "B\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004\342A\001\001\022.\n "
+          + "monitoring_notification_channels\030\003 \003(\tB\004"
+          + "\342A\001\001\022,\n\036disable_default_iam_recipients\030\004"
+          + " \001(\010B\004\342A\001\001\022-\n\037enable_project_level_recip"
+          + "ients\030\005 \001(\010B\004\342A\001\001\"\341\005\n\006Filter\022\026\n\010projects"
+          + "\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(\t"
+          + "B\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022g\n\026cr"
+          + "edit_types_treatment\030\004 \001(\0162A.google.clou"
+          + "d.billing.budgets.v1beta1.Filter.CreditT"
+          + "ypesTreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342"
+          + "A\001\001\022\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022N\n\006labels"
+          + "\030\006 \003(\01328.google.cloud.billing.budgets.v1"
+          + "beta1.Filter.LabelsEntryB\004\342A\001\001\022U\n\017calend"
+          + "ar_period\030\010 \001(\01624.google.cloud.billing.b"
+          + "udgets.v1beta1.CalendarPeriodB\004\342A\001\001H\000\022Q\n"
+          + "\rcustom_period\030\t \001(\01322.google.cloud.bill"
+          + "ing.budgets.v1beta1.CustomPeriodB\004\342A\001\001H\000"
+          + "\032I\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 "
+          + "\001(\0132\032.google.protobuf.ListValue:\0028\001\"\217\001\n\024"
+          + "CreditTypesTreatment\022&\n\"CREDIT_TYPES_TRE"
+          + "ATMENT_UNSPECIFIED\020\000\022\027\n\023INCLUDE_ALL_CRED"
+          + "ITS\020\001\022\027\n\023EXCLUDE_ALL_CREDITS\020\002\022\035\n\031INCLUD"
+          + "E_SPECIFIED_CREDITS\020\003B\016\n\014usage_period\"f\n"
+          + "\014CustomPeriod\022+\n\nstart_date\030\001 \001(\0132\021.goog"
+          + "le.type.DateB\004\342A\001\002\022)\n\010end_date\030\002 \001(\0132\021.g"
+          + "oogle.type.DateB\004\342A\001\001*S\n\016CalendarPeriod\022"
+          + "\037\n\033CALENDAR_PERIOD_UNSPECIFIED\020\000\022\t\n\005MONT"
+          + "H\020\001\022\013\n\007QUARTER\020\002\022\010\n\004YEAR\020\003Bp\n(com.google"
+          + ".cloud.billing.budgets.v1beta1P\001ZBcloud."
+          + "google.com/go/billing/budgets/apiv1beta1"
+          + "/budgetspb;budgetspbb\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.protobuf.StructProto.getDescriptor(),
+              com.google.type.DateProto.getDescriptor(),
+              com.google.type.MoneyProto.getDescriptor(),
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "DisplayName",
+              "BudgetFilter",
+              "Amount",
+              "ThresholdRules",
+              "AllUpdatesRule",
+              "Etag",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor,
+            new java.lang.String[] {
+              "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor,
+            new java.lang.String[] {});
+    internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor,
+            new java.lang.String[] {
+              "ThresholdPercent", "SpendBasis",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor,
+            new java.lang.String[] {
+              "PubsubTopic",
+              "SchemaVersion",
+              "MonitoringNotificationChannels",
+              "DisableDefaultIamRecipients",
+              "EnableProjectLevelRecipients",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor,
+            new java.lang.String[] {
+              "Projects",
+              "ResourceAncestors",
+              "CreditTypes",
+              "CreditTypesTreatment",
+              "Services",
+              "Subaccounts",
+              "Labels",
+              "CalendarPeriod",
+              "CustomPeriod",
+              "UsagePeriod",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor =
+        internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor,
+            new java.lang.String[] {
+              "StartDate", "EndDate",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.type.DateProto.getDescriptor();
+    com.google.type.MoneyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
similarity index 100%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
similarity index 66%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
index 33b9e9490e9c..f9f7acf624be 100644
--- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface BudgetOrBuilder extends
+public interface BudgetOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.Budget)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -15,10 +33,13 @@ public interface BudgetOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the budget.
    * The resource name implies the scope of a budget. Values are of the form
@@ -26,94 +47,129 @@ public interface BudgetOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User data for display name in UI.
    * Validation: <= 60 chars.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the budgetFilter field is set. */ boolean hasBudgetFilter(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The budgetFilter. */ com.google.cloud.billing.budgets.v1beta1.Filter getBudgetFilter(); /** + * + * *
    * Optional. Filters that define which resources are used to compute the
    * actual spend against the budget amount, such as projects, services, and the
    * budget's time period, as well as other filters.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterOrBuilder(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the amount field is set. */ boolean hasAmount(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The amount. */ com.google.cloud.billing.budgets.v1beta1.BudgetAmount getAmount(); /** + * + * *
    * Required. Budgeted amount.
    * 
* - * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountOrBuilder(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -123,11 +179,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getThresholdRulesList(); + java.util.List getThresholdRulesList(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -137,10 +196,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1beta1.ThresholdRule getThresholdRules(int index); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -150,10 +213,14 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getThresholdRulesCount(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -163,11 +230,15 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getThresholdRulesOrBuilderList(); /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -177,42 +248,60 @@ public interface BudgetOrBuilder extends
    * Required if using email notifications.
    * 
* - * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.billing.budgets.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRulesOrBuilder( int index); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allUpdatesRule field is set. */ boolean hasAllUpdatesRule(); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allUpdatesRule. */ com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule getAllUpdatesRule(); /** + * + * *
    * Optional. Rules to apply to notifications sent based on budget spend and
    * thresholds.
    * 
* - * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder(); /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -220,10 +309,13 @@ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRule
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -231,8 +323,8 @@ com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder getThresholdRule
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java new file mode 100644 index 000000000000..22f43ca0ff4a --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java @@ -0,0 +1,199 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public final class BudgetServiceOuterClass { + private BudgetServiceOuterClass() {} + + 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_budgets_v1beta1_CreateBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/billing/budgets/v1beta1/b" + + "udget_service.proto\022$google.cloud.billin" + + "g.budgets.v1beta1\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\0327google/cloud/billing/budge" + + "ts/v1beta1/budget_model.proto\032\033google/pr" + + "otobuf/empty.proto\032 google/protobuf/fiel" + + "d_mask.proto\"\230\001\n\023CreateBudgetRequest\022=\n\006" + + "parent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.go" + + "ogleapis.com/Budget\022B\n\006budget\030\002 \001(\0132,.go" + + "ogle.cloud.billing.budgets.v1beta1.Budge" + + "tB\004\342A\001\002\"\220\001\n\023UpdateBudgetRequest\022B\n\006budge" + + "t\030\001 \001(\0132,.google.cloud.billing.budgets.v" + + "1beta1.BudgetB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\004\342A\001\001\"O\n\020Ge" + + "tBudgetRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$b" + + "illingbudgets.googleapis.com/Budget\"\233\001\n\022" + + "ListBudgetsRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002" + + "\372A&\022$billingbudgets.googleapis.com/Budge" + + "t\022\023\n\005scope\030\004 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\002 \001(" + + "\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"m\n\023Lis" + + "tBudgetsResponse\022=\n\007budgets\030\001 \003(\0132,.goog" + + "le.cloud.billing.budgets.v1beta1.Budget\022" + + "\027\n\017next_page_token\030\002 \001(\t\"R\n\023DeleteBudget" + + "Request\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$billingb" + + "udgets.googleapis.com/Budget2\367\007\n\rBudgetS" + + "ervice\022\257\001\n\014CreateBudget\0229.google.cloud.b" + + "illing.budgets.v1beta1.CreateBudgetReque" + + "st\032,.google.cloud.billing.budgets.v1beta" + + "1.Budget\"6\202\323\344\223\0020\"+/v1beta1/{parent=billi" + + "ngAccounts/*}/budgets:\001*\022\266\001\n\014UpdateBudge" + + "t\0229.google.cloud.billing.budgets.v1beta1" + + ".UpdateBudgetRequest\032,.google.cloud.bill" + + "ing.budgets.v1beta1.Budget\"=\202\323\344\223\002722/v1b" + + "eta1/{budget.name=billingAccounts/*/budg" + + "ets/*}:\001*\022\246\001\n\tGetBudget\0226.google.cloud.b" + + "illing.budgets.v1beta1.GetBudgetRequest\032" + + ",.google.cloud.billing.budgets.v1beta1.B" + + "udget\"3\202\323\344\223\002-\022+/v1beta1/{name=billingAcc" + + "ounts/*/budgets/*}\022\267\001\n\013ListBudgets\0228.goo" + + "gle.cloud.billing.budgets.v1beta1.ListBu" + + "dgetsRequest\0329.google.cloud.billing.budg" + + "ets.v1beta1.ListBudgetsResponse\"3\202\323\344\223\002-\022" + + "+/v1beta1/{parent=billingAccounts/*}/bud" + + "gets\022\226\001\n\014DeleteBudget\0229.google.cloud.bil" + + "ling.budgets.v1beta1.DeleteBudgetRequest" + + "\032\026.google.protobuf.Empty\"3\202\323\344\223\002-*+/v1bet" + + "a1/{name=billingAccounts/*/budgets/*}\032\177\312" + + "A\035billingbudgets.googleapis.com\322A\\https:" + + "//www.googleapis.com/auth/cloud-billing," + + "https://www.googleapis.com/auth/cloud-pl" + + "atformBp\n(com.google.cloud.billing.budge" + + "ts.v1beta1P\001ZBcloud.google.com/go/billin" + + "g/budgets/apiv1beta1/budgetspb;budgetspb" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor, + new java.lang.String[] { + "Parent", "Budget", + }); + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor, + new java.lang.String[] { + "Budget", "UpdateMask", + }); + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor, + new java.lang.String[] { + "Parent", "Scope", "PageSize", "PageToken", + }); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor, + new java.lang.String[] { + "Budgets", "NextPageToken", + }); + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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.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.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java similarity index 70% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java index 86d01ba9b7eb..cfc7fbcbde4f 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * A `CalendarPeriod` represents the abstract concept of a time period that
  * has a canonical start. Grammatically, "the start of the current
@@ -13,9 +30,10 @@
  *
  * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.CalendarPeriod}
  */
-public enum CalendarPeriod
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -25,6 +43,8 @@ public enum CalendarPeriod
    */
   CALENDAR_PERIOD_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -34,6 +54,8 @@ public enum CalendarPeriod
    */
   MONTH(1),
   /**
+   *
+   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -43,6 +65,8 @@ public enum CalendarPeriod
    */
   QUARTER(2),
   /**
+   *
+   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -54,6 +78,8 @@ public enum CalendarPeriod ; /** + * + * *
    * Calendar period is unset. This is the default if the budget is for a
    * custom time period (CustomPeriod).
@@ -63,6 +89,8 @@ public enum CalendarPeriod
    */
   public static final int CALENDAR_PERIOD_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * A month. Month starts on the first day of each month, such as January 1,
    * February 1, March 1, and so on.
@@ -72,6 +100,8 @@ public enum CalendarPeriod
    */
   public static final int MONTH_VALUE = 1;
   /**
+   *
+   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -81,6 +111,8 @@ public enum CalendarPeriod
    */
   public static final int QUARTER_VALUE = 2;
   /**
+   *
+   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -89,7 +121,6 @@ public enum CalendarPeriod */ public static final int YEAR_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -114,50 +145,53 @@ public static CalendarPeriod valueOf(int value) { */ public static CalendarPeriod forNumber(int value) { switch (value) { - case 0: return CALENDAR_PERIOD_UNSPECIFIED; - case 1: return MONTH; - case 2: return QUARTER; - case 3: return YEAR; - default: return null; + case 0: + return CALENDAR_PERIOD_UNSPECIFIED; + case 1: + return MONTH; + case 2: + return QUARTER; + case 3: + return YEAR; + 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< - CalendarPeriod> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CalendarPeriod findValueByNumber(int number) { - return CalendarPeriod.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 CalendarPeriod findValueByNumber(int number) { + return CalendarPeriod.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() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor() + .getEnumTypes() + .get(0); } private static final CalendarPeriod[] VALUES = values(); - public static CalendarPeriod valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CalendarPeriod 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; @@ -173,4 +207,3 @@ private CalendarPeriod(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.billing.budgets.v1beta1.CalendarPeriod) } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java similarity index 60% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java index 6d9dd3b70ceb..d22746895682 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * Request for CreateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CreateBudgetRequest} */ -public final class CreateBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) CreateBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateBudgetRequest.newBuilder() to construct. private CreateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateBudgetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 @@ -61,30 +86,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 billing account to create the budget in. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 { @@ -95,11 +122,16 @@ public java.lang.String getParent() { public static final int BUDGET_FIELD_NUMBER = 2; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ @java.lang.Override @@ -107,30 +139,44 @@ public boolean hasBudget() { return budget_ != null; } /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } /** + * + * *
    * Required. Budget to create.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +188,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_); } @@ -163,8 +208,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBudget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBudget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +218,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.budgets.v1beta1.CreateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other = + (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget() - .equals(other.getBudget())) return false; + if (!getBudget().equals(other.getBudget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +254,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest 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.budgets.v1beta1.CreateBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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 for CreateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CreateBudgetRequest} */ - 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.budgets.v1beta1.CreateBudgetRequest) com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,13 +398,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest + getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance(); } @@ -371,21 +420,23 @@ public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result) { + private void buildPartial0( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.budget_ = budgetBuilder_ == null - ? budget_ - : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); } } @@ -393,38 +444,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CreateBudget 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.budgets.v1beta1.CreateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -432,7 +484,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -467,24 +521,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getBudgetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,23 +549,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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; @@ -519,21 +579,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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 { @@ -541,30 +604,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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() { @@ -574,18 +648,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the billing account to create the budget in. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -595,39 +675,58 @@ public Builder setParentBytes( private com.google.cloud.billing.budgets.v1beta1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + budgetBuilder_; /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } else { return budgetBuilder_.getMessage(); } } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { @@ -643,11 +742,15 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget( com.google.cloud.billing.budgets.v1beta1.Budget.Builder builderForValue) { @@ -661,17 +764,21 @@ public Builder setBudget( return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - budget_ != null && - budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && budget_ != null + && budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -684,11 +791,15 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +812,15 @@ public Builder clearBudget() { return this; } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000002; @@ -713,43 +828,55 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder( return getBudgetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null ? - com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } } /** + * + * *
      * Required. Budget to create.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - getBudget(), - getParentForChildren(), - isClean()); + budgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + getBudget(), getParentForChildren(), isClean()); budget_ = null; } return budgetBuilder_; } + @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); } @@ -759,12 +886,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(); } @@ -773,27 +901,27 @@ public static com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,6 +936,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..3e0000fbe7f5 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface CreateBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the billing account to create the budget in. Values
+   * are of the form `billingAccounts/{billingAccountId}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the budget field is set. + */ + boolean hasBudget(); + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The budget. + */ + com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); + /** + * + * + *
+   * Required. Budget to create.
+   * 
+ * + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java similarity index 73% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java index bed26a74be51..10e89bdd6d8a 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java @@ -1,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CustomPeriod} */ -public final class CustomPeriod extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CustomPeriod extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.CustomPeriod) CustomPeriodOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomPeriod.newBuilder() to construct. private CustomPeriod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomPeriod() { - } + + private CustomPeriod() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomPeriod(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); } public static final int START_DATE_FIELD_NUMBER = 1; private com.google.type.Date startDate_; /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ @java.lang.Override @@ -57,11 +78,14 @@ public boolean hasStartDate() { return startDate_ != null; } /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ @java.lang.Override @@ -69,6 +93,8 @@ public com.google.type.Date getStartDate() { return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -83,6 +109,8 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { public static final int END_DATE_FIELD_NUMBER = 2; private com.google.type.Date endDate_; /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -90,6 +118,7 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ @java.lang.Override @@ -97,6 +126,8 @@ public boolean hasEndDate() { return endDate_ != null; } /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -104,6 +135,7 @@ public boolean hasEndDate() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ @java.lang.Override @@ -111,6 +143,8 @@ public com.google.type.Date getEndDate() { return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; } /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -125,6 +159,7 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -136,8 +171,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 (startDate_ != null) {
       output.writeMessage(1, getStartDate());
     }
@@ -154,12 +188,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (startDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getStartDate());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate());
     }
     if (endDate_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getEndDate());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -169,22 +201,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.budgets.v1beta1.CustomPeriod)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.CustomPeriod other = (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) obj;
+    com.google.cloud.billing.budgets.v1beta1.CustomPeriod other =
+        (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) obj;
 
     if (hasStartDate() != other.hasStartDate()) return false;
     if (hasStartDate()) {
-      if (!getStartDate()
-          .equals(other.getStartDate())) return false;
+      if (!getStartDate().equals(other.getStartDate())) return false;
     }
     if (hasEndDate() != other.hasEndDate()) return false;
     if (hasEndDate()) {
-      if (!getEndDate()
-          .equals(other.getEndDate())) return false;
+      if (!getEndDate().equals(other.getEndDate())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -211,131 +242,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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;
   }
   /**
+   *
+   *
    * 
    * All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.CustomPeriod} */ - 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.budgets.v1beta1.CustomPeriod) com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.class, + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; } @java.lang.Override @@ -375,8 +411,11 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriod buildPartial() { - com.google.cloud.billing.budgets.v1beta1.CustomPeriod result = new com.google.cloud.billing.budgets.v1beta1.CustomPeriod(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.CustomPeriod result = + new com.google.cloud.billing.budgets.v1beta1.CustomPeriod(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,14 +423,10 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod buildPartial() { private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CustomPeriod result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startDate_ = startDateBuilder_ == null - ? startDate_ - : startDateBuilder_.build(); + result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endDate_ = endDateBuilder_ == null - ? endDate_ - : endDateBuilder_.build(); + result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); } } @@ -399,38 +434,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.budgets.v1beta1.CustomPeriod) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CustomPeriod)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.CustomPeriod) other); } else { super.mergeFrom(other); return this; @@ -438,7 +474,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.CustomPeriod other) { - if (other == com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) + return this; if (other.hasStartDate()) { mergeStartDate(other.getStartDate()); } @@ -471,26 +508,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartDateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndDateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,28 +536,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.Date startDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> startDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ public boolean hasStartDate() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ public com.google.type.Date getStartDate() { @@ -532,6 +576,8 @@ public com.google.type.Date getStartDate() { } } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -552,14 +598,15 @@ public Builder setStartDate(com.google.type.Date value) { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartDate( - com.google.type.Date.Builder builderForValue) { + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { if (startDateBuilder_ == null) { startDate_ = builderForValue.build(); } else { @@ -570,6 +617,8 @@ public Builder setStartDate( return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -578,9 +627,9 @@ public Builder setStartDate( */ public Builder mergeStartDate(com.google.type.Date value) { if (startDateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startDate_ != null && - startDate_ != com.google.type.Date.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startDate_ != null + && startDate_ != com.google.type.Date.getDefaultInstance()) { getStartDateBuilder().mergeFrom(value); } else { startDate_ = value; @@ -593,6 +642,8 @@ public Builder mergeStartDate(com.google.type.Date value) { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -610,6 +661,8 @@ public Builder clearStartDate() { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -622,6 +675,8 @@ public com.google.type.Date.Builder getStartDateBuilder() { return getStartDateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -632,11 +687,12 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { if (startDateBuilder_ != null) { return startDateBuilder_.getMessageOrBuilder(); } else { - return startDate_ == null ? - com.google.type.Date.getDefaultInstance() : startDate_; + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; } } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -644,14 +700,13 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getStartDateFieldBuilder() { if (startDateBuilder_ == null) { - startDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), - getParentForChildren(), - isClean()); + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); startDate_ = null; } return startDateBuilder_; @@ -659,8 +714,11 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() { private com.google.type.Date endDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> endDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -668,12 +726,15 @@ public com.google.type.DateOrBuilder getStartDateOrBuilder() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ public boolean hasEndDate() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -681,6 +742,7 @@ public boolean hasEndDate() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ public com.google.type.Date getEndDate() { @@ -691,6 +753,8 @@ public com.google.type.Date getEndDate() { } } /** + * + * *
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -713,6 +777,8 @@ public Builder setEndDate(com.google.type.Date value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -721,8 +787,7 @@ public Builder setEndDate(com.google.type.Date value) {
      *
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setEndDate(
-        com.google.type.Date.Builder builderForValue) {
+    public Builder setEndDate(com.google.type.Date.Builder builderForValue) {
       if (endDateBuilder_ == null) {
         endDate_ = builderForValue.build();
       } else {
@@ -733,6 +798,8 @@ public Builder setEndDate(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -743,9 +810,9 @@ public Builder setEndDate(
      */
     public Builder mergeEndDate(com.google.type.Date value) {
       if (endDateBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endDate_ != null &&
-          endDate_ != com.google.type.Date.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endDate_ != null
+            && endDate_ != com.google.type.Date.getDefaultInstance()) {
           getEndDateBuilder().mergeFrom(value);
         } else {
           endDate_ = value;
@@ -758,6 +825,8 @@ public Builder mergeEndDate(com.google.type.Date value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -777,6 +846,8 @@ public Builder clearEndDate() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -791,6 +862,8 @@ public com.google.type.Date.Builder getEndDateBuilder() {
       return getEndDateFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -803,11 +876,12 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
       if (endDateBuilder_ != null) {
         return endDateBuilder_.getMessageOrBuilder();
       } else {
-        return endDate_ == null ?
-            com.google.type.Date.getDefaultInstance() : endDate_;
+        return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional. The end date of the time period. Budgets with elapsed end date
      * won't be processed. If unset, specifies to track all usage incurred since
@@ -817,21 +891,20 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
+            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
         getEndDateFieldBuilder() {
       if (endDateBuilder_ == null) {
-        endDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
-                getEndDate(),
-                getParentForChildren(),
-                isClean());
+        endDateBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+                getEndDate(), getParentForChildren(), isClean());
         endDate_ = null;
       }
       return endDateBuilder_;
     }
+
     @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);
     }
 
@@ -841,12 +914,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.CustomPeriod)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.CustomPeriod)
   private static final com.google.cloud.billing.budgets.v1beta1.CustomPeriod DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.CustomPeriod();
   }
@@ -855,27 +928,27 @@ public static com.google.cloud.billing.budgets.v1beta1.CustomPeriod getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CustomPeriod parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CustomPeriod parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +963,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
similarity index 75%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
index 1d3f15ee1185..af4a6b65fd67 100644
--- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
-public interface CustomPeriodOrBuilder extends
+public interface CustomPeriodOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CustomPeriod)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the startDate field is set. */ boolean hasStartDate(); /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
* * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The startDate. */ com.google.type.Date getStartDate(); /** + * + * *
    * Required. The start date must be after January 1, 2017.
    * 
@@ -35,6 +59,8 @@ public interface CustomPeriodOrBuilder extends com.google.type.DateOrBuilder getStartDateOrBuilder(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -42,10 +68,13 @@ public interface CustomPeriodOrBuilder extends
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the endDate field is set. */ boolean hasEndDate(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
@@ -53,10 +82,13 @@ public interface CustomPeriodOrBuilder extends
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ com.google.type.Date getEndDate(); /** + * + * *
    * Optional. The end date of the time period. Budgets with elapsed end date
    * won't be processed. If unset, specifies to track all usage incurred since
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
similarity index 62%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
index 14432e315d32..325397656561 100644
--- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
@@ -1,58 +1,83 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
 /**
+ *
+ *
  * 
  * Request for DeleteBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest} */ -public final class DeleteBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) DeleteBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteBudgetRequest.newBuilder() to construct. private DeleteBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the budget to delete. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other = + (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest 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.budgets.v1beta1.DeleteBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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 for DeleteBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest} */ - 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.budgets.v1beta1.DeleteBudgetRequest) com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,13 +323,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest + getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance(); } @@ -312,13 +345,17 @@ public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result) { + private void buildPartial0( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -329,38 +366,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.DeleteBudget 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.budgets.v1beta1.DeleteBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +406,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +462,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,21 +492,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -467,30 +517,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -500,27 +561,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the budget to delete. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +597,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(); } @@ -544,27 +612,27 @@ public static com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..fa9463f8a928 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface DeleteBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the budget to delete. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java similarity index 75% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java index e32b77b5cc4b..f2991d9b060e 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java @@ -1,71 +1,86 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * A filter for a budget, limiting the scope of the cost to calculate.
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Filter} */ -public final class Filter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.Filter) FilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Filter() { - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Filter(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.Filter.class, com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1beta1.Filter.class, + com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); } /** + * + * *
    * Specifies how credits are applied when determining the spend for
    * threshold calculations. Budgets track the total cost minus any applicable
@@ -76,13 +91,12 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment}
    */
-  public enum CreditTypesTreatment
-      implements com.google.protobuf.ProtocolMessageEnum {
-    /**
-     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
-     */
+  public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageEnum {
+    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
     CREDIT_TYPES_TREATMENT_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -92,6 +106,8 @@ public enum CreditTypesTreatment
      */
     INCLUDE_ALL_CREDITS(1),
     /**
+     *
+     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -101,6 +117,8 @@ public enum CreditTypesTreatment
      */
     EXCLUDE_ALL_CREDITS(2),
     /**
+     *
+     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -114,11 +132,11 @@ public enum CreditTypesTreatment
     UNRECOGNIZED(-1),
     ;
 
-    /**
-     * CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
-     */
+    /** CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; */
     public static final int CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * All types of credit are subtracted from the gross cost to determine the
      * spend for threshold calculations.
@@ -128,6 +146,8 @@ public enum CreditTypesTreatment
      */
     public static final int INCLUDE_ALL_CREDITS_VALUE = 1;
     /**
+     *
+     *
      * 
      * All types of credit are added to the net cost to determine the spend for
      * threshold calculations.
@@ -137,6 +157,8 @@ public enum CreditTypesTreatment
      */
     public static final int EXCLUDE_ALL_CREDITS_VALUE = 2;
     /**
+     *
+     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -148,7 +170,6 @@ public enum CreditTypesTreatment
      */
     public static final int INCLUDE_SPECIFIED_CREDITS_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -173,11 +194,16 @@ public static CreditTypesTreatment valueOf(int value) {
      */
     public static CreditTypesTreatment forNumber(int value) {
       switch (value) {
-        case 0: return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
-        case 1: return INCLUDE_ALL_CREDITS;
-        case 2: return EXCLUDE_ALL_CREDITS;
-        case 3: return INCLUDE_SPECIFIED_CREDITS;
-        default: return null;
+        case 0:
+          return CREDIT_TYPES_TREATMENT_UNSPECIFIED;
+        case 1:
+          return INCLUDE_ALL_CREDITS;
+        case 2:
+          return EXCLUDE_ALL_CREDITS;
+        case 3:
+          return INCLUDE_SPECIFIED_CREDITS;
+        default:
+          return null;
       }
     }
 
@@ -185,28 +211,28 @@ public static CreditTypesTreatment forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        CreditTypesTreatment> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public CreditTypesTreatment findValueByNumber(int number) {
-              return CreditTypesTreatment.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 CreditTypesTreatment findValueByNumber(int number) {
+                return CreditTypesTreatment.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.budgets.v1beta1.Filter.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -215,8 +241,7 @@ public CreditTypesTreatment findValueByNumber(int number) {
     public static CreditTypesTreatment 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;
@@ -234,15 +259,19 @@ private CreditTypesTreatment(int value) {
   }
 
   private int usagePeriodCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object usagePeriod_;
+
   public enum UsagePeriodCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CALENDAR_PERIOD(8),
     CUSTOM_PERIOD(9),
     USAGEPERIOD_NOT_SET(0);
     private final int value;
+
     private UsagePeriodCase(int value) {
       this.value = value;
     }
@@ -258,28 +287,34 @@ public static UsagePeriodCase valueOf(int value) {
 
     public static UsagePeriodCase forNumber(int value) {
       switch (value) {
-        case 8: return CALENDAR_PERIOD;
-        case 9: return CUSTOM_PERIOD;
-        case 0: return USAGEPERIOD_NOT_SET;
-        default: return null;
+        case 8:
+          return CALENDAR_PERIOD;
+        case 9:
+          return CUSTOM_PERIOD;
+        case 0:
+          return USAGEPERIOD_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public UsagePeriodCase
-  getUsagePeriodCase() {
-    return UsagePeriodCase.forNumber(
-        usagePeriodCase_);
+  public UsagePeriodCase getUsagePeriodCase() {
+    return UsagePeriodCase.forNumber(usagePeriodCase_);
   }
 
   public static final int PROJECTS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList projects_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -288,13 +323,15 @@ public int getNumber() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList - getProjectsList() { + public com.google.protobuf.ProtocolStringList getProjectsList() { return projects_; } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -303,12 +340,15 @@ public int getNumber() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -317,6 +357,7 @@ public int getProjectsCount() {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -324,6 +365,8 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -332,19 +375,22 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString - getProjectsBytes(int index) { + public com.google.protobuf.ByteString getProjectsBytes(int index) { return projects_.getByteString(index); } public static final int RESOURCE_ANCESTORS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -356,13 +402,15 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList - getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { return resourceAncestors_; } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -374,12 +422,15 @@ public java.lang.String getProjects(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -391,6 +442,7 @@ public int getResourceAncestorsCount() {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -398,6 +450,8 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -409,19 +463,22 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString - getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } public static final int CREDIT_TYPES_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -436,13 +493,15 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList - getCreditTypesList() { + public com.google.protobuf.ProtocolStringList getCreditTypesList() { return creditTypes_; } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -457,12 +516,15 @@ public java.lang.String getResourceAncestors(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -477,6 +539,7 @@ public int getCreditTypesCount() {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -484,6 +547,8 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -498,45 +563,65 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString - getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } public static final int CREDIT_TYPES_TREATMENT_FIELD_NUMBER = 4; private int creditTypesTreatment_ = 0; /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override public int getCreditTypesTreatmentValue() { + @java.lang.Override + public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ - @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment + getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber( + creditTypesTreatment_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED + : result; } public static final int SERVICES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -547,13 +632,15 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList - getServicesList() { + public com.google.protobuf.ProtocolStringList getServicesList() { return services_; } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -564,12 +651,15 @@ public java.lang.String getCreditTypes(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -580,6 +670,7 @@ public int getServicesCount() {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ @@ -587,6 +678,8 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -597,19 +690,22 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString - getServicesBytes(int index) { + public com.google.protobuf.ByteString getServicesBytes(int index) { return services_.getByteString(index); } public static final int SUBACCOUNTS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -620,13 +716,15 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList - getSubaccountsList() { + public com.google.protobuf.ProtocolStringList getSubaccountsList() { return subaccounts_; } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -637,12 +735,15 @@ public java.lang.String getServices(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -653,6 +754,7 @@ public int getSubaccountsCount() {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -660,6 +762,8 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -670,41 +774,46 @@ public java.lang.String getSubaccounts(int index) {
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString - getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.ListValue> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.ListValue.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.ListValue.getDefaultInstance()); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ListValue> labels_; + private com.google.protobuf.MapField labels_; + private com.google.protobuf.MapField - internalGetLabels() { + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -717,23 +826,26 @@ public int getLabelsCount() {
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -746,13 +858,17 @@ public java.util.Map getLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -765,20 +881,25 @@ public java.util.Map getLabelsM
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.protobuf.ListValue defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -791,12 +912,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -807,6 +931,8 @@ public com.google.protobuf.ListValue getLabelsOrThrow( public static final int CALENDAR_PERIOD_FIELD_NUMBER = 8; /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -816,13 +942,18 @@ public com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -832,7 +963,10 @@ public boolean hasCalendarPeriod() {
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ public int getCalendarPeriodValue() { @@ -842,6 +976,8 @@ public int getCalendarPeriodValue() { return 0; } /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -851,26 +987,37 @@ public int getCalendarPeriodValue() {
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED + : result; } return com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } public static final int CUSTOM_PERIOD_FIELD_NUMBER = 9; /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -878,38 +1025,48 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { if (usagePeriodCase_ == 9) { - return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; + return (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_; } return com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -921,8 +1078,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 < projects_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projects_.getRaw(i)); } @@ -932,18 +1088,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < services_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, services_.getRaw(i)); } - if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { + if (creditTypesTreatment_ + != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment + .CREDIT_TYPES_TREATMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(4, creditTypesTreatment_); } for (int i = 0; i < subaccounts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subaccounts_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); for (int i = 0; i < creditTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, creditTypes_.getRaw(i)); } @@ -986,9 +1141,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getServicesList().size(); } - if (creditTypesTreatment_ != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.CREDIT_TYPES_TREATMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, creditTypesTreatment_); + if (creditTypesTreatment_ + != com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment + .CREDIT_TYPES_TREATMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, creditTypesTreatment_); } { int dataSize = 0; @@ -998,15 +1155,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSubaccountsList().size(); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } { int dataSize = 0; @@ -1017,12 +1174,14 @@ public int getSerializedSize() { size += 1 * getCreditTypesList().size(); } if (usagePeriodCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, ((java.lang.Integer) usagePeriod_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 8, ((java.lang.Integer) usagePeriod_)); } if (usagePeriodCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1032,35 +1191,28 @@ 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.budgets.v1beta1.Filter)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.Filter other = (com.google.cloud.billing.budgets.v1beta1.Filter) obj; + com.google.cloud.billing.budgets.v1beta1.Filter other = + (com.google.cloud.billing.budgets.v1beta1.Filter) obj; - if (!getProjectsList() - .equals(other.getProjectsList())) return false; - if (!getResourceAncestorsList() - .equals(other.getResourceAncestorsList())) return false; - if (!getCreditTypesList() - .equals(other.getCreditTypesList())) return false; + if (!getProjectsList().equals(other.getProjectsList())) return false; + if (!getResourceAncestorsList().equals(other.getResourceAncestorsList())) return false; + if (!getCreditTypesList().equals(other.getCreditTypesList())) return false; if (creditTypesTreatment_ != other.creditTypesTreatment_) return false; - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!getSubaccountsList() - .equals(other.getSubaccountsList())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getServicesList().equals(other.getServicesList())) return false; + if (!getSubaccountsList().equals(other.getSubaccountsList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getUsagePeriodCase().equals(other.getUsagePeriodCase())) return false; switch (usagePeriodCase_) { case 8: - if (getCalendarPeriodValue() - != other.getCalendarPeriodValue()) return false; + if (getCalendarPeriodValue() != other.getCalendarPeriodValue()) return false; break; case 9: - if (!getCustomPeriod() - .equals(other.getCustomPeriod())) return false; + if (!getCustomPeriod().equals(other.getCustomPeriod())) return false; break; case 0: default: @@ -1119,169 +1271,166 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.budgets.v1beta1.Filter parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.budgets.v1beta1.Filter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter 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 filter for a budget, limiting the scope of the cost to calculate.
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.Filter} */ - 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.budgets.v1beta1.Filter) com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.Filter.class, com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); + com.google.cloud.billing.budgets.v1beta1.Filter.class, + com.google.cloud.billing.budgets.v1beta1.Filter.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.Filter.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); creditTypesTreatment_ = 0; - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableLabels().clear(); if (customPeriodBuilder_ != null) { customPeriodBuilder_.clear(); @@ -1292,9 +1441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetModel + .internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; } @java.lang.Override @@ -1313,8 +1462,11 @@ public com.google.cloud.billing.budgets.v1beta1.Filter build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Filter buildPartial() { - com.google.cloud.billing.budgets.v1beta1.Filter result = new com.google.cloud.billing.budgets.v1beta1.Filter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.Filter result = + new com.google.cloud.billing.budgets.v1beta1.Filter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1354,8 +1506,7 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.Filter resul private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.Filter result) { result.usagePeriodCase_ = usagePeriodCase_; result.usagePeriod_ = this.usagePeriod_; - if (usagePeriodCase_ == 9 && - customPeriodBuilder_ != null) { + if (usagePeriodCase_ == 9 && customPeriodBuilder_ != null) { result.usagePeriod_ = customPeriodBuilder_.build(); } } @@ -1364,38 +1515,39 @@ private void buildPartialOneofs(com.google.cloud.billing.budgets.v1beta1.Filter 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.budgets.v1beta1.Filter) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Filter)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.Filter) other); } else { super.mergeFrom(other); return this; @@ -1403,7 +1555,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Filter other) { - if (other == com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1beta1.Filter.getDefaultInstance()) + return this; if (!other.projects_.isEmpty()) { if (projects_.isEmpty()) { projects_ = other.projects_; @@ -1457,21 +1610,23 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Filter other) } onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000040; switch (other.getUsagePeriodCase()) { - case CALENDAR_PERIOD: { - setCalendarPeriodValue(other.getCalendarPeriodValue()); - break; - } - case CUSTOM_PERIOD: { - mergeCustomPeriod(other.getCustomPeriod()); - break; - } - case USAGEPERIOD_NOT_SET: { - break; - } + case CALENDAR_PERIOD: + { + setCalendarPeriodValue(other.getCalendarPeriodValue()); + break; + } + case CUSTOM_PERIOD: + { + mergeCustomPeriod(other.getCustomPeriod()); + break; + } + case USAGEPERIOD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1499,69 +1654,80 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureProjectsIsMutable(); - projects_.add(s); - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceAncestorsIsMutable(); - resourceAncestors_.add(s); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureServicesIsMutable(); - services_.add(s); - break; - } // case 26 - case 32: { - creditTypesTreatment_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubaccountsIsMutable(); - subaccounts_.add(s); - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - ensureCreditTypesIsMutable(); - creditTypes_.add(s); - break; - } // case 58 - case 64: { - int rawValue = input.readEnum(); - usagePeriodCase_ = 8; - usagePeriod_ = rawValue; - break; - } // case 64 - case 74: { - input.readMessage( - getCustomPeriodFieldBuilder().getBuilder(), - extensionRegistry); - usagePeriodCase_ = 9; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectsIsMutable(); + projects_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceAncestorsIsMutable(); + resourceAncestors_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServicesIsMutable(); + services_.add(s); + break; + } // case 26 + case 32: + { + creditTypesTreatment_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubaccountsIsMutable(); + subaccounts_.add(s); + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry + labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCreditTypesIsMutable(); + creditTypes_.add(s); + break; + } // case 58 + case 64: + { + int rawValue = input.readEnum(); + usagePeriodCase_ = 8; + usagePeriod_ = rawValue; + break; + } // case 64 + case 74: + { + input.readMessage(getCustomPeriodFieldBuilder().getBuilder(), extensionRegistry); + usagePeriodCase_ = 9; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1571,12 +1737,12 @@ public Builder mergeFrom( } // finally return this; } + private int usagePeriodCase_ = 0; private java.lang.Object usagePeriod_; - public UsagePeriodCase - getUsagePeriodCase() { - return UsagePeriodCase.forNumber( - usagePeriodCase_); + + public UsagePeriodCase getUsagePeriodCase() { + return UsagePeriodCase.forNumber(usagePeriodCase_); } public Builder clearUsagePeriod() { @@ -1590,6 +1756,7 @@ public Builder clearUsagePeriod() { private com.google.protobuf.LazyStringArrayList projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureProjectsIsMutable() { if (!projects_.isModifiable()) { projects_ = new com.google.protobuf.LazyStringArrayList(projects_); @@ -1597,6 +1764,8 @@ private void ensureProjectsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1605,14 +1774,16 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - public com.google.protobuf.ProtocolStringList - getProjectsList() { + public com.google.protobuf.ProtocolStringList getProjectsList() { projects_.makeImmutable(); return projects_; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1621,12 +1792,15 @@ private void ensureProjectsIsMutable() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ public int getProjectsCount() { return projects_.size(); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1635,6 +1809,7 @@ public int getProjectsCount() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ @@ -1642,6 +1817,8 @@ public java.lang.String getProjects(int index) { return projects_.get(index); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1650,14 +1827,16 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - public com.google.protobuf.ByteString - getProjectsBytes(int index) { + public com.google.protobuf.ByteString getProjectsBytes(int index) { return projects_.getByteString(index); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1666,13 +1845,15 @@ public java.lang.String getProjects(int index) {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The projects to set. * @return This builder for chaining. */ - public Builder setProjects( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureProjectsIsMutable(); projects_.set(index, value); bitField0_ |= 0x00000001; @@ -1680,6 +1861,8 @@ public Builder setProjects( return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1688,12 +1871,14 @@ public Builder setProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The projects to add. * @return This builder for chaining. */ - public Builder addProjects( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureProjectsIsMutable(); projects_.add(value); bitField0_ |= 0x00000001; @@ -1701,6 +1886,8 @@ public Builder addProjects( return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1709,19 +1896,20 @@ public Builder addProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The projects to add. * @return This builder for chaining. */ - public Builder addAllProjects( - java.lang.Iterable values) { + public Builder addAllProjects(java.lang.Iterable values) { ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projects_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1730,16 +1918,19 @@ public Builder addAllProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProjects() { - projects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1748,12 +1939,14 @@ public Builder clearProjects() {
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the projects to add. * @return This builder for chaining. */ - public Builder addProjectsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureProjectsIsMutable(); projects_.add(value); @@ -1764,6 +1957,7 @@ public Builder addProjectsBytes( private com.google.protobuf.LazyStringArrayList resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResourceAncestorsIsMutable() { if (!resourceAncestors_.isModifiable()) { resourceAncestors_ = new com.google.protobuf.LazyStringArrayList(resourceAncestors_); @@ -1771,6 +1965,8 @@ private void ensureResourceAncestorsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1781,15 +1977,18 @@ private void ensureResourceAncestorsIsMutable() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the resourceAncestors. */ - public com.google.protobuf.ProtocolStringList - getResourceAncestorsList() { + public com.google.protobuf.ProtocolStringList getResourceAncestorsList() { resourceAncestors_.makeImmutable(); return resourceAncestors_; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1800,13 +1999,17 @@ private void ensureResourceAncestorsIsMutable() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of resourceAncestors. */ public int getResourceAncestorsCount() { return resourceAncestors_.size(); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1817,7 +2020,9 @@ public int getResourceAncestorsCount() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ @@ -1825,6 +2030,8 @@ public java.lang.String getResourceAncestors(int index) { return resourceAncestors_.get(index); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1835,15 +2042,18 @@ public java.lang.String getResourceAncestors(int index) {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - public com.google.protobuf.ByteString - getResourceAncestorsBytes(int index) { + public com.google.protobuf.ByteString getResourceAncestorsBytes(int index) { return resourceAncestors_.getByteString(index); } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1854,14 +2064,17 @@ public java.lang.String getResourceAncestors(int index) {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The resourceAncestors to set. * @return This builder for chaining. */ - public Builder setResourceAncestors( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceAncestors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceAncestorsIsMutable(); resourceAncestors_.set(index, value); bitField0_ |= 0x00000002; @@ -1869,6 +2082,8 @@ public Builder setResourceAncestors( return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1879,13 +2094,16 @@ public Builder setResourceAncestors(
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestors( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceAncestors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); bitField0_ |= 0x00000002; @@ -1893,6 +2111,8 @@ public Builder addResourceAncestors( return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1903,20 +2123,22 @@ public Builder addResourceAncestors(
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The resourceAncestors to add. * @return This builder for chaining. */ - public Builder addAllResourceAncestors( - java.lang.Iterable values) { + public Builder addAllResourceAncestors(java.lang.Iterable values) { ensureResourceAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceAncestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceAncestors_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1927,17 +2149,21 @@ public Builder addAllResourceAncestors(
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearResourceAncestors() { - resourceAncestors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + resourceAncestors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of folder and organization names of the form
      * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -1948,13 +2174,16 @@ public Builder clearResourceAncestors() {
      * to those projects.
      * 
* - * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the resourceAncestors to add. * @return This builder for chaining. */ - public Builder addResourceAncestorsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureResourceAncestorsIsMutable(); resourceAncestors_.add(value); @@ -1965,6 +2194,7 @@ public Builder addResourceAncestorsBytes( private com.google.protobuf.LazyStringArrayList creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureCreditTypesIsMutable() { if (!creditTypes_.isModifiable()) { creditTypes_ = new com.google.protobuf.LazyStringArrayList(creditTypes_); @@ -1972,6 +2202,8 @@ private void ensureCreditTypesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -1986,14 +2218,16 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - public com.google.protobuf.ProtocolStringList - getCreditTypesList() { + public com.google.protobuf.ProtocolStringList getCreditTypesList() { creditTypes_.makeImmutable(); return creditTypes_; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2008,12 +2242,15 @@ private void ensureCreditTypesIsMutable() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ public int getCreditTypesCount() { return creditTypes_.size(); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2028,6 +2265,7 @@ public int getCreditTypesCount() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ @@ -2035,6 +2273,8 @@ public java.lang.String getCreditTypes(int index) { return creditTypes_.get(index); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2049,14 +2289,16 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - public com.google.protobuf.ByteString - getCreditTypesBytes(int index) { + public com.google.protobuf.ByteString getCreditTypesBytes(int index) { return creditTypes_.getByteString(index); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2071,13 +2313,15 @@ public java.lang.String getCreditTypes(int index) {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The creditTypes to set. * @return This builder for chaining. */ - public Builder setCreditTypes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCreditTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCreditTypesIsMutable(); creditTypes_.set(index, value); bitField0_ |= 0x00000004; @@ -2085,6 +2329,8 @@ public Builder setCreditTypes( return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2099,12 +2345,14 @@ public Builder setCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCreditTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCreditTypesIsMutable(); creditTypes_.add(value); bitField0_ |= 0x00000004; @@ -2112,6 +2360,8 @@ public Builder addCreditTypes( return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2126,19 +2376,20 @@ public Builder addCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The creditTypes to add. * @return This builder for chaining. */ - public Builder addAllCreditTypes( - java.lang.Iterable values) { + public Builder addAllCreditTypes(java.lang.Iterable values) { ensureCreditTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, creditTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creditTypes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2153,16 +2404,19 @@ public Builder addAllCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCreditTypes() { - creditTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + creditTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -2177,12 +2431,14 @@ public Builder clearCreditTypes() {
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the creditTypes to add. * @return This builder for chaining. */ - public Builder addCreditTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureCreditTypesIsMutable(); creditTypes_.add(value); @@ -2193,22 +2449,33 @@ public Builder addCreditTypesBytes( private int creditTypesTreatment_ = 0; /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ - @java.lang.Override public int getCreditTypesTreatmentValue() { + @java.lang.Override + public int getCreditTypesTreatmentValue() { return creditTypesTreatment_; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for creditTypesTreatment to set. * @return This builder for chaining. */ @@ -2219,28 +2486,44 @@ public Builder setCreditTypesTreatmentValue(int value) { return this; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment() { - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment + getCreditTypesTreatment() { + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.forNumber( + creditTypesTreatment_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The creditTypesTreatment to set. * @return This builder for chaining. */ - public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment value) { + public Builder setCreditTypesTreatment( + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment value) { if (value == null) { throw new NullPointerException(); } @@ -2250,11 +2533,16 @@ public Builder setCreditTypesTreatment(com.google.cloud.billing.budgets.v1beta1. return this; } /** + * + * *
      * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCreditTypesTreatment() { @@ -2266,6 +2554,7 @@ public Builder clearCreditTypesTreatment() { private com.google.protobuf.LazyStringArrayList services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureServicesIsMutable() { if (!services_.isModifiable()) { services_ = new com.google.protobuf.LazyStringArrayList(services_); @@ -2273,6 +2562,8 @@ private void ensureServicesIsMutable() { bitField0_ |= 0x00000010; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2283,14 +2574,16 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - public com.google.protobuf.ProtocolStringList - getServicesList() { + public com.google.protobuf.ProtocolStringList getServicesList() { services_.makeImmutable(); return services_; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2301,12 +2594,15 @@ private void ensureServicesIsMutable() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ public int getServicesCount() { return services_.size(); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2317,6 +2613,7 @@ public int getServicesCount() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ @@ -2324,6 +2621,8 @@ public java.lang.String getServices(int index) { return services_.get(index); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2334,14 +2633,16 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - public com.google.protobuf.ByteString - getServicesBytes(int index) { + public com.google.protobuf.ByteString getServicesBytes(int index) { return services_.getByteString(index); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2352,13 +2653,15 @@ public java.lang.String getServices(int index) {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The services to set. * @return This builder for chaining. */ - public Builder setServices( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServices(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServicesIsMutable(); services_.set(index, value); bitField0_ |= 0x00000010; @@ -2366,6 +2669,8 @@ public Builder setServices( return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2376,12 +2681,14 @@ public Builder setServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The services to add. * @return This builder for chaining. */ - public Builder addServices( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServices(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServicesIsMutable(); services_.add(value); bitField0_ |= 0x00000010; @@ -2389,6 +2696,8 @@ public Builder addServices( return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2399,19 +2708,20 @@ public Builder addServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The services to add. * @return This builder for chaining. */ - public Builder addAllServices( - java.lang.Iterable values) { + public Builder addAllServices(java.lang.Iterable values) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2422,16 +2732,19 @@ public Builder addAllServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServices() { - services_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; + services_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2442,12 +2755,14 @@ public Builder clearServices() {
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the services to add. * @return This builder for chaining. */ - public Builder addServicesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServicesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureServicesIsMutable(); services_.add(value); @@ -2458,6 +2773,7 @@ public Builder addServicesBytes( private com.google.protobuf.LazyStringArrayList subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSubaccountsIsMutable() { if (!subaccounts_.isModifiable()) { subaccounts_ = new com.google.protobuf.LazyStringArrayList(subaccounts_); @@ -2465,6 +2781,8 @@ private void ensureSubaccountsIsMutable() { bitField0_ |= 0x00000020; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2475,14 +2793,16 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - public com.google.protobuf.ProtocolStringList - getSubaccountsList() { + public com.google.protobuf.ProtocolStringList getSubaccountsList() { subaccounts_.makeImmutable(); return subaccounts_; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2493,12 +2813,15 @@ private void ensureSubaccountsIsMutable() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ public int getSubaccountsCount() { return subaccounts_.size(); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2509,6 +2832,7 @@ public int getSubaccountsCount() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ @@ -2516,6 +2840,8 @@ public java.lang.String getSubaccounts(int index) { return subaccounts_.get(index); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2526,14 +2852,16 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - public com.google.protobuf.ByteString - getSubaccountsBytes(int index) { + public com.google.protobuf.ByteString getSubaccountsBytes(int index) { return subaccounts_.getByteString(index); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2544,13 +2872,15 @@ public java.lang.String getSubaccounts(int index) {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The subaccounts to set. * @return This builder for chaining. */ - public Builder setSubaccounts( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubaccounts(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubaccountsIsMutable(); subaccounts_.set(index, value); bitField0_ |= 0x00000020; @@ -2558,6 +2888,8 @@ public Builder setSubaccounts( return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2568,12 +2900,14 @@ public Builder setSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccounts( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubaccounts(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubaccountsIsMutable(); subaccounts_.add(value); bitField0_ |= 0x00000020; @@ -2581,6 +2915,8 @@ public Builder addSubaccounts( return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2591,19 +2927,20 @@ public Builder addSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The subaccounts to add. * @return This builder for chaining. */ - public Builder addAllSubaccounts( - java.lang.Iterable values) { + public Builder addAllSubaccounts(java.lang.Iterable values) { ensureSubaccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subaccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subaccounts_); bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2614,16 +2951,19 @@ public Builder addAllSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSubaccounts() { - subaccounts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020);; + subaccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; onChanged(); return this; } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2634,12 +2974,14 @@ public Builder clearSubaccounts() {
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the subaccounts to add. * @return This builder for chaining. */ - public Builder addSubaccountsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSubaccountsIsMutable(); subaccounts_.add(value); @@ -2648,21 +2990,20 @@ public Builder addSubaccountsBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ListValue> labels_; + private com.google.protobuf.MapField labels_; + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2671,10 +3012,13 @@ public Builder addSubaccountsBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2687,23 +3031,26 @@ public int getLabelsCount() {
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2716,13 +3063,17 @@ public java.util.Map getLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2735,20 +3086,25 @@ public java.util.Map getLabelsM
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + public /* nullable */ com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.protobuf.ListValue defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2761,12 +3117,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2774,13 +3133,15 @@ public com.google.protobuf.ListValue getLabelsOrThrow( } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2793,25 +3154,26 @@ public Builder clearLabels() {
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2824,19 +3186,24 @@ public Builder removeLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putLabels( - java.lang.String key, - com.google.protobuf.ListValue value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, com.google.protobuf.ListValue value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. A single label and value pair specifying that usage from only
      * this set of labeled resources should be included in the budget. If omitted,
@@ -2849,17 +3216,20 @@ public Builder putLabels(
      *  allowed._
      * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllLabels( java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2869,7 +3239,10 @@ public Builder putAllLabels(
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ @java.lang.Override @@ -2877,6 +3250,8 @@ public boolean hasCalendarPeriod() { return usagePeriodCase_ == 8; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2886,7 +3261,10 @@ public boolean hasCalendarPeriod() {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ @java.lang.Override @@ -2897,6 +3275,8 @@ public int getCalendarPeriodValue() { return 0; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2906,7 +3286,10 @@ public int getCalendarPeriodValue() {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for calendarPeriod to set. * @return This builder for chaining. */ @@ -2917,6 +3300,8 @@ public Builder setCalendarPeriodValue(int value) { return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2926,19 +3311,27 @@ public Builder setCalendarPeriodValue(int value) {
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod() { if (usagePeriodCase_ == 8) { - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( - (java.lang.Integer) usagePeriod_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.forNumber( + (java.lang.Integer) usagePeriod_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.UNRECOGNIZED + : result; } return com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2948,11 +3341,15 @@ public com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The calendarPeriod to set. * @return This builder for chaining. */ - public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1beta1.CalendarPeriod value) { + public Builder setCalendarPeriod( + com.google.cloud.billing.budgets.v1beta1.CalendarPeriod value) { if (value == null) { throw new NullPointerException(); } @@ -2962,6 +3359,8 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1beta1.Calend return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2971,7 +3370,10 @@ public Builder setCalendarPeriod(com.google.cloud.billing.budgets.v1beta1.Calend
      * so on.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCalendarPeriod() { @@ -2984,14 +3386,22 @@ public Builder clearCalendarPeriod() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> customPeriodBuilder_; + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> + customPeriodBuilder_; /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ @java.lang.Override @@ -2999,12 +3409,17 @@ public boolean hasCustomPeriod() { return usagePeriodCase_ == 9; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ @java.lang.Override @@ -3022,12 +3437,16 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod() { } } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPeriod value) { if (customPeriodBuilder_ == null) { @@ -3043,12 +3462,16 @@ public Builder setCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPe return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomPeriod( com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder builderForValue) { @@ -3062,19 +3485,27 @@ public Builder setCustomPeriod( return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1beta1.CustomPeriod value) { if (customPeriodBuilder_ == null) { - if (usagePeriodCase_ == 9 && - usagePeriod_ != com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) { - usagePeriod_ = com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder((com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_) - .mergeFrom(value).buildPartial(); + if (usagePeriodCase_ == 9 + && usagePeriod_ + != com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance()) { + usagePeriod_ = + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.newBuilder( + (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_) + .mergeFrom(value) + .buildPartial(); } else { usagePeriod_ = value; } @@ -3090,12 +3521,16 @@ public Builder mergeCustomPeriod(com.google.cloud.billing.budgets.v1beta1.Custom return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCustomPeriod() { if (customPeriodBuilder_ == null) { @@ -3114,26 +3549,35 @@ public Builder clearCustomPeriod() { return this; } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder getCustomPeriodBuilder() { return getCustomPeriodFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder() { + public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder + getCustomPeriodOrBuilder() { if ((usagePeriodCase_ == 9) && (customPeriodBuilder_ != null)) { return customPeriodBuilder_.getMessageOrBuilder(); } else { @@ -3144,22 +3588,31 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomP } } /** + * + * *
      * Optional. Specifies to track usage from any start date (required) to any
      * end date (optional). This time period is static, it does not recur.
      * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder> getCustomPeriodFieldBuilder() { if (customPeriodBuilder_ == null) { if (!(usagePeriodCase_ == 9)) { usagePeriod_ = com.google.cloud.billing.budgets.v1beta1.CustomPeriod.getDefaultInstance(); } - customPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.CustomPeriod, com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder>( + customPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.CustomPeriod, + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder, + com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder>( (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_, getParentForChildren(), isClean()); @@ -3169,9 +3622,9 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomP onChanged(); return customPeriodBuilder_; } + @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); } @@ -3181,12 +3634,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.Filter) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.Filter) private static final com.google.cloud.billing.budgets.v1beta1.Filter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.Filter(); } @@ -3195,27 +3648,27 @@ public static com.google.cloud.billing.budgets.v1beta1.Filter getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3230,6 +3683,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java similarity index 83% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java index 6d6ed75fa958..88f716939663 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface FilterOrBuilder extends +public interface FilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.Filter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -16,11 +34,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the projects. */ - java.util.List - getProjectsList(); + java.util.List getProjectsList(); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -29,10 +49,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of projects. */ int getProjectsCount(); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -41,11 +64,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The projects at the given index. */ java.lang.String getProjects(int index); /** + * + * *
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -54,13 +80,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the projects at the given index. */ - com.google.protobuf.ByteString - getProjectsBytes(int index); + com.google.protobuf.ByteString getProjectsBytes(int index); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -72,11 +100,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the resourceAncestors. */ - java.util.List - getResourceAncestorsList(); + java.util.List getResourceAncestorsList(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -88,10 +118,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of resourceAncestors. */ int getResourceAncestorsCount(); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -103,11 +136,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The resourceAncestors at the given index. */ java.lang.String getResourceAncestors(int index); /** + * + * *
    * Optional. A set of folder and organization names of the form
    * `folders/{folderId}` or `organizations/{organizationId}`, specifying that
@@ -119,13 +155,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the resourceAncestors at the given index. */ - com.google.protobuf.ByteString - getResourceAncestorsBytes(int index); + com.google.protobuf.ByteString getResourceAncestorsBytes(int index); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -140,11 +178,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the creditTypes. */ - java.util.List - getCreditTypesList(); + java.util.List getCreditTypesList(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -159,10 +199,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of creditTypes. */ int getCreditTypesCount(); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -177,11 +220,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The creditTypes at the given index. */ java.lang.String getCreditTypes(int index); /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
@@ -196,32 +242,44 @@ public interface FilterOrBuilder extends
    * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the creditTypes at the given index. */ - com.google.protobuf.ByteString - getCreditTypesBytes(int index); + com.google.protobuf.ByteString getCreditTypesBytes(int index); /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for creditTypesTreatment. */ int getCreditTypesTreatmentValue(); /** + * + * *
    * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The creditTypesTreatment. */ com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment getCreditTypesTreatment(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -232,11 +290,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the services. */ - java.util.List - getServicesList(); + java.util.List getServicesList(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -247,10 +307,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of services. */ int getServicesCount(); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -261,11 +324,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The services at the given index. */ java.lang.String getServices(int index); /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -276,13 +342,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the services at the given index. */ - com.google.protobuf.ByteString - getServicesBytes(int index); + com.google.protobuf.ByteString getServicesBytes(int index); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -293,11 +361,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the subaccounts. */ - java.util.List - getSubaccountsList(); + java.util.List getSubaccountsList(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -308,10 +378,13 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of subaccounts. */ int getSubaccountsCount(); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -322,11 +395,14 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The subaccounts at the given index. */ java.lang.String getSubaccounts(int index); /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -337,13 +413,15 @@ public interface FilterOrBuilder extends
    * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the subaccounts at the given index. */ - com.google.protobuf.ByteString - getSubaccountsBytes(int index); + com.google.protobuf.ByteString getSubaccountsBytes(int index); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -356,10 +434,14 @@ public interface FilterOrBuilder extends
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getLabelsCount(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -372,17 +454,17 @@ public interface FilterOrBuilder extends
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -395,11 +477,14 @@ boolean containsLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -412,14 +497,18 @@ boolean containsLabels(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.protobuf.ListValue getLabelsOrDefault( + com.google.protobuf.ListValue getLabelsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.ListValue defaultValue); + com.google.protobuf.ListValue defaultValue); /** + * + * *
    * Optional. A single label and value pair specifying that usage from only
    * this set of labeled resources should be included in the budget. If omitted,
@@ -432,12 +521,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    *  allowed._
    * 
* - * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.protobuf.ListValue getLabelsOrThrow( - java.lang.String key); + com.google.protobuf.ListValue getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -447,11 +539,16 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the calendarPeriod field is set. */ boolean hasCalendarPeriod(); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -461,11 +558,16 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for calendarPeriod. */ int getCalendarPeriodValue(); /** + * + * *
    * Optional. Specifies to track usage for recurring calendar period.
    * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -475,38 +577,55 @@ com.google.protobuf.ListValue getLabelsOrThrow(
    * so on.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The calendarPeriod. */ com.google.cloud.billing.budgets.v1beta1.CalendarPeriod getCalendarPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customPeriod field is set. */ boolean hasCustomPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customPeriod. */ com.google.cloud.billing.budgets.v1beta1.CustomPeriod getCustomPeriod(); /** + * + * *
    * Optional. Specifies to track usage from any start date (required) to any
    * end date (optional). This time period is static, it does not recur.
    * 
* - * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.billing.budgets.v1beta1.CustomPeriodOrBuilder getCustomPeriodOrBuilder(); diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java similarity index 63% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java index 6cb5a3e603dd..c35946915029 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * Request for GetBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.GetBudgetRequest} */ -public final class GetBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) GetBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetBudgetRequest.newBuilder() to construct. private GetBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetBudgetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of budget to get. Values are of the form
    * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other = + (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest 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.budgets.v1beta1.GetBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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 for GetBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.GetBudgetRequest} */ - 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.budgets.v1beta1.GetBudgetRequest) com.google.cloud.billing.budgets.v1beta1.GetBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; } @java.lang.Override @@ -312,8 +344,11 @@ public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +364,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.GetBudgetReq 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.budgets.v1beta1.GetBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +404,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +459,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,21 +489,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -467,30 +514,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -500,27 +558,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of budget to get. Values are of the form
      * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) private static final com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(); } @@ -544,27 +608,27 @@ public static com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java new file mode 100644 index 000000000000..fd66ff6cf720 --- /dev/null +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/budgets/v1beta1/budget_service.proto + +package com.google.cloud.billing.budgets.v1beta1; + +public interface GetBudgetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of budget to get. Values are of the form
+   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java similarity index 65% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java index f461f262596e..c390cddb2a5b 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * Describes a budget amount targeted to the last
  * [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period]
@@ -18,39 +35,41 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.LastPeriodAmount}
  */
-public final class LastPeriodAmount extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LastPeriodAmount extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
     LastPeriodAmountOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LastPeriodAmount.newBuilder() to construct.
   private LastPeriodAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LastPeriodAmount() {
-  }
+
+  private LastPeriodAmount() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LastPeriodAmount();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class,
+            com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -62,8 +81,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -81,12 +99,13 @@ 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.budgets.v1beta1.LastPeriodAmount)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other = (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) obj;
+    com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other =
+        (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -105,98 +124,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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;
   }
   /**
+   *
+   *
    * 
    * Describes a budget amount targeted to the last
    * [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period]
@@ -211,33 +236,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.LastPeriodAmount}
    */
-  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.budgets.v1beta1.LastPeriodAmount)
       com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class, com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.class,
+              com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -245,9 +269,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor;
     }
 
     @java.lang.Override
@@ -266,7 +290,8 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount result = new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount(this);
+      com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount result =
+          new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount(this);
       onBuilt();
       return result;
     }
@@ -275,38 +300,39 @@ public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount 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.budgets.v1beta1.LastPeriodAmount) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -314,7 +340,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.getDefaultInstance())
+        return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -341,12 +368,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -356,9 +384,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -368,12 +396,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
   private static final com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount();
   }
@@ -382,27 +410,27 @@ public static com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public LastPeriodAmount parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public LastPeriodAmount parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -417,6 +445,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java
new file mode 100644
index 000000000000..5d7bf6ca43df
--- /dev/null
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/budgets/v1beta1/budget_model.proto
+
+package com.google.cloud.billing.budgets.v1beta1;
+
+public interface LastPeriodAmountOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.LastPeriodAmount)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
similarity index 72%
rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
index e6d912bd4ec8..3435d17fd6d4 100644
--- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
+++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/budgets/v1beta1/budget_service.proto
 
 package com.google.cloud.billing.budgets.v1beta1;
 
 /**
+ *
+ *
  * 
  * Request for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsRequest} */ -public final class ListBudgetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBudgetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) ListBudgetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBudgetsRequest.newBuilder() to construct. private ListBudgetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBudgetsRequest() { parent_ = ""; scope_ = ""; @@ -27,34 +45,41 @@ private ListBudgetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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 { @@ -95,9 +122,12 @@ public java.lang.String getParent() { } public static final int SCOPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object scope_ = ""; /** + * + * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -108,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scope. */ @java.lang.Override @@ -116,14 +147,15 @@ public java.lang.String getScope() { 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(); scope_ = s; return s; } } /** + * + * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -134,16 +166,15 @@ public java.lang.String getScope() {
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; 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); scope_ = b; return b; } else { @@ -154,12 +185,15 @@ public java.lang.String getScope() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -168,9 +202,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -178,6 +215,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -186,14 +224,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; } } /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -201,16 +240,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -219,6 +257,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +269,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_); } @@ -257,8 +295,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -274,21 +311,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.budgets.v1beta1.ListBudgetsRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other = (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getScope() - .equals(other.getScope())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other = + (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getScope().equals(other.getScope())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -314,131 +348,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest 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.budgets.v1beta1.ListBudgetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsRequest} */ - 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.budgets.v1beta1.ListBudgetsRequest) com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.class, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -451,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; } @java.lang.Override @@ -472,8 +511,11 @@ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest result = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest result = + new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -498,38 +540,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ListBudgetsR 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.budgets.v1beta1.ListBudgetsRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) other); } else { super.mergeFrom(other); return this; @@ -537,7 +580,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -582,32 +626,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - scope_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,23 +666,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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; @@ -642,21 +696,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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 { @@ -664,30 +721,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * 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() { @@ -697,18 +765,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of billing account to list budgets under. Values
      * are of the form `billingAccounts/{billingAccountId}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -718,6 +792,8 @@ public Builder setParentBytes( private java.lang.Object scope_ = ""; /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -728,13 +804,13 @@ public Builder setParentBytes(
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; 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(); scope_ = s; return s; @@ -743,6 +819,8 @@ public java.lang.String getScope() { } } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -753,15 +831,14 @@ public java.lang.String getScope() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for scope. */ - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; 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); scope_ = b; return b; } else { @@ -769,6 +846,8 @@ public java.lang.String getScope() { } } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -779,18 +858,22 @@ public java.lang.String getScope() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } scope_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -801,6 +884,7 @@ public Builder setScope(
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearScope() { @@ -810,6 +894,8 @@ public Builder clearScope() { return this; } /** + * + * *
      * Optional. Set the scope of the budgets to be returned, in the format of the
      * resource name. The scope of a budget is the cost that it tracks, such as
@@ -820,12 +906,14 @@ public Builder clearScope() {
      * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); scope_ = value; bitField0_ |= 0x00000002; @@ -833,14 +921,17 @@ public Builder setScopeBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -848,12 +939,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -865,12 +959,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of budgets to return per page.
      * The default and maximum value are 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -882,6 +979,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -889,13 +988,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -904,6 +1003,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -911,15 +1012,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -927,6 +1027,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -934,18 +1036,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -953,6 +1059,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -962,6 +1069,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -969,21 +1078,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -993,12 +1104,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(); } @@ -1007,27 +1118,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,6 +1153,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java index ba882c4c2570..26135769502b 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ListBudgetsRequestOrBuilder extends +public interface ListBudgetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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. Name of billing account to list budgets under. Values
    * are of the form `billingAccounts/{billingAccountId}`.
    * 
* - * 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. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -40,10 +67,13 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scope. */ java.lang.String getScope(); /** + * + * *
    * Optional. Set the scope of the budgets to be returned, in the format of the
    * resource name. The scope of a budget is the cost that it tracks, such as
@@ -54,23 +84,28 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for scope. */ - com.google.protobuf.ByteString - getScopeBytes(); + com.google.protobuf.ByteString getScopeBytes(); /** + * + * *
    * Optional. The maximum number of budgets to return per page.
    * The default and maximum value are 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -78,10 +113,13 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -89,8 +127,8 @@ public interface ListBudgetsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java similarity index 71% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java index b4af81ab449b..97f4f3f2131e 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * Response for ListBudgets
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsResponse} */ -public final class ListBudgetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBudgetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) ListBudgetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBudgetsResponse.newBuilder() to construct. private ListBudgetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBudgetsResponse() { budgets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListBudgetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); } public static final int BUDGETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List budgets_; /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -59,6 +81,8 @@ public java.util.List getBudget return budgets_; } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -66,11 +90,13 @@ public java.util.List getBudget * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBudgetsOrBuilderList() { return budgets_; } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -82,6 +108,8 @@ public int getBudgetsCount() { return budgets_.size(); } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { return budgets_.get(index); } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -100,21 +130,24 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( - int index) { + public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index) { return budgets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +156,30 @@ 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; } } /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * 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 { @@ -155,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +200,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 < budgets_.size(); i++) { output.writeMessage(1, budgets_.get(i)); } @@ -184,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < budgets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, budgets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, budgets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +230,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.budgets.v1beta1.ListBudgetsResponse)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other = (com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) obj; + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other = + (com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) obj; - if (!getBudgetsList() - .equals(other.getBudgetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBudgetsList().equals(other.getBudgetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +263,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse 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.budgets.v1beta1.ListBudgetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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 for ListBudgets
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ListBudgetsResponse} */ - 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.budgets.v1beta1.ListBudgetsResponse) com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.class, + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +409,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse + getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance(); } @@ -394,14 +431,18 @@ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse buildPartial() { - com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(this); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result = + new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { if (budgetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { budgets_ = java.util.Collections.unmodifiableList(budgets_); @@ -413,7 +454,8 @@ private void buildPartialRepeatedFields(com.google.cloud.billing.budgets.v1beta1 } } - private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { + private void buildPartial0( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,38 +466,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ListBudgetsR 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.budgets.v1beta1.ListBudgetsResponse) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) other); } else { super.mergeFrom(other); return this; @@ -463,7 +506,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse other) { - if (other == com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse.getDefaultInstance()) + return this; if (budgetsBuilder_ == null) { if (!other.budgets_.isEmpty()) { if (budgets_.isEmpty()) { @@ -482,9 +527,10 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ListBudgetsRes budgetsBuilder_ = null; budgets_ = other.budgets_; bitField0_ = (bitField0_ & ~0x00000001); - budgetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBudgetsFieldBuilder() : null; + budgetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBudgetsFieldBuilder() + : null; } else { budgetsBuilder_.addAllMessages(other.budgets_); } @@ -521,30 +567,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.billing.budgets.v1beta1.Budget m = - input.readMessage( - com.google.cloud.billing.budgets.v1beta1.Budget.parser(), - extensionRegistry); - if (budgetsBuilder_ == null) { - ensureBudgetsIsMutable(); - budgets_.add(m); - } else { - budgetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.billing.budgets.v1beta1.Budget m = + input.readMessage( + com.google.cloud.billing.budgets.v1beta1.Budget.parser(), + extensionRegistry); + if (budgetsBuilder_ == null) { + ensureBudgetsIsMutable(); + budgets_.add(m); + } else { + budgetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +603,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List budgets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBudgetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - budgets_ = new java.util.ArrayList(budgets_); + budgets_ = + new java.util.ArrayList(budgets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetsBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + budgetsBuilder_; /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -583,6 +640,8 @@ public java.util.List getBudget } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -597,6 +656,8 @@ public int getBudgetsCount() { } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -611,14 +672,15 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index) { } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public Builder setBudgets( - int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { + public Builder setBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -632,6 +694,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -650,6 +714,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -670,14 +736,15 @@ public Builder addBudgets(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public Builder addBudgets( - int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { + public Builder addBudgets(int index, com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -691,6 +758,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -709,6 +778,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -727,6 +798,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -737,8 +810,7 @@ public Builder addAllBudgets( java.lang.Iterable values) { if (budgetsBuilder_ == null) { ensureBudgetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, budgets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, budgets_); onChanged(); } else { budgetsBuilder_.addAllMessages(values); @@ -746,6 +818,8 @@ public Builder addAllBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -763,6 +837,8 @@ public Builder clearBudgets() { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -780,39 +856,44 @@ public Builder removeBudgets(int index) { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetsBuilder( - int index) { + public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetsBuilder(int index) { return getBudgetsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( - int index) { + public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index) { if (budgetsBuilder_ == null) { - return budgets_.get(index); } else { + return budgets_.get(index); + } else { return budgetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public java.util.List - getBudgetsOrBuilderList() { + public java.util.List + getBudgetsOrBuilderList() { if (budgetsBuilder_ != null) { return budgetsBuilder_.getMessageOrBuilderList(); } else { @@ -820,6 +901,8 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuil } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -827,42 +910,48 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuil * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder() { - return getBudgetsFieldBuilder().addBuilder( - com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); + return getBudgetsFieldBuilder() + .addBuilder(com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder( - int index) { - return getBudgetsFieldBuilder().addBuilder( - index, com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); + public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder(int index) { + return getBudgetsFieldBuilder() + .addBuilder(index, com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()); } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - public java.util.List - getBudgetsBuilderList() { + public java.util.List + getBudgetsBuilderList() { return getBudgetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetsFieldBuilder() { if (budgetsBuilder_ == null) { - budgetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - budgets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + budgetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + budgets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); budgets_ = null; } return budgetsBuilder_; @@ -870,19 +959,21 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder addBudgetsBuilder private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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; @@ -891,21 +982,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * 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 { @@ -913,30 +1005,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -946,27 +1045,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If not empty, indicates that there may be more budgets that match the
      * request; this value should be passed in a new `ListBudgetsRequest`.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,12 +1079,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) - private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse(); } @@ -990,27 +1094,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBudgetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBudgetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1129,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java index 63c67c8fb5dc..204d066b8680 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ListBudgetsResponseOrBuilder extends +public interface ListBudgetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - java.util.List - getBudgetsList(); + java.util.List getBudgetsList(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -25,6 +44,8 @@ public interface ListBudgetsResponseOrBuilder extends */ com.google.cloud.billing.budgets.v1beta1.Budget getBudgets(int index); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -33,43 +54,51 @@ public interface ListBudgetsResponseOrBuilder extends */ int getBudgetsCount(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - java.util.List + java.util.List getBudgetsOrBuilderList(); /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
* * repeated .google.cloud.billing.budgets.v1beta1.Budget budgets = 1; */ - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder( - int index); + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuilder(int index); /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more budgets that match the
    * request; this value should be passed in a new `ListBudgetsRequest`.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java similarity index 68% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java index 7a3f5750da88..4ad22b1f581c 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * ThresholdRule contains the definition of a threshold. Threshold rules define
  * the triggering events used to generate a budget notification email. When a
@@ -31,49 +48,54 @@
  *
  * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ThresholdRule}
  */
-public final class ThresholdRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ThresholdRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.ThresholdRule)
     ThresholdRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ThresholdRule.newBuilder() to construct.
   private ThresholdRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ThresholdRule() {
     spendBasis_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ThresholdRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
+    return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+        .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
+            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class,
+            com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of basis used to determine if spend has passed the threshold.
    * 
* * Protobuf enum {@code google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis} */ - public enum Basis - implements com.google.protobuf.ProtocolMessageEnum { + public enum Basis implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified threshold basis.
      * 
@@ -82,6 +104,8 @@ public enum Basis */ BASIS_UNSPECIFIED(0), /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -90,6 +114,8 @@ public enum Basis */ CURRENT_SPEND(1), /** + * + * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -106,6 +132,8 @@ public enum Basis
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified threshold basis.
      * 
@@ -114,6 +142,8 @@ public enum Basis */ public static final int BASIS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -122,6 +152,8 @@ public enum Basis */ public static final int CURRENT_SPEND_VALUE = 1; /** + * + * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -135,7 +167,6 @@ public enum Basis
      */
     public static final int FORECASTED_SPEND_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -160,49 +191,51 @@ public static Basis valueOf(int value) {
      */
     public static Basis forNumber(int value) {
       switch (value) {
-        case 0: return BASIS_UNSPECIFIED;
-        case 1: return CURRENT_SPEND;
-        case 2: return FORECASTED_SPEND;
-        default: return null;
+        case 0:
+          return BASIS_UNSPECIFIED;
+        case 1:
+          return CURRENT_SPEND;
+        case 2:
+          return FORECASTED_SPEND;
+        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<
-        Basis> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Basis findValueByNumber(int number) {
-              return Basis.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 Basis findValueByNumber(int number) {
+            return Basis.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() {
-      return com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Basis[] VALUES = values();
 
-    public static Basis valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Basis 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;
@@ -222,6 +255,8 @@ private Basis(int value) {
   public static final int THRESHOLD_PERCENT_FIELD_NUMBER = 1;
   private double thresholdPercent_ = 0D;
   /**
+   *
+   *
    * 
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -229,6 +264,7 @@ private Basis(int value) {
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -239,32 +275,48 @@ public double getThresholdPercent() { public static final int SPEND_BASIS_FIELD_NUMBER = 2; private int spendBasis_ = 0; /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override public int getSpendBasisValue() { + @java.lang.Override + public int getSpendBasisValue() { return spendBasis_; } /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ - @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,12 +328,13 @@ 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(thresholdPercent_) != 0) { output.writeDouble(1, thresholdPercent_); } - if (spendBasis_ != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { + if (spendBasis_ + != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED + .getNumber()) { output.writeEnum(2, spendBasis_); } getUnknownFields().writeTo(output); @@ -294,12 +347,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(thresholdPercent_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, thresholdPercent_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, thresholdPercent_); } - if (spendBasis_ != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, spendBasis_); + if (spendBasis_ + != com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.BASIS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spendBasis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -309,16 +362,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.budgets.v1beta1.ThresholdRule)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ThresholdRule other = (com.google.cloud.billing.budgets.v1beta1.ThresholdRule) obj; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule other = + (com.google.cloud.billing.budgets.v1beta1.ThresholdRule) obj; if (java.lang.Double.doubleToLongBits(getThresholdPercent()) - != java.lang.Double.doubleToLongBits( - other.getThresholdPercent())) return false; + != java.lang.Double.doubleToLongBits(other.getThresholdPercent())) return false; if (spendBasis_ != other.spendBasis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -332,8 +385,10 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THRESHOLD_PERCENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThresholdPercent())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThresholdPercent())); hash = (37 * hash) + SPEND_BASIS_FIELD_NUMBER; hash = (53 * hash) + spendBasis_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -342,98 +397,104 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule 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.budgets.v1beta1.ThresholdRule prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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; } /** + * + * *
    * ThresholdRule contains the definition of a threshold. Threshold rules define
    * the triggering events used to generate a budget notification email. When a
@@ -461,33 +522,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.budgets.v1beta1.ThresholdRule}
    */
-  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.budgets.v1beta1.ThresholdRule)
       com.google.cloud.billing.budgets.v1beta1.ThresholdRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class, com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
+              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.class,
+              com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.budgets.v1beta1.ThresholdRule.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,9 +558,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.budgets.v1beta1.BudgetModel.internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.budgets.v1beta1.BudgetModel
+          .internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor;
     }
 
     @java.lang.Override
@@ -519,8 +579,11 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule build() {
 
     @java.lang.Override
     public com.google.cloud.billing.budgets.v1beta1.ThresholdRule buildPartial() {
-      com.google.cloud.billing.budgets.v1beta1.ThresholdRule result = new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.billing.budgets.v1beta1.ThresholdRule result =
+          new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -539,38 +602,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.ThresholdRul
     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.budgets.v1beta1.ThresholdRule) {
-        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ThresholdRule)other);
+        return mergeFrom((com.google.cloud.billing.budgets.v1beta1.ThresholdRule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -578,7 +642,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.ThresholdRule other) {
-      if (other == com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance()) return this;
+      if (other == com.google.cloud.billing.budgets.v1beta1.ThresholdRule.getDefaultInstance())
+        return this;
       if (other.getThresholdPercent() != 0D) {
         setThresholdPercent(other.getThresholdPercent());
       }
@@ -611,22 +676,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 9: {
-              thresholdPercent_ = input.readDouble();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 9
-            case 16: {
-              spendBasis_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 9:
+              {
+                thresholdPercent_ = input.readDouble();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 9
+            case 16:
+              {
+                spendBasis_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -636,10 +704,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private double thresholdPercent_ ;
+    private double thresholdPercent_;
     /**
+     *
+     *
      * 
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -647,6 +718,7 @@ public Builder mergeFrom(
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -654,6 +726,8 @@ public double getThresholdPercent() { return thresholdPercent_; } /** + * + * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -661,6 +735,7 @@ public double getThresholdPercent() {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The thresholdPercent to set. * @return This builder for chaining. */ @@ -672,6 +747,8 @@ public Builder setThresholdPercent(double value) { return this; } /** + * + * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -679,6 +756,7 @@ public Builder setThresholdPercent(double value) {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearThresholdPercent() { @@ -690,24 +768,35 @@ public Builder clearThresholdPercent() { private int spendBasis_ = 0; /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ - @java.lang.Override public int getSpendBasisValue() { + @java.lang.Override + public int getSpendBasisValue() { return spendBasis_; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for spendBasis to set. * @return This builder for chaining. */ @@ -718,30 +807,44 @@ public Builder setSpendBasisValue(int value) { return this; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.forNumber(spendBasis_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The spendBasis to set. * @return This builder for chaining. */ - public Builder setSpendBasis(com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis value) { + public Builder setSpendBasis( + com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis value) { if (value == null) { throw new NullPointerException(); } @@ -751,12 +854,17 @@ public Builder setSpendBasis(com.google.cloud.billing.budgets.v1beta1.ThresholdR return this; } /** + * + * *
      * Optional. The type of basis used to determine if spend has passed the
      * threshold. Behavior defaults to CURRENT_SPEND if not set.
      * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearSpendBasis() { @@ -765,9 +873,9 @@ public Builder clearSpendBasis() { 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); } @@ -777,12 +885,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.ThresholdRule) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.ThresholdRule) private static final com.google.cloud.billing.budgets.v1beta1.ThresholdRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(); } @@ -791,27 +899,27 @@ public static com.google.cloud.billing.budgets.v1beta1.ThresholdRule getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThresholdRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThresholdRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +934,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.ThresholdRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java similarity index 55% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java index efaaef4ae53d..46dd4b4bec7a 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_model.proto package com.google.cloud.billing.budgets.v1beta1; -public interface ThresholdRuleOrBuilder extends +public interface ThresholdRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.ThresholdRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -15,27 +33,38 @@ public interface ThresholdRuleOrBuilder extends
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ double getThresholdPercent(); /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for spendBasis. */ int getSpendBasisValue(); /** + * + * *
    * Optional. The type of basis used to determine if spend has passed the
    * threshold. Behavior defaults to CURRENT_SPEND if not set.
    * 
* - * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spendBasis. */ com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis(); diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java similarity index 66% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java index 598d6b738493..356fbba005ec 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java @@ -1,56 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; /** + * + * *
  * Request for UpdateBudget
  * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest} */ -public final class UpdateBudgetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateBudgetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) UpdateBudgetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateBudgetRequest.newBuilder() to construct. private UpdateBudgetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateBudgetRequest() { - } + + private UpdateBudgetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBudgetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); } public static final int BUDGET_FIELD_NUMBER = 1; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ @java.lang.Override @@ -58,34 +81,49 @@ public boolean hasBudget() { return budget_ != null; } /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -95,7 +133,9 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -103,6 +143,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -112,7 +154,9 @@ public boolean hasUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -120,6 +164,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -129,7 +175,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -137,6 +184,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,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 (budget_ != null) { output.writeMessage(1, getBudget()); } @@ -166,12 +213,10 @@ public int getSerializedSize() { size = 0; if (budget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBudget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBudget()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -181,22 +226,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.budgets.v1beta1.UpdateBudgetRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other = (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) obj; + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other = + (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) obj; if (hasBudget() != other.hasBudget()) return false; if (hasBudget()) { - if (!getBudget() - .equals(other.getBudget())) return false; + if (!getBudget().equals(other.getBudget())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -223,131 +267,136 @@ public int hashCode() { } public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest 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.budgets.v1beta1.UpdateBudgetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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 for UpdateBudget
    * 
* * Protobuf type {@code google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest} */ - 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.budgets.v1beta1.UpdateBudgetRequest) com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.class, + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.Builder.class); } // Construct using com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,13 +415,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass + .internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; } @java.lang.Override - public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDefaultInstanceForType() { + public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest + getDefaultInstanceForType() { return com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance(); } @@ -387,23 +437,23 @@ public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest build() { @java.lang.Override public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest buildPartial() { - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result = new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result) { + private void buildPartial0( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.budget_ = budgetBuilder_ == null - ? budget_ - : budgetBuilder_.build(); + result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -411,38 +461,39 @@ private void buildPartial0(com.google.cloud.billing.budgets.v1beta1.UpdateBudget 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.budgets.v1beta1.UpdateBudgetRequest) { - return mergeFrom((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest)other); + return mergeFrom((com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) other); } else { super.mergeFrom(other); return this; @@ -450,7 +501,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest other) { - if (other == com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest.getDefaultInstance()) + return this; if (other.hasBudget()) { mergeBudget(other.getBudget()); } @@ -483,26 +536,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getBudgetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -512,46 +564,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.billing.budgets.v1beta1.Budget budget_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> budgetBuilder_; + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + budgetBuilder_; /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ public boolean hasBudget() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget() { if (budgetBuilder_ == null) { - return budget_ == null ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } else { return budgetBuilder_.getMessage(); } } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { @@ -567,12 +639,16 @@ public Builder setBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBudget( com.google.cloud.billing.budgets.v1beta1.Budget.Builder builderForValue) { @@ -586,18 +662,22 @@ public Builder setBudget( return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value) { if (budgetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - budget_ != null && - budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && budget_ != null + && budget_ != com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance()) { getBudgetBuilder().mergeFrom(value); } else { budget_ = value; @@ -610,12 +690,16 @@ public Builder mergeBudget(com.google.cloud.billing.budgets.v1beta1.Budget value return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBudget() { bitField0_ = (bitField0_ & ~0x00000001); @@ -628,12 +712,16 @@ public Builder clearBudget() { return this; } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder() { bitField0_ |= 0x00000001; @@ -641,38 +729,50 @@ public com.google.cloud.billing.budgets.v1beta1.Budget.Builder getBudgetBuilder( return getBudgetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder() { if (budgetBuilder_ != null) { return budgetBuilder_.getMessageOrBuilder(); } else { - return budget_ == null ? - com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() : budget_; + return budget_ == null + ? com.google.cloud.billing.budgets.v1beta1.Budget.getDefaultInstance() + : budget_; } } /** + * + * *
      * Required. The updated budget object.
      * The budget to update is specified by the budget name in the budget.
      * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder> getBudgetFieldBuilder() { if (budgetBuilder_ == null) { - budgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.budgets.v1beta1.Budget, com.google.cloud.billing.budgets.v1beta1.Budget.Builder, com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( - getBudget(), - getParentForChildren(), - isClean()); + budgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.budgets.v1beta1.Budget, + com.google.cloud.billing.budgets.v1beta1.Budget.Builder, + com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder>( + getBudget(), getParentForChildren(), isClean()); budget_ = null; } return budgetBuilder_; @@ -680,8 +780,13 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild 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_; /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -691,13 +796,17 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -707,17 +816,23 @@ public boolean hasUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @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(); } } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -727,7 +842,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -743,6 +859,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -752,10 +870,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -766,6 +884,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -775,13 +895,14 @@ public Builder setUpdateMask(
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -794,6 +915,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -803,7 +926,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -816,6 +940,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -825,7 +951,8 @@ public Builder clearUpdateMask() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -833,6 +960,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -842,17 +971,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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_; } } /** + * + * *
      * Optional. Indicates which fields in the provided budget to update.
      * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -862,24 +995,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * details about default values.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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); } @@ -889,12 +1026,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) - private static final com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(); } @@ -903,27 +1041,27 @@ public static com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBudgetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBudgetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -938,6 +1076,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java index 1d6feb44e56c..78d271936191 100644 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1beta1/budget_service.proto package com.google.cloud.billing.budgets.v1beta1; -public interface UpdateBudgetRequestOrBuilder extends +public interface UpdateBudgetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the budget field is set. */ boolean hasBudget(); /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The budget. */ com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); /** + * + * *
    * Required. The updated budget object.
    * The budget to update is specified by the budget name in the budget.
    * 
* - * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.budgets.v1beta1.Budget budget = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -47,11 +79,15 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -61,11 +97,15 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Indicates which fields in the provided budget to update.
    * Read-only fields (such as `name`) cannot be changed. If this is not
@@ -75,7 +115,8 @@ public interface UpdateBudgetRequestOrBuilder extends
    * details about default values.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto rename to java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/AsyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetBillingaccountnameBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/createbudget/SyncCreateBudgetStringBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/AsyncDeleteBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetBudgetname.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/deletebudget/SyncDeleteBudgetString.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/AsyncGetBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetBudgetname.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/getbudget/SyncGetBudgetString.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgets.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/AsyncListBudgetsPaged.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgets.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsBillingaccountname.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/listbudgets/SyncListBudgetsString.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/AsyncUpdateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/updatebudget/SyncUpdateBudgetBudgetFieldmask.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservicesettings/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/AsyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/AsyncDeleteBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/deletebudget/SyncDeleteBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/AsyncGetBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/getbudget/SyncGetBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgets.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/AsyncListBudgetsPaged.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/listbudgets/SyncListBudgets.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/AsyncUpdateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservice/updatebudget/SyncUpdateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/budgetservicesettings/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java similarity index 100% rename from owl-bot-staging/java-billingbudgets/v1beta1/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java rename to java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1beta1/stub/budgetservicestubsettings/createbudget/SyncCreateBudget.java diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java deleted file mode 100644 index 417808d8ba4c..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java +++ /dev/null @@ -1,197 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_model.proto - -package com.google.cloud.billing.budgets.v1; - -public final class BudgetModelProto { - private BudgetModelProto() {} - 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_budgets_v1_Budget_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/billing/budgets/v1/budget" + - "_model.proto\022\037google.cloud.billing.budge" + - "ts.v1\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032\034google/protob" + - "uf/struct.proto\032\026google/type/date.proto\032" + - "\027google/type/money.proto\"\325\003\n\006Budget\022\022\n\004n" + - "ame\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\002 \001(\t\022D\n" + - "\rbudget_filter\030\003 \001(\0132\'.google.cloud.bill" + - "ing.budgets.v1.FilterB\004\342A\001\001\022C\n\006amount\030\004 " + - "\001(\0132-.google.cloud.billing.budgets.v1.Bu" + - "dgetAmountB\004\342A\001\002\022M\n\017threshold_rules\030\005 \003(" + - "\0132..google.cloud.billing.budgets.v1.Thre" + - "sholdRuleB\004\342A\001\001\022T\n\022notifications_rule\030\006 " + - "\001(\01322.google.cloud.billing.budgets.v1.No" + - "tificationsRuleB\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001" + - "\001:]\352AZ\n$billingbudgets.googleapis.com/Bu" + - "dget\0222billingAccounts/{billing_account}/" + - "budgets/{budget}\"\240\001\n\014BudgetAmount\022.\n\020spe" + - "cified_amount\030\001 \001(\0132\022.google.type.MoneyH" + - "\000\022O\n\022last_period_amount\030\002 \001(\01321.google.c" + - "loud.billing.budgets.v1.LastPeriodAmount" + - "H\000B\017\n\rbudget_amount\"\022\n\020LastPeriodAmount\"" + - "\312\001\n\rThresholdRule\022\037\n\021threshold_percent\030\001" + - " \001(\001B\004\342A\001\002\022O\n\013spend_basis\030\002 \001(\01624.google" + - ".cloud.billing.budgets.v1.ThresholdRule." + - "BasisB\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIE" + - "D\020\000\022\021\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPE" + - "ND\020\002\"\332\001\n\021NotificationsRule\022\032\n\014pubsub_top" + - "ic\030\001 \001(\tB\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004" + - "\342A\001\001\022.\n monitoring_notification_channels" + - "\030\003 \003(\tB\004\342A\001\001\022,\n\036disable_default_iam_reci" + - "pients\030\004 \001(\010B\004\342A\001\001\022-\n\037enable_project_lev" + - "el_recipients\030\005 \001(\010B\004\342A\001\001\"\315\005\n\006Filter\022\026\n\010" + - "projects\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancesto" + - "rs\030\002 \003(\tB\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A" + - "\001\001\022b\n\026credit_types_treatment\030\004 \001(\0162<.goo" + - "gle.cloud.billing.budgets.v1.Filter.Cred" + - "itTypesTreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\t" + - "B\004\342A\001\001\022\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022I\n\006lab" + - "els\030\006 \003(\01323.google.cloud.billing.budgets" + - ".v1.Filter.LabelsEntryB\004\342A\001\001\022P\n\017calendar" + - "_period\030\010 \001(\0162/.google.cloud.billing.bud" + - "gets.v1.CalendarPeriodB\004\342A\001\001H\000\022L\n\rcustom" + - "_period\030\t \001(\0132-.google.cloud.billing.bud" + - "gets.v1.CustomPeriodB\004\342A\001\001H\000\032I\n\013LabelsEn" + - "try\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google" + - ".protobuf.ListValue:\0028\001\"\217\001\n\024CreditTypesT" + - "reatment\022&\n\"CREDIT_TYPES_TREATMENT_UNSPE" + - "CIFIED\020\000\022\027\n\023INCLUDE_ALL_CREDITS\020\001\022\027\n\023EXC" + - "LUDE_ALL_CREDITS\020\002\022\035\n\031INCLUDE_SPECIFIED_" + - "CREDITS\020\003B\016\n\014usage_period\"f\n\014CustomPerio" + - "d\022+\n\nstart_date\030\001 \001(\0132\021.google.type.Date" + - "B\004\342A\001\002\022)\n\010end_date\030\002 \001(\0132\021.google.type.D" + - "ateB\004\342A\001\001*S\n\016CalendarPeriod\022\037\n\033CALENDAR_" + - "PERIOD_UNSPECIFIED\020\000\022\t\n\005MONTH\020\001\022\013\n\007QUART" + - "ER\020\002\022\010\n\004YEAR\020\003Bx\n#com.google.cloud.billi" + - "ng.budgets.v1B\020BudgetModelProtoP\001Z=cloud" + - ".google.com/go/billing/budgets/apiv1/bud" + - "getspb;budgetspbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1_Budget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_Budget_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Budget_descriptor, - new java.lang.String[] { "Name", "DisplayName", "BudgetFilter", "Amount", "ThresholdRules", "NotificationsRule", "Etag", }); - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor, - new java.lang.String[] { "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", }); - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_LastPeriodAmount_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ThresholdRule_descriptor, - new java.lang.String[] { "ThresholdPercent", "SpendBasis", }); - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_NotificationsRule_descriptor, - new java.lang.String[] { "PubsubTopic", "SchemaVersion", "MonitoringNotificationChannels", "DisableDefaultIamRecipients", "EnableProjectLevelRecipients", }); - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1_Filter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor, - new java.lang.String[] { "Projects", "ResourceAncestors", "CreditTypes", "CreditTypesTreatment", "Services", "Subaccounts", "Labels", "CalendarPeriod", "CustomPeriod", "UsagePeriod", }); - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor = - internal_static_google_cloud_billing_budgets_v1_Filter_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_Filter_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_CustomPeriod_descriptor, - new java.lang.String[] { "StartDate", "EndDate", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java deleted file mode 100644 index bebd6f4c602f..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java +++ /dev/null @@ -1,179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public final class BudgetServiceProto { - private BudgetServiceProto() {} - 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_budgets_v1_CreateBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/billing/budgets/v1/budget" + - "_service.proto\022\037google.cloud.billing.bud" + - "gets.v1\032\034google/api/annotations.proto\032\027g" + - "oogle/api/client.proto\032\037google/api/field" + - "_behavior.proto\032\031google/api/resource.pro" + - "to\0322google/cloud/billing/budgets/v1/budg" + - "et_model.proto\032\033google/protobuf/empty.pr" + - "oto\032 google/protobuf/field_mask.proto\"\223\001" + - "\n\023CreateBudgetRequest\022=\n\006parent\030\001 \001(\tB-\342" + - "A\001\002\372A&\022$billingbudgets.googleapis.com/Bu" + - "dget\022=\n\006budget\030\002 \001(\0132\'.google.cloud.bill" + - "ing.budgets.v1.BudgetB\004\342A\001\002\"\213\001\n\023UpdateBu" + - "dgetRequest\022=\n\006budget\030\001 \001(\0132\'.google.clo" + - "ud.billing.budgets.v1.BudgetB\004\342A\001\002\0225\n\013up" + - "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + - "askB\004\342A\001\001\"O\n\020GetBudgetRequest\022;\n\004name\030\001 " + - "\001(\tB-\342A\001\002\372A&\n$billingbudgets.googleapis." + - "com/Budget\"\233\001\n\022ListBudgetsRequest\022=\n\006par" + - "ent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.googl" + - "eapis.com/Budget\022\023\n\005scope\030\004 \001(\tB\004\342A\001\001\022\027\n" + - "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001" + - "(\tB\004\342A\001\001\"h\n\023ListBudgetsResponse\0228\n\007budge" + - "ts\030\001 \003(\0132\'.google.cloud.billing.budgets." + - "v1.Budget\022\027\n\017next_page_token\030\002 \001(\t\"R\n\023De" + - "leteBudgetRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&" + - "\n$billingbudgets.googleapis.com/Budget2\367" + - "\007\n\rBudgetService\022\265\001\n\014CreateBudget\0224.goog" + - "le.cloud.billing.budgets.v1.CreateBudget" + - "Request\032\'.google.cloud.billing.budgets.v" + - "1.Budget\"F\332A\rparent,budget\202\323\344\223\0020\"&/v1/{p" + - "arent=billingAccounts/*}/budgets:\006budget" + - "\022\301\001\n\014UpdateBudget\0224.google.cloud.billing" + - ".budgets.v1.UpdateBudgetRequest\032\'.google" + - ".cloud.billing.budgets.v1.Budget\"R\332A\022bud" + - "get,update_mask\202\323\344\223\00272-/v1/{budget.name=" + - "billingAccounts/*/budgets/*}:\006budget\022\236\001\n" + - "\tGetBudget\0221.google.cloud.billing.budget" + - "s.v1.GetBudgetRequest\032\'.google.cloud.bil" + - "ling.budgets.v1.Budget\"5\332A\004name\202\323\344\223\002(\022&/" + - "v1/{name=billingAccounts/*/budgets/*}\022\261\001" + - "\n\013ListBudgets\0223.google.cloud.billing.bud" + - "gets.v1.ListBudgetsRequest\0324.google.clou" + - "d.billing.budgets.v1.ListBudgetsResponse" + - "\"7\332A\006parent\202\323\344\223\002(\022&/v1/{parent=billingAc" + - "counts/*}/budgets\022\223\001\n\014DeleteBudget\0224.goo" + - "gle.cloud.billing.budgets.v1.DeleteBudge" + - "tRequest\032\026.google.protobuf.Empty\"5\332A\004nam" + - "e\202\323\344\223\002(*&/v1/{name=billingAccounts/*/bud" + - "gets/*}\032\177\312A\035billingbudgets.googleapis.co" + - "m\322A\\https://www.googleapis.com/auth/clou" + - "d-billing,https://www.googleapis.com/aut" + - "h/cloud-platformBz\n#com.google.cloud.bil" + - "ling.budgets.v1B\022BudgetServiceProtoP\001Z=c" + - "loud.google.com/go/billing/budgets/apiv1" + - "/budgetspb;budgetspbb\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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_CreateBudgetRequest_descriptor, - new java.lang.String[] { "Parent", "Budget", }); - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_UpdateBudgetRequest_descriptor, - new java.lang.String[] { "Budget", "UpdateMask", }); - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_GetBudgetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ListBudgetsRequest_descriptor, - new java.lang.String[] { "Parent", "Scope", "PageSize", "PageToken", }); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_ListBudgetsResponse_descriptor, - new java.lang.String[] { "Budgets", "NextPageToken", }); - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1_DeleteBudgetRequest_descriptor, - new java.lang.String[] { "Name", }); - 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.cloud.billing.budgets.v1.BudgetModelProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java deleted file mode 100644 index 03e39726fb18..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface CreateBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.CreateBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the budget field is set. - */ - boolean hasBudget(); - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The budget. - */ - com.google.cloud.billing.budgets.v1.Budget getBudget(); - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java deleted file mode 100644 index 3d3e4a03f3b0..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface DeleteBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.DeleteBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java deleted file mode 100644 index 5a7d4e94ab25..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_service.proto - -package com.google.cloud.billing.budgets.v1; - -public interface GetBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.GetBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java deleted file mode 100644 index e2b52259f1a2..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1/budget_model.proto - -package com.google.cloud.billing.budgets.v1; - -public interface LastPeriodAmountOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1.LastPeriodAmount) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java deleted file mode 100644 index 5a852f3336b4..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java +++ /dev/null @@ -1,198 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_model.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public final class BudgetModel { - private BudgetModel() {} - 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_budgets_v1beta1_Budget_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/billing/budgets/v1beta1/b" + - "udget_model.proto\022$google.cloud.billing." + - "budgets.v1beta1\032\037google/api/field_behavi" + - "or.proto\032\031google/api/resource.proto\032\034goo" + - "gle/protobuf/struct.proto\032\026google/type/d" + - "ate.proto\032\027google/type/money.proto\"\344\003\n\006B" + - "udget\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_nam" + - "e\030\002 \001(\t\022I\n\rbudget_filter\030\003 \001(\0132,.google." + - "cloud.billing.budgets.v1beta1.FilterB\004\342A" + - "\001\001\022H\n\006amount\030\004 \001(\01322.google.cloud.billin" + - "g.budgets.v1beta1.BudgetAmountB\004\342A\001\002\022R\n\017" + - "threshold_rules\030\005 \003(\01323.google.cloud.bil" + - "ling.budgets.v1beta1.ThresholdRuleB\004\342A\001\001" + - "\022T\n\020all_updates_rule\030\006 \001(\01324.google.clou" + - "d.billing.budgets.v1beta1.AllUpdatesRule" + - "B\004\342A\001\001\022\022\n\004etag\030\007 \001(\tB\004\342A\001\001:]\352AZ\n$billing" + - "budgets.googleapis.com/Budget\0222billingAc" + - "counts/{billing_account}/budgets/{budget" + - "}\"\245\001\n\014BudgetAmount\022.\n\020specified_amount\030\001" + - " \001(\0132\022.google.type.MoneyH\000\022T\n\022last_perio" + - "d_amount\030\002 \001(\01326.google.cloud.billing.bu" + - "dgets.v1beta1.LastPeriodAmountH\000B\017\n\rbudg" + - "et_amount\"\022\n\020LastPeriodAmount\"\317\001\n\rThresh" + - "oldRule\022\037\n\021threshold_percent\030\001 \001(\001B\004\342A\001\002" + - "\022T\n\013spend_basis\030\002 \001(\01629.google.cloud.bil" + - "ling.budgets.v1beta1.ThresholdRule.Basis" + - "B\004\342A\001\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021" + - "\n\rCURRENT_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\"" + - "\327\001\n\016AllUpdatesRule\022\032\n\014pubsub_topic\030\001 \001(\t" + - "B\004\342A\001\001\022\034\n\016schema_version\030\002 \001(\tB\004\342A\001\001\022.\n " + - "monitoring_notification_channels\030\003 \003(\tB\004" + - "\342A\001\001\022,\n\036disable_default_iam_recipients\030\004" + - " \001(\010B\004\342A\001\001\022-\n\037enable_project_level_recip" + - "ients\030\005 \001(\010B\004\342A\001\001\"\341\005\n\006Filter\022\026\n\010projects" + - "\030\001 \003(\tB\004\342A\001\001\022 \n\022resource_ancestors\030\002 \003(\t" + - "B\004\342A\001\001\022\032\n\014credit_types\030\007 \003(\tB\004\342A\001\001\022g\n\026cr" + - "edit_types_treatment\030\004 \001(\0162A.google.clou" + - "d.billing.budgets.v1beta1.Filter.CreditT" + - "ypesTreatmentB\004\342A\001\001\022\026\n\010services\030\003 \003(\tB\004\342" + - "A\001\001\022\031\n\013subaccounts\030\005 \003(\tB\004\342A\001\001\022N\n\006labels" + - "\030\006 \003(\01328.google.cloud.billing.budgets.v1" + - "beta1.Filter.LabelsEntryB\004\342A\001\001\022U\n\017calend" + - "ar_period\030\010 \001(\01624.google.cloud.billing.b" + - "udgets.v1beta1.CalendarPeriodB\004\342A\001\001H\000\022Q\n" + - "\rcustom_period\030\t \001(\01322.google.cloud.bill" + - "ing.budgets.v1beta1.CustomPeriodB\004\342A\001\001H\000" + - "\032I\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 " + - "\001(\0132\032.google.protobuf.ListValue:\0028\001\"\217\001\n\024" + - "CreditTypesTreatment\022&\n\"CREDIT_TYPES_TRE" + - "ATMENT_UNSPECIFIED\020\000\022\027\n\023INCLUDE_ALL_CRED" + - "ITS\020\001\022\027\n\023EXCLUDE_ALL_CREDITS\020\002\022\035\n\031INCLUD" + - "E_SPECIFIED_CREDITS\020\003B\016\n\014usage_period\"f\n" + - "\014CustomPeriod\022+\n\nstart_date\030\001 \001(\0132\021.goog" + - "le.type.DateB\004\342A\001\002\022)\n\010end_date\030\002 \001(\0132\021.g" + - "oogle.type.DateB\004\342A\001\001*S\n\016CalendarPeriod\022" + - "\037\n\033CALENDAR_PERIOD_UNSPECIFIED\020\000\022\t\n\005MONT" + - "H\020\001\022\013\n\007QUARTER\020\002\022\010\n\004YEAR\020\003Bp\n(com.google" + - ".cloud.billing.budgets.v1beta1P\001ZBcloud." + - "google.com/go/billing/budgets/apiv1beta1" + - "/budgetspb;budgetspbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1beta1_Budget_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Budget_descriptor, - new java.lang.String[] { "Name", "DisplayName", "BudgetFilter", "Amount", "ThresholdRules", "AllUpdatesRule", "Etag", }); - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_BudgetAmount_descriptor, - new java.lang.String[] { "SpecifiedAmount", "LastPeriodAmount", "BudgetAmount", }); - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_LastPeriodAmount_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ThresholdRule_descriptor, - new java.lang.String[] { "ThresholdPercent", "SpendBasis", }); - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_AllUpdatesRule_descriptor, - new java.lang.String[] { "PubsubTopic", "SchemaVersion", "MonitoringNotificationChannels", "DisableDefaultIamRecipients", "EnableProjectLevelRecipients", }); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor, - new java.lang.String[] { "Projects", "ResourceAncestors", "CreditTypes", "CreditTypesTreatment", "Services", "Subaccounts", "Labels", "CalendarPeriod", "CustomPeriod", "UsagePeriod", }); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor = - internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_CustomPeriod_descriptor, - new java.lang.String[] { "StartDate", "EndDate", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java deleted file mode 100644 index 12cdfc30eefe..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java +++ /dev/null @@ -1,179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public final class BudgetServiceOuterClass { - private BudgetServiceOuterClass() {} - 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_budgets_v1beta1_CreateBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/billing/budgets/v1beta1/b" + - "udget_service.proto\022$google.cloud.billin" + - "g.budgets.v1beta1\032\034google/api/annotation" + - "s.proto\032\027google/api/client.proto\032\037google" + - "/api/field_behavior.proto\032\031google/api/re" + - "source.proto\0327google/cloud/billing/budge" + - "ts/v1beta1/budget_model.proto\032\033google/pr" + - "otobuf/empty.proto\032 google/protobuf/fiel" + - "d_mask.proto\"\230\001\n\023CreateBudgetRequest\022=\n\006" + - "parent\030\001 \001(\tB-\342A\001\002\372A&\022$billingbudgets.go" + - "ogleapis.com/Budget\022B\n\006budget\030\002 \001(\0132,.go" + - "ogle.cloud.billing.budgets.v1beta1.Budge" + - "tB\004\342A\001\002\"\220\001\n\023UpdateBudgetRequest\022B\n\006budge" + - "t\030\001 \001(\0132,.google.cloud.billing.budgets.v" + - "1beta1.BudgetB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\013" + - "2\032.google.protobuf.FieldMaskB\004\342A\001\001\"O\n\020Ge" + - "tBudgetRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$b" + - "illingbudgets.googleapis.com/Budget\"\233\001\n\022" + - "ListBudgetsRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002" + - "\372A&\022$billingbudgets.googleapis.com/Budge" + - "t\022\023\n\005scope\030\004 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\002 \001(" + - "\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"m\n\023Lis" + - "tBudgetsResponse\022=\n\007budgets\030\001 \003(\0132,.goog" + - "le.cloud.billing.budgets.v1beta1.Budget\022" + - "\027\n\017next_page_token\030\002 \001(\t\"R\n\023DeleteBudget" + - "Request\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$billingb" + - "udgets.googleapis.com/Budget2\367\007\n\rBudgetS" + - "ervice\022\257\001\n\014CreateBudget\0229.google.cloud.b" + - "illing.budgets.v1beta1.CreateBudgetReque" + - "st\032,.google.cloud.billing.budgets.v1beta" + - "1.Budget\"6\202\323\344\223\0020\"+/v1beta1/{parent=billi" + - "ngAccounts/*}/budgets:\001*\022\266\001\n\014UpdateBudge" + - "t\0229.google.cloud.billing.budgets.v1beta1" + - ".UpdateBudgetRequest\032,.google.cloud.bill" + - "ing.budgets.v1beta1.Budget\"=\202\323\344\223\002722/v1b" + - "eta1/{budget.name=billingAccounts/*/budg" + - "ets/*}:\001*\022\246\001\n\tGetBudget\0226.google.cloud.b" + - "illing.budgets.v1beta1.GetBudgetRequest\032" + - ",.google.cloud.billing.budgets.v1beta1.B" + - "udget\"3\202\323\344\223\002-\022+/v1beta1/{name=billingAcc" + - "ounts/*/budgets/*}\022\267\001\n\013ListBudgets\0228.goo" + - "gle.cloud.billing.budgets.v1beta1.ListBu" + - "dgetsRequest\0329.google.cloud.billing.budg" + - "ets.v1beta1.ListBudgetsResponse\"3\202\323\344\223\002-\022" + - "+/v1beta1/{parent=billingAccounts/*}/bud" + - "gets\022\226\001\n\014DeleteBudget\0229.google.cloud.bil" + - "ling.budgets.v1beta1.DeleteBudgetRequest" + - "\032\026.google.protobuf.Empty\"3\202\323\344\223\002-*+/v1bet" + - "a1/{name=billingAccounts/*/budgets/*}\032\177\312" + - "A\035billingbudgets.googleapis.com\322A\\https:" + - "//www.googleapis.com/auth/cloud-billing," + - "https://www.googleapis.com/auth/cloud-pl" + - "atformBp\n(com.google.cloud.billing.budge" + - "ts.v1beta1P\001ZBcloud.google.com/go/billin" + - "g/budgets/apiv1beta1/budgetspb;budgetspb" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_CreateBudgetRequest_descriptor, - new java.lang.String[] { "Parent", "Budget", }); - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_UpdateBudgetRequest_descriptor, - new java.lang.String[] { "Budget", "UpdateMask", }); - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_GetBudgetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsRequest_descriptor, - new java.lang.String[] { "Parent", "Scope", "PageSize", "PageToken", }); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_ListBudgetsResponse_descriptor, - new java.lang.String[] { "Budgets", "NextPageToken", }); - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_budgets_v1beta1_DeleteBudgetRequest_descriptor, - new java.lang.String[] { "Name", }); - 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.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.cloud.billing.budgets.v1beta1.BudgetModel.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java deleted file mode 100644 index 13e2570d7630..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface CreateBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the billing account to create the budget in. Values
-   * are of the form `billingAccounts/{billingAccountId}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the budget field is set. - */ - boolean hasBudget(); - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The budget. - */ - com.google.cloud.billing.budgets.v1beta1.Budget getBudget(); - /** - *
-   * Required. Budget to create.
-   * 
- * - * .google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuilder(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java deleted file mode 100644 index 39dbfb2b0f50..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface DeleteBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the budget to delete. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java deleted file mode 100644 index dbdcc744a53e..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_service.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface GetBudgetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.GetBudgetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of budget to get. Values are of the form
-   * `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java b/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java deleted file mode 100644 index 78785ce8b259..000000000000 --- a/owl-bot-staging/java-billingbudgets/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/budgets/v1beta1/budget_model.proto - -package com.google.cloud.billing.budgets.v1beta1; - -public interface LastPeriodAmountOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.budgets.v1beta1.LastPeriodAmount) - com.google.protobuf.MessageOrBuilder { -}