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: * *
The default instance has everything set to sensible defaults: * *
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 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: * *
The default instance has everything set to sensible defaults: * *
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 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.MethodDescriptorgetCreateBudgetMethod; + 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { 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.StreamObserverresponseObserver) { 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.StreamObserverresponseObserver) { 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.StreamObserverresponseObserver) { + 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.StreamObserverresponseObserver) { 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.ListenableFuturecreateBudget( - 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.ListenableFuturedeleteBudget( - 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.StreamObserverresponseObserver) { + 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.StreamObserverresponseObserver) { + 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.MethodDescriptorgetCreateBudgetMethod; - - @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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { - 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.StreamObserverresponseObserver) { - 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.ListenableFuturecreateBudget( - 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.ListenableFutureupdateBudget( - 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.ListenableFuturegetBudget( - 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.ListenableFuturelistBudgets( - 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.ListenableFuturedeleteBudget( - 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.ListthresholdRules_; /** + * + * * * 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.ListgetThresholdRulesList() { 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 extends com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> + public java.util.List extends com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> 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.Builderimplements + 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.ListthresholdRules_ = - 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.ListgetThresholdRulesList() { + 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 extends com.google.cloud.billing.budgets.v1.ThresholdRule> 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 extends com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> - getThresholdRulesOrBuilderList() { + public java.util.List extends com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> + 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.Builderimplements + 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 extends com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> + java.util.List extends com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder> 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.Builderimplements + 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 { + + /** + * + * + *