diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java index 2a0d4431..8b79fa1d 100644 --- a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java +++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java @@ -59,13 +59,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -781,7 +781,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListBudgetsPagedResponse extends AbstractPagedListResponse< - ListBudgetsRequest, ListBudgetsResponse, Budget, ListBudgetsPage, + ListBudgetsRequest, + ListBudgetsResponse, + Budget, + ListBudgetsPage, ListBudgetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -828,7 +831,10 @@ public ApiFuture createPageAsync( public static class ListBudgetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListBudgetsRequest, ListBudgetsResponse, Budget, ListBudgetsPage, + ListBudgetsRequest, + ListBudgetsResponse, + Budget, + ListBudgetsPage, ListBudgetsFixedSizeCollection> { private ListBudgetsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java index 62054424..acaff4a1 100644 --- a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java +++ b/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; @@ -44,10 +43,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java index a841d868..65474976 100644 --- a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java +++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java @@ -67,10 +67,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java index c4b1eca8..17b1c955 100644 --- a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/GrpcBudgetServiceStub.java +++ b/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/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java index 34a1cf9d..cd549897 100644 --- a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java +++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java @@ -62,13 +62,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -509,7 +509,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListBudgetsPagedResponse extends AbstractPagedListResponse< - ListBudgetsRequest, ListBudgetsResponse, Budget, ListBudgetsPage, + ListBudgetsRequest, + ListBudgetsResponse, + Budget, + ListBudgetsPage, ListBudgetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -556,7 +559,10 @@ public ApiFuture createPageAsync( public static class ListBudgetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListBudgetsRequest, ListBudgetsResponse, Budget, ListBudgetsPage, + ListBudgetsRequest, + ListBudgetsResponse, + Budget, + ListBudgetsPage, ListBudgetsFixedSizeCollection> { private ListBudgetsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java similarity index 96% rename from owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java index dd2e30ad..a99a5370 100644 --- a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java +++ b/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; @@ -43,10 +42,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java index 07208828..f84f87ac 100644 --- a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java +++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java @@ -64,10 +64,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java rename to google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java index 8dc0a94b..6d4ffdc1 100644 --- a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/GrpcBudgetServiceStub.java +++ b/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/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java b/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java rename to google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java b/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java rename to google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/BudgetServiceClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java b/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java rename to google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetService.java diff --git a/owl-bot-staging/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java b/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java rename to google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1/MockBudgetServiceImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java b/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java rename to google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java b/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java rename to google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetService.java diff --git a/owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java b/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java rename to google-cloud-billingbudgets/src/test/java/com/google/cloud/billing/budgets/v1beta1/MockBudgetServiceImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java b/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java similarity index 50% rename from owl-bot-staging/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java rename to grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java index 13283d88..87d9c4a9 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java +++ b/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.billing.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,226 +36,302 @@ 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.
    * 
*/ - public static abstract class BudgetServiceImplBase implements io.grpc.BindableService { + public abstract static class BudgetServiceImplBase implements io.grpc.BindableService { /** + * + * *
      * 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.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 @@ 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.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 @@ 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.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,94 +374,106 @@ 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBudgetsMethod(), responseObserver); + public 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.
      * 
*/ - 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.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBudgetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBudgetMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.CreateBudgetRequest, - com.google.cloud.billing.budgets.v1.Budget>( - this, 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>(this, 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>( - this, 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>(this, 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>( - this, 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>(this, 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>( - this, 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>( + this, METHODID_LIST_BUDGETS))) .addMethod( - getDeleteBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_BUDGET))) + getDeleteBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_BUDGET))) .build(); } } /** + * + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
    * 
*/ - public static final class BudgetServiceStub extends io.grpc.stub.AbstractAsyncStub { - private BudgetServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BudgetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + 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
@@ -369,13 +481,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
@@ -384,13 +501,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
@@ -399,33 +519,44 @@ 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); } } /** + * + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
    * 
*/ - public static final class BudgetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BudgetServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BudgetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BudgetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -436,18 +567,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
@@ -455,12 +591,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
@@ -469,12 +608,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
@@ -483,31 +625,37 @@ 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); } } /** + * + * *
    * BudgetService stores Cloud Billing budgets, which define a
    * budget plan and rules to execute as we track spend against that plan.
    * 
*/ - public static final class BudgetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private BudgetServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BudgetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BudgetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -518,19 +666,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
@@ -538,13 +691,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
@@ -553,13 +709,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
@@ -568,19 +727,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); } @@ -592,11 +754,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 BudgetServiceImplBase serviceImpl; private final int methodId; @@ -610,23 +772,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: @@ -645,8 +816,9 @@ public io.grpc.stub.StreamObserver invoke( } } - 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 @@ -688,14 +860,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/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java b/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java new file mode 100644 index 00000000..09d6b6fa --- /dev/null +++ b/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java @@ -0,0 +1,887 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.billing.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.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/billing/budgets/v1beta1/budget_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BudgetServiceGrpc { + + 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; + + @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; + 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(); + } + } + } + return getCreateBudgetMethod; + } + + 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< + 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(); + } + } + } + return getUpdateBudgetMethod; + } + + 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< + 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(); + } + } + } + return getGetBudgetMethod; + } + + 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< + 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(); + } + } + } + return getListBudgetsMethod; + } + + 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< + 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(); + } + } + } + return getDeleteBudgetMethod; + } + + /** 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); + } + }; + 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) { + 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); + } + }; + 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) { + 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); + } + }; + 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.
+   * 
+ */ + public abstract static class BudgetServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * 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) { + 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
+     * aren't available on this API. Budget fields that are not exposed in
+     * 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) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBudgetMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a budget.
+     * WARNING: There are some fields exposed on the Google Cloud Console that
+     * aren't available on this API. When reading from the API, you will not
+     * see these fields in the return value, though they may have been set
+     * in the Cloud Console.
+     * 
+ */ + public 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
+     * aren't available on this API. When reading from the API, you will not
+     * see these fields in the return value, though they may have been set
+     * in the Cloud Console.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteBudget( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBudgetMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, 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>( + this, 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>(this, 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>( + this, METHODID_LIST_BUDGETS))) + .addMethod( + getDeleteBudgetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_BUDGET))) + .build(); + } + } + + /** + * + * + *
+   * BudgetService stores Cloud Billing budgets, which define a
+   * budget plan and rules to execute as we track spend against that plan.
+   * 
+ */ + public static final class BudgetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + 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) { + 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + 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
+     * aren't available on this API. Budget fields that are not exposed in
+     * 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a budget.
+     * WARNING: There are some fields exposed on the Google Cloud Console that
+     * aren't available on this API. When reading from the API, you will not
+     * see these fields in the return value, though they may have been set
+     * in the Cloud Console.
+     * 
+ */ + 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
+     * aren't available on this API. When reading from the API, you will not
+     * see these fields in the return value, though they may have been set
+     * in the Cloud Console.
+     * 
+ */ + 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); + } + + /** + * + * + *
+     * Deletes a budget. Returns successfully if already deleted.
+     * 
+ */ + 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); + } + } + + /** + * + * + *
+   * BudgetService stores Cloud Billing budgets, which define a
+   * budget plan and rules to execute as we track spend against that plan.
+   * 
+ */ + public static final class BudgetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BudgetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BudgetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BudgetServiceBlockingStub(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 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
+     * aren't available on this API. Budget fields that are not exposed in
+     * 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) { + 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
+     * aren't available on this API. When reading from the API, you will not
+     * see these fields in the return value, though they may have been set
+     * in the Cloud Console.
+     * 
+ */ + 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
+     * aren't available on this API. When reading from the API, you will not
+     * see these fields in the return value, though they may have been set
+     * in the Cloud Console.
+     * 
+ */ + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * BudgetService stores Cloud Billing budgets, which define a
+   * budget plan and rules to execute as we track spend against that plan.
+   * 
+ */ + public static final class BudgetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BudgetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BudgetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BudgetServiceFutureStub(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 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
+     * aren't available on this API. Budget fields that are not exposed in
+     * 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) { + 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
+     * aren't available on this API. When reading from the API, you will not
+     * see these fields in the return value, though they may have been set
+     * 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) { + 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
+     * aren't available on this API. When reading from the API, you will not
+     * see these fields in the return value, though they may have been set
+     * 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) { + 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) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_BUDGET = 0; + private static final int METHODID_UPDATE_BUDGET = 1; + private static final int METHODID_GET_BUDGET = 2; + 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 final BudgetServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BudgetServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_BUDGET: + 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); + break; + case METHODID_GET_BUDGET: + 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); + break; + case METHODID_DELETE_BUDGET: + serviceImpl.deleteBudget( + (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class BudgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BudgetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BudgetService"); + } + } + + private static final class BudgetServiceFileDescriptorSupplier + extends BudgetServiceBaseDescriptorSupplier { + BudgetServiceFileDescriptorSupplier() {} + } + + private static final class BudgetServiceMethodDescriptorSupplier + extends BudgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BudgetServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (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(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java b/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java deleted file mode 100644 index 81803384..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java +++ /dev/null @@ -1,195 +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\"\317\003\n\006Budget\022\021\n\004n" + - "ame\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022C\n\r" + - "budget_filter\030\003 \001(\0132\'.google.cloud.billi" + - "ng.budgets.v1.FilterB\003\340A\001\022B\n\006amount\030\004 \001(" + - "\0132-.google.cloud.billing.budgets.v1.Budg" + - "etAmountB\003\340A\002\022L\n\017threshold_rules\030\005 \003(\0132." + - ".google.cloud.billing.budgets.v1.Thresho" + - "ldRuleB\003\340A\001\022S\n\022notifications_rule\030\006 \001(\0132" + - "2.google.cloud.billing.budgets.v1.Notifi" + - "cationsRuleB\003\340A\001\022\021\n\004etag\030\007 \001(\tB\003\340A\001:]\352AZ" + - "\n$billingbudgets.googleapis.com/Budget\0222" + - "billingAccounts/{billing_account}/budget" + - "s/{budget}\"\240\001\n\014BudgetAmount\022.\n\020specified" + - "_amount\030\001 \001(\0132\022.google.type.MoneyH\000\022O\n\022l" + - "ast_period_amount\030\002 \001(\01321.google.cloud.b" + - "illing.budgets.v1.LastPeriodAmountH\000B\017\n\r" + - "budget_amount\"\022\n\020LastPeriodAmount\"\310\001\n\rTh" + - "resholdRule\022\036\n\021threshold_percent\030\001 \001(\001B\003" + - "\340A\002\022N\n\013spend_basis\030\002 \001(\01624.google.cloud." + - "billing.budgets.v1.ThresholdRule.BasisB\003" + - "\340A\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021\n\rC" + - "URRENT_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\"\247\001\n" + - "\021NotificationsRule\022\031\n\014pubsub_topic\030\001 \001(\t" + - "B\003\340A\001\022\033\n\016schema_version\030\002 \001(\tB\003\340A\001\022-\n mo" + - "nitoring_notification_channels\030\003 \003(\tB\003\340A" + - "\001\022+\n\036disable_default_iam_recipients\030\004 \001(" + - "\010B\003\340A\001\"\243\005\n\006Filter\022\025\n\010projects\030\001 \003(\tB\003\340A\001" + - "\022\031\n\014credit_types\030\007 \003(\tB\003\340A\001\022a\n\026credit_ty" + - "pes_treatment\030\004 \001(\0162<.google.cloud.billi" + - "ng.budgets.v1.Filter.CreditTypesTreatmen" + - "tB\003\340A\001\022\025\n\010services\030\003 \003(\tB\003\340A\001\022\030\n\013subacco" + - "unts\030\005 \003(\tB\003\340A\001\022H\n\006labels\030\006 \003(\01323.google" + - ".cloud.billing.budgets.v1.Filter.LabelsE" + - "ntryB\003\340A\001\022O\n\017calendar_period\030\010 \001(\0162/.goo" + - "gle.cloud.billing.budgets.v1.CalendarPer" + - "iodB\003\340A\001H\000\022K\n\rcustom_period\030\t \001(\0132-.goog" + - "le.cloud.billing.budgets.v1.CustomPeriod" + - "B\003\340A\001H\000\032I\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005v" + - "alue\030\002 \001(\0132\032.google.protobuf.ListValue:\002" + - "8\001\"\217\001\n\024CreditTypesTreatment\022&\n\"CREDIT_TY" + - "PES_TREATMENT_UNSPECIFIED\020\000\022\027\n\023INCLUDE_A" + - "LL_CREDITS\020\001\022\027\n\023EXCLUDE_ALL_CREDITS\020\002\022\035\n" + - "\031INCLUDE_SPECIFIED_CREDITS\020\003B\016\n\014usage_pe" + - "riod\"d\n\014CustomPeriod\022*\n\nstart_date\030\001 \001(\013" + - "2\021.google.type.DateB\003\340A\002\022(\n\010end_date\030\002 \001" + - "(\0132\021.google.type.DateB\003\340A\001*S\n\016CalendarPe" + - "riod\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\003B\201\001\n#com." + - "google.cloud.billing.budgets.v1B\020BudgetM" + - "odelProtoP\001ZFgoogle.golang.org/genproto/" + - "googleapis/cloud/billing/budgets/v1;budg" + - "etsb\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", "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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java b/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java deleted file mode 100644 index 2e0e0cc2..00000000 --- a/owl-bot-staging/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\"\221\001" + - "\n\023CreateBudgetRequest\022<\n\006parent\030\001 \001(\tB,\340" + - "A\002\372A&\022$billingbudgets.googleapis.com/Bud" + - "get\022<\n\006budget\030\002 \001(\0132\'.google.cloud.billi" + - "ng.budgets.v1.BudgetB\003\340A\002\"\211\001\n\023UpdateBudg" + - "etRequest\022<\n\006budget\030\001 \001(\0132\'.google.cloud" + - ".billing.budgets.v1.BudgetB\003\340A\002\0224\n\013updat" + - "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + - "B\003\340A\001\"N\n\020GetBudgetRequest\022:\n\004name\030\001 \001(\tB" + - ",\340A\002\372A&\n$billingbudgets.googleapis.com/B" + - "udget\"\203\001\n\022ListBudgetsRequest\022<\n\006parent\030\001" + - " \001(\tB,\340A\002\372A&\022$billingbudgets.googleapis." + - "com/Budget\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" + - "ge_token\030\003 \001(\tB\003\340A\001\"h\n\023ListBudgetsRespon" + - "se\0228\n\007budgets\030\001 \003(\0132\'.google.cloud.billi" + - "ng.budgets.v1.Budget\022\027\n\017next_page_token\030" + - "\002 \001(\t\"Q\n\023DeleteBudgetRequest\022:\n\004name\030\001 \001" + - "(\tB,\340A\002\372A&\n$billingbudgets.googleapis.co" + - "m/Budget2\367\007\n\rBudgetService\022\265\001\n\014CreateBud" + - "get\0224.google.cloud.billing.budgets.v1.Cr" + - "eateBudgetRequest\032\'.google.cloud.billing" + - ".budgets.v1.Budget\"F\202\323\344\223\0020\"&/v1/{parent=" + - "billingAccounts/*}/budgets:\006budget\332A\rpar" + - "ent,budget\022\301\001\n\014UpdateBudget\0224.google.clo" + - "ud.billing.budgets.v1.UpdateBudgetReques" + - "t\032\'.google.cloud.billing.budgets.v1.Budg" + - "et\"R\202\323\344\223\00272-/v1/{budget.name=billingAcco" + - "unts/*/budgets/*}:\006budget\332A\022budget,updat" + - "e_mask\022\236\001\n\tGetBudget\0221.google.cloud.bill" + - "ing.budgets.v1.GetBudgetRequest\032\'.google" + - ".cloud.billing.budgets.v1.Budget\"5\202\323\344\223\002(" + - "\022&/v1/{name=billingAccounts/*/budgets/*}" + - "\332A\004name\022\261\001\n\013ListBudgets\0223.google.cloud.b" + - "illing.budgets.v1.ListBudgetsRequest\0324.g" + - "oogle.cloud.billing.budgets.v1.ListBudge" + - "tsResponse\"7\202\323\344\223\002(\022&/v1/{parent=billingA" + - "ccounts/*}/budgets\332A\006parent\022\223\001\n\014DeleteBu" + - "dget\0224.google.cloud.billing.budgets.v1.D" + - "eleteBudgetRequest\032\026.google.protobuf.Emp" + - "ty\"5\202\323\344\223\002(*&/v1/{name=billingAccounts/*/" + - "budgets/*}\332A\004name\032\177\312A\035billingbudgets.goo" + - "gleapis.com\322A\\https://www.googleapis.com" + - "/auth/cloud-billing,https://www.googleap" + - "is.com/auth/cloud-platformB\203\001\n#com.googl" + - "e.cloud.billing.budgets.v1B\022BudgetServic" + - "eProtoP\001ZFgoogle.golang.org/genproto/goo" + - "gleapis/cloud/billing/budgets/v1;budgets" + - "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.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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java deleted file mode 100644 index 03e39726..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java deleted file mode 100644 index 3d3e4a03..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java deleted file mode 100644 index 5a7d4e94..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java deleted file mode 100644 index e2b52259..00000000 --- a/owl-bot-staging/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/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java deleted file mode 100644 index be7543d2..00000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java +++ /dev/null @@ -1,704 +0,0 @@ -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.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/billing/budgets/v1beta1/budget_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BudgetServiceGrpc { - - 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; - - @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; - 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(); - } - } - } - return getCreateBudgetMethod; - } - - 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 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(); - } - } - } - return getUpdateBudgetMethod; - } - - 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 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(); - } - } - } - return getGetBudgetMethod; - } - - 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 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(); - } - } - } - return getListBudgetsMethod; - } - - 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 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(); - } - } - } - return getDeleteBudgetMethod; - } - - /** - * 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); - } - }; - 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) { - 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); - } - }; - 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) { - 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); - } - }; - 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.
-   * 
- */ - public static abstract class BudgetServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * 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) { - 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
-     * aren't available on this API. Budget fields that are not exposed in
-     * 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBudgetMethod(), responseObserver); - } - - /** - *
-     * Returns a budget.
-     * WARNING: There are some fields exposed on the Google Cloud Console that
-     * aren't available on this API. When reading from the API, you will not
-     * see these fields in the return value, though they may have been set
-     * in the Cloud Console.
-     * 
- */ - public 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
-     * aren't available on this API. When reading from the API, you will not
-     * see these fields in the return value, though they may have been set
-     * in the Cloud Console.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteBudget(com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBudgetMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_LIST_BUDGETS))) - .addMethod( - getDeleteBudgetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_BUDGET))) - .build(); - } - } - - /** - *
-   * BudgetService stores Cloud Billing budgets, which define a
-   * budget plan and rules to execute as we track spend against that plan.
-   * 
- */ - public static final class BudgetServiceStub extends io.grpc.stub.AbstractAsyncStub { - 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) { - 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - 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
-     * aren't available on this API. Budget fields that are not exposed in
-     * 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBudgetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a budget.
-     * WARNING: There are some fields exposed on the Google Cloud Console that
-     * aren't available on this API. When reading from the API, you will not
-     * see these fields in the return value, though they may have been set
-     * in the Cloud Console.
-     * 
- */ - 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
-     * aren't available on this API. When reading from the API, you will not
-     * see these fields in the return value, though they may have been set
-     * in the Cloud Console.
-     * 
- */ - 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); - } - - /** - *
-     * Deletes a budget. Returns successfully if already deleted.
-     * 
- */ - 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); - } - } - - /** - *
-   * BudgetService stores Cloud Billing budgets, which define a
-   * budget plan and rules to execute as we track spend against that plan.
-   * 
- */ - public static final class BudgetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BudgetServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BudgetServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BudgetServiceBlockingStub(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 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
-     * aren't available on this API. Budget fields that are not exposed in
-     * 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) { - 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
-     * aren't available on this API. When reading from the API, you will not
-     * see these fields in the return value, though they may have been set
-     * in the Cloud Console.
-     * 
- */ - 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
-     * aren't available on this API. When reading from the API, you will not
-     * see these fields in the return value, though they may have been set
-     * in the Cloud Console.
-     * 
- */ - 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) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); - } - } - - /** - *
-   * BudgetService stores Cloud Billing budgets, which define a
-   * budget plan and rules to execute as we track spend against that plan.
-   * 
- */ - public static final class BudgetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private BudgetServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BudgetServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BudgetServiceFutureStub(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 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
-     * aren't available on this API. Budget fields that are not exposed in
-     * this API will not be changed by this method.
-     * 
- */ - 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
-     * aren't available on this API. When reading from the API, you will not
-     * see these fields in the return value, though they may have been set
-     * in the Cloud Console.
-     * 
- */ - 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
-     * aren't available on this API. When reading from the API, you will not
-     * see these fields in the return value, though they may have been set
-     * in the Cloud Console.
-     * 
- */ - 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) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBudgetMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_BUDGET = 0; - private static final int METHODID_UPDATE_BUDGET = 1; - private static final int METHODID_GET_BUDGET = 2; - 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 final BudgetServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BudgetServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_BUDGET: - 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); - break; - case METHODID_GET_BUDGET: - 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); - break; - case METHODID_DELETE_BUDGET: - serviceImpl.deleteBudget((com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class BudgetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BudgetServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.billing.budgets.v1beta1.BudgetServiceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BudgetService"); - } - } - - private static final class BudgetServiceFileDescriptorSupplier - extends BudgetServiceBaseDescriptorSupplier { - BudgetServiceFileDescriptorSupplier() {} - } - - private static final class BudgetServiceMethodDescriptorSupplier - extends BudgetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BudgetServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (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(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java b/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java deleted file mode 100644 index c861488a..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java +++ /dev/null @@ -1,196 +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\"\336\003\n\006B" + - "udget\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name" + - "\030\002 \001(\t\022H\n\rbudget_filter\030\003 \001(\0132,.google.c" + - "loud.billing.budgets.v1beta1.FilterB\003\340A\001" + - "\022G\n\006amount\030\004 \001(\01322.google.cloud.billing." + - "budgets.v1beta1.BudgetAmountB\003\340A\002\022Q\n\017thr" + - "eshold_rules\030\005 \003(\01323.google.cloud.billin" + - "g.budgets.v1beta1.ThresholdRuleB\003\340A\001\022S\n\020" + - "all_updates_rule\030\006 \001(\01324.google.cloud.bi" + - "lling.budgets.v1beta1.AllUpdatesRuleB\003\340A" + - "\001\022\021\n\004etag\030\007 \001(\tB\003\340A\001:]\352AZ\n$billingbudget" + - "s.googleapis.com/Budget\0222billingAccounts" + - "/{billing_account}/budgets/{budget}\"\245\001\n\014" + - "BudgetAmount\022.\n\020specified_amount\030\001 \001(\0132\022" + - ".google.type.MoneyH\000\022T\n\022last_period_amou" + - "nt\030\002 \001(\01326.google.cloud.billing.budgets." + - "v1beta1.LastPeriodAmountH\000B\017\n\rbudget_amo" + - "unt\"\022\n\020LastPeriodAmount\"\315\001\n\rThresholdRul" + - "e\022\036\n\021threshold_percent\030\001 \001(\001B\003\340A\002\022S\n\013spe" + - "nd_basis\030\002 \001(\01629.google.cloud.billing.bu" + - "dgets.v1beta1.ThresholdRule.BasisB\003\340A\001\"G" + - "\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021\n\rCURREN" + - "T_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\"\244\001\n\016AllU" + - "pdatesRule\022\031\n\014pubsub_topic\030\001 \001(\tB\003\340A\001\022\033\n" + - "\016schema_version\030\002 \001(\tB\003\340A\001\022-\n monitoring" + - "_notification_channels\030\003 \003(\tB\003\340A\001\022+\n\036dis" + - "able_default_iam_recipients\030\004 \001(\010B\003\340A\001\"\267" + - "\005\n\006Filter\022\025\n\010projects\030\001 \003(\tB\003\340A\001\022\031\n\014cred" + - "it_types\030\007 \003(\tB\003\340A\001\022f\n\026credit_types_trea" + - "tment\030\004 \001(\0162A.google.cloud.billing.budge" + - "ts.v1beta1.Filter.CreditTypesTreatmentB\003" + - "\340A\001\022\025\n\010services\030\003 \003(\tB\003\340A\001\022\030\n\013subaccount" + - "s\030\005 \003(\tB\003\340A\001\022M\n\006labels\030\006 \003(\01328.google.cl" + - "oud.billing.budgets.v1beta1.Filter.Label" + - "sEntryB\003\340A\001\022T\n\017calendar_period\030\010 \001(\01624.g" + - "oogle.cloud.billing.budgets.v1beta1.Cale" + - "ndarPeriodB\003\340A\001H\000\022P\n\rcustom_period\030\t \001(\013" + - "22.google.cloud.billing.budgets.v1beta1." + - "CustomPeriodB\003\340A\001H\000\032I\n\013LabelsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.protobuf" + - ".ListValue:\0028\001\"\217\001\n\024CreditTypesTreatment\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_SPECIFIED_CREDITS\020\003" + - "B\016\n\014usage_period\"d\n\014CustomPeriod\022*\n\nstar" + - "t_date\030\001 \001(\0132\021.google.type.DateB\003\340A\002\022(\n\010" + - "end_date\030\002 \001(\0132\021.google.type.DateB\003\340A\001*S" + - "\n\016CalendarPeriod\022\037\n\033CALENDAR_PERIOD_UNSP" + - "ECIFIED\020\000\022\t\n\005MONTH\020\001\022\013\n\007QUARTER\020\002\022\010\n\004YEA" + - "R\020\003By\n(com.google.cloud.billing.budgets." + - "v1beta1P\001ZKgoogle.golang.org/genproto/go" + - "ogleapis/cloud/billing/budgets/v1beta1;b" + - "udgetsb\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", "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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java deleted file mode 100644 index 89933981..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java +++ /dev/null @@ -1,178 +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\"\226\001\n\023CreateBudgetRequest\022<\n\006" + - "parent\030\001 \001(\tB,\340A\002\372A&\022$billingbudgets.goo" + - "gleapis.com/Budget\022A\n\006budget\030\002 \001(\0132,.goo" + - "gle.cloud.billing.budgets.v1beta1.Budget" + - "B\003\340A\002\"\216\001\n\023UpdateBudgetRequest\022A\n\006budget\030" + - "\001 \001(\0132,.google.cloud.billing.budgets.v1b" + - "eta1.BudgetB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032." + - "google.protobuf.FieldMaskB\003\340A\001\"N\n\020GetBud" + - "getRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$billin" + - "gbudgets.googleapis.com/Budget\"\203\001\n\022ListB" + - "udgetsRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$b" + - "illingbudgets.googleapis.com/Budget\022\026\n\tp" + - "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" + - "\003\340A\001\"m\n\023ListBudgetsResponse\022=\n\007budgets\030\001" + - " \003(\0132,.google.cloud.billing.budgets.v1be" + - "ta1.Budget\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\023D" + - "eleteBudgetRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&" + - "\n$billingbudgets.googleapis.com/Budget2\367" + - "\007\n\rBudgetService\022\257\001\n\014CreateBudget\0229.goog" + - "le.cloud.billing.budgets.v1beta1.CreateB" + - "udgetRequest\032,.google.cloud.billing.budg" + - "ets.v1beta1.Budget\"6\202\323\344\223\0020\"+/v1beta1/{pa" + - "rent=billingAccounts/*}/budgets:\001*\022\266\001\n\014U" + - "pdateBudget\0229.google.cloud.billing.budge" + - "ts.v1beta1.UpdateBudgetRequest\032,.google." + - "cloud.billing.budgets.v1beta1.Budget\"=\202\323" + - "\344\223\002722/v1beta1/{budget.name=billingAccou" + - "nts/*/budgets/*}:\001*\022\246\001\n\tGetBudget\0226.goog" + - "le.cloud.billing.budgets.v1beta1.GetBudg" + - "etRequest\032,.google.cloud.billing.budgets" + - ".v1beta1.Budget\"3\202\323\344\223\002-\022+/v1beta1/{name=" + - "billingAccounts/*/budgets/*}\022\267\001\n\013ListBud" + - "gets\0228.google.cloud.billing.budgets.v1be" + - "ta1.ListBudgetsRequest\0329.google.cloud.bi" + - "lling.budgets.v1beta1.ListBudgetsRespons" + - "e\"3\202\323\344\223\002-\022+/v1beta1/{parent=billingAccou" + - "nts/*}/budgets\022\226\001\n\014DeleteBudget\0229.google" + - ".cloud.billing.budgets.v1beta1.DeleteBud" + - "getRequest\032\026.google.protobuf.Empty\"3\202\323\344\223" + - "\002-*+/v1beta1/{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-platformBy\n(com.google.cloud.bil" + - "ling.budgets.v1beta1P\001ZKgoogle.golang.or" + - "g/genproto/googleapis/cloud/billing/budg" + - "ets/v1beta1;budgetsb\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/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java deleted file mode 100644 index 13e2570d..00000000 --- a/owl-bot-staging/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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java deleted file mode 100644 index 39dbfb2b..00000000 --- a/owl-bot-staging/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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java deleted file mode 100644 index dbdcc744..00000000 --- a/owl-bot-staging/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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java deleted file mode 100644 index 78785ce8..00000000 --- a/owl-bot-staging/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 { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java index d958ec51..4a787204 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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,16 +50,15 @@ private Budget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Budget();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Budget(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,79 +78,96 @@ private Budget(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.billing.budgets.v1.Filter.Builder subBuilder = null;
-            if (budgetFilter_ != null) {
-              subBuilder = budgetFilter_.toBuilder();
-            }
-            budgetFilter_ = input.readMessage(com.google.cloud.billing.budgets.v1.Filter.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(budgetFilter_);
-              budgetFilter_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.billing.budgets.v1.BudgetAmount.Builder subBuilder = null;
-            if (amount_ != null) {
-              subBuilder = amount_.toBuilder();
+              displayName_ = s;
+              break;
             }
-            amount_ = input.readMessage(com.google.cloud.billing.budgets.v1.BudgetAmount.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(amount_);
-              amount_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.cloud.billing.budgets.v1.Filter.Builder subBuilder = null;
+              if (budgetFilter_ != null) {
+                subBuilder = budgetFilter_.toBuilder();
+              }
+              budgetFilter_ =
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1.Filter.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(budgetFilter_);
+                budgetFilter_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              thresholdRules_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 34:
+            {
+              com.google.cloud.billing.budgets.v1.BudgetAmount.Builder subBuilder = null;
+              if (amount_ != null) {
+                subBuilder = amount_.toBuilder();
+              }
+              amount_ =
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1.BudgetAmount.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(amount_);
+                amount_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            thresholdRules_.add(
-                input.readMessage(com.google.cloud.billing.budgets.v1.ThresholdRule.parser(), extensionRegistry));
-            break;
-          }
-          case 50: {
-            com.google.cloud.billing.budgets.v1.NotificationsRule.Builder subBuilder = null;
-            if (notificationsRule_ != null) {
-              subBuilder = notificationsRule_.toBuilder();
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                thresholdRules_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              thresholdRules_.add(
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1.ThresholdRule.parser(),
+                      extensionRegistry));
+              break;
             }
-            notificationsRule_ = input.readMessage(com.google.cloud.billing.budgets.v1.NotificationsRule.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(notificationsRule_);
-              notificationsRule_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.cloud.billing.budgets.v1.NotificationsRule.Builder subBuilder = null;
+              if (notificationsRule_ != null) {
+                subBuilder = notificationsRule_.toBuilder();
+              }
+              notificationsRule_ =
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1.NotificationsRule.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(notificationsRule_);
+                notificationsRule_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            etag_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              etag_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -141,8 +175,7 @@ private Budget(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         thresholdRules_ = java.util.Collections.unmodifiableList(thresholdRules_);
@@ -151,22 +184,27 @@ private Budget(
       makeExtensionsImmutable();
     }
   }
-  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;
   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
@@ -174,6 +212,7 @@ private Budget(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -182,14 +221,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
@@ -197,16 +237,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 { @@ -217,12 +256,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; 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 @@ -231,30 +273,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 { @@ -265,13 +307,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 @@ -279,27 +326,38 @@ 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() { @@ -309,11 +367,16 @@ public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuil 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 @@ -321,23 +384,34 @@ 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() { @@ -347,61 +421,81 @@ public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuil public static final int THRESHOLD_RULES_FIELD_NUMBER = 5; private java.util.List thresholdRules_; /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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( @@ -412,12 +506,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 @@ -425,34 +524,48 @@ 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() { + public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder + getNotificationsRuleOrBuilder() { return getNotificationsRule(); } public static final int ETAG_FIELD_NUMBER = 7; private volatile java.lang.Object etag_; /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -460,6 +573,7 @@ public com.google.cloud.billing.budgets.v1.NotificationsRuleOrBuilder getNotific
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -468,14 +582,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.
@@ -483,16 +598,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 { @@ -501,6 +615,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -512,8 +627,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_); } @@ -551,20 +665,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_); @@ -577,36 +687,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -645,97 +749,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,
@@ -746,21 +857,23 @@ 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()
@@ -768,17 +881,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getThresholdRulesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -816,9 +929,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
@@ -837,7 +950,8 @@ 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);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -874,38 +988,39 @@ public com.google.cloud.billing.budgets.v1.Budget 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.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;
@@ -946,9 +1061,10 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.Budget other) {
             thresholdRulesBuilder_ = null;
             thresholdRules_ = other.thresholdRules_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            thresholdRulesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getThresholdRulesFieldBuilder() : null;
+            thresholdRulesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getThresholdRulesFieldBuilder()
+                    : null;
           } else {
             thresholdRulesBuilder_.addAllMessages(other.thresholdRules_);
           }
@@ -989,10 +1105,13 @@ public Builder mergeFrom(
       }
       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
@@ -1000,13 +1119,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; @@ -1015,6 +1134,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
@@ -1022,15 +1143,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 { @@ -1038,6 +1158,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
@@ -1045,20 +1167,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1066,15 +1190,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1082,16 +1209,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1099,19 +1226,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; @@ -1120,21 +1249,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 { @@ -1142,57 +1272,64 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; 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() { - + displayName_ = getDefaultInstance().getDisplayName(); 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; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1200,45 +1337,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 budgetFilterBuilder_ != null || 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. */ 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) { @@ -1254,13 +1410,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) { @@ -1274,19 +1434,25 @@ 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 (budgetFilter_ != null) { budgetFilter_ = - com.google.cloud.billing.budgets.v1.Filter.newBuilder(budgetFilter_).mergeFrom(value).buildPartial(); + com.google.cloud.billing.budgets.v1.Filter.newBuilder(budgetFilter_) + .mergeFrom(value) + .buildPartial(); } else { budgetFilter_ = value; } @@ -1298,13 +1464,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() { if (budgetFilterBuilder_ == null) { @@ -1318,54 +1488,70 @@ 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() { - + onChanged(); 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_; @@ -1373,39 +1559,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 amountBuilder_ != null || 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. */ 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) { @@ -1421,11 +1626,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) { @@ -1439,17 +1648,23 @@ 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 (amount_ != null) { amount_ = - com.google.cloud.billing.budgets.v1.BudgetAmount.newBuilder(amount_).mergeFrom(value).buildPartial(); + com.google.cloud.billing.budgets.v1.BudgetAmount.newBuilder(amount_) + .mergeFrom(value) + .buildPartial(); } else { amount_ = value; } @@ -1461,11 +1676,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() { if (amountBuilder_ == null) { @@ -1479,74 +1698,101 @@ 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() { - + onChanged(); 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_ & 0x00000001) != 0)) { - thresholdRules_ = new java.util.ArrayList(thresholdRules_); + thresholdRules_ = + new java.util.ArrayList( + thresholdRules_); bitField0_ |= 0x00000001; - } + } } 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.
      * 
* - * 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 { @@ -1554,12 +1800,16 @@ public java.util.List getThre } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
      * 
* - * 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) { @@ -1569,12 +1819,16 @@ public int getThresholdRulesCount() { } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
      * 
* - * 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) { @@ -1584,12 +1838,16 @@ 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.
      * 
* - * 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) { @@ -1606,12 +1864,16 @@ public Builder setThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
      * 
* - * 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) { @@ -1625,12 +1887,16 @@ public Builder setThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
      * 
* - * 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) { @@ -1646,12 +1912,16 @@ 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.
      * 
* - * 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) { @@ -1668,12 +1938,16 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
      * 
* - * 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) { @@ -1687,12 +1961,16 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
      * 
* - * 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) { @@ -1706,19 +1984,22 @@ public Builder addThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
      * 
* - * 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); @@ -1726,12 +2007,16 @@ public Builder addAllThresholdRules( return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
      * 
* - * 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) { @@ -1744,12 +2029,16 @@ public Builder clearThresholdRules() { return this; } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
      * 
* - * 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) { @@ -1762,42 +2051,55 @@ 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.
      * 
* - * 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.
      * 
* - * 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.
      * 
* - * 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 { @@ -1805,48 +2107,67 @@ 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.
      * 
* - * 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.
      * 
* - * 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.
      * 
* - * 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_ & 0x00000001) != 0), getParentForChildren(), @@ -1858,44 +2179,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 notificationsRuleBuilder_ != null || 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. */ 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(); @@ -1909,12 +2250,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) { @@ -1928,18 +2273,25 @@ 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 (notificationsRule_ != null) { notificationsRule_ = - com.google.cloud.billing.budgets.v1.NotificationsRule.newBuilder(notificationsRule_).mergeFrom(value).buildPartial(); + com.google.cloud.billing.budgets.v1.NotificationsRule.newBuilder(notificationsRule_) + .mergeFrom(value) + .buildPartial(); } else { notificationsRule_ = value; } @@ -1951,12 +2303,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() { if (notificationsRuleBuilder_ == null) { @@ -1970,51 +2326,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() { + 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_; @@ -2022,6 +2396,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.
@@ -2029,13 +2405,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; @@ -2044,6 +2420,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2051,15 +2429,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 { @@ -2067,6 +2444,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2074,20 +2453,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) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2095,15 +2476,18 @@ public Builder setEtag(
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2111,23 +2495,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) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2137,12 +2521,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(); } @@ -2151,16 +2535,16 @@ 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 { - return new Budget(input, extensionRegistry); - } - }; + 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 { + return new Budget(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2175,6 +2559,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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java index 7bd8af57..df8ef554 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BudgetAmount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,41 +68,47 @@ private BudgetAmount( case 0: done = true; break; - case 10: { - com.google.type.Money.Builder subBuilder = null; - if (budgetAmountCase_ == 1) { - subBuilder = ((com.google.type.Money) budgetAmount_).toBuilder(); + case 10: + { + com.google.type.Money.Builder subBuilder = null; + if (budgetAmountCase_ == 1) { + subBuilder = ((com.google.type.Money) budgetAmount_).toBuilder(); + } + budgetAmount_ = input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.Money) budgetAmount_); + budgetAmount_ = subBuilder.buildPartial(); + } + budgetAmountCase_ = 1; + break; } - budgetAmount_ = - input.readMessage(com.google.type.Money.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.type.Money) budgetAmount_); - budgetAmount_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder subBuilder = null; + if (budgetAmountCase_ == 2) { + subBuilder = + ((com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_) + .toBuilder(); + } + budgetAmount_ = + input.readMessage( + com.google.cloud.billing.budgets.v1.LastPeriodAmount.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_); + budgetAmount_ = subBuilder.buildPartial(); + } + budgetAmountCase_ = 2; + break; } - budgetAmountCase_ = 1; - break; - } - case 18: { - com.google.cloud.billing.budgets.v1.LastPeriodAmount.Builder subBuilder = null; - if (budgetAmountCase_ == 2) { - subBuilder = ((com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_).toBuilder(); - } - budgetAmount_ = - input.readMessage(com.google.cloud.billing.budgets.v1.LastPeriodAmount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.billing.budgets.v1.LastPeriodAmount) budgetAmount_); - budgetAmount_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - budgetAmountCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,35 +116,40 @@ private BudgetAmount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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; 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; } @@ -138,25 +165,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
@@ -166,6 +198,7 @@ public int getNumber() {
    * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -173,6 +206,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
@@ -182,16 +217,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
@@ -205,13 +243,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
@@ -221,6 +261,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 @@ -228,6 +269,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
@@ -237,16 +280,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
@@ -258,14 +304,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;
@@ -277,8 +325,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_);
     }
@@ -295,12 +342,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -310,22 +359,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.billing.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:
@@ -358,118 +406,127 @@ 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() @@ -477,16 +534,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +552,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 @@ -517,7 +573,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); + com.google.cloud.billing.budgets.v1.BudgetAmount result = + new com.google.cloud.billing.budgets.v1.BudgetAmount(this); if (budgetAmountCase_ == 1) { if (specifiedAmountBuilder_ == null) { result.budgetAmount_ = budgetAmount_; @@ -541,38 +598,39 @@ public com.google.cloud.billing.budgets.v1.BudgetAmount 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.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; @@ -580,19 +638,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.unknownFields); onChanged(); @@ -622,12 +684,12 @@ public Builder mergeFrom( } 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() { @@ -637,10 +699,12 @@ public Builder clearBudgetAmount() { return this; } - 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
@@ -650,6 +714,7 @@ public Builder clearBudgetAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -657,6 +722,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
@@ -666,6 +733,7 @@ public boolean hasSpecifiedAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ @java.lang.Override @@ -683,6 +751,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
@@ -707,6 +777,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
@@ -717,8 +789,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();
@@ -729,6 +800,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
@@ -741,10 +814,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;
         }
@@ -760,6 +834,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
@@ -787,6 +863,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
@@ -801,6 +879,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
@@ -823,6 +903,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
@@ -834,27 +916,34 @@ 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;
-      onChanged();;
+      onChanged();
+      ;
       return specifiedAmountBuilder_;
     }
 
     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
@@ -864,6 +953,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 @@ -871,6 +961,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
@@ -880,6 +972,7 @@ public boolean hasLastPeriodAmount() {
      * 
* * .google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ @java.lang.Override @@ -897,6 +990,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
@@ -921,6 +1016,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
@@ -943,6 +1040,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
@@ -953,12 +1052,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;
         }
@@ -974,6 +1078,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
@@ -1001,6 +1107,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
@@ -1011,10 +1119,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
@@ -1026,7 +1137,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 {
@@ -1037,6 +1149,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
@@ -1048,26 +1162,32 @@ 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());
         budgetAmount_ = null;
       }
       budgetAmountCase_ = 2;
-      onChanged();;
+      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);
     }
 
@@ -1077,12 +1197,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();
   }
@@ -1091,16 +1211,16 @@ 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 {
-      return new BudgetAmount(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BudgetAmount(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1115,6 +1235,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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
index d7888436..2406cdff 100644
--- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
+++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/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/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java
new file mode 100644
index 00000000..9993f6af
--- /dev/null
+++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java
@@ -0,0 +1,232 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/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\"\317\003\n\006Budget\022\021\n\004n"
+          + "ame\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022C\n\r"
+          + "budget_filter\030\003 \001(\0132\'.google.cloud.billi"
+          + "ng.budgets.v1.FilterB\003\340A\001\022B\n\006amount\030\004 \001("
+          + "\0132-.google.cloud.billing.budgets.v1.Budg"
+          + "etAmountB\003\340A\002\022L\n\017threshold_rules\030\005 \003(\0132."
+          + ".google.cloud.billing.budgets.v1.Thresho"
+          + "ldRuleB\003\340A\001\022S\n\022notifications_rule\030\006 \001(\0132"
+          + "2.google.cloud.billing.budgets.v1.Notifi"
+          + "cationsRuleB\003\340A\001\022\021\n\004etag\030\007 \001(\tB\003\340A\001:]\352AZ"
+          + "\n$billingbudgets.googleapis.com/Budget\0222"
+          + "billingAccounts/{billing_account}/budget"
+          + "s/{budget}\"\240\001\n\014BudgetAmount\022.\n\020specified"
+          + "_amount\030\001 \001(\0132\022.google.type.MoneyH\000\022O\n\022l"
+          + "ast_period_amount\030\002 \001(\01321.google.cloud.b"
+          + "illing.budgets.v1.LastPeriodAmountH\000B\017\n\r"
+          + "budget_amount\"\022\n\020LastPeriodAmount\"\310\001\n\rTh"
+          + "resholdRule\022\036\n\021threshold_percent\030\001 \001(\001B\003"
+          + "\340A\002\022N\n\013spend_basis\030\002 \001(\01624.google.cloud."
+          + "billing.budgets.v1.ThresholdRule.BasisB\003"
+          + "\340A\001\"G\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021\n\rC"
+          + "URRENT_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\"\247\001\n"
+          + "\021NotificationsRule\022\031\n\014pubsub_topic\030\001 \001(\t"
+          + "B\003\340A\001\022\033\n\016schema_version\030\002 \001(\tB\003\340A\001\022-\n mo"
+          + "nitoring_notification_channels\030\003 \003(\tB\003\340A"
+          + "\001\022+\n\036disable_default_iam_recipients\030\004 \001("
+          + "\010B\003\340A\001\"\243\005\n\006Filter\022\025\n\010projects\030\001 \003(\tB\003\340A\001"
+          + "\022\031\n\014credit_types\030\007 \003(\tB\003\340A\001\022a\n\026credit_ty"
+          + "pes_treatment\030\004 \001(\0162<.google.cloud.billi"
+          + "ng.budgets.v1.Filter.CreditTypesTreatmen"
+          + "tB\003\340A\001\022\025\n\010services\030\003 \003(\tB\003\340A\001\022\030\n\013subacco"
+          + "unts\030\005 \003(\tB\003\340A\001\022H\n\006labels\030\006 \003(\01323.google"
+          + ".cloud.billing.budgets.v1.Filter.LabelsE"
+          + "ntryB\003\340A\001\022O\n\017calendar_period\030\010 \001(\0162/.goo"
+          + "gle.cloud.billing.budgets.v1.CalendarPer"
+          + "iodB\003\340A\001H\000\022K\n\rcustom_period\030\t \001(\0132-.goog"
+          + "le.cloud.billing.budgets.v1.CustomPeriod"
+          + "B\003\340A\001H\000\032I\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005v"
+          + "alue\030\002 \001(\0132\032.google.protobuf.ListValue:\002"
+          + "8\001\"\217\001\n\024CreditTypesTreatment\022&\n\"CREDIT_TY"
+          + "PES_TREATMENT_UNSPECIFIED\020\000\022\027\n\023INCLUDE_A"
+          + "LL_CREDITS\020\001\022\027\n\023EXCLUDE_ALL_CREDITS\020\002\022\035\n"
+          + "\031INCLUDE_SPECIFIED_CREDITS\020\003B\016\n\014usage_pe"
+          + "riod\"d\n\014CustomPeriod\022*\n\nstart_date\030\001 \001(\013"
+          + "2\021.google.type.DateB\003\340A\002\022(\n\010end_date\030\002 \001"
+          + "(\0132\021.google.type.DateB\003\340A\001*S\n\016CalendarPe"
+          + "riod\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\003B\201\001\n#com."
+          + "google.cloud.billing.budgets.v1B\020BudgetM"
+          + "odelProtoP\001ZFgoogle.golang.org/genproto/"
+          + "googleapis/cloud/billing/budgets/v1;budg"
+          + "etsb\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",
+              "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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
index 6355ac00..a4f0d489 100644
--- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
+++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/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,173 +47,240 @@ 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.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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.
    * 
* - * 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.
@@ -200,10 +288,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.
@@ -211,8 +302,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/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java new file mode 100644 index 00000000..0b65f9b2 --- /dev/null +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceProto.java @@ -0,0 +1,199 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/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\"\221\001" + + "\n\023CreateBudgetRequest\022<\n\006parent\030\001 \001(\tB,\340" + + "A\002\372A&\022$billingbudgets.googleapis.com/Bud" + + "get\022<\n\006budget\030\002 \001(\0132\'.google.cloud.billi" + + "ng.budgets.v1.BudgetB\003\340A\002\"\211\001\n\023UpdateBudg" + + "etRequest\022<\n\006budget\030\001 \001(\0132\'.google.cloud" + + ".billing.budgets.v1.BudgetB\003\340A\002\0224\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\001\"N\n\020GetBudgetRequest\022:\n\004name\030\001 \001(\tB" + + ",\340A\002\372A&\n$billingbudgets.googleapis.com/B" + + "udget\"\203\001\n\022ListBudgetsRequest\022<\n\006parent\030\001" + + " \001(\tB,\340A\002\372A&\022$billingbudgets.googleapis." + + "com/Budget\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" + + "ge_token\030\003 \001(\tB\003\340A\001\"h\n\023ListBudgetsRespon" + + "se\0228\n\007budgets\030\001 \003(\0132\'.google.cloud.billi" + + "ng.budgets.v1.Budget\022\027\n\017next_page_token\030" + + "\002 \001(\t\"Q\n\023DeleteBudgetRequest\022:\n\004name\030\001 \001" + + "(\tB,\340A\002\372A&\n$billingbudgets.googleapis.co" + + "m/Budget2\367\007\n\rBudgetService\022\265\001\n\014CreateBud" + + "get\0224.google.cloud.billing.budgets.v1.Cr" + + "eateBudgetRequest\032\'.google.cloud.billing" + + ".budgets.v1.Budget\"F\202\323\344\223\0020\"&/v1/{parent=" + + "billingAccounts/*}/budgets:\006budget\332A\rpar" + + "ent,budget\022\301\001\n\014UpdateBudget\0224.google.clo" + + "ud.billing.budgets.v1.UpdateBudgetReques" + + "t\032\'.google.cloud.billing.budgets.v1.Budg" + + "et\"R\202\323\344\223\00272-/v1/{budget.name=billingAcco" + + "unts/*/budgets/*}:\006budget\332A\022budget,updat" + + "e_mask\022\236\001\n\tGetBudget\0221.google.cloud.bill" + + "ing.budgets.v1.GetBudgetRequest\032\'.google" + + ".cloud.billing.budgets.v1.Budget\"5\202\323\344\223\002(" + + "\022&/v1/{name=billingAccounts/*/budgets/*}" + + "\332A\004name\022\261\001\n\013ListBudgets\0223.google.cloud.b" + + "illing.budgets.v1.ListBudgetsRequest\0324.g" + + "oogle.cloud.billing.budgets.v1.ListBudge" + + "tsResponse\"7\202\323\344\223\002(\022&/v1/{parent=billingA" + + "ccounts/*}/budgets\332A\006parent\022\223\001\n\014DeleteBu" + + "dget\0224.google.cloud.billing.budgets.v1.D" + + "eleteBudgetRequest\032\026.google.protobuf.Emp" + + "ty\"5\202\323\344\223\002(*&/v1/{name=billingAccounts/*/" + + "budgets/*}\332A\004name\032\177\312A\035billingbudgets.goo" + + "gleapis.com\322A\\https://www.googleapis.com" + + "/auth/cloud-billing,https://www.googleap" + + "is.com/auth/cloud-platformB\203\001\n#com.googl" + + "e.cloud.billing.budgets.v1B\022BudgetServic" + + "eProtoP\001ZFgoogle.golang.org/genproto/goo" + + "gleapis/cloud/billing/budgets/v1;budgets" + + "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.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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java index 7a37bd2a..e33a4f3c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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,13 +30,12 @@
  *
  * Protobuf enum {@code google.cloud.billing.budgets.v1.CalendarPeriod}
  */
-public enum CalendarPeriod
-    implements com.google.protobuf.ProtocolMessageEnum {
-  /**
-   * CALENDAR_PERIOD_UNSPECIFIED = 0;
-   */
+public enum CalendarPeriod implements com.google.protobuf.ProtocolMessageEnum {
+  /** CALENDAR_PERIOD_UNSPECIFIED = 0; */
   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.
@@ -29,6 +45,8 @@ public enum CalendarPeriod
    */
   MONTH(1),
   /**
+   *
+   *
    * 
    * A quarter. Quarters start on dates January 1, April 1, July 1, and October
    * 1 of each year.
@@ -38,6 +56,8 @@ public enum CalendarPeriod
    */
   QUARTER(2),
   /**
+   *
+   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -48,11 +68,11 @@ public enum CalendarPeriod UNRECOGNIZED(-1), ; - /** - * CALENDAR_PERIOD_UNSPECIFIED = 0; - */ + /** CALENDAR_PERIOD_UNSPECIFIED = 0; */ 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.
@@ -62,6 +82,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.
@@ -71,6 +93,8 @@ public enum CalendarPeriod
    */
   public static final int QUARTER_VALUE = 2;
   /**
+   *
+   *
    * 
    * A year. Year starts on January 1.
    * 
@@ -79,7 +103,6 @@ public enum CalendarPeriod */ public static final int YEAR_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -104,50 +127,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; @@ -163,4 +189,3 @@ private CalendarPeriod(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.billing.budgets.v1.CalendarPeriod) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java index 84ba8429..ef487e80 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateBudgetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private CreateBudgetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.billing.budgets.v1.Budget.Builder subBuilder = null; - if (budget_ != null) { - subBuilder = budget_.toBuilder(); + parent_ = s; + break; } - budget_ = input.readMessage(com.google.cloud.billing.budgets.v1.Budget.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(budget_); - budget_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.billing.budgets.v1.Budget.Builder subBuilder = null; + if (budget_ != null) { + subBuilder = budget_.toBuilder(); + } + budget_ = + input.readMessage( + com.google.cloud.billing.budgets.v1.Budget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(budget_); + budget_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +107,42 @@ private CreateBudgetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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; 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 @@ -123,30 +151,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 { @@ -157,11 +187,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 @@ -169,23 +204,34 @@ 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() { @@ -193,6 +239,7 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +251,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_); } @@ -225,8 +271,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +281,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +317,127 @@ 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() @@ -391,16 +445,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +469,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 @@ -437,7 +490,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); + com.google.cloud.billing.budgets.v1.CreateBudgetRequest result = + new com.google.cloud.billing.budgets.v1.CreateBudgetRequest(this); result.parent_ = parent_; if (budgetBuilder_ == null) { result.budget_ = budget_; @@ -452,38 +506,39 @@ public com.google.cloud.billing.budgets.v1.CreateBudgetRequest 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.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; @@ -491,7 +546,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_; onChanged(); @@ -518,7 +574,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1.CreateBudgetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +587,23 @@ public Builder mergeFrom( 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; @@ -551,21 +612,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 { @@ -573,57 +637,70 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -631,39 +708,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 budgetBuilder_ != null || 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. */ 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) { @@ -679,14 +775,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(); onChanged(); @@ -697,17 +796,23 @@ 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 (budget_ != null) { budget_ = - com.google.cloud.billing.budgets.v1.Budget.newBuilder(budget_).mergeFrom(value).buildPartial(); + com.google.cloud.billing.budgets.v1.Budget.newBuilder(budget_) + .mergeFrom(value) + .buildPartial(); } else { budget_ = value; } @@ -719,11 +824,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() { if (budgetBuilder_ == null) { @@ -737,55 +846,71 @@ 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() { - + onChanged(); 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); } @@ -795,12 +920,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(); } @@ -809,16 +934,16 @@ 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 { - return new CreateBudgetRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateBudgetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +958,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.CreateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java new file mode 100644 index 00000000..b1c8aaa5 --- /dev/null +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CreateBudgetRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java index 9b779477..64f37f1b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CustomPeriod( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,41 @@ private CustomPeriod( case 0: done = true; break; - case 10: { - com.google.type.Date.Builder subBuilder = null; - if (startDate_ != null) { - subBuilder = startDate_.toBuilder(); - } - startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startDate_); - startDate_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.type.Date.Builder subBuilder = null; - if (endDate_ != null) { - subBuilder = endDate_.toBuilder(); + case 10: + { + com.google.type.Date.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; } - endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endDate_); - endDate_ = subBuilder.buildPartial(); + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +110,39 @@ private CustomPeriod( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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 @@ -127,11 +150,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 @@ -139,6 +165,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.
    * 
@@ -153,6 +181,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
@@ -160,6 +190,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 @@ -167,6 +198,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
@@ -174,6 +207,7 @@ public boolean hasEndDate() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ @java.lang.Override @@ -181,6 +215,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
@@ -195,6 +231,7 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,8 +243,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());
     }
@@ -224,12 +260,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -239,22 +273,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -280,118 +313,127 @@ 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() @@ -399,16 +441,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +469,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 @@ -449,7 +490,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); + com.google.cloud.billing.budgets.v1.CustomPeriod result = + new com.google.cloud.billing.budgets.v1.CustomPeriod(this); if (startDateBuilder_ == null) { result.startDate_ = startDate_; } else { @@ -468,38 +510,39 @@ public com.google.cloud.billing.budgets.v1.CustomPeriod 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.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; @@ -507,7 +550,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()); } @@ -545,24 +589,31 @@ public Builder mergeFrom( 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 startDateBuilder_ != null || 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. */ public com.google.type.Date getStartDate() { @@ -573,6 +624,8 @@ public com.google.type.Date getStartDate() { } } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -593,14 +646,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(); onChanged(); @@ -611,6 +665,8 @@ public Builder setStartDate( return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -620,8 +676,7 @@ public Builder setStartDate( public Builder mergeStartDate(com.google.type.Date value) { if (startDateBuilder_ == null) { if (startDate_ != null) { - startDate_ = - com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); + startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); } else { startDate_ = value; } @@ -633,6 +688,8 @@ public Builder mergeStartDate(com.google.type.Date value) { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -651,6 +708,8 @@ public Builder clearStartDate() { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -658,11 +717,13 @@ public Builder clearStartDate() { * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.type.Date.Builder getStartDateBuilder() { - + onChanged(); return getStartDateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -673,11 +734,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.
      * 
@@ -685,14 +747,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_; @@ -700,8 +761,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
@@ -709,12 +773,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 endDateBuilder_ != null || 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
@@ -722,6 +789,7 @@ public boolean hasEndDate() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ public com.google.type.Date getEndDate() { @@ -732,6 +800,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
@@ -754,6 +824,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
@@ -762,8 +834,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();
         onChanged();
@@ -774,6 +845,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
@@ -785,8 +858,7 @@ public Builder setEndDate(
     public Builder mergeEndDate(com.google.type.Date value) {
       if (endDateBuilder_ == null) {
         if (endDate_ != null) {
-          endDate_ =
-            com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial();
+          endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial();
         } else {
           endDate_ = value;
         }
@@ -798,6 +870,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
@@ -818,6 +892,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
@@ -827,11 +903,13 @@ public Builder clearEndDate() {
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     public com.google.type.Date.Builder getEndDateBuilder() {
-      
+
       onChanged();
       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
@@ -844,11 +922,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
@@ -858,21 +937,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);
     }
 
@@ -882,12 +960,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();
   }
@@ -896,16 +974,16 @@ 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 {
-      return new CustomPeriod(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new CustomPeriod(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -920,6 +998,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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
similarity index 75%
rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
index b758ff78..51d71a3c 100644
--- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
+++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
similarity index 66%
rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
index 3c6ee75e..0bd0a2cb 100644
--- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
+++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteBudgetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteBudgetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteBudgetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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; 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 @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ 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() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,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 @@ -364,7 +400,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); + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest result = + new com.google.cloud.billing.budgets.v1.DeleteBudgetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest 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.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; @@ -413,7 +451,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_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1.DeleteBudgetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( 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; @@ -470,21 +514,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 { @@ -492,64 +539,77 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,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(); } @@ -573,16 +633,16 @@ 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 { - return new DeleteBudgetRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteBudgetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.DeleteBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java new file mode 100644 index 00000000..9da8b8fb --- /dev/null +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/DeleteBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java index a0852681..a9ffd81e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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.EMPTY; creditTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -29,16 +47,15 @@ private Filter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Filter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Filter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,88 +75,100 @@ private Filter( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projects_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projects_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projects_.add(s); + break; } - projects_.add(s); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - services_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + services_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + services_.add(s); + break; } - services_.add(s); - break; - } - case 32: { - int rawValue = input.readEnum(); + case 32: + { + int rawValue = input.readEnum(); - creditTypesTreatment_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - subaccounts_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; + creditTypesTreatment_ = rawValue; + break; } - subaccounts_.add(s); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + subaccounts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + subaccounts_.add(s); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - creditTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 50: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry + labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - creditTypes_.add(s); - break; - } - case 64: { - int rawValue = input.readEnum(); - usagePeriodCase_ = 8; - usagePeriod_ = rawValue; - break; - } - case 74: { - com.google.cloud.billing.budgets.v1.CustomPeriod.Builder subBuilder = null; - if (usagePeriodCase_ == 9) { - subBuilder = ((com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_).toBuilder(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + creditTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + creditTypes_.add(s); + break; } - usagePeriod_ = - input.readMessage(com.google.cloud.billing.budgets.v1.CustomPeriod.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_); - usagePeriod_ = subBuilder.buildPartial(); + case 64: + { + int rawValue = input.readEnum(); + usagePeriodCase_ = 8; + usagePeriod_ = rawValue; + break; } - usagePeriodCase_ = 9; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 74: + { + com.google.cloud.billing.budgets.v1.CustomPeriod.Builder subBuilder = null; + if (usagePeriodCase_ == 9) { + subBuilder = + ((com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_).toBuilder(); + } + usagePeriod_ = + input.readMessage( + com.google.cloud.billing.budgets.v1.CustomPeriod.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.billing.budgets.v1.CustomPeriod) usagePeriod_); + usagePeriod_ = subBuilder.buildPartial(); + } + usagePeriodCase_ = 9; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -147,8 +176,7 @@ private Filter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projects_ = projects_.getUnmodifiableView(); @@ -166,32 +194,36 @@ private Filter( makeExtensionsImmutable(); } } - 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
@@ -202,13 +234,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.
@@ -218,6 +249,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.
@@ -227,6 +260,8 @@ public enum CreditTypesTreatment
      */
     EXCLUDE_ALL_CREDITS(2),
     /**
+     *
+     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -240,11 +275,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.
@@ -254,6 +289,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.
@@ -263,6 +300,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)
@@ -274,7 +313,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(
@@ -299,11 +337,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;
       }
     }
 
@@ -311,28 +354,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);
     }
 
@@ -341,8 +384,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;
@@ -361,13 +403,16 @@ private CreditTypesTreatment(int value) {
 
   private int usagePeriodCase_ = 0;
   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;
     }
@@ -383,26 +428,31 @@ 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;
   private com.google.protobuf.LazyStringList projects_;
   /**
+   *
+   *
    * 
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -412,13 +462,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
@@ -428,12 +480,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
@@ -443,6 +498,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. */ @@ -450,6 +506,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
@@ -459,17 +517,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 CREDIT_TYPES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList creditTypes_; /** + * + * *
    * Optional. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -483,13 +543,15 @@ public java.lang.String getProjects(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]
@@ -503,12 +565,15 @@ public java.lang.String getProjects(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]
@@ -522,6 +587,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. */ @@ -529,6 +595,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]
@@ -542,44 +610,62 @@ 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_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment getCreditTypesTreatment() { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.valueOf(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.valueOf( + creditTypesTreatment_); + return result == null + ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED + : result; } public static final int SERVICES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList services_; /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -590,13 +676,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
@@ -607,12 +695,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
@@ -623,6 +714,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. */ @@ -630,6 +722,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
@@ -640,17 +734,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; private com.google.protobuf.LazyStringList subaccounts_; /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
    * specifying that usage from only this set of subaccounts should be included
@@ -661,13 +757,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
@@ -678,12 +776,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
@@ -694,6 +795,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. */ @@ -701,6 +803,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
@@ -711,33 +815,35 @@ 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()); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ListValue> labels_; + .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()); + } + + 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_; } @@ -746,6 +852,8 @@ 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. Currently,
@@ -753,24 +861,26 @@ public int getLabelsCount() {
    * the report will include all labeled and unlabeled usage.
    * 
* - * 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. Currently,
@@ -778,14 +888,17 @@ public java.util.Map getLabels(
    * the report will include all labeled and unlabeled usage.
    * 
* - * 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. Currently,
@@ -793,19 +906,23 @@ public java.util.Map getLabelsM
    * the report will include all labeled and unlabeled usage.
    * 
* - * 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 getLabelsOrDefault( - java.lang.String key, - com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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. Currently,
@@ -813,13 +930,15 @@ public com.google.protobuf.ListValue getLabelsOrDefault(
    * the report will include all labeled and unlabeled usage.
    * 
* - * 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)) { @@ -830,6 +949,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
@@ -839,13 +960,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 will
@@ -855,7 +981,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() { @@ -865,6 +994,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
@@ -874,27 +1005,38 @@ 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) { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1.CalendarPeriod result = com.google.cloud.billing.budgets.v1.CalendarPeriod.valueOf( - (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.valueOf( + (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 @@ -902,38 +1044,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; @@ -945,26 +1097,24 @@ 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)); } 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)); } @@ -999,9 +1149,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; @@ -1011,15 +1163,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; @@ -1030,12 +1182,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1045,33 +1199,27 @@ 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 (!getCreditTypesList() - .equals(other.getCreditTypesList())) return false; + if (!getProjectsList().equals(other.getProjectsList())) 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: @@ -1126,140 +1274,147 @@ 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() @@ -1267,16 +1422,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1297,9 +1451,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 @@ -1318,7 +1472,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); + com.google.cloud.billing.budgets.v1.Filter result = + new com.google.cloud.billing.budgets.v1.Filter(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { projects_ = projects_.getUnmodifiableView(); @@ -1362,38 +1517,39 @@ public com.google.cloud.billing.budgets.v1.Filter 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.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; @@ -1445,20 +1601,22 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1.Filter other) { } onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); 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.unknownFields); onChanged(); @@ -1488,12 +1646,12 @@ public Builder mergeFrom( } 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() { @@ -1505,14 +1663,18 @@ public Builder clearUsagePeriod() { private int bitField0_; - private com.google.protobuf.LazyStringList projects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList projects_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureProjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { projects_ = new com.google.protobuf.LazyStringArrayList(projects_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1522,13 +1684,15 @@ 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() { return projects_.getUnmodifiableView(); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1538,12 +1702,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
@@ -1553,6 +1720,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. */ @@ -1560,6 +1728,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
@@ -1569,14 +1739,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
@@ -1586,21 +1758,23 @@ 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) { + public Builder setProjects(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); + throw new NullPointerException(); + } + ensureProjectsIsMutable(); projects_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1610,20 +1784,22 @@ 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) { + public Builder addProjects(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); + throw new NullPointerException(); + } + ensureProjectsIsMutable(); projects_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1633,18 +1809,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1654,6 +1831,7 @@ public Builder addAllProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProjects() { @@ -1663,6 +1841,8 @@ public Builder clearProjects() { return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1672,29 +1852,33 @@ 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) { + public Builder addProjectsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProjectsIsMutable(); projects_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList creditTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList creditTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCreditTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { creditTypes_ = new com.google.protobuf.LazyStringArrayList(creditTypes_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -1708,13 +1892,15 @@ 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() { return creditTypes_.getUnmodifiableView(); } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -1728,12 +1914,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]
@@ -1747,6 +1936,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. */ @@ -1754,6 +1944,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]
@@ -1767,14 +1959,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]
@@ -1788,21 +1982,23 @@ 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) { + public Builder setCreditTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCreditTypesIsMutable(); + throw new NullPointerException(); + } + ensureCreditTypesIsMutable(); creditTypes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -1816,20 +2012,22 @@ 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) { + public Builder addCreditTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCreditTypesIsMutable(); + throw new NullPointerException(); + } + ensureCreditTypesIsMutable(); creditTypes_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -1843,18 +2041,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -1868,6 +2067,7 @@ public Builder addAllCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCreditTypes() { @@ -1877,6 +2077,8 @@ public Builder clearCreditTypes() { return this; } /** + * + * *
      * Optional. If
      * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -1890,15 +2092,15 @@ 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) { + public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCreditTypesIsMutable(); creditTypes_.add(value); onChanged(); @@ -1907,86 +2109,122 @@ 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. */ public Builder setCreditTypesTreatmentValue(int value) { - + creditTypesTreatment_ = value; onChanged(); 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() { + public com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment + getCreditTypesTreatment() { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.valueOf(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment.valueOf( + 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(); } - + creditTypesTreatment_ = value.getNumber(); onChanged(); 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() { - + creditTypesTreatment_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList services_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList services_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureServicesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { services_ = new com.google.protobuf.LazyStringArrayList(services_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -1997,13 +2235,15 @@ 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() { return services_.getUnmodifiableView(); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2014,12 +2254,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
@@ -2030,6 +2273,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. */ @@ -2037,6 +2281,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
@@ -2047,14 +2293,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
@@ -2065,21 +2313,23 @@ 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) { + public Builder setServices(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); + throw new NullPointerException(); + } + ensureServicesIsMutable(); services_.set(index, value); 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
@@ -2090,20 +2340,22 @@ 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) { + public Builder addServices(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); + throw new NullPointerException(); + } + ensureServicesIsMutable(); services_.add(value); 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
@@ -2114,18 +2366,19 @@ 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_); 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
@@ -2136,6 +2389,7 @@ public Builder addAllServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServices() { @@ -2145,6 +2399,8 @@ public Builder clearServices() { return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2155,29 +2411,33 @@ 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) { + public Builder addServicesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureServicesIsMutable(); services_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList subaccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList subaccounts_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSubaccountsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { subaccounts_ = new com.google.protobuf.LazyStringArrayList(subaccounts_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2188,13 +2448,15 @@ 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() { return subaccounts_.getUnmodifiableView(); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
      * specifying that usage from only this set of subaccounts should be included
@@ -2205,12 +2467,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
@@ -2221,6 +2486,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. */ @@ -2228,6 +2494,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
@@ -2238,14 +2506,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
@@ -2256,21 +2526,23 @@ 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) { + public Builder setSubaccounts(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubaccountsIsMutable(); + throw new NullPointerException(); + } + ensureSubaccountsIsMutable(); subaccounts_.set(index, value); 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
@@ -2281,20 +2553,22 @@ 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) { + public Builder addSubaccounts(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubaccountsIsMutable(); + throw new NullPointerException(); + } + ensureSubaccountsIsMutable(); subaccounts_.add(value); 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
@@ -2305,18 +2579,19 @@ 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_); 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
@@ -2327,6 +2602,7 @@ public Builder addAllSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSubaccounts() { @@ -2336,6 +2612,8 @@ public Builder clearSubaccounts() { 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
@@ -2346,37 +2624,37 @@ 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) { + public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSubaccountsIsMutable(); subaccounts_.add(value); onChanged(); 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() { + 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -2388,6 +2666,8 @@ 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. Currently,
@@ -2395,24 +2675,26 @@ public int getLabelsCount() {
      * the report will include all labeled and unlabeled usage.
      * 
* - * 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. Currently,
@@ -2420,14 +2702,17 @@ public java.util.Map getLabels(
      * the report will include all labeled and unlabeled usage.
      * 
* - * 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. Currently,
@@ -2435,19 +2720,23 @@ public java.util.Map getLabelsM
      * the report will include all labeled and unlabeled usage.
      * 
* - * 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 getLabelsOrDefault( - java.lang.String key, - com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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. Currently,
@@ -2455,13 +2744,15 @@ public com.google.protobuf.ListValue getLabelsOrDefault(
      * the report will include all labeled and unlabeled usage.
      * 
* - * 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)) { @@ -2471,11 +2762,12 @@ public com.google.protobuf.ListValue getLabelsOrThrow( } public Builder clearLabels() { - 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. Currently,
@@ -2483,25 +2775,25 @@ public Builder clearLabels() {
      * the report will include all labeled and unlabeled usage.
      * 
* - * 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() { 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. Currently,
@@ -2509,21 +2801,24 @@ public Builder removeLabels(
      * the report will include all labeled and unlabeled usage.
      * 
* - * 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); 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. Currently,
@@ -2531,17 +2826,19 @@ public Builder putLabels(
      * the report will include all labeled and unlabeled usage.
      * 
* - * 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); return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2551,7 +2848,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 @@ -2559,6 +2859,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
@@ -2568,7 +2870,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 @@ -2579,6 +2884,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
@@ -2588,7 +2895,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. */ @@ -2599,6 +2909,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
@@ -2608,20 +2920,28 @@ 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) { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1.CalendarPeriod result = com.google.cloud.billing.budgets.v1.CalendarPeriod.valueOf( - (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.valueOf( + (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 will
@@ -2631,7 +2951,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. */ @@ -2645,6 +2968,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 will
@@ -2654,7 +2979,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() { @@ -2667,14 +2995,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 @@ -2682,12 +3018,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 @@ -2705,12 +3046,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) { @@ -2726,12 +3071,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) { @@ -2745,19 +3094,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; } @@ -2773,12 +3130,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) { @@ -2797,23 +3158,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() { @@ -2827,34 +3196,44 @@ 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()); usagePeriod_ = null; } usagePeriodCase_ = 9; - onChanged();; + 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); } @@ -2864,12 +3243,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(); } @@ -2878,16 +3257,16 @@ 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 { - return new Filter(input, extensionRegistry); - } - }; + 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 { + return new Filter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2902,6 +3281,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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java index ba29aef3..a075538e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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
@@ -17,11 +35,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
@@ -31,10 +51,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
@@ -44,11 +67,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
@@ -58,13 +84,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. If
    * [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
@@ -78,11 +106,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]
@@ -96,10 +126,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]
@@ -113,11 +146,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]
@@ -131,32 +167,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
@@ -167,11 +215,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
@@ -182,10 +232,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
@@ -196,11 +249,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
@@ -211,13 +267,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
@@ -228,11 +286,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
@@ -243,10 +303,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
@@ -257,11 +320,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
@@ -272,13 +338,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. Currently,
@@ -286,10 +354,14 @@ public interface FilterOrBuilder extends
    * the report will include all labeled and unlabeled usage.
    * 
* - * 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. Currently,
@@ -297,17 +369,17 @@ public interface FilterOrBuilder extends
    * the report will include all labeled and unlabeled usage.
    * 
* - * 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. Currently,
@@ -315,11 +387,14 @@ boolean containsLabels(
    * the report will include all labeled and unlabeled usage.
    * 
* - * 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. Currently,
@@ -327,15 +402,19 @@ boolean containsLabels(
    * the report will include all labeled and unlabeled usage.
    * 
* - * 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. Currently,
@@ -343,13 +422,15 @@ com.google.protobuf.ListValue getLabelsOrDefault(
    * the report will include all labeled and unlabeled usage.
    * 
* - * 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
@@ -359,11 +440,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 will
@@ -373,11 +459,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 will
@@ -387,38 +478,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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java index b12525df..b53310ae 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetBudgetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetBudgetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetBudgetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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; 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 @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,126 @@ 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() @@ -324,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.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 @@ -364,7 +399,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); + com.google.cloud.billing.budgets.v1.GetBudgetRequest result = + new com.google.cloud.billing.budgets.v1.GetBudgetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.billing.budgets.v1.GetBudgetRequest 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.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; @@ -413,7 +450,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_; onChanged(); @@ -437,7 +475,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1.GetBudgetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1.GetBudgetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,23 @@ public Builder mergeFrom( 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; @@ -470,21 +513,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 { @@ -492,64 +538,77 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +618,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.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(); } @@ -573,16 +632,16 @@ 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 { - return new GetBudgetRequest(input, extensionRegistry); - } - }; + 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 { + return new GetBudgetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1.GetBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java new file mode 100644 index 00000000..96d2c50d --- /dev/null +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/GetBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java index 48e219cd..46c35a06 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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]
@@ -18,30 +35,29 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LastPeriodAmount(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,13 +76,13 @@ private LastPeriodAmount(
           case 0:
             done = true;
             break;
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,27 +90,30 @@ private LastPeriodAmount(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.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;
@@ -106,8 +125,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 {
     unknownFields.writeTo(output);
   }
 
@@ -125,12 +143,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -149,96 +168,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]
@@ -253,21 +279,23 @@ 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()
@@ -275,16 +303,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -292,9 +319,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
@@ -313,7 +340,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;
     }
@@ -322,38 +350,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;
@@ -361,7 +390,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.unknownFields);
       onChanged();
       return this;
@@ -381,7 +411,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.billing.budgets.v1.LastPeriodAmount) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.billing.budgets.v1.LastPeriodAmount) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -390,9 +421,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -402,12 +433,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();
   }
@@ -416,16 +447,16 @@ 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 {
-      return new LastPeriodAmount(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new LastPeriodAmount(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -440,6 +471,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1.LastPeriodAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java
new file mode 100644
index 00000000..234e636a
--- /dev/null
+++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmountOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
index dc7df1d8..d4d728c0 100644
--- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
+++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/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,16 +44,15 @@ private ListBudgetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListBudgetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListBudgetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListBudgetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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; 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 @@ -122,30 +148,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 { @@ -156,12 +184,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; 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 @@ -172,6 +203,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; 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,
@@ -179,6 +212,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -187,14 +221,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -202,16 +237,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 { @@ -220,6 +254,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -255,8 +289,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_); @@ -269,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,117 +336,127 @@ 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() @@ -423,16 +464,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.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 @@ -467,7 +507,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); + com.google.cloud.billing.budgets.v1.ListBudgetsRequest result = + new com.google.cloud.billing.budgets.v1.ListBudgetsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -479,38 +520,39 @@ public com.google.cloud.billing.budgets.v1.ListBudgetsRequest 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.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; @@ -518,7 +560,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_; onChanged(); @@ -549,7 +592,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1.ListBudgetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,19 +605,23 @@ public Builder mergeFrom( 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; @@ -582,21 +630,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 { @@ -604,70 +655,86 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - 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 @@ -675,32 +742,38 @@ 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; 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() { - + pageSize_ = 0; onChanged(); return this; @@ -708,6 +781,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,
@@ -715,13 +790,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; @@ -730,6 +805,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,
@@ -737,15 +814,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 { @@ -753,6 +829,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,
@@ -760,20 +838,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -781,15 +861,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -797,23 +880,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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -823,12 +906,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.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(); } @@ -837,16 +920,16 @@ 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 { - return new ListBudgetsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListBudgetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,6 +944,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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java index 67912788..f2f72608 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java index 22372e53..cc5ad4b3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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,16 +44,15 @@ private ListBudgetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListBudgetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private ListBudgetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - budgets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + budgets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + budgets_.add( + input.readMessage( + com.google.cloud.billing.budgets.v1.Budget.parser(), extensionRegistry)); + break; } - budgets_.add( - input.readMessage(com.google.cloud.billing.budgets.v1.Budget.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private ListBudgetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { budgets_ = java.util.Collections.unmodifiableList(budgets_); @@ -94,22 +113,27 @@ private ListBudgetsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List budgets_; /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -121,6 +145,8 @@ public java.util.List getBudgetsList return budgets_; } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -128,11 +154,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.
    * 
@@ -144,6 +172,8 @@ public int getBudgetsCount() { return budgets_.size(); } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -155,6 +185,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.
    * 
@@ -162,20 +194,22 @@ 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; 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 @@ -184,30 +218,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 { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < budgets_.size(); i++) { output.writeMessage(1, budgets_.get(i)); } @@ -245,8 +279,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_); @@ -259,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +325,127 @@ 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() @@ -411,17 +453,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBudgetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +479,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 @@ -458,7 +500,8 @@ 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); int from_bitField0_ = bitField0_; if (budgetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +521,39 @@ public com.google.cloud.billing.budgets.v1.ListBudgetsResponse 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.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; @@ -517,7 +561,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()) { @@ -536,9 +581,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_); } @@ -567,7 +613,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1.ListBudgetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1.ListBudgetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +623,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -605,6 +659,8 @@ public java.util.List getBudgetsList } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -619,6 +675,8 @@ public int getBudgetsCount() { } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -633,14 +691,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(); @@ -654,6 +713,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -672,6 +733,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -692,14 +755,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(); @@ -713,14 +777,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()); @@ -731,6 +796,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -749,6 +816,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -759,8 +828,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); @@ -768,6 +836,8 @@ public Builder addAllBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -785,6 +855,8 @@ public Builder clearBudgets() { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -802,39 +874,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 { @@ -842,6 +919,8 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetsOrBuilder( } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -849,42 +928,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_; @@ -892,19 +977,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; @@ -913,21 +1000,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 { @@ -935,64 +1023,71 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1097,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(); } @@ -1016,16 +1111,16 @@ 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 { - return new ListBudgetsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListBudgetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1135,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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java index 85cae48f..c8d7a07f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ListBudgetsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java index af773f30..b3f6658b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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,15 +28,16 @@
  *
  * 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_ = "";
@@ -28,16 +46,15 @@ private NotificationsRule() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NotificationsRule();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private NotificationsRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,39 +74,42 @@ private NotificationsRule(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            pubsubTopic_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            schemaVersion_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              pubsubTopic_ = s;
+              break;
             }
-            monitoringNotificationChannels_.add(s);
-            break;
-          }
-          case 32: {
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            disableDefaultIamRecipients_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              schemaVersion_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              monitoringNotificationChannels_.add(s);
+              break;
+            }
+          case 32:
+            {
+              disableDefaultIamRecipients_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,8 +117,7 @@ private NotificationsRule(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         monitoringNotificationChannels_ = monitoringNotificationChannels_.getUnmodifiableView();
@@ -107,22 +126,27 @@ private NotificationsRule(
       makeExtensionsImmutable();
     }
   }
-  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;
   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}`.
@@ -138,6 +162,7 @@ private NotificationsRule(
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ @java.lang.Override @@ -146,14 +171,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}`.
@@ -169,16 +195,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 { @@ -189,6 +214,8 @@ public java.lang.String getPubsubTopic() { public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object schemaVersion_; /** + * + * *
    * Optional. Required when
    * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -199,6 +226,7 @@ public java.lang.String getPubsubTopic() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ @java.lang.Override @@ -207,14 +235,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]
@@ -225,16 +254,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 { @@ -245,6 +273,8 @@ public java.lang.String getSchemaVersion() { public static final int MONITORING_NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList monitoringNotificationChannels_; /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded.
    * This is in addition to default recipients who have billing account IAM
@@ -256,14 +286,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
@@ -275,13 +309,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
@@ -293,7 +332,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. */ @@ -301,6 +343,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
@@ -312,18 +356,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_; /** + * + * *
    * Optional. When set to true, disables default notifications sent when a
    * threshold is exceeded. Default notifications are sent to those with Billing
@@ -332,6 +380,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 @@ -340,6 +389,7 @@ public boolean getDisableDefaultIamRecipients() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -351,8 +401,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_); } @@ -360,7 +409,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_); @@ -389,8 +439,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -400,21 +450,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -435,104 +483,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) + unknownFields.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.
@@ -540,21 +595,23 @@ 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()
@@ -562,16 +619,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -587,9 +643,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_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
@@ -608,7 +664,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);
+      com.google.cloud.billing.budgets.v1.NotificationsRule result =
+          new com.google.cloud.billing.budgets.v1.NotificationsRule(this);
       int from_bitField0_ = bitField0_;
       result.pubsubTopic_ = pubsubTopic_;
       result.schemaVersion_ = schemaVersion_;
@@ -626,38 +683,39 @@ public com.google.cloud.billing.budgets.v1.NotificationsRule 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.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;
@@ -665,7 +723,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_;
         onChanged();
@@ -706,7 +765,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.billing.budgets.v1.NotificationsRule) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.billing.budgets.v1.NotificationsRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -715,10 +775,13 @@ public Builder mergeFrom(
       }
       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}`.
@@ -734,13 +797,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; @@ -749,6 +812,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}`.
@@ -764,15 +829,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 { @@ -780,6 +844,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}`.
@@ -795,20 +861,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) { + public Builder setPubsubTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; 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}`.
@@ -824,15 +892,18 @@ public Builder setPubsubTopic(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); 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}`.
@@ -848,16 +919,16 @@ 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) { + public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -865,6 +936,8 @@ public Builder setPubsubTopicBytes( private java.lang.Object schemaVersion_ = ""; /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -875,13 +948,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; @@ -890,6 +963,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -900,15 +975,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 { @@ -916,6 +990,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -926,20 +1002,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) { + public Builder setSchemaVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schemaVersion_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -950,15 +1028,18 @@ public Builder setSchemaVersion(
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSchemaVersion() { - + schemaVersion_ = getDefaultInstance().getSchemaVersion(); onChanged(); return this; } /** + * + * *
      * Optional. Required when
      * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
@@ -969,29 +1050,34 @@ 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) { + public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaVersion_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList monitoringNotificationChannels_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMonitoringNotificationChannelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); + monitoringNotificationChannels_ = + new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1003,14 +1089,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 A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList - getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { return monitoringNotificationChannels_.getUnmodifiableView(); } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded.
      * This is in addition to default recipients who have billing account IAM
@@ -1022,13 +1112,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
@@ -1040,7 +1135,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. */ @@ -1048,6 +1146,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
@@ -1059,15 +1159,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
@@ -1079,22 +1183,26 @@ 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) { + public Builder setMonitoringNotificationChannels(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMonitoringNotificationChannelsIsMutable(); + throw new NullPointerException(); + } + ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.set(index, value); 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
@@ -1106,21 +1214,25 @@ 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) { + public Builder addMonitoringNotificationChannels(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMonitoringNotificationChannelsIsMutable(); + throw new NullPointerException(); + } + ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); 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
@@ -1132,7 +1244,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. */ @@ -1145,6 +1260,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
@@ -1156,7 +1273,10 @@ 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() { @@ -1166,6 +1286,8 @@ public Builder clearMonitoringNotificationChannels() { 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
@@ -1177,24 +1299,28 @@ 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) { + public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); onChanged(); 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
@@ -1202,7 +1328,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 @@ -1210,6 +1338,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
@@ -1217,17 +1347,21 @@ 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. */ public Builder setDisableDefaultIamRecipients(boolean value) { - + disableDefaultIamRecipients_ = value; onChanged(); return this; } /** + * + * *
      * Optional. When set to true, disables default notifications sent when a
      * threshold is exceeded. Default notifications are sent to those with Billing
@@ -1235,18 +1369,20 @@ 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() { - + disableDefaultIamRecipients_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1256,12 +1392,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(); } @@ -1270,16 +1406,16 @@ 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 { - return new NotificationsRule(input, extensionRegistry); - } - }; + 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 { + return new NotificationsRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1294,6 +1430,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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java index d2051c42..5d9b210d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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 will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -23,10 +41,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 will
    * be published, in the form `projects/{project_id}/topics/{topic_id}`.
@@ -42,12 +63,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]
@@ -58,10 +81,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]
@@ -72,12 +98,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. 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 NotificationsRuleOrBuilder 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 NotificationsRuleOrBuilder 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 NotificationsRuleOrBuilder 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 NotificationsRuleOrBuilder 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,6 +201,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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java index 7ad382ec..9bf9de02 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/budgets/v1/budget_model.proto package com.google.cloud.billing.budgets.v1; /** + * + * *
  * ThresholdRule contains a definition of a threshold which triggers
  * an alert (a notification of a threshold being crossed) to be sent when
@@ -16,31 +33,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ThresholdRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,24 +76,25 @@ private ThresholdRule(
           case 0:
             done = true;
             break;
-          case 9: {
-
-            thresholdPercent_ = input.readDouble();
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+          case 9:
+            {
+              thresholdPercent_ = input.readDouble();
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            spendBasis_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              spendBasis_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -84,36 +102,41 @@ private ThresholdRule(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.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.
      * 
@@ -122,6 +145,8 @@ public enum Basis */ BASIS_UNSPECIFIED(0), /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -130,6 +155,8 @@ public enum Basis */ CURRENT_SPEND(1), /** + * + * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -146,6 +173,8 @@ public enum Basis
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified threshold basis.
      * 
@@ -154,6 +183,8 @@ public enum Basis */ public static final int BASIS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -162,6 +193,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.
@@ -175,7 +208,6 @@ public enum Basis
      */
     public static final int FORECASTED_SPEND_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -200,49 +232,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;
@@ -262,6 +296,8 @@ private Basis(int value) {
   public static final int THRESHOLD_PERCENT_FIELD_NUMBER = 1;
   private double thresholdPercent_;
   /**
+   *
+   *
    * 
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -269,6 +305,7 @@ private Basis(int value) {
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -279,33 +316,49 @@ public double getThresholdPercent() { public static final int SPEND_BASIS_FIELD_NUMBER = 2; private int 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 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() { + @java.lang.Override + public com.google.cloud.billing.budgets.v1.ThresholdRule.Basis getSpendBasis() { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.valueOf(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.valueOf(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; @@ -317,12 +370,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_); } unknownFields.writeTo(output); @@ -335,12 +388,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,16 +402,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -373,8 +425,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) + unknownFields.hashCode(); @@ -383,96 +437,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 a definition of a threshold which triggers
    * an alert (a notification of a threshold being crossed) to be sent when
@@ -485,21 +546,23 @@ 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()
@@ -507,16 +570,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -528,9 +590,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
@@ -549,7 +611,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);
+      com.google.cloud.billing.budgets.v1.ThresholdRule result =
+          new com.google.cloud.billing.budgets.v1.ThresholdRule(this);
       result.thresholdPercent_ = thresholdPercent_;
       result.spendBasis_ = spendBasis_;
       onBuilt();
@@ -560,38 +623,39 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule 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.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;
@@ -599,7 +663,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());
       }
@@ -625,7 +690,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.billing.budgets.v1.ThresholdRule) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.billing.budgets.v1.ThresholdRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -635,8 +701,10 @@ public Builder mergeFrom(
       return this;
     }
 
-    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%.
@@ -644,6 +712,7 @@ public Builder mergeFrom(
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -651,6 +720,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%.
@@ -658,16 +729,19 @@ public double getThresholdPercent() {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The thresholdPercent to set. * @return This builder for chaining. */ public Builder setThresholdPercent(double value) { - + thresholdPercent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -675,10 +749,11 @@ public Builder setThresholdPercent(double value) {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearThresholdPercent() { - + thresholdPercent_ = 0D; onChanged(); return this; @@ -686,55 +761,79 @@ 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. */ public Builder setSpendBasisValue(int value) { - + spendBasis_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1.ThresholdRule.Basis.valueOf(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.valueOf(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. */ @@ -742,29 +841,34 @@ public Builder setSpendBasis(com.google.cloud.billing.budgets.v1.ThresholdRule.B if (value == null) { throw new NullPointerException(); } - + spendBasis_ = value.getNumber(); onChanged(); 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() { - + spendBasis_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -774,12 +878,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(); } @@ -788,16 +892,16 @@ 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 { - return new ThresholdRule(input, extensionRegistry); - } - }; + 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 { + return new ThresholdRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -812,6 +916,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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java index 7fecaa5c..45306400 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java index 9dff5ffe..4df8b7cb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateBudgetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateBudgetRequest( case 0: done = true; break; - case 10: { - com.google.cloud.billing.budgets.v1.Budget.Builder subBuilder = null; - if (budget_ != null) { - subBuilder = budget_.toBuilder(); - } - budget_ = input.readMessage(com.google.cloud.billing.budgets.v1.Budget.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(budget_); - budget_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.billing.budgets.v1.Budget.Builder subBuilder = null; + if (budget_ != null) { + subBuilder = budget_.toBuilder(); + } + budget_ = + input.readMessage( + com.google.cloud.billing.budgets.v1.Budget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(budget_); + budget_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +113,42 @@ private UpdateBudgetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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 @@ -128,25 +156,36 @@ 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() { @@ -156,6 +195,8 @@ public com.google.cloud.billing.budgets.v1.BudgetOrBuilder getBudgetOrBuilder() 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
@@ -165,7 +206,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 @@ -173,6 +216,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
@@ -182,7 +227,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 @@ -190,6 +237,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
@@ -199,7 +248,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() { @@ -207,6 +257,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,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 (budget_ != null) { output.writeMessage(1, getBudget()); } @@ -236,12 +286,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -251,22 +299,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -293,117 +340,127 @@ 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() @@ -411,16 +468,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +496,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 @@ -461,7 +517,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); + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest result = + new com.google.cloud.billing.budgets.v1.UpdateBudgetRequest(this); if (budgetBuilder_ == null) { result.budget_ = budget_; } else { @@ -480,38 +537,39 @@ public com.google.cloud.billing.budgets.v1.UpdateBudgetRequest 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.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; @@ -519,7 +577,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()); } @@ -545,7 +604,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1.UpdateBudgetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -557,42 +617,61 @@ public Builder mergeFrom( 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 budgetBuilder_ != null || 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. */ 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) { @@ -608,15 +687,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(); onChanged(); @@ -627,18 +709,24 @@ 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 (budget_ != null) { budget_ = - com.google.cloud.billing.budgets.v1.Budget.newBuilder(budget_).mergeFrom(value).buildPartial(); + com.google.cloud.billing.budgets.v1.Budget.newBuilder(budget_) + .mergeFrom(value) + .buildPartial(); } else { budget_ = value; } @@ -650,12 +738,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() { if (budgetBuilder_ == null) { @@ -669,51 +761,67 @@ 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() { - + onChanged(); 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_; @@ -721,8 +829,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
@@ -732,13 +845,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 updateMaskBuilder_ != null || 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
@@ -748,17 +865,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
@@ -768,7 +891,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) { @@ -784,6 +908,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
@@ -793,10 +919,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(); onChanged(); @@ -807,6 +933,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
@@ -816,13 +944,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -834,6 +963,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
@@ -843,7 +974,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() { if (updateMaskBuilder_ == null) { @@ -857,6 +989,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
@@ -866,14 +1000,17 @@ 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() { - + onChanged(); 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
@@ -883,17 +1020,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
@@ -903,24 +1044,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); } @@ -930,12 +1075,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(); } @@ -944,16 +1089,16 @@ 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 { - return new UpdateBudgetRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateBudgetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,6 +1113,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/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java rename to proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java index e2af918a..8affce90 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/UpdateBudgetRequestOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto b/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto rename to proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto b/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto rename to proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java index 5bb44ba7..2459e127 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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,15 +28,16 @@
  *
  * 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_ = "";
@@ -28,16 +46,15 @@ private AllUpdatesRule() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AllUpdatesRule();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AllUpdatesRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,39 +74,42 @@ private AllUpdatesRule(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            pubsubTopic_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            schemaVersion_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              pubsubTopic_ = s;
+              break;
             }
-            monitoringNotificationChannels_.add(s);
-            break;
-          }
-          case 32: {
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            disableDefaultIamRecipients_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              schemaVersion_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              monitoringNotificationChannels_.add(s);
+              break;
+            }
+          case 32:
+            {
+              disableDefaultIamRecipients_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,8 +117,7 @@ private AllUpdatesRule(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         monitoringNotificationChannels_ = monitoringNotificationChannels_.getUnmodifiableView();
@@ -107,22 +126,27 @@ private AllUpdatesRule(
       makeExtensionsImmutable();
     }
   }
-  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;
   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}`. Updates
@@ -138,6 +162,7 @@ private AllUpdatesRule(
    * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pubsubTopic. */ @java.lang.Override @@ -146,14 +171,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}`. Updates
@@ -169,16 +195,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 { @@ -189,6 +214,8 @@ public java.lang.String getPubsubTopic() { public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object schemaVersion_; /** + * + * *
    * Optional. Required when [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] is set. The schema version of
    * the notification sent to [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. Only "1.0" is
@@ -197,6 +224,7 @@ public java.lang.String getPubsubTopic() {
    * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The schemaVersion. */ @java.lang.Override @@ -205,14 +233,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] is set. The schema version of
    * the notification sent to [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. Only "1.0" is
@@ -221,16 +250,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 { @@ -241,6 +269,8 @@ public java.lang.String getSchemaVersion() { public static final int MONITORING_NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList monitoringNotificationChannels_; /** + * + * *
    * Optional. Targets to send notifications to when a threshold is exceeded. This is in
    * addition to default recipients who have billing account IAM roles.
@@ -252,14 +282,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 roles.
@@ -271,13 +305,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 roles.
@@ -289,7 +328,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. */ @@ -297,6 +339,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 roles.
@@ -308,18 +352,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_; /** + * + * *
    * Optional. When set to true, disables default notifications sent when a threshold is
    * exceeded. Default notifications are sent to those with Billing Account
@@ -327,6 +375,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 @@ -335,6 +384,7 @@ public boolean getDisableDefaultIamRecipients() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -346,8 +396,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_); } @@ -355,7 +404,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_); @@ -384,8 +434,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -395,21 +445,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -430,104 +478,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) + unknownFields.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.
@@ -535,21 +590,23 @@ 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()
@@ -557,16 +614,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -582,9 +638,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_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
@@ -603,7 +659,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);
+      com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule result =
+          new com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule(this);
       int from_bitField0_ = bitField0_;
       result.pubsubTopic_ = pubsubTopic_;
       result.schemaVersion_ = schemaVersion_;
@@ -621,38 +678,39 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule 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.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;
@@ -660,7 +718,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_;
         onChanged();
@@ -701,7 +760,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -710,10 +770,13 @@ public Builder mergeFrom(
       }
       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}`. Updates
@@ -729,13 +792,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; @@ -744,6 +807,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}`. Updates
@@ -759,15 +824,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 { @@ -775,6 +839,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}`. Updates
@@ -790,20 +856,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) { + public Builder setPubsubTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; 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}`. Updates
@@ -819,15 +887,18 @@ public Builder setPubsubTopic(
      * 
* * string pubsub_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); 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}`. Updates
@@ -843,16 +914,16 @@ 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) { + public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -860,6 +931,8 @@ public Builder setPubsubTopicBytes( private java.lang.Object schemaVersion_ = ""; /** + * + * *
      * Optional. Required when [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] is set. The schema version of
      * the notification sent to [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. Only "1.0" is
@@ -868,13 +941,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; @@ -883,6 +956,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] is set. The schema version of
      * the notification sent to [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. Only "1.0" is
@@ -891,15 +966,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 { @@ -907,6 +981,8 @@ public java.lang.String getSchemaVersion() { } } /** + * + * *
      * Optional. Required when [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] is set. The schema version of
      * the notification sent to [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. Only "1.0" is
@@ -915,20 +991,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) { + public Builder setSchemaVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schemaVersion_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Required when [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] is set. The schema version of
      * the notification sent to [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. Only "1.0" is
@@ -937,15 +1015,18 @@ public Builder setSchemaVersion(
      * 
* * string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSchemaVersion() { - + schemaVersion_ = getDefaultInstance().getSchemaVersion(); onChanged(); return this; } /** + * + * *
      * Optional. Required when [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] is set. The schema version of
      * the notification sent to [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. Only "1.0" is
@@ -954,29 +1035,34 @@ 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) { + public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaVersion_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList monitoringNotificationChannels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList monitoringNotificationChannels_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMonitoringNotificationChannelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - monitoringNotificationChannels_ = new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); + monitoringNotificationChannels_ = + new com.google.protobuf.LazyStringArrayList(monitoringNotificationChannels_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded. This is in
      * addition to default recipients who have billing account IAM roles.
@@ -988,14 +1074,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 A list containing the monitoringNotificationChannels. */ - public com.google.protobuf.ProtocolStringList - getMonitoringNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getMonitoringNotificationChannelsList() { return monitoringNotificationChannels_.getUnmodifiableView(); } /** + * + * *
      * Optional. Targets to send notifications to when a threshold is exceeded. This is in
      * addition to default recipients who have billing account IAM roles.
@@ -1007,13 +1097,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 roles.
@@ -1025,7 +1120,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. */ @@ -1033,6 +1131,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 roles.
@@ -1044,15 +1144,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 roles.
@@ -1064,22 +1168,26 @@ 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) { + public Builder setMonitoringNotificationChannels(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMonitoringNotificationChannelsIsMutable(); + throw new NullPointerException(); + } + ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.set(index, value); 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 roles.
@@ -1091,21 +1199,25 @@ 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) { + public Builder addMonitoringNotificationChannels(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMonitoringNotificationChannelsIsMutable(); + throw new NullPointerException(); + } + ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); 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 roles.
@@ -1117,7 +1229,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. */ @@ -1130,6 +1245,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 roles.
@@ -1141,7 +1258,10 @@ 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() { @@ -1151,6 +1271,8 @@ public Builder clearMonitoringNotificationChannels() { 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 roles.
@@ -1162,31 +1284,37 @@ 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) { + public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMonitoringNotificationChannelsIsMutable(); monitoringNotificationChannels_.add(value); onChanged(); 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 Account
      * Administrator and Billing Account User IAM roles for the target 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 @@ -1194,41 +1322,49 @@ 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 Account
      * Administrator and Billing Account User IAM roles for the target 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. */ public Builder setDisableDefaultIamRecipients(boolean value) { - + disableDefaultIamRecipients_ = value; onChanged(); return this; } /** + * + * *
      * Optional. When set to true, disables default notifications sent when a threshold is
      * exceeded. Default notifications are sent to those with Billing Account
      * Administrator and Billing Account User IAM roles for the target 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() { - + disableDefaultIamRecipients_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1238,12 +1374,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(); } @@ -1252,16 +1388,16 @@ 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 { - return new AllUpdatesRule(input, extensionRegistry); - } - }; + 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 { + return new AllUpdatesRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1276,6 +1412,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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java similarity index 80% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java index eab4d095..89309fc3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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}`. Updates
@@ -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}`. Updates
@@ -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] is set. The schema version of
    * the notification sent to [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. Only "1.0" is
@@ -56,10 +79,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] is set. The schema version of
    * the notification sent to [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. Only "1.0" is
@@ -68,12 +94,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 roles.
@@ -85,12 +113,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 roles.
@@ -102,11 +134,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 roles.
@@ -118,12 +155,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 roles.
@@ -135,14 +177,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 Account
@@ -150,6 +196,7 @@ public interface AllUpdatesRuleOrBuilder extends
    * 
* * bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultIamRecipients. */ boolean getDisableDefaultIamRecipients(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java index ab3e84d1..75a16802 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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,16 +50,15 @@ private Budget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Budget();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Budget(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,79 +78,98 @@ private Budget(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.billing.budgets.v1beta1.Filter.Builder subBuilder = null;
-            if (budgetFilter_ != null) {
-              subBuilder = budgetFilter_.toBuilder();
-            }
-            budgetFilter_ = input.readMessage(com.google.cloud.billing.budgets.v1beta1.Filter.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(budgetFilter_);
-              budgetFilter_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder subBuilder = null;
-            if (amount_ != null) {
-              subBuilder = amount_.toBuilder();
+              displayName_ = s;
+              break;
             }
-            amount_ = input.readMessage(com.google.cloud.billing.budgets.v1beta1.BudgetAmount.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(amount_);
-              amount_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.cloud.billing.budgets.v1beta1.Filter.Builder subBuilder = null;
+              if (budgetFilter_ != null) {
+                subBuilder = budgetFilter_.toBuilder();
+              }
+              budgetFilter_ =
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1beta1.Filter.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(budgetFilter_);
+                budgetFilter_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              thresholdRules_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 34:
+            {
+              com.google.cloud.billing.budgets.v1beta1.BudgetAmount.Builder subBuilder = null;
+              if (amount_ != null) {
+                subBuilder = amount_.toBuilder();
+              }
+              amount_ =
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1beta1.BudgetAmount.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(amount_);
+                amount_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            thresholdRules_.add(
-                input.readMessage(com.google.cloud.billing.budgets.v1beta1.ThresholdRule.parser(), extensionRegistry));
-            break;
-          }
-          case 50: {
-            com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder subBuilder = null;
-            if (allUpdatesRule_ != null) {
-              subBuilder = allUpdatesRule_.toBuilder();
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                thresholdRules_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.billing.budgets.v1beta1.ThresholdRule>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              thresholdRules_.add(
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1beta1.ThresholdRule.parser(),
+                      extensionRegistry));
+              break;
             }
-            allUpdatesRule_ = input.readMessage(com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(allUpdatesRule_);
-              allUpdatesRule_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.Builder subBuilder = null;
+              if (allUpdatesRule_ != null) {
+                subBuilder = allUpdatesRule_.toBuilder();
+              }
+              allUpdatesRule_ =
+                  input.readMessage(
+                      com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(allUpdatesRule_);
+                allUpdatesRule_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            etag_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              etag_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -141,8 +177,7 @@ private Budget(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         thresholdRules_ = java.util.Collections.unmodifiableList(thresholdRules_);
@@ -151,22 +186,27 @@ private Budget(
       makeExtensionsImmutable();
     }
   }
-  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;
   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
@@ -174,6 +214,7 @@ private Budget(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -182,14 +223,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
@@ -197,16 +239,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 { @@ -217,12 +258,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; 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 @@ -231,30 +275,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 { @@ -265,13 +309,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 @@ -279,27 +328,38 @@ 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() { @@ -309,11 +369,16 @@ public com.google.cloud.billing.budgets.v1beta1.FilterOrBuilder getBudgetFilterO 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 @@ -321,23 +386,34 @@ 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() { @@ -347,6 +423,8 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmountOrBuilder getAmountO public static final int THRESHOLD_RULES_FIELD_NUMBER = 5; private java.util.List thresholdRules_; /** + * + * *
    * Optional. Rules that trigger alerts (notifications of thresholds
    * being crossed) when spend exceeds the specified percentages of the budget.
@@ -354,13 +432,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.
@@ -368,14 +451,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.
@@ -383,13 +470,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.
@@ -397,13 +488,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.
@@ -411,7 +506,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( @@ -422,11 +519,16 @@ 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 @@ -434,32 +536,46 @@ 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() { + public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder + getAllUpdatesRuleOrBuilder() { return getAllUpdatesRule(); } public static final int ETAG_FIELD_NUMBER = 7; private volatile java.lang.Object etag_; /** + * + * *
    * Optional. Etag to validate that the object is unchanged for a
    * read-modify-write operation.
@@ -467,6 +583,7 @@ public com.google.cloud.billing.budgets.v1beta1.AllUpdatesRuleOrBuilder getAllUp
    * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -475,14 +592,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.
@@ -490,16 +608,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 { @@ -508,6 +625,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -519,8 +637,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_); } @@ -558,20 +675,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_); @@ -584,36 +697,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -652,97 +759,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,
@@ -753,21 +867,23 @@ 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()
@@ -775,17 +891,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getThresholdRulesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -823,9 +939,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
@@ -844,7 +960,8 @@ 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);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -881,38 +998,39 @@ public com.google.cloud.billing.budgets.v1beta1.Budget 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.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;
@@ -920,7 +1038,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_;
         onChanged();
@@ -953,9 +1072,10 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Budget other)
             thresholdRulesBuilder_ = null;
             thresholdRules_ = other.thresholdRules_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            thresholdRulesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getThresholdRulesFieldBuilder() : null;
+            thresholdRulesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getThresholdRulesFieldBuilder()
+                    : null;
           } else {
             thresholdRulesBuilder_.addAllMessages(other.thresholdRules_);
           }
@@ -996,10 +1116,13 @@ public Builder mergeFrom(
       }
       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
@@ -1007,13 +1130,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; @@ -1022,6 +1145,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
@@ -1029,15 +1154,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 { @@ -1045,6 +1169,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
@@ -1052,20 +1178,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1073,15 +1201,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the budget.
      * The resource name implies the scope of a budget. Values are of the form
@@ -1089,16 +1220,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1106,19 +1237,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; @@ -1127,21 +1260,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 { @@ -1149,57 +1283,64 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; 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() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1207,45 +1348,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 budgetFilterBuilder_ != null || 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. */ 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) { @@ -1261,13 +1421,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) { @@ -1281,19 +1445,25 @@ 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 (budgetFilter_ != null) { budgetFilter_ = - com.google.cloud.billing.budgets.v1beta1.Filter.newBuilder(budgetFilter_).mergeFrom(value).buildPartial(); + com.google.cloud.billing.budgets.v1beta1.Filter.newBuilder(budgetFilter_) + .mergeFrom(value) + .buildPartial(); } else { budgetFilter_ = value; } @@ -1305,13 +1475,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() { if (budgetFilterBuilder_ == null) { @@ -1325,54 +1499,70 @@ 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() { - + onChanged(); 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_; @@ -1380,39 +1570,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 amountBuilder_ != null || 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. */ 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) { @@ -1428,11 +1637,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) { @@ -1446,17 +1659,23 @@ 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 (amount_ != null) { amount_ = - com.google.cloud.billing.budgets.v1beta1.BudgetAmount.newBuilder(amount_).mergeFrom(value).buildPartial(); + com.google.cloud.billing.budgets.v1beta1.BudgetAmount.newBuilder(amount_) + .mergeFrom(value) + .buildPartial(); } else { amount_ = value; } @@ -1468,11 +1687,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() { if (amountBuilder_ == null) { @@ -1486,66 +1709,90 @@ 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() { - + onChanged(); 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_ & 0x00000001) != 0)) { - thresholdRules_ = new java.util.ArrayList(thresholdRules_); + thresholdRules_ = + new java.util.ArrayList( + thresholdRules_); bitField0_ |= 0x00000001; - } + } } 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.
@@ -1553,9 +1800,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 { @@ -1563,6 +1813,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.
@@ -1570,7 +1822,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) { @@ -1580,6 +1834,8 @@ public int getThresholdRulesCount() { } } /** + * + * *
      * Optional. Rules that trigger alerts (notifications of thresholds
      * being crossed) when spend exceeds the specified percentages of the budget.
@@ -1587,7 +1843,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) { @@ -1597,6 +1855,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.
@@ -1604,7 +1864,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) { @@ -1621,6 +1883,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.
@@ -1628,7 +1892,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) { @@ -1642,6 +1908,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.
@@ -1649,7 +1917,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) { @@ -1665,6 +1935,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.
@@ -1672,7 +1944,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) { @@ -1689,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.
@@ -1696,7 +1972,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) { @@ -1710,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.
@@ -1717,7 +1997,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) { @@ -1731,6 +2013,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.
@@ -1738,14 +2022,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); @@ -1753,6 +2039,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.
@@ -1760,7 +2048,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) { @@ -1773,6 +2063,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.
@@ -1780,7 +2072,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) { @@ -1793,6 +2087,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.
@@ -1800,13 +2096,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.
@@ -1814,16 +2114,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.
@@ -1831,10 +2136,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 { @@ -1842,6 +2149,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.
@@ -1849,13 +2158,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 +2177,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.
@@ -1878,18 +2197,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_ & 0x00000001) != 0), getParentForChildren(), @@ -1901,41 +2228,61 @@ 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 allUpdatesRuleBuilder_ != null || 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. */ 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(); @@ -1949,11 +2296,15 @@ 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) { @@ -1967,17 +2318,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 (allUpdatesRule_ != null) { allUpdatesRule_ = - com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.newBuilder(allUpdatesRule_).mergeFrom(value).buildPartial(); + com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule.newBuilder(allUpdatesRule_) + .mergeFrom(value) + .buildPartial(); } else { allUpdatesRule_ = value; } @@ -1989,11 +2347,15 @@ 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() { if (allUpdatesRuleBuilder_ == null) { @@ -2007,48 +2369,66 @@ 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() { + 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_; @@ -2056,6 +2436,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.
@@ -2063,13 +2445,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; @@ -2078,6 +2460,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2085,15 +2469,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 { @@ -2101,6 +2484,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2108,20 +2493,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) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2129,15 +2516,18 @@ public Builder setEtag(
      * 
* * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Optional. Etag to validate that the object is unchanged for a
      * read-modify-write operation.
@@ -2145,23 +2535,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) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2171,12 +2561,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(); } @@ -2185,16 +2575,16 @@ 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 { - return new Budget(input, extensionRegistry); - } - }; + 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 { + return new Budget(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2209,6 +2599,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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java index 81890f74..2275d5e1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BudgetAmount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,41 +68,47 @@ private BudgetAmount( case 0: done = true; break; - case 10: { - com.google.type.Money.Builder subBuilder = null; - if (budgetAmountCase_ == 1) { - subBuilder = ((com.google.type.Money) budgetAmount_).toBuilder(); + case 10: + { + com.google.type.Money.Builder subBuilder = null; + if (budgetAmountCase_ == 1) { + subBuilder = ((com.google.type.Money) budgetAmount_).toBuilder(); + } + budgetAmount_ = input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.Money) budgetAmount_); + budgetAmount_ = subBuilder.buildPartial(); + } + budgetAmountCase_ = 1; + break; } - budgetAmount_ = - input.readMessage(com.google.type.Money.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.type.Money) budgetAmount_); - budgetAmount_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder subBuilder = null; + if (budgetAmountCase_ == 2) { + subBuilder = + ((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_) + .toBuilder(); + } + budgetAmount_ = + input.readMessage( + com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_); + budgetAmount_ = subBuilder.buildPartial(); + } + budgetAmountCase_ = 2; + break; } - budgetAmountCase_ = 1; - break; - } - case 18: { - com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.Builder subBuilder = null; - if (budgetAmountCase_ == 2) { - subBuilder = ((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_).toBuilder(); - } - budgetAmount_ = - input.readMessage(com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) budgetAmount_); - budgetAmount_ = subBuilder.buildPartial(); - } - budgetAmountCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,35 +116,40 @@ private BudgetAmount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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; 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; } @@ -138,25 +165,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
@@ -166,6 +198,7 @@ public int getNumber() {
    * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -173,6 +206,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
@@ -182,16 +217,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
@@ -205,13 +243,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
@@ -220,6 +260,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 @@ -227,6 +268,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
@@ -235,16 +278,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
@@ -255,14 +301,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;
@@ -274,13 +322,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_);
     }
     unknownFields.writeTo(output);
   }
@@ -292,12 +340,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -307,22 +357,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:
@@ -356,117 +405,127 @@ 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() @@ -474,16 +533,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -493,9 +551,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 @@ -514,7 +572,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); + com.google.cloud.billing.budgets.v1beta1.BudgetAmount result = + new com.google.cloud.billing.budgets.v1beta1.BudgetAmount(this); if (budgetAmountCase_ == 1) { if (specifiedAmountBuilder_ == null) { result.budgetAmount_ = budgetAmount_; @@ -538,38 +597,39 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetAmount 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.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; @@ -577,19 +637,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.unknownFields); onChanged(); @@ -610,7 +674,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1beta1.BudgetAmount) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1beta1.BudgetAmount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -619,12 +684,12 @@ public Builder mergeFrom( } 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() { @@ -634,10 +699,12 @@ public Builder clearBudgetAmount() { return this; } - 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
@@ -647,6 +714,7 @@ public Builder clearBudgetAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return Whether the specifiedAmount field is set. */ @java.lang.Override @@ -654,6 +722,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
@@ -663,6 +733,7 @@ public boolean hasSpecifiedAmount() {
      * 
* * .google.type.Money specified_amount = 1; + * * @return The specifiedAmount. */ @java.lang.Override @@ -680,6 +751,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
@@ -704,6 +777,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
@@ -714,8 +789,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();
@@ -726,6 +800,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
@@ -738,10 +814,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;
         }
@@ -757,6 +834,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
@@ -784,6 +863,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
@@ -798,6 +879,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
@@ -820,6 +903,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
@@ -831,27 +916,34 @@ 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;
-      onChanged();;
+      onChanged();
+      ;
       return specifiedAmountBuilder_;
     }
 
     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
@@ -860,6 +952,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 @@ -867,6 +960,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
@@ -875,6 +970,7 @@ public boolean hasLastPeriodAmount() {
      * 
* * .google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2; + * * @return The lastPeriodAmount. */ @java.lang.Override @@ -892,6 +988,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
@@ -901,7 +999,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();
@@ -915,6 +1014,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
@@ -936,6 +1037,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
@@ -945,12 +1048,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;
         }
@@ -966,6 +1074,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
@@ -992,6 +1102,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
@@ -1001,10 +1113,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
@@ -1015,7 +1130,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 {
@@ -1026,6 +1142,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
@@ -1036,26 +1154,33 @@ 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());
         budgetAmount_ = null;
       }
       budgetAmountCase_ = 2;
-      onChanged();;
+      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);
     }
 
@@ -1065,12 +1190,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();
   }
@@ -1079,16 +1204,16 @@ 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 {
-      return new BudgetAmount(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BudgetAmount(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1103,6 +1228,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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
similarity index 82%
rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
index 92e0d330..58002f2a 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/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
@@ -55,10 +81,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
@@ -67,10 +96,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
@@ -82,5 +114,6 @@ public interface BudgetAmountOrBuilder extends
    */
   com.google.cloud.billing.budgets.v1beta1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder();
 
-  public com.google.cloud.billing.budgets.v1beta1.BudgetAmount.BudgetAmountCase getBudgetAmountCase();
+  public com.google.cloud.billing.budgets.v1beta1.BudgetAmount.BudgetAmountCase
+      getBudgetAmountCase();
 }
diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
new file mode 100644
index 00000000..3fb45980
--- /dev/null
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
@@ -0,0 +1,235 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/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\"\336\003\n\006B"
+          + "udget\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name"
+          + "\030\002 \001(\t\022H\n\rbudget_filter\030\003 \001(\0132,.google.c"
+          + "loud.billing.budgets.v1beta1.FilterB\003\340A\001"
+          + "\022G\n\006amount\030\004 \001(\01322.google.cloud.billing."
+          + "budgets.v1beta1.BudgetAmountB\003\340A\002\022Q\n\017thr"
+          + "eshold_rules\030\005 \003(\01323.google.cloud.billin"
+          + "g.budgets.v1beta1.ThresholdRuleB\003\340A\001\022S\n\020"
+          + "all_updates_rule\030\006 \001(\01324.google.cloud.bi"
+          + "lling.budgets.v1beta1.AllUpdatesRuleB\003\340A"
+          + "\001\022\021\n\004etag\030\007 \001(\tB\003\340A\001:]\352AZ\n$billingbudget"
+          + "s.googleapis.com/Budget\0222billingAccounts"
+          + "/{billing_account}/budgets/{budget}\"\245\001\n\014"
+          + "BudgetAmount\022.\n\020specified_amount\030\001 \001(\0132\022"
+          + ".google.type.MoneyH\000\022T\n\022last_period_amou"
+          + "nt\030\002 \001(\01326.google.cloud.billing.budgets."
+          + "v1beta1.LastPeriodAmountH\000B\017\n\rbudget_amo"
+          + "unt\"\022\n\020LastPeriodAmount\"\315\001\n\rThresholdRul"
+          + "e\022\036\n\021threshold_percent\030\001 \001(\001B\003\340A\002\022S\n\013spe"
+          + "nd_basis\030\002 \001(\01629.google.cloud.billing.bu"
+          + "dgets.v1beta1.ThresholdRule.BasisB\003\340A\001\"G"
+          + "\n\005Basis\022\025\n\021BASIS_UNSPECIFIED\020\000\022\021\n\rCURREN"
+          + "T_SPEND\020\001\022\024\n\020FORECASTED_SPEND\020\002\"\244\001\n\016AllU"
+          + "pdatesRule\022\031\n\014pubsub_topic\030\001 \001(\tB\003\340A\001\022\033\n"
+          + "\016schema_version\030\002 \001(\tB\003\340A\001\022-\n monitoring"
+          + "_notification_channels\030\003 \003(\tB\003\340A\001\022+\n\036dis"
+          + "able_default_iam_recipients\030\004 \001(\010B\003\340A\001\"\267"
+          + "\005\n\006Filter\022\025\n\010projects\030\001 \003(\tB\003\340A\001\022\031\n\014cred"
+          + "it_types\030\007 \003(\tB\003\340A\001\022f\n\026credit_types_trea"
+          + "tment\030\004 \001(\0162A.google.cloud.billing.budge"
+          + "ts.v1beta1.Filter.CreditTypesTreatmentB\003"
+          + "\340A\001\022\025\n\010services\030\003 \003(\tB\003\340A\001\022\030\n\013subaccount"
+          + "s\030\005 \003(\tB\003\340A\001\022M\n\006labels\030\006 \003(\01328.google.cl"
+          + "oud.billing.budgets.v1beta1.Filter.Label"
+          + "sEntryB\003\340A\001\022T\n\017calendar_period\030\010 \001(\01624.g"
+          + "oogle.cloud.billing.budgets.v1beta1.Cale"
+          + "ndarPeriodB\003\340A\001H\000\022P\n\rcustom_period\030\t \001(\013"
+          + "22.google.cloud.billing.budgets.v1beta1."
+          + "CustomPeriodB\003\340A\001H\000\032I\n\013LabelsEntry\022\013\n\003ke"
+          + "y\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.protobuf"
+          + ".ListValue:\0028\001\"\217\001\n\024CreditTypesTreatment\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_SPECIFIED_CREDITS\020\003"
+          + "B\016\n\014usage_period\"d\n\014CustomPeriod\022*\n\nstar"
+          + "t_date\030\001 \001(\0132\021.google.type.DateB\003\340A\002\022(\n\010"
+          + "end_date\030\002 \001(\0132\021.google.type.DateB\003\340A\001*S"
+          + "\n\016CalendarPeriod\022\037\n\033CALENDAR_PERIOD_UNSP"
+          + "ECIFIED\020\000\022\t\n\005MONTH\020\001\022\013\n\007QUARTER\020\002\022\010\n\004YEA"
+          + "R\020\003By\n(com.google.cloud.billing.budgets."
+          + "v1beta1P\001ZKgoogle.golang.org/genproto/go"
+          + "ogleapis/cloud/billing/budgets/v1beta1;b"
+          + "udgetsb\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",
+              "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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
similarity index 65%
rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
index 071e5000..e227af4d 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/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.
@@ -121,11 +177,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.
@@ -133,10 +192,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.
@@ -144,10 +207,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.
@@ -155,11 +222,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.
@@ -167,39 +238,57 @@ 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.
@@ -207,10 +296,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.
@@ -218,8 +310,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/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java new file mode 100644 index 00000000..480a191f --- /dev/null +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceOuterClass.java @@ -0,0 +1,198 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/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\"\226\001\n\023CreateBudgetRequest\022<\n\006" + + "parent\030\001 \001(\tB,\340A\002\372A&\022$billingbudgets.goo" + + "gleapis.com/Budget\022A\n\006budget\030\002 \001(\0132,.goo" + + "gle.cloud.billing.budgets.v1beta1.Budget" + + "B\003\340A\002\"\216\001\n\023UpdateBudgetRequest\022A\n\006budget\030" + + "\001 \001(\0132,.google.cloud.billing.budgets.v1b" + + "eta1.BudgetB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMaskB\003\340A\001\"N\n\020GetBud" + + "getRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$billin" + + "gbudgets.googleapis.com/Budget\"\203\001\n\022ListB" + + "udgetsRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$b" + + "illingbudgets.googleapis.com/Budget\022\026\n\tp" + + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" + + "\003\340A\001\"m\n\023ListBudgetsResponse\022=\n\007budgets\030\001" + + " \003(\0132,.google.cloud.billing.budgets.v1be" + + "ta1.Budget\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\023D" + + "eleteBudgetRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&" + + "\n$billingbudgets.googleapis.com/Budget2\367" + + "\007\n\rBudgetService\022\257\001\n\014CreateBudget\0229.goog" + + "le.cloud.billing.budgets.v1beta1.CreateB" + + "udgetRequest\032,.google.cloud.billing.budg" + + "ets.v1beta1.Budget\"6\202\323\344\223\0020\"+/v1beta1/{pa" + + "rent=billingAccounts/*}/budgets:\001*\022\266\001\n\014U" + + "pdateBudget\0229.google.cloud.billing.budge" + + "ts.v1beta1.UpdateBudgetRequest\032,.google." + + "cloud.billing.budgets.v1beta1.Budget\"=\202\323" + + "\344\223\002722/v1beta1/{budget.name=billingAccou" + + "nts/*/budgets/*}:\001*\022\246\001\n\tGetBudget\0226.goog" + + "le.cloud.billing.budgets.v1beta1.GetBudg" + + "etRequest\032,.google.cloud.billing.budgets" + + ".v1beta1.Budget\"3\202\323\344\223\002-\022+/v1beta1/{name=" + + "billingAccounts/*/budgets/*}\022\267\001\n\013ListBud" + + "gets\0228.google.cloud.billing.budgets.v1be" + + "ta1.ListBudgetsRequest\0329.google.cloud.bi" + + "lling.budgets.v1beta1.ListBudgetsRespons" + + "e\"3\202\323\344\223\002-\022+/v1beta1/{parent=billingAccou" + + "nts/*}/budgets\022\226\001\n\014DeleteBudget\0229.google" + + ".cloud.billing.budgets.v1beta1.DeleteBud" + + "getRequest\032\026.google.protobuf.Empty\"3\202\323\344\223" + + "\002-*+/v1beta1/{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-platformBy\n(com.google.cloud.bil" + + "ling.budgets.v1beta1P\001ZKgoogle.golang.or" + + "g/genproto/googleapis/cloud/billing/budg" + + "ets/v1beta1;budgetsb\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/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java index 86d01ba9..596de94c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java index bd9910e2..b9bb2795 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateBudgetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private CreateBudgetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.billing.budgets.v1beta1.Budget.Builder subBuilder = null; - if (budget_ != null) { - subBuilder = budget_.toBuilder(); + parent_ = s; + break; } - budget_ = input.readMessage(com.google.cloud.billing.budgets.v1beta1.Budget.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(budget_); - budget_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.billing.budgets.v1beta1.Budget.Builder subBuilder = null; + if (budget_ != null) { + subBuilder = budget_.toBuilder(); + } + budget_ = + input.readMessage( + com.google.cloud.billing.budgets.v1beta1.Budget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(budget_); + budget_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +107,42 @@ private CreateBudgetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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; 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 @@ -123,30 +151,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 { @@ -157,11 +187,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 @@ -169,23 +204,34 @@ 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() { @@ -193,6 +239,7 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +251,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_); } @@ -225,8 +271,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +281,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +317,127 @@ 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() @@ -391,16 +445,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,13 +469,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(); } @@ -437,7 +491,8 @@ 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); + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest(this); result.parent_ = parent_; if (budgetBuilder_ == null) { result.budget_ = budget_; @@ -452,38 +507,39 @@ public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest 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.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; @@ -491,7 +547,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_; onChanged(); @@ -518,7 +576,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +589,23 @@ public Builder mergeFrom( 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; @@ -551,21 +614,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 { @@ -573,57 +639,70 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -631,39 +710,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 budgetBuilder_ != null || 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. */ 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) { @@ -679,11 +777,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) { @@ -697,17 +799,23 @@ 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 (budget_ != null) { budget_ = - com.google.cloud.billing.budgets.v1beta1.Budget.newBuilder(budget_).mergeFrom(value).buildPartial(); + com.google.cloud.billing.budgets.v1beta1.Budget.newBuilder(budget_) + .mergeFrom(value) + .buildPartial(); } else { budget_ = value; } @@ -719,11 +827,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() { if (budgetBuilder_ == null) { @@ -737,55 +849,71 @@ 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() { - + onChanged(); 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); } @@ -795,12 +923,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(); } @@ -809,16 +938,16 @@ 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 { - return new CreateBudgetRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateBudgetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +962,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java new file mode 100644 index 00000000..15681091 --- /dev/null +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CreateBudgetRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java index 39d2ac0a..c0bb8dcd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CustomPeriod( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,41 @@ private CustomPeriod( case 0: done = true; break; - case 10: { - com.google.type.Date.Builder subBuilder = null; - if (startDate_ != null) { - subBuilder = startDate_.toBuilder(); - } - startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startDate_); - startDate_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.type.Date.Builder subBuilder = null; - if (endDate_ != null) { - subBuilder = endDate_.toBuilder(); + case 10: + { + com.google.type.Date.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; } - endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endDate_); - endDate_ = subBuilder.buildPartial(); + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +110,39 @@ private CustomPeriod( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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 @@ -127,11 +150,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 @@ -139,6 +165,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.
    * 
@@ -153,6 +181,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
@@ -160,6 +190,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 @@ -167,6 +198,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
@@ -174,6 +207,7 @@ public boolean hasEndDate() {
    * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ @java.lang.Override @@ -181,6 +215,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
@@ -195,6 +231,7 @@ public com.google.type.DateOrBuilder getEndDateOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,8 +243,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());
     }
@@ -224,12 +260,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -239,22 +273,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -281,117 +314,127 @@ 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() @@ -399,16 +442,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +470,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 @@ -449,7 +491,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); + com.google.cloud.billing.budgets.v1beta1.CustomPeriod result = + new com.google.cloud.billing.budgets.v1beta1.CustomPeriod(this); if (startDateBuilder_ == null) { result.startDate_ = startDate_; } else { @@ -468,38 +511,39 @@ public com.google.cloud.billing.budgets.v1beta1.CustomPeriod 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.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; @@ -507,7 +551,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()); } @@ -533,7 +578,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -545,24 +591,31 @@ public Builder mergeFrom( 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 startDateBuilder_ != null || 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. */ public com.google.type.Date getStartDate() { @@ -573,6 +626,8 @@ public com.google.type.Date getStartDate() { } } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -593,14 +648,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(); onChanged(); @@ -611,6 +667,8 @@ public Builder setStartDate( return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -620,8 +678,7 @@ public Builder setStartDate( public Builder mergeStartDate(com.google.type.Date value) { if (startDateBuilder_ == null) { if (startDate_ != null) { - startDate_ = - com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); + startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); } else { startDate_ = value; } @@ -633,6 +690,8 @@ public Builder mergeStartDate(com.google.type.Date value) { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -651,6 +710,8 @@ public Builder clearStartDate() { return this; } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -658,11 +719,13 @@ public Builder clearStartDate() { * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.type.Date.Builder getStartDateBuilder() { - + onChanged(); return getStartDateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The start date must be after January 1, 2017.
      * 
@@ -673,11 +736,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.
      * 
@@ -685,14 +749,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_; @@ -700,8 +763,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
@@ -709,12 +775,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 endDateBuilder_ != null || 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
@@ -722,6 +791,7 @@ public boolean hasEndDate() {
      * 
* * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The endDate. */ public com.google.type.Date getEndDate() { @@ -732,6 +802,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
@@ -754,6 +826,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
@@ -762,8 +836,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();
         onChanged();
@@ -774,6 +847,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
@@ -785,8 +860,7 @@ public Builder setEndDate(
     public Builder mergeEndDate(com.google.type.Date value) {
       if (endDateBuilder_ == null) {
         if (endDate_ != null) {
-          endDate_ =
-            com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial();
+          endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial();
         } else {
           endDate_ = value;
         }
@@ -798,6 +872,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
@@ -818,6 +894,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
@@ -827,11 +905,13 @@ public Builder clearEndDate() {
      * .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     public com.google.type.Date.Builder getEndDateBuilder() {
-      
+
       onChanged();
       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
@@ -844,11 +924,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
@@ -858,21 +939,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);
     }
 
@@ -882,12 +962,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();
   }
@@ -896,16 +976,16 @@ 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 {
-      return new CustomPeriod(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new CustomPeriod(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -920,6 +1000,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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
similarity index 75%
rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
index 44064980..0a632827 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/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
@@ -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
@@ -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
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
similarity index 65%
rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
index f80378e9..f825946a 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteBudgetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteBudgetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteBudgetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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; 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 @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ 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() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +379,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(); } @@ -364,7 +401,8 @@ 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); + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +412,39 @@ public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest 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.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; @@ -413,7 +452,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_; onChanged(); @@ -437,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +491,23 @@ public Builder mergeFrom( 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; @@ -470,21 +516,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 { @@ -492,64 +541,77 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +621,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(); } @@ -573,16 +636,16 @@ 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 { - return new DeleteBudgetRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteBudgetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +660,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java new file mode 100644 index 00000000..b34bfb95 --- /dev/null +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/DeleteBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java index 485d2a58..c19f88db 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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.EMPTY; creditTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -29,16 +47,15 @@ private Filter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Filter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Filter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,88 +75,102 @@ private Filter( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projects_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projects_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projects_.add(s); + break; } - projects_.add(s); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - services_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + services_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + services_.add(s); + break; } - services_.add(s); - break; - } - case 32: { - int rawValue = input.readEnum(); + case 32: + { + int rawValue = input.readEnum(); - creditTypesTreatment_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - subaccounts_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; + creditTypesTreatment_ = rawValue; + break; } - subaccounts_.add(s); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + subaccounts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + subaccounts_.add(s); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - creditTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 50: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry + labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - creditTypes_.add(s); - break; - } - case 64: { - int rawValue = input.readEnum(); - usagePeriodCase_ = 8; - usagePeriod_ = rawValue; - break; - } - case 74: { - com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder subBuilder = null; - if (usagePeriodCase_ == 9) { - subBuilder = ((com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_).toBuilder(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + creditTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + creditTypes_.add(s); + break; } - usagePeriod_ = - input.readMessage(com.google.cloud.billing.budgets.v1beta1.CustomPeriod.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_); - usagePeriod_ = subBuilder.buildPartial(); + case 64: + { + int rawValue = input.readEnum(); + usagePeriodCase_ = 8; + usagePeriod_ = rawValue; + break; } - usagePeriodCase_ = 9; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 74: + { + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.Builder subBuilder = null; + if (usagePeriodCase_ == 9) { + subBuilder = + ((com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_) + .toBuilder(); + } + usagePeriod_ = + input.readMessage( + com.google.cloud.billing.budgets.v1beta1.CustomPeriod.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.billing.budgets.v1beta1.CustomPeriod) usagePeriod_); + usagePeriod_ = subBuilder.buildPartial(); + } + usagePeriodCase_ = 9; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -147,8 +178,7 @@ private Filter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projects_ = projects_.getUnmodifiableView(); @@ -166,32 +196,36 @@ private Filter( makeExtensionsImmutable(); } } - 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
@@ -202,13 +236,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.
@@ -218,6 +251,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.
@@ -227,6 +262,8 @@ public enum CreditTypesTreatment
      */
     EXCLUDE_ALL_CREDITS(2),
     /**
+     *
+     *
      * 
      * [Credit
      * types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
@@ -240,11 +277,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.
@@ -254,6 +291,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.
@@ -263,6 +302,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)
@@ -274,7 +315,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(
@@ -299,11 +339,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;
       }
     }
 
@@ -311,28 +356,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);
     }
 
@@ -341,8 +386,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;
@@ -361,13 +405,16 @@ private CreditTypesTreatment(int value) {
 
   private int usagePeriodCase_ = 0;
   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;
     }
@@ -383,26 +430,31 @@ 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;
   private com.google.protobuf.LazyStringList projects_;
   /**
+   *
+   *
    * 
    * Optional. A set of projects of the form `projects/{project}`,
    * specifying that usage from only this set of projects should be
@@ -412,13 +464,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
@@ -428,12 +482,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
@@ -443,6 +500,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. */ @@ -450,6 +508,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
@@ -459,17 +519,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 CREDIT_TYPES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList creditTypes_; /** + * + * *
    * Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is
    * a list of credit types to be subtracted from gross cost to determine the
@@ -481,13 +543,15 @@ public java.lang.String getProjects(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] is INCLUDE_SPECIFIED_CREDITS, this is
    * a list of credit types to be subtracted from gross cost to determine the
@@ -499,12 +563,15 @@ public java.lang.String getProjects(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] is INCLUDE_SPECIFIED_CREDITS, this is
    * a list of credit types to be subtracted from gross cost to determine the
@@ -516,6 +583,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. */ @@ -523,6 +591,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] is INCLUDE_SPECIFIED_CREDITS, this is
    * a list of credit types to be subtracted from gross cost to determine the
@@ -534,44 +604,63 @@ 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_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment + getCreditTypesTreatment() { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.valueOf(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.valueOf( + creditTypesTreatment_); + return result == null + ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED + : result; } public static final int SERVICES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList services_; /** + * + * *
    * Optional. A set of services of the form `services/{service_id}`,
    * specifying that usage from only this set of services should be
@@ -582,13 +671,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
@@ -599,12 +690,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
@@ -615,6 +709,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. */ @@ -622,6 +717,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
@@ -632,17 +729,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; private com.google.protobuf.LazyStringList subaccounts_; /** + * + * *
    * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`, specifying
    * that usage from only this set of subaccounts should be included in the
@@ -653,13 +752,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 in the
@@ -670,12 +771,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 in the
@@ -686,6 +790,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. */ @@ -693,6 +798,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 in the
@@ -703,33 +810,35 @@ 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()); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ListValue> labels_; + .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()); + } + + 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_; } @@ -738,6 +847,8 @@ 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, the
@@ -748,24 +859,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, the
@@ -776,14 +889,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, the
@@ -794,19 +910,23 @@ 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 getLabelsOrDefault( - java.lang.String key, - com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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, the
@@ -817,13 +937,15 @@ public 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)) { @@ -834,6 +956,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
@@ -843,13 +967,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
@@ -859,7 +988,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() { @@ -869,6 +1001,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
@@ -878,27 +1012,38 @@ 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) { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.valueOf( - (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.valueOf( + (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 @@ -906,38 +1051,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; @@ -949,26 +1104,24 @@ 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)); } 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)); } @@ -1003,9 +1156,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; @@ -1015,15 +1170,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; @@ -1034,12 +1189,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1049,33 +1206,27 @@ 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 (!getCreditTypesList() - .equals(other.getCreditTypesList())) return false; + if (!getProjectsList().equals(other.getProjectsList())) 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: @@ -1130,140 +1281,147 @@ 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() @@ -1271,16 +1429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1301,9 +1458,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 @@ -1322,7 +1479,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); + com.google.cloud.billing.budgets.v1beta1.Filter result = + new com.google.cloud.billing.budgets.v1beta1.Filter(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { projects_ = projects_.getUnmodifiableView(); @@ -1366,38 +1524,39 @@ public com.google.cloud.billing.budgets.v1beta1.Filter 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.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; @@ -1405,7 +1564,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_; @@ -1449,20 +1609,22 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Filter other) } onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); 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.unknownFields); onChanged(); @@ -1492,12 +1654,12 @@ public Builder mergeFrom( } 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() { @@ -1509,14 +1671,18 @@ public Builder clearUsagePeriod() { private int bitField0_; - private com.google.protobuf.LazyStringList projects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList projects_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureProjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { projects_ = new com.google.protobuf.LazyStringArrayList(projects_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1526,13 +1692,15 @@ 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() { return projects_.getUnmodifiableView(); } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1542,12 +1710,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
@@ -1557,6 +1728,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. */ @@ -1564,6 +1736,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
@@ -1573,14 +1747,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
@@ -1590,21 +1766,23 @@ 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) { + public Builder setProjects(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); + throw new NullPointerException(); + } + ensureProjectsIsMutable(); projects_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1614,20 +1792,22 @@ 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) { + public Builder addProjects(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); + throw new NullPointerException(); + } + ensureProjectsIsMutable(); projects_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1637,18 +1817,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1658,6 +1839,7 @@ public Builder addAllProjects(
      * 
* * repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProjects() { @@ -1667,6 +1849,8 @@ public Builder clearProjects() { return this; } /** + * + * *
      * Optional. A set of projects of the form `projects/{project}`,
      * specifying that usage from only this set of projects should be
@@ -1676,29 +1860,33 @@ 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) { + public Builder addProjectsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProjectsIsMutable(); projects_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList creditTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList creditTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCreditTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { creditTypes_ = new com.google.protobuf.LazyStringArrayList(creditTypes_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is
      * a list of credit types to be subtracted from gross cost to determine the
@@ -1710,13 +1898,15 @@ 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() { return creditTypes_.getUnmodifiableView(); } /** + * + * *
      * Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is
      * a list of credit types to be subtracted from gross cost to determine the
@@ -1728,12 +1918,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] is INCLUDE_SPECIFIED_CREDITS, this is
      * a list of credit types to be subtracted from gross cost to determine the
@@ -1745,6 +1938,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. */ @@ -1752,6 +1946,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] is INCLUDE_SPECIFIED_CREDITS, this is
      * a list of credit types to be subtracted from gross cost to determine the
@@ -1763,14 +1959,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] is INCLUDE_SPECIFIED_CREDITS, this is
      * a list of credit types to be subtracted from gross cost to determine the
@@ -1782,21 +1980,23 @@ 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) { + public Builder setCreditTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCreditTypesIsMutable(); + throw new NullPointerException(); + } + ensureCreditTypesIsMutable(); creditTypes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is
      * a list of credit types to be subtracted from gross cost to determine the
@@ -1808,20 +2008,22 @@ 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) { + public Builder addCreditTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCreditTypesIsMutable(); + throw new NullPointerException(); + } + ensureCreditTypesIsMutable(); creditTypes_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is
      * a list of credit types to be subtracted from gross cost to determine the
@@ -1833,18 +2035,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is
      * a list of credit types to be subtracted from gross cost to determine the
@@ -1856,6 +2059,7 @@ public Builder addAllCreditTypes(
      * 
* * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCreditTypes() { @@ -1865,6 +2069,8 @@ public Builder clearCreditTypes() { return this; } /** + * + * *
      * Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is
      * a list of credit types to be subtracted from gross cost to determine the
@@ -1876,15 +2082,15 @@ 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) { + public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCreditTypesIsMutable(); creditTypes_.add(value); onChanged(); @@ -1893,86 +2099,122 @@ 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. */ public Builder setCreditTypesTreatmentValue(int value) { - + creditTypesTreatment_ = value; onChanged(); 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() { + public com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment + getCreditTypesTreatment() { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.valueOf(creditTypesTreatment_); - return result == null ? com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.UNRECOGNIZED : result; + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment result = + com.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment.valueOf( + 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(); } - + creditTypesTreatment_ = value.getNumber(); onChanged(); 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() { - + creditTypesTreatment_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList services_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList services_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureServicesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { services_ = new com.google.protobuf.LazyStringArrayList(services_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -1983,13 +2225,15 @@ 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() { return services_.getUnmodifiableView(); } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2000,12 +2244,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
@@ -2016,6 +2263,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. */ @@ -2023,6 +2271,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
@@ -2033,14 +2283,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
@@ -2051,21 +2303,23 @@ 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) { + public Builder setServices(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); + throw new NullPointerException(); + } + ensureServicesIsMutable(); services_.set(index, value); 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
@@ -2076,20 +2330,22 @@ 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) { + public Builder addServices(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); + throw new NullPointerException(); + } + ensureServicesIsMutable(); services_.add(value); 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
@@ -2100,18 +2356,19 @@ 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_); 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
@@ -2122,6 +2379,7 @@ public Builder addAllServices(
      * 
* * repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServices() { @@ -2131,6 +2389,8 @@ public Builder clearServices() { return this; } /** + * + * *
      * Optional. A set of services of the form `services/{service_id}`,
      * specifying that usage from only this set of services should be
@@ -2141,29 +2401,33 @@ 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) { + public Builder addServicesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureServicesIsMutable(); services_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList subaccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList subaccounts_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSubaccountsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { subaccounts_ = new com.google.protobuf.LazyStringArrayList(subaccounts_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`, specifying
      * that usage from only this set of subaccounts should be included in the
@@ -2174,13 +2438,15 @@ 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() { return subaccounts_.getUnmodifiableView(); } /** + * + * *
      * Optional. A set of subaccounts of the form `billingAccounts/{account_id}`, specifying
      * that usage from only this set of subaccounts should be included in the
@@ -2191,12 +2457,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 in the
@@ -2207,6 +2476,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. */ @@ -2214,6 +2484,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 in the
@@ -2224,14 +2496,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 in the
@@ -2242,21 +2516,23 @@ 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) { + public Builder setSubaccounts(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubaccountsIsMutable(); + throw new NullPointerException(); + } + ensureSubaccountsIsMutable(); subaccounts_.set(index, value); 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 in the
@@ -2267,20 +2543,22 @@ 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) { + public Builder addSubaccounts(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubaccountsIsMutable(); + throw new NullPointerException(); + } + ensureSubaccountsIsMutable(); subaccounts_.add(value); 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 in the
@@ -2291,18 +2569,19 @@ 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_); 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 in the
@@ -2313,6 +2592,7 @@ public Builder addAllSubaccounts(
      * 
* * repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSubaccounts() { @@ -2322,6 +2602,8 @@ public Builder clearSubaccounts() { 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 in the
@@ -2332,37 +2614,37 @@ 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) { + public Builder addSubaccountsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSubaccountsIsMutable(); subaccounts_.add(value); onChanged(); 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() { + 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -2374,6 +2656,8 @@ 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, the
@@ -2384,24 +2668,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, the
@@ -2412,14 +2698,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, the
@@ -2430,19 +2719,23 @@ 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 getLabelsOrDefault( - java.lang.String key, - com.google.protobuf.ListValue defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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, the
@@ -2453,13 +2746,15 @@ public 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)) { @@ -2469,11 +2764,12 @@ public com.google.protobuf.ListValue getLabelsOrThrow( } public Builder clearLabels() { - 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, the
@@ -2484,25 +2780,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() { 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, the
@@ -2513,21 +2809,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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); 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, the
@@ -2538,17 +2837,19 @@ 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); return this; } /** + * + * *
      * Optional. Specifies to track usage for recurring calendar period.
      * For example, assume that CalendarPeriod.QUARTER is set. The budget will
@@ -2558,7 +2859,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 @@ -2566,6 +2870,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
@@ -2575,7 +2881,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 @@ -2586,6 +2895,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
@@ -2595,7 +2906,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. */ @@ -2606,6 +2920,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
@@ -2615,20 +2931,28 @@ 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) { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1beta1.CalendarPeriod result = com.google.cloud.billing.budgets.v1beta1.CalendarPeriod.valueOf( - (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.valueOf( + (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
@@ -2638,11 +2962,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(); } @@ -2652,6 +2980,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
@@ -2661,7 +2991,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() { @@ -2674,14 +3007,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 @@ -2689,12 +3030,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 @@ -2712,12 +3058,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) { @@ -2733,12 +3083,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) { @@ -2752,19 +3106,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; } @@ -2780,12 +3142,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) { @@ -2804,26 +3170,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 { @@ -2834,34 +3209,44 @@ 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()); usagePeriod_ = null; } usagePeriodCase_ = 9; - onChanged();; + 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); } @@ -2871,12 +3256,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(); } @@ -2885,16 +3270,16 @@ 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 { - return new Filter(input, extensionRegistry); - } - }; + 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 { + return new Filter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2909,6 +3294,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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java index 79d9f196..fd2e8c0f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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
@@ -17,11 +35,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
@@ -31,10 +51,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
@@ -44,11 +67,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
@@ -58,13 +84,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. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is
    * a list of credit types to be subtracted from gross cost to determine the
@@ -76,11 +104,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] is INCLUDE_SPECIFIED_CREDITS, this is
    * a list of credit types to be subtracted from gross cost to determine the
@@ -92,10 +122,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] is INCLUDE_SPECIFIED_CREDITS, this is
    * a list of credit types to be subtracted from gross cost to determine the
@@ -107,11 +140,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] is INCLUDE_SPECIFIED_CREDITS, this is
    * a list of credit types to be subtracted from gross cost to determine the
@@ -123,32 +159,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
@@ -159,11 +207,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
@@ -174,10 +224,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
@@ -188,11 +241,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
@@ -203,13 +259,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 in the
@@ -220,11 +278,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 in the
@@ -235,10 +295,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 in the
@@ -249,11 +312,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 in the
@@ -264,13 +330,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, the
@@ -281,10 +349,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, the
@@ -295,17 +367,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, the
@@ -316,11 +388,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, the
@@ -331,15 +406,19 @@ 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, the
@@ -350,13 +429,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
@@ -366,11 +447,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
@@ -380,11 +466,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
@@ -394,38 +485,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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java index 0c8e23df..77d87a98 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetBudgetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetBudgetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetBudgetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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; 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 @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ 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() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,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 @@ -364,7 +400,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); + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest 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.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; @@ -413,7 +451,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_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( 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; @@ -470,21 +514,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 { @@ -492,64 +539,77 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,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(); } @@ -573,16 +633,16 @@ 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 { - return new GetBudgetRequest(input, extensionRegistry); - } - }; + 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 { + return new GetBudgetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java new file mode 100644 index 00000000..5d9c0fdf --- /dev/null +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/GetBudgetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/billing/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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java index 3db7a377..6acda4a5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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]
  * spend. At this time, the amount is automatically 100% of the last calendar
@@ -16,30 +33,29 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LastPeriodAmount(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,13 +74,13 @@ private LastPeriodAmount(
           case 0:
             done = true;
             break;
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -72,27 +88,30 @@ private LastPeriodAmount(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.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;
@@ -104,8 +123,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 {
     unknownFields.writeTo(output);
   }
 
@@ -123,12 +141,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -147,96 +166,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]
    * spend. At this time, the amount is automatically 100% of the last calendar
@@ -249,21 +276,23 @@ 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()
@@ -271,16 +300,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -288,9 +316,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
@@ -309,7 +337,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;
     }
@@ -318,38 +347,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;
@@ -357,7 +387,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.unknownFields);
       onChanged();
       return this;
@@ -377,7 +408,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -386,9 +418,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -398,12 +430,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();
   }
@@ -412,16 +444,16 @@ 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 {
-      return new LastPeriodAmount(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new LastPeriodAmount(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -436,6 +468,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.budgets.v1beta1.LastPeriodAmount getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java
new file mode 100644
index 00000000..9503b72e
--- /dev/null
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmountOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/billing/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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
similarity index 70%
rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
index 34de90bb..320cde6a 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/billing/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_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListBudgetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListBudgetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListBudgetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListBudgetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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; 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 @@ -122,30 +148,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 { @@ -156,12 +184,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; 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 @@ -172,6 +203,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; 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,
@@ -179,6 +212,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -187,14 +221,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The value returned by the last `ListBudgetsResponse` which
    * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -202,16 +237,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 { @@ -220,6 +254,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -255,8 +289,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_); @@ -269,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest)) { return super.equals(obj); } - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest other = (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) 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; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,117 +336,127 @@ public int hashCode() { } public static com.google.cloud.billing.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() @@ -423,16 +464,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.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 @@ -467,7 +507,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); + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest result = + new com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -479,38 +520,39 @@ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest 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.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; @@ -518,7 +560,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_; onChanged(); @@ -549,7 +592,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,19 +605,23 @@ public Builder mergeFrom( 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; @@ -582,21 +630,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 { @@ -604,70 +655,86 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - 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 @@ -675,32 +742,38 @@ 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; 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() { - + pageSize_ = 0; onChanged(); return this; @@ -708,6 +781,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,
@@ -715,13 +790,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; @@ -730,6 +805,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,
@@ -737,15 +814,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 { @@ -753,6 +829,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,
@@ -760,20 +838,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -781,15 +861,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListBudgetsResponse` which
      * indicates that this is a continuation of a prior `ListBudgets` call,
@@ -797,23 +880,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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -823,12 +906,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.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(); } @@ -837,16 +920,16 @@ 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 { - return new ListBudgetsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListBudgetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,6 +944,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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java index f7f27656..ac4f8854 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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. 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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java index 4db59cdf..8a80b448 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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,16 +44,15 @@ private ListBudgetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBudgetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListBudgetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListBudgetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - budgets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + budgets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + budgets_.add( + input.readMessage( + com.google.cloud.billing.budgets.v1beta1.Budget.parser(), extensionRegistry)); + break; } - budgets_.add( - input.readMessage(com.google.cloud.billing.budgets.v1beta1.Budget.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListBudgetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { budgets_ = java.util.Collections.unmodifiableList(budgets_); @@ -94,22 +114,27 @@ private ListBudgetsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List budgets_; /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -121,6 +146,8 @@ public java.util.List getBudget return budgets_; } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -128,11 +155,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.
    * 
@@ -144,6 +173,8 @@ public int getBudgetsCount() { return budgets_.size(); } /** + * + * *
    * List of the budgets owned by the requested billing account.
    * 
@@ -155,6 +186,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.
    * 
@@ -162,20 +195,22 @@ 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; 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 @@ -184,30 +219,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 { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,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)); } @@ -245,8 +280,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_); @@ -259,17 +293,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +326,127 @@ 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() @@ -411,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBudgetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +480,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(); } @@ -458,7 +502,8 @@ 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); int from_bitField0_ = bitField0_; if (budgetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +523,39 @@ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse 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.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; @@ -517,7 +563,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()) { @@ -536,9 +584,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_); } @@ -567,7 +616,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +626,29 @@ public Builder mergeFrom( } 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.
      * 
@@ -605,6 +663,8 @@ public java.util.List getBudget } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -619,6 +679,8 @@ public int getBudgetsCount() { } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -633,14 +695,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(); @@ -654,6 +717,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -672,6 +737,8 @@ public Builder setBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -692,14 +759,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(); @@ -713,6 +781,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -731,6 +801,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -749,6 +821,8 @@ public Builder addBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -759,8 +833,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); @@ -768,6 +841,8 @@ public Builder addAllBudgets( return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -785,6 +860,8 @@ public Builder clearBudgets() { return this; } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -802,39 +879,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 { @@ -842,6 +924,8 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetsOrBuil } } /** + * + * *
      * List of the budgets owned by the requested billing account.
      * 
@@ -849,42 +933,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_; @@ -892,19 +982,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; @@ -913,21 +1005,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 { @@ -935,64 +1028,71 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1102,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(); } @@ -1016,16 +1117,16 @@ 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 { - return new ListBudgetsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListBudgetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1141,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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java index 63c67c8f..180bb35a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ListBudgetsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java index 3b8fd2b9..9e2315f9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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
@@ -27,31 +44,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ThresholdRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,24 +87,25 @@ private ThresholdRule(
           case 0:
             done = true;
             break;
-          case 9: {
-
-            thresholdPercent_ = input.readDouble();
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+          case 9:
+            {
+              thresholdPercent_ = input.readDouble();
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            spendBasis_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              spendBasis_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,36 +113,41 @@ private ThresholdRule(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.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.
      * 
@@ -133,6 +156,8 @@ public enum Basis */ BASIS_UNSPECIFIED(0), /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -141,6 +166,8 @@ public enum Basis */ CURRENT_SPEND(1), /** + * + * *
      * Use forecasted spend for the period as the basis for comparison against
      * the threshold.
@@ -156,6 +183,8 @@ public enum Basis
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified threshold basis.
      * 
@@ -164,6 +193,8 @@ public enum Basis */ public static final int BASIS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use current spend as the basis for comparison against the threshold.
      * 
@@ -172,6 +203,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.
@@ -184,7 +217,6 @@ public enum Basis
      */
     public static final int FORECASTED_SPEND_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -209,49 +241,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;
@@ -271,6 +305,8 @@ private Basis(int value) {
   public static final int THRESHOLD_PERCENT_FIELD_NUMBER = 1;
   private double thresholdPercent_;
   /**
+   *
+   *
    * 
    * Required. Send an alert when this threshold is exceeded.
    * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -278,6 +314,7 @@ private Basis(int value) {
    * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -288,33 +325,49 @@ public double getThresholdPercent() { public static final int SPEND_BASIS_FIELD_NUMBER = 2; private int 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 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() { + @java.lang.Override + public com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis getSpendBasis() { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.valueOf(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.valueOf(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; @@ -326,12 +379,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_); } unknownFields.writeTo(output); @@ -344,12 +398,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -359,16 +413,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -382,8 +436,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) + unknownFields.hashCode(); @@ -392,96 +448,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
@@ -505,21 +569,23 @@ 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()
@@ -527,16 +593,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -548,9 +613,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
@@ -569,7 +634,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);
+      com.google.cloud.billing.budgets.v1beta1.ThresholdRule result =
+          new com.google.cloud.billing.budgets.v1beta1.ThresholdRule(this);
       result.thresholdPercent_ = thresholdPercent_;
       result.spendBasis_ = spendBasis_;
       onBuilt();
@@ -580,38 +646,39 @@ public com.google.cloud.billing.budgets.v1beta1.ThresholdRule 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.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;
@@ -619,7 +686,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());
       }
@@ -645,7 +713,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.billing.budgets.v1beta1.ThresholdRule) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.billing.budgets.v1beta1.ThresholdRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -655,8 +724,10 @@ public Builder mergeFrom(
       return this;
     }
 
-    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%.
@@ -664,6 +735,7 @@ public Builder mergeFrom(
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The thresholdPercent. */ @java.lang.Override @@ -671,6 +743,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%.
@@ -678,16 +752,19 @@ public double getThresholdPercent() {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The thresholdPercent to set. * @return This builder for chaining. */ public Builder setThresholdPercent(double value) { - + thresholdPercent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Send an alert when this threshold is exceeded.
      * This is a 1.0-based percentage, so 0.5 = 50%.
@@ -695,10 +772,11 @@ public Builder setThresholdPercent(double value) {
      * 
* * double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearThresholdPercent() { - + thresholdPercent_ = 0D; onChanged(); return this; @@ -706,85 +784,115 @@ 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. */ public Builder setSpendBasisValue(int value) { - + spendBasis_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis result = com.google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis.valueOf(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.valueOf(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(); } - + spendBasis_ = value.getNumber(); onChanged(); 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() { - + spendBasis_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -794,12 +902,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(); } @@ -808,16 +916,16 @@ 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 { - return new ThresholdRule(input, extensionRegistry); - } - }; + 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 { + return new ThresholdRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,6 +940,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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java index efaaef4a..837e10af 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRuleOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java index 050896a9..4306f2ee 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateBudgetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateBudgetRequest( case 0: done = true; break; - case 10: { - com.google.cloud.billing.budgets.v1beta1.Budget.Builder subBuilder = null; - if (budget_ != null) { - subBuilder = budget_.toBuilder(); - } - budget_ = input.readMessage(com.google.cloud.billing.budgets.v1beta1.Budget.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(budget_); - budget_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.billing.budgets.v1beta1.Budget.Builder subBuilder = null; + if (budget_ != null) { + subBuilder = budget_.toBuilder(); + } + budget_ = + input.readMessage( + com.google.cloud.billing.budgets.v1beta1.Budget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(budget_); + budget_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +113,42 @@ private UpdateBudgetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.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 @@ -128,25 +156,36 @@ 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() { @@ -156,6 +195,8 @@ public com.google.cloud.billing.budgets.v1beta1.BudgetOrBuilder getBudgetOrBuild 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
@@ -165,7 +206,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 @@ -173,6 +216,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
@@ -182,7 +227,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 @@ -190,6 +237,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
@@ -199,7 +248,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() { @@ -207,6 +257,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,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 (budget_ != null) { output.writeMessage(1, getBudget()); } @@ -236,12 +286,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -251,22 +299,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -293,117 +340,127 @@ 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() @@ -411,16 +468,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,13 +496,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(); } @@ -461,7 +518,8 @@ 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); + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest result = + new com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest(this); if (budgetBuilder_ == null) { result.budget_ = budget_; } else { @@ -480,38 +538,39 @@ public com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest 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.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; @@ -519,7 +578,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()); } @@ -545,7 +606,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -557,42 +619,61 @@ public Builder mergeFrom( 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 budgetBuilder_ != null || 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. */ 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) { @@ -608,12 +689,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) { @@ -627,18 +712,24 @@ 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 (budget_ != null) { budget_ = - com.google.cloud.billing.budgets.v1beta1.Budget.newBuilder(budget_).mergeFrom(value).buildPartial(); + com.google.cloud.billing.budgets.v1beta1.Budget.newBuilder(budget_) + .mergeFrom(value) + .buildPartial(); } else { budget_ = value; } @@ -650,12 +741,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() { if (budgetBuilder_ == null) { @@ -669,51 +764,67 @@ 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() { - + onChanged(); 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_; @@ -721,8 +832,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
@@ -732,13 +848,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 updateMaskBuilder_ != null || 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
@@ -748,17 +868,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
@@ -768,7 +894,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) { @@ -784,6 +911,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
@@ -793,10 +922,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(); onChanged(); @@ -807,6 +936,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
@@ -816,13 +947,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -834,6 +966,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
@@ -843,7 +977,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() { if (updateMaskBuilder_ == null) { @@ -857,6 +992,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
@@ -866,14 +1003,17 @@ 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() { - + onChanged(); 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
@@ -883,17 +1023,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
@@ -903,24 +1047,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); } @@ -930,12 +1078,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(); } @@ -944,16 +1093,16 @@ 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 { - return new UpdateBudgetRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateBudgetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,6 +1117,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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java rename to proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java index 1d6feb44..2b67f8f0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java +++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/UpdateBudgetRequestOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/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/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto b/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto rename to proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto b/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto rename to proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto