diff --git a/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java b/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java deleted file mode 100644 index 989b5170c995..000000000000 --- a/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java +++ /dev/null @@ -1,483 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.billing.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * A catalog of Google Cloud Platform services and SKUs. - * Provides pricing information and metadata on Google Cloud Platform services - * and SKUs. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/billing/v1/cloud_catalog.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudCatalogGrpc { - - private CloudCatalogGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.billing.v1.CloudCatalog"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListServicesRequest, - com.google.cloud.billing.v1.ListServicesResponse> - getListServicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServices", - requestType = com.google.cloud.billing.v1.ListServicesRequest.class, - responseType = com.google.cloud.billing.v1.ListServicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListServicesRequest, - com.google.cloud.billing.v1.ListServicesResponse> - getListServicesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListServicesRequest, - com.google.cloud.billing.v1.ListServicesResponse> - getListServicesMethod; - if ((getListServicesMethod = CloudCatalogGrpc.getListServicesMethod) == null) { - synchronized (CloudCatalogGrpc.class) { - if ((getListServicesMethod = CloudCatalogGrpc.getListServicesMethod) == null) { - CloudCatalogGrpc.getListServicesMethod = - getListServicesMethod = - io.grpc.MethodDescriptor - .
- * A catalog of Google Cloud Platform services and SKUs. - * Provides pricing information and metadata on Google Cloud Platform services - * and SKUs. - *- */ - public abstract static class CloudCatalogImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Lists all public cloud services. - *- */ - public void listServices( - com.google.cloud.billing.v1.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Lists all publicly available SKUs for a given cloud service. - *- */ - public void listSkus( - com.google.cloud.billing.v1.ListSkusRequest request, - io.grpc.stub.StreamObserver
- * A catalog of Google Cloud Platform services and SKUs. - * Provides pricing information and metadata on Google Cloud Platform services - * and SKUs. - *- */ - public static final class CloudCatalogStub - extends io.grpc.stub.AbstractAsyncStub
- * Lists all public cloud services. - *- */ - public void listServices( - com.google.cloud.billing.v1.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Lists all publicly available SKUs for a given cloud service. - *- */ - public void listSkus( - com.google.cloud.billing.v1.ListSkusRequest request, - io.grpc.stub.StreamObserver
- * A catalog of Google Cloud Platform services and SKUs. - * Provides pricing information and metadata on Google Cloud Platform services - * and SKUs. - *- */ - public static final class CloudCatalogBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Lists all public cloud services. - *- */ - public com.google.cloud.billing.v1.ListServicesResponse listServices( - com.google.cloud.billing.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists all publicly available SKUs for a given cloud service. - *- */ - public com.google.cloud.billing.v1.ListSkusResponse listSkus( - com.google.cloud.billing.v1.ListSkusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSkusMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * A catalog of Google Cloud Platform services and SKUs. - * Provides pricing information and metadata on Google Cloud Platform services - * and SKUs. - *- */ - public static final class CloudCatalogFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Lists all public cloud services. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.ListServicesResponse> - listServices(com.google.cloud.billing.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists all publicly available SKUs for a given cloud service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.ListSkusResponse> - listSkus(com.google.cloud.billing.v1.ListSkusRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSkusMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_SERVICES = 0; - private static final int METHODID_LIST_SKUS = 1; - - private static final class MethodHandlers
- * Required. The billing account resource to create. - * Currently CreateBillingAccount only supports subaccount creation, so - * any created billing accounts must be under a provided master billing - * account. - *- * - *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return Whether the billingAccount field is set.
- */
- boolean hasBillingAccount();
- /**
- *
- *
- * - * Required. The billing account resource to create. - * Currently CreateBillingAccount only supports subaccount creation, so - * any created billing accounts must be under a provided master billing - * account. - *- * - *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return The billingAccount.
- */
- com.google.cloud.billing.v1.BillingAccount getBillingAccount();
- /**
- *
- *
- * - * Required. The billing account resource to create. - * Currently CreateBillingAccount only supports subaccount creation, so - * any created billing accounts must be under a provided master billing - * account. - *- * - *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder();
-}
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java
deleted file mode 100644
index c363f300c925..000000000000
--- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/billing/v1/cloud_billing.proto
-
-package com.google.cloud.billing.v1;
-
-public interface GetBillingAccountRequestOrBuilder
- extends
- // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.GetBillingAccountRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- *
- * - * Required. The resource name of the billing account to retrieve. For example, - * `billingAccounts/012345-567890-ABCDEF`. - *- * - *
- * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The name.
- */
- java.lang.String getName();
- /**
- *
- *
- * - * Required. The resource name of the billing account to retrieve. For example, - * `billingAccounts/012345-567890-ABCDEF`. - *- * - *
- * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString getNameBytes();
-}
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java
similarity index 95%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java
index eca2bf779d5d..7a049af27d51 100644
--- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java
+++ b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java
@@ -40,7 +40,8 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
- * Service Description: Retrieves GCP Console billing accounts and associates them with projects.
+ * Service Description: Retrieves the Google Cloud Console billing accounts and associates them with
+ * projects.
*
* This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -570,12 +571,19 @@ public final BillingAccount updateBillingAccount(UpdateBillingAccountRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a billing account. This method can only be used to create [billing - * subaccounts](https://cloud.google.com/billing/docs/concepts) by GCP resellers. When creating a - * subaccount, the current authenticated user must have the `billing.accounts.update` IAM - * permission on the master account, which is typically given to billing account - * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will - * return an error if the master account has not been provisioned as a reseller account. + * This method creates [billing + * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). + * + *
Google Cloud resellers should use the Channel Services APIs, + * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) + * and + * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). + * + *
When creating a subaccount, the current authenticated user must have the + * `billing.accounts.update` IAM permission on the parent account, which is typically given to + * billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). + * This method will return an error if the parent account has not been provisioned as a reseller + * account. * *
Sample code: * @@ -593,7 +601,7 @@ public final BillingAccount updateBillingAccount(UpdateBillingAccountRequest req * * @param billingAccount Required. The billing account resource to create. Currently * CreateBillingAccount only supports subaccount creation, so any created billing accounts - * must be under a provided master billing account. + * must be under a provided parent billing account. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BillingAccount createBillingAccount(BillingAccount billingAccount) { @@ -604,12 +612,19 @@ public final BillingAccount createBillingAccount(BillingAccount billingAccount) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a billing account. This method can only be used to create [billing - * subaccounts](https://cloud.google.com/billing/docs/concepts) by GCP resellers. When creating a - * subaccount, the current authenticated user must have the `billing.accounts.update` IAM - * permission on the master account, which is typically given to billing account - * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will - * return an error if the master account has not been provisioned as a reseller account. + * This method creates [billing + * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). + * + *
Google Cloud resellers should use the Channel Services APIs, + * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) + * and + * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). + * + *
When creating a subaccount, the current authenticated user must have the + * `billing.accounts.update` IAM permission on the parent account, which is typically given to + * billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). + * This method will return an error if the parent account has not been provisioned as a reseller + * account. * *
Sample code: * @@ -637,12 +652,19 @@ public final BillingAccount createBillingAccount(CreateBillingAccountRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a billing account. This method can only be used to create [billing - * subaccounts](https://cloud.google.com/billing/docs/concepts) by GCP resellers. When creating a - * subaccount, the current authenticated user must have the `billing.accounts.update` IAM - * permission on the master account, which is typically given to billing account - * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will - * return an error if the master account has not been provisioned as a reseller account. + * This method creates [billing + * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). + * + *
Google Cloud resellers should use the Channel Services APIs, + * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) + * and + * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). + * + *
When creating a subaccount, the current authenticated user must have the + * `billing.accounts.update` IAM permission on the parent account, which is typically given to + * billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). + * This method will return an error if the parent account has not been provisioned as a reseller + * account. * *
Sample code: * @@ -852,9 +874,10 @@ public final ListProjectBillingInfoPagedResponse listProjectBillingInfo( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the billing information for a project. The current authenticated user must have - * [permission to view the - * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ). + * Gets the billing information for a project. The current authenticated user must have the + * `resourcemanager.projects.get` permission for the project, which can be granted by assigning + * the [Project Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + * role. * *
Sample code: * @@ -882,9 +905,10 @@ public final ProjectBillingInfo getProjectBillingInfo(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the billing information for a project. The current authenticated user must have - * [permission to view the - * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ). + * Gets the billing information for a project. The current authenticated user must have the + * `resourcemanager.projects.get` permission for the project, which can be granted by assigning + * the [Project Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + * role. * *
Sample code: * @@ -910,9 +934,10 @@ public final ProjectBillingInfo getProjectBillingInfo(GetProjectBillingInfoReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the billing information for a project. The current authenticated user must have - * [permission to view the - * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ). + * Gets the billing information for a project. The current authenticated user must have the + * `resourcemanager.projects.get` permission for the project, which can be granted by assigning + * the [Project Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + * role. * *
Sample code: * @@ -946,8 +971,8 @@ public final ProjectBillingInfo getProjectBillingInfo(GetProjectBillingInfoReque * billing account, this method changes the billing account used for resource usage charges. * *
*Note:* Incurred charges that have not yet been reported in the transaction history - * of the GCP Console might be billed to the new billing account, even if the charge occurred - * before the new billing account was assigned to the project. + * of the Google Cloud Console might be billed to the new billing account, even if the charge + * occurred before the new billing account was assigned to the project. * *
The current authenticated user must have ownership privileges for both the * [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing @@ -1010,8 +1035,8 @@ public final ProjectBillingInfo updateProjectBillingInfo( * billing account, this method changes the billing account used for resource usage charges. * *
*Note:* Incurred charges that have not yet been reported in the transaction history - * of the GCP Console might be billed to the new billing account, even if the charge occurred - * before the new billing account was assigned to the project. + * of the Google Cloud Console might be billed to the new billing account, even if the charge + * occurred before the new billing account was assigned to the project. * *
The current authenticated user must have ownership privileges for both the * [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing @@ -1068,8 +1093,8 @@ public final ProjectBillingInfo updateProjectBillingInfo( * billing account, this method changes the billing account used for resource usage charges. * *
*Note:* Incurred charges that have not yet been reported in the transaction history - * of the GCP Console might be billed to the new billing account, even if the charge occurred - * before the new billing account was assigned to the project. + * of the Google Cloud Console might be billed to the new billing account, even if the charge + * occurred before the new billing account was assigned to the project. * *
The current authenticated user must have ownership privileges for both the * [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java similarity index 99% rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java index 552b4c4be508..e3671d1b54d1 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java +++ b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.billing.v1.stub.CloudBillingStubSettings; diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java similarity index 100% rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java similarity index 99% rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java index ab3ac0dd4a93..01267172c7c6 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java +++ b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.billing.v1.stub.CloudCatalogStubSettings; diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json similarity index 100% rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java similarity index 91% rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java index 234ddd153384..160e2fb78dfc 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java +++ b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java @@ -15,11 +15,14 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Cloud Billing API + * + *
The interfaces provided are listed below, along with usage samples. * *
======================= CloudBillingClient ======================= * - *
Service Description: Retrieves GCP Console billing accounts and associates them with projects. + *
Service Description: Retrieves the Google Cloud Console billing accounts and associates them + * with projects. * *
Sample for CloudBillingClient:
*
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java
similarity index 99%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java
index 7974d80bf5b4..3c190d3d6d90 100644
--- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java
+++ b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java
@@ -107,7 +107,11 @@
public class CloudBillingStubSettings extends StubSettings
- * Retrieves GCP Console billing accounts and associates them with projects.
+ * Retrieves the Google Cloud Console billing accounts and associates them with
+ * projects.
*
*/
@javax.annotation.Generated(
@@ -35,550 +19,393 @@ private CloudBillingGrpc() {}
public static final String SERVICE_NAME = "google.cloud.billing.v1.CloudBilling";
// Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor<
- com.google.cloud.billing.v1.GetBillingAccountRequest,
- com.google.cloud.billing.v1.BillingAccount>
- getGetBillingAccountMethod;
+ private static volatile io.grpc.MethodDescriptor
- * Retrieves GCP Console billing accounts and associates them with projects.
+ * Retrieves the Google Cloud Console billing accounts and associates them with
+ * projects.
*
*/
- public abstract static class CloudBillingImplBase implements io.grpc.BindableService {
+ public static abstract class CloudBillingImplBase implements io.grpc.BindableService {
/**
- *
- *
*
* Gets information about a billing account. The current authenticated user
* must be a [viewer of the billing
* account](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public void getBillingAccount(
- com.google.cloud.billing.v1.GetBillingAccountRequest request,
+ public void getBillingAccount(com.google.cloud.billing.v1.GetBillingAccountRequest request,
io.grpc.stub.StreamObserver
* Lists the billing accounts that the current authenticated user has
* permission to
* [view](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public void listBillingAccounts(
- com.google.cloud.billing.v1.ListBillingAccountsRequest request,
- io.grpc.stub.StreamObserver
* Updates a billing account's fields.
* Currently the only field that can be edited is `display_name`.
@@ -588,39 +415,34 @@ public void listBillingAccounts(
* of the billing account.
*
*/
- public void updateBillingAccount(
- com.google.cloud.billing.v1.UpdateBillingAccountRequest request,
+ public void updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request,
io.grpc.stub.StreamObserver
- * Creates a billing account.
- * This method can only be used to create
- * [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
- * by GCP resellers.
+ * This method creates [billing
+ * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
+ * Google Cloud resellers should use the
+ * Channel Services APIs,
+ * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
+ * and
+ * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
* When creating a subaccount, the current authenticated user must have the
- * `billing.accounts.update` IAM permission on the master account, which is
+ * `billing.accounts.update` IAM permission on the parent account, which is
* typically given to billing account
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
- * This method will return an error if the master account has not been
+ * This method will return an error if the parent account has not been
* provisioned as a reseller account.
*
*/
- public void createBillingAccount(
- com.google.cloud.billing.v1.CreateBillingAccountRequest request,
+ public void createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccountRequest request,
io.grpc.stub.StreamObserver
* Lists the projects associated with a billing account. The current
* authenticated user must have the `billing.resourceAssociations.list` IAM
@@ -628,35 +450,26 @@ public void createBillingAccount(
* [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public void listProjectBillingInfo(
- com.google.cloud.billing.v1.ListProjectBillingInfoRequest request,
- io.grpc.stub.StreamObserver
* Gets the billing information for a project. The current authenticated user
- * must have [permission to view the
- * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
- * ).
+ * must have the `resourcemanager.projects.get` permission for the project,
+ * which can be granted by assigning the [Project
+ * Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
+ * role.
*
*/
- public void getProjectBillingInfo(
- com.google.cloud.billing.v1.GetProjectBillingInfoRequest request,
- io.grpc.stub.StreamObserver
* Sets or updates the billing account associated with a project. You specify
* the new billing account by setting the `billing_account_name` in the
@@ -666,7 +479,7 @@ public void getProjectBillingInfo(
* billing account, this method changes the billing account used for resource
* usage charges.
* *Note:* Incurred charges that have not yet been reported in the transaction
- * history of the GCP Console might be billed to the new billing
+ * history of the Google Cloud Console might be billed to the new billing
* account, even if the charge occurred before the new billing account was
* assigned to the project.
* The current authenticated user must have ownership privileges for both the
@@ -687,17 +500,12 @@ public void getProjectBillingInfo(
* *open* billing account.
*
*/
- public void updateProjectBillingInfo(
- com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request,
- io.grpc.stub.StreamObserver
* Gets the access control policy for a billing account.
* The caller must have the `billing.accounts.getIamPolicy` permission on the
@@ -705,16 +513,12 @@ public void updateProjectBillingInfo(
* [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public void getIamPolicy(
- com.google.iam.v1.GetIamPolicyRequest request,
+ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
io.grpc.stub.StreamObserver
* Sets the access control policy for a billing account. Replaces any existing
* policy.
@@ -723,163 +527,144 @@ public void getIamPolicy(
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public void setIamPolicy(
- com.google.iam.v1.SetIamPolicyRequest request,
+ public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request,
io.grpc.stub.StreamObserver
* Tests the access control policy for a billing account. This method takes
* the resource and a set of permissions as input and returns the subset of
* the input permissions that the caller is allowed for that resource.
*
*/
- public void testIamPermissions(
- com.google.iam.v1.TestIamPermissionsRequest request,
- io.grpc.stub.StreamObserver
- * Retrieves GCP Console billing accounts and associates them with projects.
+ * Retrieves the Google Cloud Console billing accounts and associates them with
+ * projects.
*
*/
- public static final class CloudBillingStub
- extends io.grpc.stub.AbstractAsyncStub
* Gets information about a billing account. The current authenticated user
* must be a [viewer of the billing
* account](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public void getBillingAccount(
- com.google.cloud.billing.v1.GetBillingAccountRequest request,
+ public void getBillingAccount(com.google.cloud.billing.v1.GetBillingAccountRequest request,
io.grpc.stub.StreamObserver
* Lists the billing accounts that the current authenticated user has
* permission to
* [view](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public void listBillingAccounts(
- com.google.cloud.billing.v1.ListBillingAccountsRequest request,
- io.grpc.stub.StreamObserver
* Updates a billing account's fields.
* Currently the only field that can be edited is `display_name`.
@@ -889,43 +674,36 @@ public void listBillingAccounts(
* of the billing account.
*
*/
- public void updateBillingAccount(
- com.google.cloud.billing.v1.UpdateBillingAccountRequest request,
+ public void updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request,
io.grpc.stub.StreamObserver
- * Creates a billing account.
- * This method can only be used to create
- * [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
- * by GCP resellers.
+ * This method creates [billing
+ * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
+ * Google Cloud resellers should use the
+ * Channel Services APIs,
+ * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
+ * and
+ * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
* When creating a subaccount, the current authenticated user must have the
- * `billing.accounts.update` IAM permission on the master account, which is
+ * `billing.accounts.update` IAM permission on the parent account, which is
* typically given to billing account
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
- * This method will return an error if the master account has not been
+ * This method will return an error if the parent account has not been
* provisioned as a reseller account.
*
*/
- public void createBillingAccount(
- com.google.cloud.billing.v1.CreateBillingAccountRequest request,
+ public void createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccountRequest request,
io.grpc.stub.StreamObserver
* Lists the projects associated with a billing account. The current
* authenticated user must have the `billing.resourceAssociations.list` IAM
@@ -933,39 +711,28 @@ public void createBillingAccount(
* [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public void listProjectBillingInfo(
- com.google.cloud.billing.v1.ListProjectBillingInfoRequest request,
- io.grpc.stub.StreamObserver
* Gets the billing information for a project. The current authenticated user
- * must have [permission to view the
- * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
- * ).
+ * must have the `resourcemanager.projects.get` permission for the project,
+ * which can be granted by assigning the [Project
+ * Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
+ * role.
*
*/
- public void getProjectBillingInfo(
- com.google.cloud.billing.v1.GetProjectBillingInfoRequest request,
- io.grpc.stub.StreamObserver
* Sets or updates the billing account associated with a project. You specify
* the new billing account by setting the `billing_account_name` in the
@@ -975,7 +742,7 @@ public void getProjectBillingInfo(
* billing account, this method changes the billing account used for resource
* usage charges.
* *Note:* Incurred charges that have not yet been reported in the transaction
- * history of the GCP Console might be billed to the new billing
+ * history of the Google Cloud Console might be billed to the new billing
* account, even if the charge occurred before the new billing account was
* assigned to the project.
* The current authenticated user must have ownership privileges for both the
@@ -996,19 +763,13 @@ public void getProjectBillingInfo(
* *open* billing account.
*
*/
- public void updateProjectBillingInfo(
- com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request,
- io.grpc.stub.StreamObserver
* Gets the access control policy for a billing account.
* The caller must have the `billing.accounts.getIamPolicy` permission on the
@@ -1016,18 +777,13 @@ public void updateProjectBillingInfo(
* [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public void getIamPolicy(
- com.google.iam.v1.GetIamPolicyRequest request,
+ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
io.grpc.stub.StreamObserver
* Sets the access control policy for a billing account. Replaces any existing
* policy.
@@ -1036,45 +792,35 @@ public void getIamPolicy(
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public void setIamPolicy(
- com.google.iam.v1.SetIamPolicyRequest request,
+ public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request,
io.grpc.stub.StreamObserver
* Tests the access control policy for a billing account. This method takes
* the resource and a set of permissions as input and returns the subset of
* the input permissions that the caller is allowed for that resource.
*
*/
- public void testIamPermissions(
- com.google.iam.v1.TestIamPermissionsRequest request,
- io.grpc.stub.StreamObserver
- * Retrieves GCP Console billing accounts and associates them with projects.
+ * Retrieves the Google Cloud Console billing accounts and associates them with
+ * projects.
*
*/
- public static final class CloudBillingBlockingStub
- extends io.grpc.stub.AbstractBlockingStub
* Gets information about a billing account. The current authenticated user
* must be a [viewer of the billing
* account](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public com.google.cloud.billing.v1.BillingAccount getBillingAccount(
- com.google.cloud.billing.v1.GetBillingAccountRequest request) {
+ public com.google.cloud.billing.v1.BillingAccount getBillingAccount(com.google.cloud.billing.v1.GetBillingAccountRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetBillingAccountMethod(), getCallOptions(), request);
}
/**
- *
- *
*
* Lists the billing accounts that the current authenticated user has
* permission to
* [view](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccounts(
- com.google.cloud.billing.v1.ListBillingAccountsRequest request) {
+ public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccounts(com.google.cloud.billing.v1.ListBillingAccountsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListBillingAccountsMethod(), getCallOptions(), request);
}
/**
- *
- *
*
* Updates a billing account's fields.
* Currently the only field that can be edited is `display_name`.
@@ -1126,37 +864,34 @@ public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccoun
* of the billing account.
*
*/
- public com.google.cloud.billing.v1.BillingAccount updateBillingAccount(
- com.google.cloud.billing.v1.UpdateBillingAccountRequest request) {
+ public com.google.cloud.billing.v1.BillingAccount updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateBillingAccountMethod(), getCallOptions(), request);
}
/**
- *
- *
*
- * Creates a billing account.
- * This method can only be used to create
- * [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
- * by GCP resellers.
+ * This method creates [billing
+ * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
+ * Google Cloud resellers should use the
+ * Channel Services APIs,
+ * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
+ * and
+ * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
* When creating a subaccount, the current authenticated user must have the
- * `billing.accounts.update` IAM permission on the master account, which is
+ * `billing.accounts.update` IAM permission on the parent account, which is
* typically given to billing account
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
- * This method will return an error if the master account has not been
+ * This method will return an error if the parent account has not been
* provisioned as a reseller account.
*
*/
- public com.google.cloud.billing.v1.BillingAccount createBillingAccount(
- com.google.cloud.billing.v1.CreateBillingAccountRequest request) {
+ public com.google.cloud.billing.v1.BillingAccount createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccountRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateBillingAccountMethod(), getCallOptions(), request);
}
/**
- *
- *
*
* Lists the projects associated with a billing account. The current
* authenticated user must have the `billing.resourceAssociations.list` IAM
@@ -1164,31 +899,26 @@ public com.google.cloud.billing.v1.BillingAccount createBillingAccount(
* [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBillingInfo(
- com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) {
+ public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListProjectBillingInfoMethod(), getCallOptions(), request);
}
/**
- *
- *
*
* Gets the billing information for a project. The current authenticated user
- * must have [permission to view the
- * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
- * ).
+ * must have the `resourcemanager.projects.get` permission for the project,
+ * which can be granted by assigning the [Project
+ * Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
+ * role.
*
*/
- public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(
- com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) {
+ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetProjectBillingInfoMethod(), getCallOptions(), request);
}
/**
- *
- *
*
* Sets or updates the billing account associated with a project. You specify
* the new billing account by setting the `billing_account_name` in the
@@ -1198,7 +928,7 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(
* billing account, this method changes the billing account used for resource
* usage charges.
* *Note:* Incurred charges that have not yet been reported in the transaction
- * history of the GCP Console might be billed to the new billing
+ * history of the Google Cloud Console might be billed to the new billing
* account, even if the charge occurred before the new billing account was
* assigned to the project.
* The current authenticated user must have ownership privileges for both the
@@ -1219,15 +949,12 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(
* *open* billing account.
*
*/
- public com.google.cloud.billing.v1.ProjectBillingInfo updateProjectBillingInfo(
- com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) {
+ public com.google.cloud.billing.v1.ProjectBillingInfo updateProjectBillingInfo(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateProjectBillingInfoMethod(), getCallOptions(), request);
}
/**
- *
- *
*
* Gets the access control policy for a billing account.
* The caller must have the `billing.accounts.getIamPolicy` permission on the
@@ -1241,8 +968,6 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
}
/**
- *
- *
*
* Sets the access control policy for a billing account. Replaces any existing
* policy.
@@ -1257,31 +982,27 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
}
/**
- *
- *
*
* Tests the access control policy for a billing account. This method takes
* the resource and a set of permissions as input and returns the subset of
* the input permissions that the caller is allowed for that resource.
*
*/
- public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(
- com.google.iam.v1.TestIamPermissionsRequest request) {
+ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request);
}
}
/**
- *
- *
*
- * Retrieves GCP Console billing accounts and associates them with projects.
+ * Retrieves the Google Cloud Console billing accounts and associates them with
+ * projects.
*
*/
- public static final class CloudBillingFutureStub
- extends io.grpc.stub.AbstractFutureStub
* Gets information about a billing account. The current authenticated user
* must be a [viewer of the billing
* account](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.cloud.billing.v1.BillingAccount>
- getBillingAccount(com.google.cloud.billing.v1.GetBillingAccountRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture
* Lists the billing accounts that the current authenticated user has
* permission to
* [view](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.cloud.billing.v1.ListBillingAccountsResponse>
- listBillingAccounts(com.google.cloud.billing.v1.ListBillingAccountsRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture
* Updates a billing account's fields.
* Currently the only field that can be edited is `display_name`.
@@ -1335,39 +1048,36 @@ protected CloudBillingFutureStub build(
* of the billing account.
*
*/
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.cloud.billing.v1.BillingAccount>
- updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture
- * Creates a billing account.
- * This method can only be used to create
- * [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
- * by GCP resellers.
+ * This method creates [billing
+ * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
+ * Google Cloud resellers should use the
+ * Channel Services APIs,
+ * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
+ * and
+ * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
* When creating a subaccount, the current authenticated user must have the
- * `billing.accounts.update` IAM permission on the master account, which is
+ * `billing.accounts.update` IAM permission on the parent account, which is
* typically given to billing account
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
- * This method will return an error if the master account has not been
+ * This method will return an error if the parent account has not been
* provisioned as a reseller account.
*
*/
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.cloud.billing.v1.BillingAccount>
- createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccountRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture
* Lists the projects associated with a billing account. The current
* authenticated user must have the `billing.resourceAssociations.list` IAM
@@ -1375,33 +1085,28 @@ protected CloudBillingFutureStub build(
* [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.cloud.billing.v1.ListProjectBillingInfoResponse>
- listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture
* Gets the billing information for a project. The current authenticated user
- * must have [permission to view the
- * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
- * ).
+ * must have the `resourcemanager.projects.get` permission for the project,
+ * which can be granted by assigning the [Project
+ * Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
+ * role.
*
*/
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.cloud.billing.v1.ProjectBillingInfo>
- getProjectBillingInfo(com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture
* Sets or updates the billing account associated with a project. You specify
* the new billing account by setting the `billing_account_name` in the
@@ -1411,7 +1116,7 @@ protected CloudBillingFutureStub build(
* billing account, this method changes the billing account used for resource
* usage charges.
* *Note:* Incurred charges that have not yet been reported in the transaction
- * history of the GCP Console might be billed to the new billing
+ * history of the Google Cloud Console might be billed to the new billing
* account, even if the charge occurred before the new billing account was
* assigned to the project.
* The current authenticated user must have ownership privileges for both the
@@ -1432,17 +1137,13 @@ protected CloudBillingFutureStub build(
* *open* billing account.
*
*/
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.cloud.billing.v1.ProjectBillingInfo>
- updateProjectBillingInfo(
- com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture
* Gets the access control policy for a billing account.
* The caller must have the `billing.accounts.getIamPolicy` permission on the
@@ -1450,15 +1151,13 @@ protected CloudBillingFutureStub build(
* [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public com.google.common.util.concurrent.ListenableFuture
* Sets the access control policy for a billing account. Replaces any existing
* policy.
@@ -1467,24 +1166,21 @@ protected CloudBillingFutureStub build(
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
*
*/
- public com.google.common.util.concurrent.ListenableFuture
* Tests the access control policy for a billing account. This method takes
* the resource and a set of permissions as input and returns the subset of
* the input permissions that the caller is allowed for that resource.
*
*/
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.iam.v1.TestIamPermissionsResponse>
- testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture
+ * A catalog of Google Cloud Platform services and SKUs.
+ * Provides pricing information and metadata on Google Cloud Platform services
+ * and SKUs.
+ *
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler",
+ comments = "Source: google/cloud/billing/v1/cloud_catalog.proto")
+@io.grpc.stub.annotations.GrpcGenerated
+public final class CloudCatalogGrpc {
+
+ private CloudCatalogGrpc() {}
+
+ public static final String SERVICE_NAME = "google.cloud.billing.v1.CloudCatalog";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor
+ * A catalog of Google Cloud Platform services and SKUs.
+ * Provides pricing information and metadata on Google Cloud Platform services
+ * and SKUs.
+ *
+ */
+ public static abstract class CloudCatalogImplBase implements io.grpc.BindableService {
+
+ /**
+ *
+ * Lists all public cloud services.
+ *
+ */
+ public void listServices(com.google.cloud.billing.v1.ListServicesRequest request,
+ io.grpc.stub.StreamObserver
+ * Lists all publicly available SKUs for a given cloud service.
+ *
+ */
+ public void listSkus(com.google.cloud.billing.v1.ListSkusRequest request,
+ io.grpc.stub.StreamObserver
+ * A catalog of Google Cloud Platform services and SKUs.
+ * Provides pricing information and metadata on Google Cloud Platform services
+ * and SKUs.
+ *
+ */
+ public static final class CloudCatalogStub extends io.grpc.stub.AbstractAsyncStub
+ * Lists all public cloud services.
+ *
+ */
+ public void listServices(com.google.cloud.billing.v1.ListServicesRequest request,
+ io.grpc.stub.StreamObserver
+ * Lists all publicly available SKUs for a given cloud service.
+ *
+ */
+ public void listSkus(com.google.cloud.billing.v1.ListSkusRequest request,
+ io.grpc.stub.StreamObserver
+ * A catalog of Google Cloud Platform services and SKUs.
+ * Provides pricing information and metadata on Google Cloud Platform services
+ * and SKUs.
+ *
+ */
+ public static final class CloudCatalogBlockingStub extends io.grpc.stub.AbstractBlockingStub
+ * Lists all public cloud services.
+ *
+ */
+ public com.google.cloud.billing.v1.ListServicesResponse listServices(com.google.cloud.billing.v1.ListServicesRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getListServicesMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ * Lists all publicly available SKUs for a given cloud service.
+ *
+ */
+ public com.google.cloud.billing.v1.ListSkusResponse listSkus(com.google.cloud.billing.v1.ListSkusRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getListSkusMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ *
+ * A catalog of Google Cloud Platform services and SKUs.
+ * Provides pricing information and metadata on Google Cloud Platform services
+ * and SKUs.
+ *
+ */
+ public static final class CloudCatalogFutureStub extends io.grpc.stub.AbstractFutureStub
+ * Lists all public cloud services.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ * Lists all publicly available SKUs for a given cloud service.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
* Represents the aggregation level and interval for pricing of a single SKU.
*
*
* Protobuf type {@code google.cloud.billing.v1.AggregationInfo}
*/
-public final class AggregationInfo extends com.google.protobuf.GeneratedMessageV3
- implements
+public final class AggregationInfo extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.cloud.billing.v1.AggregationInfo)
AggregationInfoOrBuilder {
- private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
// Use AggregationInfo.newBuilder() to construct.
private AggregationInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
-
private AggregationInfo() {
aggregationLevel_ = 0;
aggregationInterval_ = 0;
@@ -44,33 +26,30 @@ private AggregationInfo() {
@java.lang.Override
@SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
return new AggregationInfo();
}
@java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.billing.v1.CloudCatalogProto
- .internal_static_google_cloud_billing_v1_AggregationInfo_descriptor;
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_AggregationInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.billing.v1.CloudCatalogProto
- .internal_static_google_cloud_billing_v1_AggregationInfo_fieldAccessorTable
+ return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_AggregationInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.billing.v1.AggregationInfo.class,
- com.google.cloud.billing.v1.AggregationInfo.Builder.class);
+ com.google.cloud.billing.v1.AggregationInfo.class, com.google.cloud.billing.v1.AggregationInfo.Builder.class);
}
/**
- *
- *
*
* The level at which usage is aggregated to compute cost.
* Example: "ACCOUNT" aggregation level indicates that usage for tiered
@@ -79,23 +58,37 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Protobuf enum {@code google.cloud.billing.v1.AggregationInfo.AggregationLevel}
*/
- public enum AggregationLevel implements com.google.protobuf.ProtocolMessageEnum {
- /**
AGGREGATION_LEVEL_UNSPECIFIED = 0;
*/
+ public enum AggregationLevel
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * AGGREGATION_LEVEL_UNSPECIFIED = 0;
+ */
AGGREGATION_LEVEL_UNSPECIFIED(0),
- /** ACCOUNT = 1;
*/
+ /**
+ * ACCOUNT = 1;
+ */
ACCOUNT(1),
- /** PROJECT = 2;
*/
+ /**
+ * PROJECT = 2;
+ */
PROJECT(2),
UNRECOGNIZED(-1),
;
- /** AGGREGATION_LEVEL_UNSPECIFIED = 0;
*/
+ /**
+ * AGGREGATION_LEVEL_UNSPECIFIED = 0;
+ */
public static final int AGGREGATION_LEVEL_UNSPECIFIED_VALUE = 0;
- /** ACCOUNT = 1;
*/
+ /**
+ * ACCOUNT = 1;
+ */
public static final int ACCOUNT_VALUE = 1;
- /** PROJECT = 2;
*/
+ /**
+ * PROJECT = 2;
+ */
public static final int PROJECT_VALUE = 2;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -120,42 +113,39 @@ public static AggregationLevel valueOf(int value) {
*/
public static AggregationLevel forNumber(int value) {
switch (value) {
- case 0:
- return AGGREGATION_LEVEL_UNSPECIFIED;
- case 1:
- return ACCOUNT;
- case 2:
- return PROJECT;
- default:
- return null;
+ case 0: return AGGREGATION_LEVEL_UNSPECIFIED;
+ case 1: return ACCOUNT;
+ case 2: return PROJECT;
+ default: return null;
}
}
- public static com.google.protobuf.Internal.EnumLiteMap
* The interval at which usage is aggregated to compute cost.
* Example: "MONTHLY" aggregation interval indicates that usage for tiered
@@ -192,23 +181,37 @@ private AggregationLevel(int value) {
*
* Protobuf enum {@code google.cloud.billing.v1.AggregationInfo.AggregationInterval}
*/
- public enum AggregationInterval implements com.google.protobuf.ProtocolMessageEnum {
- /**
AGGREGATION_INTERVAL_UNSPECIFIED = 0;
*/
+ public enum AggregationInterval
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * AGGREGATION_INTERVAL_UNSPECIFIED = 0;
+ */
AGGREGATION_INTERVAL_UNSPECIFIED(0),
- /** DAILY = 1;
*/
+ /**
+ * DAILY = 1;
+ */
DAILY(1),
- /** MONTHLY = 2;
*/
+ /**
+ * MONTHLY = 2;
+ */
MONTHLY(2),
UNRECOGNIZED(-1),
;
- /** AGGREGATION_INTERVAL_UNSPECIFIED = 0;
*/
+ /**
+ * AGGREGATION_INTERVAL_UNSPECIFIED = 0;
+ */
public static final int AGGREGATION_INTERVAL_UNSPECIFIED_VALUE = 0;
- /** DAILY = 1;
*/
+ /**
+ * DAILY = 1;
+ */
public static final int DAILY_VALUE = 1;
- /** MONTHLY = 2;
*/
+ /**
+ * MONTHLY = 2;
+ */
public static final int MONTHLY_VALUE = 2;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -233,14 +236,10 @@ public static AggregationInterval valueOf(int value) {
*/
public static AggregationInterval forNumber(int value) {
switch (value) {
- case 0:
- return AGGREGATION_INTERVAL_UNSPECIFIED;
- case 1:
- return DAILY;
- case 2:
- return MONTHLY;
- default:
- return null;
+ case 0: return AGGREGATION_INTERVAL_UNSPECIFIED;
+ case 1: return DAILY;
+ case 2: return MONTHLY;
+ default: return null;
}
}
@@ -248,28 +247,28 @@ public static AggregationInterval forNumber(int value) {
internalGetValueMap() {
return internalValueMap;
}
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ AggregationInterval> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap.google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
- *
* @return The enum numeric value on the wire for aggregationLevel.
*/
- @java.lang.Override
- public int getAggregationLevelValue() {
+ @java.lang.Override public int getAggregationLevelValue() {
return aggregationLevel_;
}
/**
* .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
- *
* @return The aggregationLevel.
*/
- @java.lang.Override
- public com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel() {
+ @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel() {
@SuppressWarnings("deprecation")
- com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result =
- com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.valueOf(aggregationLevel_);
- return result == null
- ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED
- : result;
+ com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result = com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.valueOf(aggregationLevel_);
+ return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED : result;
}
public static final int AGGREGATION_INTERVAL_FIELD_NUMBER = 2;
private int aggregationInterval_;
/**
- * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
- *
- *
+ * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
* @return The enum numeric value on the wire for aggregationInterval.
*/
- @java.lang.Override
- public int getAggregationIntervalValue() {
+ @java.lang.Override public int getAggregationIntervalValue() {
return aggregationInterval_;
}
/**
- * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
- *
- *
+ * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
* @return The aggregationInterval.
*/
- @java.lang.Override
- public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval() {
+ @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval() {
@SuppressWarnings("deprecation")
- com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result =
- com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.valueOf(
- aggregationInterval_);
- return result == null
- ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED
- : result;
+ com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result = com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.valueOf(aggregationInterval_);
+ return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED : result;
}
public static final int AGGREGATION_COUNT_FIELD_NUMBER = 3;
private int aggregationCount_;
/**
- *
- *
*
* The number of intervals to aggregate over.
* Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -362,7 +343,6 @@ public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggreg
*
*
* int32 aggregation_count = 3;
- *
* @return The aggregationCount.
*/
@java.lang.Override
@@ -371,7 +351,6 @@ public int getAggregationCount() {
}
private byte memoizedIsInitialized = -1;
-
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -383,17 +362,12 @@ public final boolean isInitialized() {
}
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (aggregationLevel_
- != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel
- .AGGREGATION_LEVEL_UNSPECIFIED
- .getNumber()) {
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (aggregationLevel_ != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.AGGREGATION_LEVEL_UNSPECIFIED.getNumber()) {
output.writeEnum(1, aggregationLevel_);
}
- if (aggregationInterval_
- != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval
- .AGGREGATION_INTERVAL_UNSPECIFIED
- .getNumber()) {
+ if (aggregationInterval_ != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.AGGREGATION_INTERVAL_UNSPECIFIED.getNumber()) {
output.writeEnum(2, aggregationInterval_);
}
if (aggregationCount_ != 0) {
@@ -408,20 +382,17 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (aggregationLevel_
- != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel
- .AGGREGATION_LEVEL_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, aggregationLevel_);
- }
- if (aggregationInterval_
- != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval
- .AGGREGATION_INTERVAL_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, aggregationInterval_);
+ if (aggregationLevel_ != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.AGGREGATION_LEVEL_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, aggregationLevel_);
+ }
+ if (aggregationInterval_ != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.AGGREGATION_INTERVAL_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(2, aggregationInterval_);
}
if (aggregationCount_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, aggregationCount_);
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, aggregationCount_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -431,17 +402,17 @@ public int getSerializedSize() {
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
if (!(obj instanceof com.google.cloud.billing.v1.AggregationInfo)) {
return super.equals(obj);
}
- com.google.cloud.billing.v1.AggregationInfo other =
- (com.google.cloud.billing.v1.AggregationInfo) obj;
+ com.google.cloud.billing.v1.AggregationInfo other = (com.google.cloud.billing.v1.AggregationInfo) obj;
if (aggregationLevel_ != other.aggregationLevel_) return false;
if (aggregationInterval_ != other.aggregationInterval_) return false;
- if (getAggregationCount() != other.getAggregationCount()) return false;
+ if (getAggregationCount()
+ != other.getAggregationCount()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -464,136 +435,130 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.billing.v1.AggregationInfo parseFrom(java.nio.ByteBuffer data)
+ public static com.google.cloud.billing.v1.AggregationInfo parseFrom(
+ java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.AggregationInfo parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.AggregationInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.AggregationInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.AggregationInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.AggregationInfo parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.AggregationInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.AggregationInfo parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
-
- public static com.google.cloud.billing.v1.AggregationInfo parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ public static com.google.cloud.billing.v1.AggregationInfo parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.AggregationInfo parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.AggregationInfo parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.AggregationInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
+ public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
-
public static Builder newBuilder(com.google.cloud.billing.v1.AggregationInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
-
@java.lang.Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- *
- *
*
* Represents the aggregation level and interval for pricing of a single SKU.
*
*
* Protobuf type {@code google.cloud.billing.v1.AggregationInfo}
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder.google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
- *
* @return The enum numeric value on the wire for aggregationLevel.
*/
- @java.lang.Override
- public int getAggregationLevelValue() {
+ @java.lang.Override public int getAggregationLevelValue() {
return aggregationLevel_;
}
/**
* .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
- *
* @param value The enum numeric value on the wire for aggregationLevel to set.
* @return This builder for chaining.
*/
public Builder setAggregationLevelValue(int value) {
-
+
aggregationLevel_ = value;
onChanged();
return this;
}
/**
* .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
- *
* @return The aggregationLevel.
*/
@java.lang.Override
public com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel() {
@SuppressWarnings("deprecation")
- com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result =
- com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.valueOf(aggregationLevel_);
- return result == null
- ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED
- : result;
+ com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result = com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.valueOf(aggregationLevel_);
+ return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED : result;
}
/**
* .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
- *
* @param value The aggregationLevel to set.
* @return This builder for chaining.
*/
- public Builder setAggregationLevel(
- com.google.cloud.billing.v1.AggregationInfo.AggregationLevel value) {
+ public Builder setAggregationLevel(com.google.cloud.billing.v1.AggregationInfo.AggregationLevel value) {
if (value == null) {
throw new NullPointerException();
}
-
+
aggregationLevel_ = value.getNumber();
onChanged();
return this;
}
/**
* .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
- *
* @return This builder for chaining.
*/
public Builder clearAggregationLevel() {
-
+
aggregationLevel_ = 0;
onChanged();
return this;
@@ -818,79 +767,60 @@ public Builder clearAggregationLevel() {
private int aggregationInterval_ = 0;
/**
- * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
- *
- *
+ * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
* @return The enum numeric value on the wire for aggregationInterval.
*/
- @java.lang.Override
- public int getAggregationIntervalValue() {
+ @java.lang.Override public int getAggregationIntervalValue() {
return aggregationInterval_;
}
/**
- * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
- *
- *
+ * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
* @param value The enum numeric value on the wire for aggregationInterval to set.
* @return This builder for chaining.
*/
public Builder setAggregationIntervalValue(int value) {
-
+
aggregationInterval_ = value;
onChanged();
return this;
}
/**
- * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
- *
- *
+ * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
* @return The aggregationInterval.
*/
@java.lang.Override
- public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval
- getAggregationInterval() {
+ public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval() {
@SuppressWarnings("deprecation")
- com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result =
- com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.valueOf(
- aggregationInterval_);
- return result == null
- ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED
- : result;
+ com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result = com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.valueOf(aggregationInterval_);
+ return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED : result;
}
/**
- * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
- *
- *
+ * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
* @param value The aggregationInterval to set.
* @return This builder for chaining.
*/
- public Builder setAggregationInterval(
- com.google.cloud.billing.v1.AggregationInfo.AggregationInterval value) {
+ public Builder setAggregationInterval(com.google.cloud.billing.v1.AggregationInfo.AggregationInterval value) {
if (value == null) {
throw new NullPointerException();
}
-
+
aggregationInterval_ = value.getNumber();
onChanged();
return this;
}
/**
- * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
- *
- *
+ * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
* @return This builder for chaining.
*/
public Builder clearAggregationInterval() {
-
+
aggregationInterval_ = 0;
onChanged();
return this;
}
- private int aggregationCount_;
+ private int aggregationCount_ ;
/**
- *
- *
*
* The number of intervals to aggregate over.
* Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -898,7 +828,6 @@ public Builder clearAggregationInterval() {
*
*
* int32 aggregation_count = 3;
- *
* @return The aggregationCount.
*/
@java.lang.Override
@@ -906,8 +835,6 @@ public int getAggregationCount() {
return aggregationCount_;
}
/**
- *
- *
*
* The number of intervals to aggregate over.
* Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -915,19 +842,16 @@ public int getAggregationCount() {
*
*
* int32 aggregation_count = 3;
- *
* @param value The aggregationCount to set.
* @return This builder for chaining.
*/
public Builder setAggregationCount(int value) {
-
+
aggregationCount_ = value;
onChanged();
return this;
}
/**
- *
- *
*
* The number of intervals to aggregate over.
* Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -935,18 +859,17 @@ public Builder setAggregationCount(int value) {
*
*
* int32 aggregation_count = 3;
- *
* @return This builder for chaining.
*/
public Builder clearAggregationCount() {
-
+
aggregationCount_ = 0;
onChanged();
return this;
}
-
@java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@@ -956,12 +879,12 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}
+
// @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.AggregationInfo)
}
// @@protoc_insertion_point(class_scope:google.cloud.billing.v1.AggregationInfo)
private static final com.google.cloud.billing.v1.AggregationInfo DEFAULT_INSTANCE;
-
static {
DEFAULT_INSTANCE = new com.google.cloud.billing.v1.AggregationInfo();
}
@@ -970,27 +893,27 @@ public static com.google.cloud.billing.v1.AggregationInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser.google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
- *
* @return The enum numeric value on the wire for aggregationLevel.
*/
int getAggregationLevelValue();
/**
* .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
- *
* @return The aggregationLevel.
*/
com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel();
/**
- * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
- *
- *
+ * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
* @return The enum numeric value on the wire for aggregationInterval.
*/
int getAggregationIntervalValue();
/**
- * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
- *
- *
+ * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
* @return The aggregationInterval.
*/
com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval();
/**
- *
- *
*
* The number of intervals to aggregate over.
* Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -61,7 +37,6 @@ public interface AggregationInfoOrBuilder
*
*
* int32 aggregation_count = 3;
- *
* @return The aggregationCount.
*/
int getAggregationCount();
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java
similarity index 66%
rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java
rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java
index 98d3e5b891a1..9647480175b6 100644
--- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java
+++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java
@@ -1,43 +1,26 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/billing/v1/cloud_billing.proto
package com.google.cloud.billing.v1;
/**
- *
- *
*
- * A billing account in [GCP Console](https://console.cloud.google.com/).
- * You can assign a billing account to one or more projects.
+ * A billing account in the
+ * [Google Cloud Console](https://console.cloud.google.com/). You can assign a
+ * billing account to one or more projects.
*
*
* Protobuf type {@code google.cloud.billing.v1.BillingAccount}
*/
-public final class BillingAccount extends com.google.protobuf.GeneratedMessageV3
- implements
+public final class BillingAccount extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.cloud.billing.v1.BillingAccount)
BillingAccountOrBuilder {
- private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
// Use BillingAccount.newBuilder() to construct.
private BillingAccount(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
-
private BillingAccount() {
name_ = "";
displayName_ = "";
@@ -46,44 +29,40 @@ private BillingAccount() {
@java.lang.Override
@SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
return new BillingAccount();
}
@java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.billing.v1.CloudBillingProto
- .internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.billing.v1.CloudBillingProto
- .internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
+ return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.billing.v1.BillingAccount.class,
- com.google.cloud.billing.v1.BillingAccount.Builder.class);
+ com.google.cloud.billing.v1.BillingAccount.class, com.google.cloud.billing.v1.BillingAccount.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
- *
- *
*
- * The resource name of the billing account. The resource name has the form
+ * Output only. The resource name of the billing account. The resource name has the form
* `billingAccounts/{billing_account_id}`. For example,
* `billingAccounts/012345-567890-ABCDEF` would be the resource name for
* billing account `012345-567890-ABCDEF`.
*
*
- * string name = 1 [(.google.api.resource_reference) = { ... }
- *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The name.
*/
@java.lang.Override
@@ -92,32 +71,32 @@ public java.lang.String getName() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
- *
- *
*
- * The resource name of the billing account. The resource name has the form
+ * Output only. The resource name of the billing account. The resource name has the form
* `billingAccounts/{billing_account_id}`. For example,
* `billingAccounts/012345-567890-ABCDEF` would be the resource name for
* billing account `012345-567890-ABCDEF`.
*
*
- * string name = 1 [(.google.api.resource_reference) = { ... }
- *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for name.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getNameBytes() {
+ public com.google.protobuf.ByteString
+ getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
name_ = b;
return b;
} else {
@@ -128,8 +107,6 @@ public com.google.protobuf.ByteString getNameBytes() {
public static final int OPEN_FIELD_NUMBER = 2;
private boolean open_;
/**
- *
- *
*
* Output only. True if the billing account is open, and will therefore be charged for any
* usage on associated projects. False if the billing account is closed, and
@@ -137,7 +114,6 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
* @return The open.
*/
@java.lang.Override
@@ -148,15 +124,12 @@ public boolean getOpen() {
public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object displayName_;
/**
- *
- *
*
* The display name given to the billing account, such as `My Billing
- * Account`. This name is displayed in the GCP Console.
+ * Account`. This name is displayed in the Google Cloud Console.
*
*
* string display_name = 3;
- *
* @return The displayName.
*/
@java.lang.Override
@@ -165,30 +138,30 @@ public java.lang.String getDisplayName() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
}
}
/**
- *
- *
*
* The display name given to the billing account, such as `My Billing
- * Account`. This name is displayed in the GCP Console.
+ * Account`. This name is displayed in the Google Cloud Console.
*
*
* string display_name = 3;
- *
* @return The bytes for displayName.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getDisplayNameBytes() {
+ public com.google.protobuf.ByteString
+ getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
displayName_ = b;
return b;
} else {
@@ -199,18 +172,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
public static final int MASTER_BILLING_ACCOUNT_FIELD_NUMBER = 4;
private volatile java.lang.Object masterBillingAccount_;
/**
- *
- *
*
* If this account is a
* [subaccount](https://cloud.google.com/billing/docs/concepts), then this
- * will be the resource name of the master billing account that it is being
+ * will be the resource name of the parent billing account that it is being
* resold through.
* Otherwise this will be empty.
*
*
* string master_billing_account = 4;
- *
* @return The masterBillingAccount.
*/
@java.lang.Override
@@ -219,33 +189,33 @@ public java.lang.String getMasterBillingAccount() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
masterBillingAccount_ = s;
return s;
}
}
/**
- *
- *
*
* If this account is a
* [subaccount](https://cloud.google.com/billing/docs/concepts), then this
- * will be the resource name of the master billing account that it is being
+ * will be the resource name of the parent billing account that it is being
* resold through.
* Otherwise this will be empty.
*
*
* string master_billing_account = 4;
- *
* @return The bytes for masterBillingAccount.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getMasterBillingAccountBytes() {
+ public com.google.protobuf.ByteString
+ getMasterBillingAccountBytes() {
java.lang.Object ref = masterBillingAccount_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
masterBillingAccount_ = b;
return b;
} else {
@@ -254,7 +224,6 @@ public com.google.protobuf.ByteString getMasterBillingAccountBytes() {
}
private byte memoizedIsInitialized = -1;
-
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -266,7 +235,8 @@ public final boolean isInitialized() {
}
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
@@ -292,7 +262,8 @@ public int getSerializedSize() {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (open_ != false) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, open_);
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, open_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_);
@@ -308,18 +279,21 @@ public int getSerializedSize() {
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
if (!(obj instanceof com.google.cloud.billing.v1.BillingAccount)) {
return super.equals(obj);
}
- com.google.cloud.billing.v1.BillingAccount other =
- (com.google.cloud.billing.v1.BillingAccount) obj;
-
- if (!getName().equals(other.getName())) return false;
- if (getOpen() != other.getOpen()) return false;
- if (!getDisplayName().equals(other.getDisplayName())) return false;
- if (!getMasterBillingAccount().equals(other.getMasterBillingAccount())) return false;
+ com.google.cloud.billing.v1.BillingAccount other = (com.google.cloud.billing.v1.BillingAccount) obj;
+
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (getOpen()
+ != other.getOpen()) return false;
+ if (!getDisplayName()
+ .equals(other.getDisplayName())) return false;
+ if (!getMasterBillingAccount()
+ .equals(other.getMasterBillingAccount())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -334,7 +308,8 @@ public int hashCode() {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + OPEN_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOpen());
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getOpen());
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
hash = (37 * hash) + MASTER_BILLING_ACCOUNT_FIELD_NUMBER;
@@ -344,137 +319,132 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.billing.v1.BillingAccount parseFrom(java.nio.ByteBuffer data)
+ public static com.google.cloud.billing.v1.BillingAccount parseFrom(
+ java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.BillingAccount parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.BillingAccount parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.BillingAccount parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.BillingAccount parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.BillingAccount parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.BillingAccount parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.BillingAccount parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
-
- public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.BillingAccount parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.BillingAccount parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
+ public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
-
public static Builder newBuilder(com.google.cloud.billing.v1.BillingAccount prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
-
@java.lang.Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- *
- *
*
- * A billing account in [GCP Console](https://console.cloud.google.com/).
- * You can assign a billing account to one or more projects.
+ * A billing account in the
+ * [Google Cloud Console](https://console.cloud.google.com/). You can assign a
+ * billing account to one or more projects.
*
*
* Protobuf type {@code google.cloud.billing.v1.BillingAccount}
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * The resource name of the billing account. The resource name has the form
+ * Output only. The resource name of the billing account. The resource name has the form
* `billingAccounts/{billing_account_id}`. For example,
* `billingAccounts/012345-567890-ABCDEF` would be the resource name for
* billing account `012345-567890-ABCDEF`.
*
*
- * string name = 1 [(.google.api.resource_reference) = { ... }
- *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
@@ -675,24 +636,23 @@ public java.lang.String getName() {
}
}
/**
- *
- *
*
- * The resource name of the billing account. The resource name has the form
+ * Output only. The resource name of the billing account. The resource name has the form
* `billingAccounts/{billing_account_id}`. For example,
* `billingAccounts/012345-567890-ABCDEF` would be the resource name for
* billing account `012345-567890-ABCDEF`.
*
*
- * string name = 1 [(.google.api.resource_reference) = { ... }
- *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for name.
*/
- public com.google.protobuf.ByteString getNameBytes() {
+ public com.google.protobuf.ByteString
+ getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
name_ = b;
return b;
} else {
@@ -700,79 +660,70 @@ public com.google.protobuf.ByteString getNameBytes() {
}
}
/**
- *
- *
*
- * The resource name of the billing account. The resource name has the form
+ * Output only. The resource name of the billing account. The resource name has the form
* `billingAccounts/{billing_account_id}`. For example,
* `billingAccounts/012345-567890-ABCDEF` would be the resource name for
* billing account `012345-567890-ABCDEF`.
*
*
- * string name = 1 [(.google.api.resource_reference) = { ... }
- *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The name to set.
* @return This builder for chaining.
*/
- public Builder setName(java.lang.String value) {
+ public Builder setName(
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
name_ = value;
onChanged();
return this;
}
/**
- *
- *
*
- * The resource name of the billing account. The resource name has the form
+ * Output only. The resource name of the billing account. The resource name has the form
* `billingAccounts/{billing_account_id}`. For example,
* `billingAccounts/012345-567890-ABCDEF` would be the resource name for
* billing account `012345-567890-ABCDEF`.
*
*
- * string name = 1 [(.google.api.resource_reference) = { ... }
- *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearName() {
-
+
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
- *
- *
*
- * The resource name of the billing account. The resource name has the form
+ * Output only. The resource name of the billing account. The resource name has the form
* `billingAccounts/{billing_account_id}`. For example,
* `billingAccounts/012345-567890-ABCDEF` would be the resource name for
* billing account `012345-567890-ABCDEF`.
*
*
- * string name = 1 [(.google.api.resource_reference) = { ... }
- *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
- public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
name_ = value;
onChanged();
return this;
}
- private boolean open_;
+ private boolean open_ ;
/**
- *
- *
*
* Output only. True if the billing account is open, and will therefore be charged for any
* usage on associated projects. False if the billing account is closed, and
@@ -780,7 +731,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
* bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
* @return The open.
*/
@java.lang.Override
@@ -788,8 +738,6 @@ public boolean getOpen() {
return open_;
}
/**
- *
- *
*
* Output only. True if the billing account is open, and will therefore be charged for any
* usage on associated projects. False if the billing account is closed, and
@@ -797,19 +745,16 @@ public boolean getOpen() {
*
*
* bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
* @param value The open to set.
* @return This builder for chaining.
*/
public Builder setOpen(boolean value) {
-
+
open_ = value;
onChanged();
return this;
}
/**
- *
- *
*
* Output only. True if the billing account is open, and will therefore be charged for any
* usage on associated projects. False if the billing account is closed, and
@@ -817,11 +762,10 @@ public Builder setOpen(boolean value) {
*
*
* bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
* @return This builder for chaining.
*/
public Builder clearOpen() {
-
+
open_ = false;
onChanged();
return this;
@@ -829,21 +773,19 @@ public Builder clearOpen() {
private java.lang.Object displayName_ = "";
/**
- *
- *
*
* The display name given to the billing account, such as `My Billing
- * Account`. This name is displayed in the GCP Console.
+ * Account`. This name is displayed in the Google Cloud Console.
*
*
* string display_name = 3;
- *
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
@@ -852,22 +794,21 @@ public java.lang.String getDisplayName() {
}
}
/**
- *
- *
*
* The display name given to the billing account, such as `My Billing
- * Account`. This name is displayed in the GCP Console.
+ * Account`. This name is displayed in the Google Cloud Console.
*
*
* string display_name = 3;
- *
* @return The bytes for displayName.
*/
- public com.google.protobuf.ByteString getDisplayNameBytes() {
+ public com.google.protobuf.ByteString
+ getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
displayName_ = b;
return b;
} else {
@@ -875,64 +816,57 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
}
}
/**
- *
- *
*
* The display name given to the billing account, such as `My Billing
- * Account`. This name is displayed in the GCP Console.
+ * Account`. This name is displayed in the Google Cloud Console.
*
*
* string display_name = 3;
- *
* @param value The displayName to set.
* @return This builder for chaining.
*/
- public Builder setDisplayName(java.lang.String value) {
+ public Builder setDisplayName(
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
displayName_ = value;
onChanged();
return this;
}
/**
- *
- *
*
* The display name given to the billing account, such as `My Billing
- * Account`. This name is displayed in the GCP Console.
+ * Account`. This name is displayed in the Google Cloud Console.
*
*
* string display_name = 3;
- *
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
-
+
displayName_ = getDefaultInstance().getDisplayName();
onChanged();
return this;
}
/**
- *
- *
*
* The display name given to the billing account, such as `My Billing
- * Account`. This name is displayed in the GCP Console.
+ * Account`. This name is displayed in the Google Cloud Console.
*
*
* string display_name = 3;
- *
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
- public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ public Builder setDisplayNameBytes(
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
displayName_ = value;
onChanged();
return this;
@@ -940,24 +874,22 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
private java.lang.Object masterBillingAccount_ = "";
/**
- *
- *
*
* If this account is a
* [subaccount](https://cloud.google.com/billing/docs/concepts), then this
- * will be the resource name of the master billing account that it is being
+ * will be the resource name of the parent billing account that it is being
* resold through.
* Otherwise this will be empty.
*
*
* string master_billing_account = 4;
- *
* @return The masterBillingAccount.
*/
public java.lang.String getMasterBillingAccount() {
java.lang.Object ref = masterBillingAccount_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
masterBillingAccount_ = s;
return s;
@@ -966,25 +898,24 @@ public java.lang.String getMasterBillingAccount() {
}
}
/**
- *
- *
*
* If this account is a
* [subaccount](https://cloud.google.com/billing/docs/concepts), then this
- * will be the resource name of the master billing account that it is being
+ * will be the resource name of the parent billing account that it is being
* resold through.
* Otherwise this will be empty.
*
*
* string master_billing_account = 4;
- *
* @return The bytes for masterBillingAccount.
*/
- public com.google.protobuf.ByteString getMasterBillingAccountBytes() {
+ public com.google.protobuf.ByteString
+ getMasterBillingAccountBytes() {
java.lang.Object ref = masterBillingAccount_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
masterBillingAccount_ = b;
return b;
} else {
@@ -992,80 +923,73 @@ public com.google.protobuf.ByteString getMasterBillingAccountBytes() {
}
}
/**
- *
- *
*
* If this account is a
* [subaccount](https://cloud.google.com/billing/docs/concepts), then this
- * will be the resource name of the master billing account that it is being
+ * will be the resource name of the parent billing account that it is being
* resold through.
* Otherwise this will be empty.
*
*
* string master_billing_account = 4;
- *
* @param value The masterBillingAccount to set.
* @return This builder for chaining.
*/
- public Builder setMasterBillingAccount(java.lang.String value) {
+ public Builder setMasterBillingAccount(
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
masterBillingAccount_ = value;
onChanged();
return this;
}
/**
- *
- *
*
* If this account is a
* [subaccount](https://cloud.google.com/billing/docs/concepts), then this
- * will be the resource name of the master billing account that it is being
+ * will be the resource name of the parent billing account that it is being
* resold through.
* Otherwise this will be empty.
*
*
* string master_billing_account = 4;
- *
* @return This builder for chaining.
*/
public Builder clearMasterBillingAccount() {
-
+
masterBillingAccount_ = getDefaultInstance().getMasterBillingAccount();
onChanged();
return this;
}
/**
- *
- *
*
* If this account is a
* [subaccount](https://cloud.google.com/billing/docs/concepts), then this
- * will be the resource name of the master billing account that it is being
+ * will be the resource name of the parent billing account that it is being
* resold through.
* Otherwise this will be empty.
*
*
* string master_billing_account = 4;
- *
* @param value The bytes for masterBillingAccount to set.
* @return This builder for chaining.
*/
- public Builder setMasterBillingAccountBytes(com.google.protobuf.ByteString value) {
+ public Builder setMasterBillingAccountBytes(
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
masterBillingAccount_ = value;
onChanged();
return this;
}
-
@java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@@ -1075,12 +999,12 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}
+
// @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.BillingAccount)
}
// @@protoc_insertion_point(class_scope:google.cloud.billing.v1.BillingAccount)
private static final com.google.cloud.billing.v1.BillingAccount DEFAULT_INSTANCE;
-
static {
DEFAULT_INSTANCE = new com.google.cloud.billing.v1.BillingAccount();
}
@@ -1089,27 +1013,27 @@ public static com.google.cloud.billing.v1.BillingAccount getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- * The resource name of the billing account. The resource name has the form
+ * Output only. The resource name of the billing account. The resource name has the form
* `billingAccounts/{billing_account_id}`. For example,
* `billingAccounts/012345-567890-ABCDEF` would be the resource name for
* billing account `012345-567890-ABCDEF`.
*
*
- * string name = 1 [(.google.api.resource_reference) = { ... }
- *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The name.
*/
java.lang.String getName();
/**
- *
- *
*
- * The resource name of the billing account. The resource name has the form
+ * Output only. The resource name of the billing account. The resource name has the form
* `billingAccounts/{billing_account_id}`. For example,
* `billingAccounts/012345-567890-ABCDEF` would be the resource name for
* billing account `012345-567890-ABCDEF`.
*
*
- * string name = 1 [(.google.api.resource_reference) = { ... }
- *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for name.
*/
- com.google.protobuf.ByteString getNameBytes();
+ com.google.protobuf.ByteString
+ getNameBytes();
/**
- *
- *
*
* Output only. True if the billing account is open, and will therefore be charged for any
* usage on associated projects. False if the billing account is closed, and
@@ -64,68 +41,57 @@ public interface BillingAccountOrBuilder
*
*
* bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
* @return The open.
*/
boolean getOpen();
/**
- *
- *
*
* The display name given to the billing account, such as `My Billing
- * Account`. This name is displayed in the GCP Console.
+ * Account`. This name is displayed in the Google Cloud Console.
*
*
* string display_name = 3;
- *
* @return The displayName.
*/
java.lang.String getDisplayName();
/**
- *
- *
*
* The display name given to the billing account, such as `My Billing
- * Account`. This name is displayed in the GCP Console.
+ * Account`. This name is displayed in the Google Cloud Console.
*
*
* string display_name = 3;
- *
* @return The bytes for displayName.
*/
- com.google.protobuf.ByteString getDisplayNameBytes();
+ com.google.protobuf.ByteString
+ getDisplayNameBytes();
/**
- *
- *
*
* If this account is a
* [subaccount](https://cloud.google.com/billing/docs/concepts), then this
- * will be the resource name of the master billing account that it is being
+ * will be the resource name of the parent billing account that it is being
* resold through.
* Otherwise this will be empty.
*
*
* string master_billing_account = 4;
- *
* @return The masterBillingAccount.
*/
java.lang.String getMasterBillingAccount();
/**
- *
- *
*
* If this account is a
* [subaccount](https://cloud.google.com/billing/docs/concepts), then this
- * will be the resource name of the master billing account that it is being
+ * will be the resource name of the parent billing account that it is being
* resold through.
* Otherwise this will be empty.
*
*
* string master_billing_account = 4;
- *
* @return The bytes for masterBillingAccount.
*/
- com.google.protobuf.ByteString getMasterBillingAccountBytes();
+ com.google.protobuf.ByteString
+ getMasterBillingAccountBytes();
}
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java
similarity index 70%
rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java
rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java
index 990aec419e3f..b14d17c4f169 100644
--- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java
+++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/billing/v1/cloud_catalog.proto
package com.google.cloud.billing.v1;
/**
- *
- *
*
* Represents the category hierarchy of a SKU.
*
*
* Protobuf type {@code google.cloud.billing.v1.Category}
*/
-public final class Category extends com.google.protobuf.GeneratedMessageV3
- implements
+public final class Category extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.cloud.billing.v1.Category)
CategoryOrBuilder {
- private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
// Use Category.newBuilder() to construct.
private Category(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
-
private Category() {
serviceDisplayName_ = "";
resourceFamily_ = "";
@@ -46,41 +28,37 @@ private Category() {
@java.lang.Override
@SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
return new Category();
}
@java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.billing.v1.CloudCatalogProto
- .internal_static_google_cloud_billing_v1_Category_descriptor;
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.billing.v1.CloudCatalogProto
- .internal_static_google_cloud_billing_v1_Category_fieldAccessorTable
+ return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.billing.v1.Category.class,
- com.google.cloud.billing.v1.Category.Builder.class);
+ com.google.cloud.billing.v1.Category.class, com.google.cloud.billing.v1.Category.Builder.class);
}
public static final int SERVICE_DISPLAY_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object serviceDisplayName_;
/**
- *
- *
*
* The display name of the service this SKU belongs to.
*
*
* string service_display_name = 1;
- *
* @return The serviceDisplayName.
*/
@java.lang.Override
@@ -89,29 +67,29 @@ public java.lang.String getServiceDisplayName() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceDisplayName_ = s;
return s;
}
}
/**
- *
- *
*
* The display name of the service this SKU belongs to.
*
*
* string service_display_name = 1;
- *
* @return The bytes for serviceDisplayName.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getServiceDisplayNameBytes() {
+ public com.google.protobuf.ByteString
+ getServiceDisplayNameBytes() {
java.lang.Object ref = serviceDisplayName_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
serviceDisplayName_ = b;
return b;
} else {
@@ -122,15 +100,12 @@ public com.google.protobuf.ByteString getServiceDisplayNameBytes() {
public static final int RESOURCE_FAMILY_FIELD_NUMBER = 2;
private volatile java.lang.Object resourceFamily_;
/**
- *
- *
*
* The type of product the SKU refers to.
* Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
*
*
* string resource_family = 2;
- *
* @return The resourceFamily.
*/
@java.lang.Override
@@ -139,30 +114,30 @@ public java.lang.String getResourceFamily() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceFamily_ = s;
return s;
}
}
/**
- *
- *
*
* The type of product the SKU refers to.
* Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
*
*
* string resource_family = 2;
- *
* @return The bytes for resourceFamily.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getResourceFamilyBytes() {
+ public com.google.protobuf.ByteString
+ getResourceFamilyBytes() {
java.lang.Object ref = resourceFamily_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
resourceFamily_ = b;
return b;
} else {
@@ -173,15 +148,12 @@ public com.google.protobuf.ByteString getResourceFamilyBytes() {
public static final int RESOURCE_GROUP_FIELD_NUMBER = 3;
private volatile java.lang.Object resourceGroup_;
/**
- *
- *
*
* A group classification for related SKUs.
* Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
*
*
* string resource_group = 3;
- *
* @return The resourceGroup.
*/
@java.lang.Override
@@ -190,30 +162,30 @@ public java.lang.String getResourceGroup() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceGroup_ = s;
return s;
}
}
/**
- *
- *
*
* A group classification for related SKUs.
* Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
*
*
* string resource_group = 3;
- *
* @return The bytes for resourceGroup.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getResourceGroupBytes() {
+ public com.google.protobuf.ByteString
+ getResourceGroupBytes() {
java.lang.Object ref = resourceGroup_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
resourceGroup_ = b;
return b;
} else {
@@ -224,15 +196,12 @@ public com.google.protobuf.ByteString getResourceGroupBytes() {
public static final int USAGE_TYPE_FIELD_NUMBER = 4;
private volatile java.lang.Object usageType_;
/**
- *
- *
*
* Represents how the SKU is consumed.
* Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
*
*
* string usage_type = 4;
- *
* @return The usageType.
*/
@java.lang.Override
@@ -241,30 +210,30 @@ public java.lang.String getUsageType() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
usageType_ = s;
return s;
}
}
/**
- *
- *
*
* Represents how the SKU is consumed.
* Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
*
*
* string usage_type = 4;
- *
* @return The bytes for usageType.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getUsageTypeBytes() {
+ public com.google.protobuf.ByteString
+ getUsageTypeBytes() {
java.lang.Object ref = usageType_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
usageType_ = b;
return b;
} else {
@@ -273,7 +242,6 @@ public com.google.protobuf.ByteString getUsageTypeBytes() {
}
private byte memoizedIsInitialized = -1;
-
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -285,7 +253,8 @@ public final boolean isInitialized() {
}
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceDisplayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceDisplayName_);
}
@@ -327,17 +296,21 @@ public int getSerializedSize() {
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
if (!(obj instanceof com.google.cloud.billing.v1.Category)) {
return super.equals(obj);
}
com.google.cloud.billing.v1.Category other = (com.google.cloud.billing.v1.Category) obj;
- if (!getServiceDisplayName().equals(other.getServiceDisplayName())) return false;
- if (!getResourceFamily().equals(other.getResourceFamily())) return false;
- if (!getResourceGroup().equals(other.getResourceGroup())) return false;
- if (!getUsageType().equals(other.getUsageType())) return false;
+ if (!getServiceDisplayName()
+ .equals(other.getServiceDisplayName())) return false;
+ if (!getResourceFamily()
+ .equals(other.getResourceFamily())) return false;
+ if (!getResourceGroup()
+ .equals(other.getResourceGroup())) return false;
+ if (!getUsageType()
+ .equals(other.getUsageType())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -362,135 +335,130 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.billing.v1.Category parseFrom(java.nio.ByteBuffer data)
+ public static com.google.cloud.billing.v1.Category parseFrom(
+ java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.Category parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
- public static com.google.cloud.billing.v1.Category parseFrom(com.google.protobuf.ByteString data)
+ public static com.google.cloud.billing.v1.Category parseFrom(
+ com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.Category parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.Category parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.Category parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.Category parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.Category parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.Category parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.Category parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.Category parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.Category parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
+ public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
-
public static Builder newBuilder(com.google.cloud.billing.v1.Category prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
-
@java.lang.Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- *
- *
*
* Represents the category hierarchy of a SKU.
*
*
* Protobuf type {@code google.cloud.billing.v1.Category}
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* The display name of the service this SKU belongs to.
*
*
* string service_display_name = 1;
- *
* @return The serviceDisplayName.
*/
public java.lang.String getServiceDisplayName() {
java.lang.Object ref = serviceDisplayName_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceDisplayName_ = s;
return s;
@@ -688,21 +648,20 @@ public java.lang.String getServiceDisplayName() {
}
}
/**
- *
- *
*
* The display name of the service this SKU belongs to.
*
*
* string service_display_name = 1;
- *
* @return The bytes for serviceDisplayName.
*/
- public com.google.protobuf.ByteString getServiceDisplayNameBytes() {
+ public com.google.protobuf.ByteString
+ getServiceDisplayNameBytes() {
java.lang.Object ref = serviceDisplayName_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
serviceDisplayName_ = b;
return b;
} else {
@@ -710,61 +669,54 @@ public com.google.protobuf.ByteString getServiceDisplayNameBytes() {
}
}
/**
- *
- *
*
* The display name of the service this SKU belongs to.
*
*
* string service_display_name = 1;
- *
* @param value The serviceDisplayName to set.
* @return This builder for chaining.
*/
- public Builder setServiceDisplayName(java.lang.String value) {
+ public Builder setServiceDisplayName(
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
serviceDisplayName_ = value;
onChanged();
return this;
}
/**
- *
- *
*
* The display name of the service this SKU belongs to.
*
*
* string service_display_name = 1;
- *
* @return This builder for chaining.
*/
public Builder clearServiceDisplayName() {
-
+
serviceDisplayName_ = getDefaultInstance().getServiceDisplayName();
onChanged();
return this;
}
/**
- *
- *
*
* The display name of the service this SKU belongs to.
*
*
* string service_display_name = 1;
- *
* @param value The bytes for serviceDisplayName to set.
* @return This builder for chaining.
*/
- public Builder setServiceDisplayNameBytes(com.google.protobuf.ByteString value) {
+ public Builder setServiceDisplayNameBytes(
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
serviceDisplayName_ = value;
onChanged();
return this;
@@ -772,21 +724,19 @@ public Builder setServiceDisplayNameBytes(com.google.protobuf.ByteString value)
private java.lang.Object resourceFamily_ = "";
/**
- *
- *
*
* The type of product the SKU refers to.
* Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
*
*
* string resource_family = 2;
- *
* @return The resourceFamily.
*/
public java.lang.String getResourceFamily() {
java.lang.Object ref = resourceFamily_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceFamily_ = s;
return s;
@@ -795,22 +745,21 @@ public java.lang.String getResourceFamily() {
}
}
/**
- *
- *
*
* The type of product the SKU refers to.
* Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
*
*
* string resource_family = 2;
- *
* @return The bytes for resourceFamily.
*/
- public com.google.protobuf.ByteString getResourceFamilyBytes() {
+ public com.google.protobuf.ByteString
+ getResourceFamilyBytes() {
java.lang.Object ref = resourceFamily_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
resourceFamily_ = b;
return b;
} else {
@@ -818,64 +767,57 @@ public com.google.protobuf.ByteString getResourceFamilyBytes() {
}
}
/**
- *
- *
*
* The type of product the SKU refers to.
* Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
*
*
* string resource_family = 2;
- *
* @param value The resourceFamily to set.
* @return This builder for chaining.
*/
- public Builder setResourceFamily(java.lang.String value) {
+ public Builder setResourceFamily(
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
resourceFamily_ = value;
onChanged();
return this;
}
/**
- *
- *
*
* The type of product the SKU refers to.
* Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
*
*
* string resource_family = 2;
- *
* @return This builder for chaining.
*/
public Builder clearResourceFamily() {
-
+
resourceFamily_ = getDefaultInstance().getResourceFamily();
onChanged();
return this;
}
/**
- *
- *
*
* The type of product the SKU refers to.
* Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
*
*
* string resource_family = 2;
- *
* @param value The bytes for resourceFamily to set.
* @return This builder for chaining.
*/
- public Builder setResourceFamilyBytes(com.google.protobuf.ByteString value) {
+ public Builder setResourceFamilyBytes(
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
resourceFamily_ = value;
onChanged();
return this;
@@ -883,21 +825,19 @@ public Builder setResourceFamilyBytes(com.google.protobuf.ByteString value) {
private java.lang.Object resourceGroup_ = "";
/**
- *
- *
*
* A group classification for related SKUs.
* Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
*
*
* string resource_group = 3;
- *
* @return The resourceGroup.
*/
public java.lang.String getResourceGroup() {
java.lang.Object ref = resourceGroup_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceGroup_ = s;
return s;
@@ -906,22 +846,21 @@ public java.lang.String getResourceGroup() {
}
}
/**
- *
- *
*
* A group classification for related SKUs.
* Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
*
*
* string resource_group = 3;
- *
* @return The bytes for resourceGroup.
*/
- public com.google.protobuf.ByteString getResourceGroupBytes() {
+ public com.google.protobuf.ByteString
+ getResourceGroupBytes() {
java.lang.Object ref = resourceGroup_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
resourceGroup_ = b;
return b;
} else {
@@ -929,64 +868,57 @@ public com.google.protobuf.ByteString getResourceGroupBytes() {
}
}
/**
- *
- *
*
* A group classification for related SKUs.
* Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
*
*
* string resource_group = 3;
- *
* @param value The resourceGroup to set.
* @return This builder for chaining.
*/
- public Builder setResourceGroup(java.lang.String value) {
+ public Builder setResourceGroup(
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
resourceGroup_ = value;
onChanged();
return this;
}
/**
- *
- *
*
* A group classification for related SKUs.
* Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
*
*
* string resource_group = 3;
- *
* @return This builder for chaining.
*/
public Builder clearResourceGroup() {
-
+
resourceGroup_ = getDefaultInstance().getResourceGroup();
onChanged();
return this;
}
/**
- *
- *
*
* A group classification for related SKUs.
* Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
*
*
* string resource_group = 3;
- *
* @param value The bytes for resourceGroup to set.
* @return This builder for chaining.
*/
- public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) {
+ public Builder setResourceGroupBytes(
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
resourceGroup_ = value;
onChanged();
return this;
@@ -994,21 +926,19 @@ public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) {
private java.lang.Object usageType_ = "";
/**
- *
- *
*
* Represents how the SKU is consumed.
* Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
*
*
* string usage_type = 4;
- *
* @return The usageType.
*/
public java.lang.String getUsageType() {
java.lang.Object ref = usageType_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
usageType_ = s;
return s;
@@ -1017,22 +947,21 @@ public java.lang.String getUsageType() {
}
}
/**
- *
- *
*
* Represents how the SKU is consumed.
* Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
*
*
* string usage_type = 4;
- *
* @return The bytes for usageType.
*/
- public com.google.protobuf.ByteString getUsageTypeBytes() {
+ public com.google.protobuf.ByteString
+ getUsageTypeBytes() {
java.lang.Object ref = usageType_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
usageType_ = b;
return b;
} else {
@@ -1040,71 +969,64 @@ public com.google.protobuf.ByteString getUsageTypeBytes() {
}
}
/**
- *
- *
*
* Represents how the SKU is consumed.
* Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
*
*
* string usage_type = 4;
- *
* @param value The usageType to set.
* @return This builder for chaining.
*/
- public Builder setUsageType(java.lang.String value) {
+ public Builder setUsageType(
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
usageType_ = value;
onChanged();
return this;
}
/**
- *
- *
*
* Represents how the SKU is consumed.
* Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
*
*
* string usage_type = 4;
- *
* @return This builder for chaining.
*/
public Builder clearUsageType() {
-
+
usageType_ = getDefaultInstance().getUsageType();
onChanged();
return this;
}
/**
- *
- *
*
* Represents how the SKU is consumed.
* Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
*
*
* string usage_type = 4;
- *
* @param value The bytes for usageType to set.
* @return This builder for chaining.
*/
- public Builder setUsageTypeBytes(com.google.protobuf.ByteString value) {
+ public Builder setUsageTypeBytes(
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
usageType_ = value;
onChanged();
return this;
}
-
@java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@@ -1114,12 +1036,12 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}
+
// @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.Category)
}
// @@protoc_insertion_point(class_scope:google.cloud.billing.v1.Category)
private static final com.google.cloud.billing.v1.Category DEFAULT_INSTANCE;
-
static {
DEFAULT_INSTANCE = new com.google.cloud.billing.v1.Category();
}
@@ -1128,27 +1050,27 @@ public static com.google.cloud.billing.v1.Category getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
* The display name of the service this SKU belongs to.
*
*
* string service_display_name = 1;
- *
* @return The serviceDisplayName.
*/
java.lang.String getServiceDisplayName();
/**
- *
- *
*
* The display name of the service this SKU belongs to.
*
*
* string service_display_name = 1;
- *
* @return The bytes for serviceDisplayName.
*/
- com.google.protobuf.ByteString getServiceDisplayNameBytes();
+ com.google.protobuf.ByteString
+ getServiceDisplayNameBytes();
/**
- *
- *
*
* The type of product the SKU refers to.
* Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
*
*
* string resource_family = 2;
- *
* @return The resourceFamily.
*/
java.lang.String getResourceFamily();
/**
- *
- *
*
* The type of product the SKU refers to.
* Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
*
*
* string resource_family = 2;
- *
* @return The bytes for resourceFamily.
*/
- com.google.protobuf.ByteString getResourceFamilyBytes();
+ com.google.protobuf.ByteString
+ getResourceFamilyBytes();
/**
- *
- *
*
* A group classification for related SKUs.
* Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
*
*
* string resource_group = 3;
- *
* @return The resourceGroup.
*/
java.lang.String getResourceGroup();
/**
- *
- *
*
* A group classification for related SKUs.
* Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
*
*
* string resource_group = 3;
- *
* @return The bytes for resourceGroup.
*/
- com.google.protobuf.ByteString getResourceGroupBytes();
+ com.google.protobuf.ByteString
+ getResourceGroupBytes();
/**
- *
- *
*
* Represents how the SKU is consumed.
* Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
*
*
* string usage_type = 4;
- *
* @return The usageType.
*/
java.lang.String getUsageType();
/**
- *
- *
*
* Represents how the SKU is consumed.
* Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
*
*
* string usage_type = 4;
- *
* @return The bytes for usageType.
*/
- com.google.protobuf.ByteString getUsageTypeBytes();
+ com.google.protobuf.ByteString
+ getUsageTypeBytes();
}
diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java
new file mode 100644
index 000000000000..416acf408157
--- /dev/null
+++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java
@@ -0,0 +1,272 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/billing/v1/cloud_billing.proto
+
+package com.google.cloud.billing.v1;
+
+public final class CloudBillingProto {
+ private CloudBillingProto() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n+google/cloud/billing/v1/cloud_billing." +
+ "proto\022\027google.cloud.billing.v1\032\034google/a" +
+ "pi/annotations.proto\032\027google/api/client." +
+ "proto\032\037google/api/field_behavior.proto\032\031" +
+ "google/api/resource.proto\032\036google/iam/v1" +
+ "/iam_policy.proto\032\032google/iam/v1/policy." +
+ "proto\032 google/protobuf/field_mask.proto\"" +
+ "\233\001\n\016BillingAccount\022@\n\004name\030\001 \001(\tB2\340A\003\372A," +
+ "\n*cloudbilling.googleapis.com/BillingAcc" +
+ "ount\022\021\n\004open\030\002 \001(\010B\003\340A\003\022\024\n\014display_name\030" +
+ "\003 \001(\t\022\036\n\026master_billing_account\030\004 \001(\t\"m\n" +
+ "\022ProjectBillingInfo\022\014\n\004name\030\001 \001(\t\022\022\n\npro" +
+ "ject_id\030\002 \001(\t\022\034\n\024billing_account_name\030\003 " +
+ "\001(\t\022\027\n\017billing_enabled\030\004 \001(\010\"\\\n\030GetBilli" +
+ "ngAccountRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*" +
+ "cloudbilling.googleapis.com/BillingAccou" +
+ "nt\"S\n\032ListBillingAccountsRequest\022\021\n\tpage" +
+ "_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\022\016\n\006filte" +
+ "r\030\003 \001(\t\"y\n\033ListBillingAccountsResponse\022A" +
+ "\n\020billing_accounts\030\001 \003(\0132\'.google.cloud." +
+ "billing.v1.BillingAccount\022\027\n\017next_page_t" +
+ "oken\030\002 \001(\t\"d\n\033CreateBillingAccountReques" +
+ "t\022E\n\017billing_account\030\001 \001(\0132\'.google.clou" +
+ "d.billing.v1.BillingAccountB\003\340A\002\"\317\001\n\033Upd" +
+ "ateBillingAccountRequest\022@\n\004name\030\001 \001(\tB2" +
+ "\340A\002\372A,\n*cloudbilling.googleapis.com/Bill" +
+ "ingAccount\022=\n\007account\030\002 \001(\0132\'.google.clo" +
+ "ud.billing.v1.BillingAccountB\003\340A\002\022/\n\013upd" +
+ "ate_mask\030\003 \001(\0132\032.google.protobuf.FieldMa" +
+ "sk\"\210\001\n\035ListProjectBillingInfoRequest\022@\n\004" +
+ "name\030\001 \001(\tB2\340A\002\372A,\n*cloudbilling.googlea" +
+ "pis.com/BillingAccount\022\021\n\tpage_size\030\002 \001(" +
+ "\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n\036ListProjectBil" +
+ "lingInfoResponse\022I\n\024project_billing_info" +
+ "\030\001 \003(\0132+.google.cloud.billing.v1.Project" +
+ "BillingInfo\022\027\n\017next_page_token\030\002 \001(\t\"1\n\034" +
+ "GetProjectBillingInfoRequest\022\021\n\004name\030\001 \001" +
+ "(\tB\003\340A\002\"\177\n\037UpdateProjectBillingInfoReque" +
+ "st\022\021\n\004name\030\001 \001(\tB\003\340A\002\022I\n\024project_billing" +
+ "_info\030\002 \001(\0132+.google.cloud.billing.v1.Pr" +
+ "ojectBillingInfo2\262\017\n\014CloudBilling\022\234\001\n\021Ge" +
+ "tBillingAccount\0221.google.cloud.billing.v" +
+ "1.GetBillingAccountRequest\032\'.google.clou" +
+ "d.billing.v1.BillingAccount\"+\202\323\344\223\002\036\022\034/v1" +
+ "/{name=billingAccounts/*}\332A\004name\022\240\001\n\023Lis" +
+ "tBillingAccounts\0223.google.cloud.billing." +
+ "v1.ListBillingAccountsRequest\0324.google.c" +
+ "loud.billing.v1.ListBillingAccountsRespo" +
+ "nse\"\036\202\323\344\223\002\025\022\023/v1/billingAccounts\332A\000\022\263\001\n\024" +
+ "UpdateBillingAccount\0224.google.cloud.bill" +
+ "ing.v1.UpdateBillingAccountRequest\032\'.goo" +
+ "gle.cloud.billing.v1.BillingAccount\"<\202\323\344" +
+ "\223\002\'2\034/v1/{name=billingAccounts/*}:\007accou" +
+ "nt\332A\014name,account\022\265\001\n\024CreateBillingAccou" +
+ "nt\0224.google.cloud.billing.v1.CreateBilli" +
+ "ngAccountRequest\032\'.google.cloud.billing." +
+ "v1.BillingAccount\">\202\323\344\223\002&\"\023/v1/billingAc" +
+ "counts:\017billing_account\332A\017billing_accoun" +
+ "t\022\277\001\n\026ListProjectBillingInfo\0226.google.cl" +
+ "oud.billing.v1.ListProjectBillingInfoReq" +
+ "uest\0327.google.cloud.billing.v1.ListProje" +
+ "ctBillingInfoResponse\"4\202\323\344\223\002\'\022%/v1/{name" +
+ "=billingAccounts/*}/projects\332A\004name\022\255\001\n\025" +
+ "GetProjectBillingInfo\0225.google.cloud.bil" +
+ "ling.v1.GetProjectBillingInfoRequest\032+.g" +
+ "oogle.cloud.billing.v1.ProjectBillingInf" +
+ "o\"0\202\323\344\223\002#\022!/v1/{name=projects/*}/billing" +
+ "Info\332A\004name\022\336\001\n\030UpdateProjectBillingInfo" +
+ "\0228.google.cloud.billing.v1.UpdateProject" +
+ "BillingInfoRequest\032+.google.cloud.billin" +
+ "g.v1.ProjectBillingInfo\"[\202\323\344\223\0029\032!/v1/{na" +
+ "me=projects/*}/billingInfo:\024project_bill" +
+ "ing_info\332A\031name,project_billing_info\022\213\001\n" +
+ "\014GetIamPolicy\022\".google.iam.v1.GetIamPoli" +
+ "cyRequest\032\025.google.iam.v1.Policy\"@\202\323\344\223\002/" +
+ "\022-/v1/{resource=billingAccounts/*}:getIa" +
+ "mPolicy\332A\010resource\022\225\001\n\014SetIamPolicy\022\".go" +
+ "ogle.iam.v1.SetIamPolicyRequest\032\025.google" +
+ ".iam.v1.Policy\"J\202\323\344\223\0022\"-/v1/{resource=bi" +
+ "llingAccounts/*}:setIamPolicy:\001*\332A\017resou" +
+ "rce,policy\022\300\001\n\022TestIamPermissions\022(.goog" +
+ "le.iam.v1.TestIamPermissionsRequest\032).go" +
+ "ogle.iam.v1.TestIamPermissionsResponse\"U" +
+ "\202\323\344\223\0028\"3/v1/{resource=billingAccounts/*}" +
+ ":testIamPermissions:\001*\332A\024resource,permis" +
+ "sions\032\265\001\312A\033cloudbilling.googleapis.com\322A" +
+ "\223\001https://www.googleapis.com/auth/cloud-" +
+ "billing,https://www.googleapis.com/auth/" +
+ "cloud-billing.readonly,https://www.googl" +
+ "eapis.com/auth/cloud-platformBr\n\033com.goo" +
+ "gle.cloud.billing.v1B\021CloudBillingProtoP" +
+ "\001Z>google.golang.org/genproto/googleapis" +
+ "/cloud/billing/v1;billingb\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ClientProto.getDescriptor(),
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.iam.v1.IamPolicyProto.getDescriptor(),
+ com.google.iam.v1.PolicyProto.getDescriptor(),
+ com.google.protobuf.FieldMaskProto.getDescriptor(),
+ });
+ internal_static_google_cloud_billing_v1_BillingAccount_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_BillingAccount_descriptor,
+ new java.lang.String[] { "Name", "Open", "DisplayName", "MasterBillingAccount", });
+ internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor,
+ new java.lang.String[] { "Name", "ProjectId", "BillingAccountName", "BillingEnabled", });
+ internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor,
+ new java.lang.String[] { "Name", });
+ internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor,
+ new java.lang.String[] { "PageSize", "PageToken", "Filter", });
+ internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor,
+ new java.lang.String[] { "BillingAccounts", "NextPageToken", });
+ internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor,
+ new java.lang.String[] { "BillingAccount", });
+ internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor,
+ new java.lang.String[] { "Name", "Account", "UpdateMask", });
+ internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor,
+ new java.lang.String[] { "Name", "PageSize", "PageToken", });
+ internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor,
+ new java.lang.String[] { "ProjectBillingInfo", "NextPageToken", });
+ internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor,
+ new java.lang.String[] { "Name", });
+ internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor,
+ new java.lang.String[] { "Name", "ProjectBillingInfo", });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.ClientProto.defaultHost);
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.AnnotationsProto.http);
+ registry.add(com.google.api.ClientProto.methodSignature);
+ registry.add(com.google.api.ClientProto.oauthScopes);
+ registry.add(com.google.api.ResourceProto.resourceReference);
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalUpdateFileDescriptor(descriptor, registry);
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ClientProto.getDescriptor();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.iam.v1.IamPolicyProto.getDescriptor();
+ com.google.iam.v1.PolicyProto.getDescriptor();
+ com.google.protobuf.FieldMaskProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java
new file mode 100644
index 000000000000..027fa130dadc
--- /dev/null
+++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java
@@ -0,0 +1,268 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/billing/v1/cloud_catalog.proto
+
+package com.google.cloud.billing.v1;
+
+public final class CloudCatalogProto {
+ private CloudCatalogProto() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_Service_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_Service_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_Sku_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_Category_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_Category_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_PricingInfo_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_AggregationInfo_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_AggregationInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n+google/cloud/billing/v1/cloud_catalog." +
+ "proto\022\027google.cloud.billing.v1\032\034google/a" +
+ "pi/annotations.proto\032\027google/api/client." +
+ "proto\032\037google/api/field_behavior.proto\032\031" +
+ "google/api/resource.proto\032\037google/protob" +
+ "uf/timestamp.proto\032\027google/type/money.pr" +
+ "oto\"\235\001\n\007Service\022\014\n\004name\030\001 \001(\t\022\022\n\nservice" +
+ "_id\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\022\034\n\024busin" +
+ "ess_entity_name\030\004 \001(\t:<\352A9\n#cloudbilling" +
+ ".googleapis.com/Service\022\022services/{servi" +
+ "ce}\"\342\002\n\003Sku\022\014\n\004name\030\001 \001(\t\022\016\n\006sku_id\030\002 \001(" +
+ "\t\022\023\n\013description\030\003 \001(\t\0223\n\010category\030\004 \001(\013" +
+ "2!.google.cloud.billing.v1.Category\022\027\n\017s" +
+ "ervice_regions\030\005 \003(\t\022:\n\014pricing_info\030\006 \003" +
+ "(\0132$.google.cloud.billing.v1.PricingInfo" +
+ "\022\035\n\025service_provider_name\030\007 \001(\t\022:\n\014geo_t" +
+ "axonomy\030\010 \001(\0132$.google.cloud.billing.v1." +
+ "GeoTaxonomy:C\352A@\n\037cloudbilling.googleapi" +
+ "s.com/Sku\022\035services/{service}/skus/{sku}" +
+ "\"m\n\010Category\022\034\n\024service_display_name\030\001 \001" +
+ "(\t\022\027\n\017resource_family\030\002 \001(\t\022\026\n\016resource_" +
+ "group\030\003 \001(\t\022\022\n\nusage_type\030\004 \001(\t\"\200\002\n\013Pric" +
+ "ingInfo\0222\n\016effective_time\030\001 \001(\0132\032.google" +
+ ".protobuf.Timestamp\022\017\n\007summary\030\002 \001(\t\022F\n\022" +
+ "pricing_expression\030\003 \001(\0132*.google.cloud." +
+ "billing.v1.PricingExpression\022B\n\020aggregat" +
+ "ion_info\030\004 \001(\0132(.google.cloud.billing.v1" +
+ ".AggregationInfo\022 \n\030currency_conversion_" +
+ "rate\030\005 \001(\001\"\323\002\n\021PricingExpression\022\022\n\nusag" +
+ "e_unit\030\001 \001(\t\022\030\n\020display_quantity\030\002 \001(\001\022I" +
+ "\n\014tiered_rates\030\003 \003(\01323.google.cloud.bill" +
+ "ing.v1.PricingExpression.TierRate\022\036\n\026usa" +
+ "ge_unit_description\030\004 \001(\t\022\021\n\tbase_unit\030\005" +
+ " \001(\t\022\035\n\025base_unit_description\030\006 \001(\t\022#\n\033b" +
+ "ase_unit_conversion_factor\030\007 \001(\001\032N\n\010Tier" +
+ "Rate\022\032\n\022start_usage_amount\030\001 \001(\001\022&\n\nunit" +
+ "_price\030\002 \001(\0132\022.google.type.Money\"\204\003\n\017Agg" +
+ "regationInfo\022T\n\021aggregation_level\030\001 \001(\0162" +
+ "9.google.cloud.billing.v1.AggregationInf" +
+ "o.AggregationLevel\022Z\n\024aggregation_interv" +
+ "al\030\002 \001(\0162<.google.cloud.billing.v1.Aggre" +
+ "gationInfo.AggregationInterval\022\031\n\021aggreg" +
+ "ation_count\030\003 \001(\005\"O\n\020AggregationLevel\022!\n" +
+ "\035AGGREGATION_LEVEL_UNSPECIFIED\020\000\022\013\n\007ACCO" +
+ "UNT\020\001\022\013\n\007PROJECT\020\002\"S\n\023AggregationInterva" +
+ "l\022$\n AGGREGATION_INTERVAL_UNSPECIFIED\020\000\022" +
+ "\t\n\005DAILY\020\001\022\013\n\007MONTHLY\020\002\"\243\001\n\013GeoTaxonomy\022" +
+ "7\n\004type\030\001 \001(\0162).google.cloud.billing.v1." +
+ "GeoTaxonomy.Type\022\017\n\007regions\030\002 \003(\t\"J\n\004Typ" +
+ "e\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006GLOBAL\020\001\022\014\n\010R" +
+ "EGIONAL\020\002\022\022\n\016MULTI_REGIONAL\020\003\"<\n\023ListSer" +
+ "vicesRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_" +
+ "token\030\002 \001(\t\"c\n\024ListServicesResponse\0222\n\010s" +
+ "ervices\030\001 \003(\0132 .google.cloud.billing.v1." +
+ "Service\022\027\n\017next_page_token\030\002 \001(\t\"\352\001\n\017Lis" +
+ "tSkusRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#cl" +
+ "oudbilling.googleapis.com/Service\022.\n\nsta" +
+ "rt_time\030\002 \001(\0132\032.google.protobuf.Timestam" +
+ "p\022,\n\010end_time\030\003 \001(\0132\032.google.protobuf.Ti" +
+ "mestamp\022\025\n\rcurrency_code\030\004 \001(\t\022\021\n\tpage_s" +
+ "ize\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\t\"W\n\020ListSku" +
+ "sResponse\022*\n\004skus\030\001 \003(\0132\034.google.cloud.b" +
+ "illing.v1.Sku\022\027\n\017next_page_token\030\002 \001(\t2\336" +
+ "\003\n\014CloudCatalog\022\204\001\n\014ListServices\022,.googl" +
+ "e.cloud.billing.v1.ListServicesRequest\032-" +
+ ".google.cloud.billing.v1.ListServicesRes" +
+ "ponse\"\027\202\323\344\223\002\016\022\014/v1/services\332A\000\022\216\001\n\010ListS" +
+ "kus\022(.google.cloud.billing.v1.ListSkusRe" +
+ "quest\032).google.cloud.billing.v1.ListSkus" +
+ "Response\"-\202\323\344\223\002\036\022\034/v1/{parent=services/*" +
+ "}/skus\332A\006parent\032\265\001\312A\033cloudbilling.google" +
+ "apis.com\322A\223\001https://www.googleapis.com/a" +
+ "uth/cloud-billing,https://www.googleapis" +
+ ".com/auth/cloud-billing.readonly,https:/" +
+ "/www.googleapis.com/auth/cloud-platformB" +
+ "\226\001\n\033com.google.cloud.billing.v1B\021CloudCa" +
+ "talogProtoP\001Z>google.golang.org/genproto" +
+ "/googleapis/cloud/billing/v1;billing\242\002\007C" +
+ "LDCTLG\252\002\027Google.Cloud.Billing.V1b\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ClientProto.getDescriptor(),
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ com.google.type.MoneyProto.getDescriptor(),
+ });
+ internal_static_google_cloud_billing_v1_Service_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_billing_v1_Service_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_Service_descriptor,
+ new java.lang.String[] { "Name", "ServiceId", "DisplayName", "BusinessEntityName", });
+ internal_static_google_cloud_billing_v1_Sku_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_Sku_descriptor,
+ new java.lang.String[] { "Name", "SkuId", "Description", "Category", "ServiceRegions", "PricingInfo", "ServiceProviderName", "GeoTaxonomy", });
+ internal_static_google_cloud_billing_v1_Category_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_billing_v1_Category_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_Category_descriptor,
+ new java.lang.String[] { "ServiceDisplayName", "ResourceFamily", "ResourceGroup", "UsageType", });
+ internal_static_google_cloud_billing_v1_PricingInfo_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_PricingInfo_descriptor,
+ new java.lang.String[] { "EffectiveTime", "Summary", "PricingExpression", "AggregationInfo", "CurrencyConversionRate", });
+ internal_static_google_cloud_billing_v1_PricingExpression_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_PricingExpression_descriptor,
+ new java.lang.String[] { "UsageUnit", "DisplayQuantity", "TieredRates", "UsageUnitDescription", "BaseUnit", "BaseUnitDescription", "BaseUnitConversionFactor", });
+ internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor =
+ internal_static_google_cloud_billing_v1_PricingExpression_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor,
+ new java.lang.String[] { "StartUsageAmount", "UnitPrice", });
+ internal_static_google_cloud_billing_v1_AggregationInfo_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_billing_v1_AggregationInfo_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_AggregationInfo_descriptor,
+ new java.lang.String[] { "AggregationLevel", "AggregationInterval", "AggregationCount", });
+ internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor,
+ new java.lang.String[] { "Type", "Regions", });
+ internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor,
+ new java.lang.String[] { "PageSize", "PageToken", });
+ internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor,
+ new java.lang.String[] { "Services", "NextPageToken", });
+ internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor,
+ new java.lang.String[] { "Parent", "StartTime", "EndTime", "CurrencyCode", "PageSize", "PageToken", });
+ internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor,
+ new java.lang.String[] { "Skus", "NextPageToken", });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.ClientProto.defaultHost);
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.AnnotationsProto.http);
+ registry.add(com.google.api.ClientProto.methodSignature);
+ registry.add(com.google.api.ClientProto.oauthScopes);
+ registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalUpdateFileDescriptor(descriptor, registry);
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ClientProto.getDescriptor();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.type.MoneyProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java
similarity index 60%
rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java
rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java
index c56f22dc61d5..4889eaef0013 100644
--- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java
+++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java
@@ -1,86 +1,63 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/billing/v1/cloud_billing.proto
package com.google.cloud.billing.v1;
/**
- *
- *
*
* Request message for `CreateBillingAccount`.
*
*
* Protobuf type {@code google.cloud.billing.v1.CreateBillingAccountRequest}
*/
-public final class CreateBillingAccountRequest extends com.google.protobuf.GeneratedMessageV3
- implements
+public final class CreateBillingAccountRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.cloud.billing.v1.CreateBillingAccountRequest)
CreateBillingAccountRequestOrBuilder {
- private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
// Use CreateBillingAccountRequest.newBuilder() to construct.
private CreateBillingAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
-
- private CreateBillingAccountRequest() {}
+ private CreateBillingAccountRequest() {
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
return new CreateBillingAccountRequest();
}
@java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.billing.v1.CloudBillingProto
- .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor;
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.billing.v1.CloudBillingProto
- .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable
+ return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.billing.v1.CreateBillingAccountRequest.class,
- com.google.cloud.billing.v1.CreateBillingAccountRequest.Builder.class);
+ com.google.cloud.billing.v1.CreateBillingAccountRequest.class, com.google.cloud.billing.v1.CreateBillingAccountRequest.Builder.class);
}
public static final int BILLING_ACCOUNT_FIELD_NUMBER = 1;
private com.google.cloud.billing.v1.BillingAccount billingAccount_;
/**
- *
- *
*
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the billingAccount field is set.
*/
@java.lang.Override
@@ -88,40 +65,29 @@ public boolean hasBillingAccount() {
return billingAccount_ != null;
}
/**
- *
- *
*
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The billingAccount.
*/
@java.lang.Override
public com.google.cloud.billing.v1.BillingAccount getBillingAccount() {
- return billingAccount_ == null
- ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()
- : billingAccount_;
+ return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_;
}
/**
- *
- *
*
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() {
@@ -129,7 +95,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu
}
private byte memoizedIsInitialized = -1;
-
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -141,7 +106,8 @@ public final boolean isInitialized() {
}
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
if (billingAccount_ != null) {
output.writeMessage(1, getBillingAccount());
}
@@ -155,7 +121,8 @@ public int getSerializedSize() {
size = 0;
if (billingAccount_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBillingAccount());
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getBillingAccount());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -165,17 +132,17 @@ public int getSerializedSize() {
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
if (!(obj instanceof com.google.cloud.billing.v1.CreateBillingAccountRequest)) {
return super.equals(obj);
}
- com.google.cloud.billing.v1.CreateBillingAccountRequest other =
- (com.google.cloud.billing.v1.CreateBillingAccountRequest) obj;
+ com.google.cloud.billing.v1.CreateBillingAccountRequest other = (com.google.cloud.billing.v1.CreateBillingAccountRequest) obj;
if (hasBillingAccount() != other.hasBillingAccount()) return false;
if (hasBillingAccount()) {
- if (!getBillingAccount().equals(other.getBillingAccount())) return false;
+ if (!getBillingAccount()
+ .equals(other.getBillingAccount())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
@@ -198,136 +165,129 @@ public int hashCode() {
}
public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
- public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
-
- public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
+ public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
-
- public static Builder newBuilder(
- com.google.cloud.billing.v1.CreateBillingAccountRequest prototype) {
+ public static Builder newBuilder(com.google.cloud.billing.v1.CreateBillingAccountRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
-
@java.lang.Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- *
- *
*
* Request message for `CreateBillingAccount`.
*
*
* Protobuf type {@code google.cloud.billing.v1.CreateBillingAccountRequest}
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the billingAccount field is set.
*/
public boolean hasBillingAccount() {
return billingAccountBuilder_ != null || billingAccount_ != null;
}
/**
- *
- *
*
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The billingAccount.
*/
public com.google.cloud.billing.v1.BillingAccount getBillingAccount() {
if (billingAccountBuilder_ == null) {
- return billingAccount_ == null
- ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()
- : billingAccount_;
+ return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_;
} else {
return billingAccountBuilder_.getMessage();
}
}
/**
- *
- *
*
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount value) {
if (billingAccountBuilder_ == null) {
@@ -549,18 +487,14 @@ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount valu
return this;
}
/**
- *
- *
*
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setBillingAccount(
com.google.cloud.billing.v1.BillingAccount.Builder builderForValue) {
@@ -574,26 +508,20 @@ public Builder setBillingAccount(
return this;
}
/**
- *
- *
*
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount value) {
if (billingAccountBuilder_ == null) {
if (billingAccount_ != null) {
billingAccount_ =
- com.google.cloud.billing.v1.BillingAccount.newBuilder(billingAccount_)
- .mergeFrom(value)
- .buildPartial();
+ com.google.cloud.billing.v1.BillingAccount.newBuilder(billingAccount_).mergeFrom(value).buildPartial();
} else {
billingAccount_ = value;
}
@@ -605,18 +533,14 @@ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount va
return this;
}
/**
- *
- *
*
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearBillingAccount() {
if (billingAccountBuilder_ == null) {
@@ -630,80 +554,64 @@ public Builder clearBillingAccount() {
return this;
}
/**
- *
- *
*
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountBuilder() {
-
+
onChanged();
return getBillingAccountFieldBuilder().getBuilder();
}
/**
- *
- *
*
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() {
if (billingAccountBuilder_ != null) {
return billingAccountBuilder_.getMessageOrBuilder();
} else {
- return billingAccount_ == null
- ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()
- : billingAccount_;
+ return billingAccount_ == null ?
+ com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_;
}
}
/**
- *
- *
*
* Required. The billing account resource to create.
* Currently CreateBillingAccount only supports subaccount creation, so
- * any created billing accounts must be under a provided master billing
+ * any created billing accounts must be under a provided parent billing
* account.
*
*
- *
- * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.billing.v1.BillingAccount,
- com.google.cloud.billing.v1.BillingAccount.Builder,
- com.google.cloud.billing.v1.BillingAccountOrBuilder>
+ com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder>
getBillingAccountFieldBuilder() {
if (billingAccountBuilder_ == null) {
- billingAccountBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.billing.v1.BillingAccount,
- com.google.cloud.billing.v1.BillingAccount.Builder,
- com.google.cloud.billing.v1.BillingAccountOrBuilder>(
- getBillingAccount(), getParentForChildren(), isClean());
+ billingAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder>(
+ getBillingAccount(),
+ getParentForChildren(),
+ isClean());
billingAccount_ = null;
}
return billingAccountBuilder_;
}
-
@java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@@ -713,12 +621,12 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}
+
// @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.CreateBillingAccountRequest)
}
// @@protoc_insertion_point(class_scope:google.cloud.billing.v1.CreateBillingAccountRequest)
private static final com.google.cloud.billing.v1.CreateBillingAccountRequest DEFAULT_INSTANCE;
-
static {
DEFAULT_INSTANCE = new com.google.cloud.billing.v1.CreateBillingAccountRequest();
}
@@ -727,27 +635,27 @@ public static com.google.cloud.billing.v1.CreateBillingAccountRequest getDefault
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
+ * Required. The billing account resource to create.
+ * Currently CreateBillingAccount only supports subaccount creation, so
+ * any created billing accounts must be under a provided parent billing
+ * account.
+ *
+ *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return Whether the billingAccount field is set.
+ */
+ boolean hasBillingAccount();
+ /**
+ *
+ * Required. The billing account resource to create.
+ * Currently CreateBillingAccount only supports subaccount creation, so
+ * any created billing accounts must be under a provided parent billing
+ * account.
+ *
+ *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return The billingAccount.
+ */
+ com.google.cloud.billing.v1.BillingAccount getBillingAccount();
+ /**
+ *
+ * Required. The billing account resource to create.
+ * Currently CreateBillingAccount only supports subaccount creation, so
+ * any created billing accounts must be under a provided parent billing
+ * account.
+ *
+ *
+ * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];
+ */
+ com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder();
+}
diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java
new file mode 100644
index 000000000000..0d2fd890f4c0
--- /dev/null
+++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java
@@ -0,0 +1,951 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/billing/v1/cloud_catalog.proto
+
+package com.google.cloud.billing.v1;
+
+/**
+ *
+ * Encapsulates the geographic taxonomy data for a sku.
+ *
+ *
+ * Protobuf type {@code google.cloud.billing.v1.GeoTaxonomy}
+ */
+public final class GeoTaxonomy extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.GeoTaxonomy)
+ GeoTaxonomyOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use GeoTaxonomy.newBuilder() to construct.
+ private GeoTaxonomy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GeoTaxonomy() {
+ type_ = 0;
+ regions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GeoTaxonomy();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.billing.v1.GeoTaxonomy.class, com.google.cloud.billing.v1.GeoTaxonomy.Builder.class);
+ }
+
+ /**
+ *
+ * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
+ *
+ *
+ * Protobuf enum {@code google.cloud.billing.v1.GeoTaxonomy.Type}
+ */
+ public enum Type
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ * The type is not specified.
+ *
+ *
+ * TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED(0),
+ /**
+ *
+ * The sku is global in nature, e.g. a license sku. Global skus are
+ * available in all regions, and so have an empty region list.
+ *
+ *
+ * GLOBAL = 1;
+ */
+ GLOBAL(1),
+ /**
+ *
+ * The sku is available in a specific region, e.g. "us-west2".
+ *
+ *
+ * REGIONAL = 2;
+ */
+ REGIONAL(2),
+ /**
+ *
+ * The sku is associated with multiple regions, e.g. "us-west2" and
+ * "us-east1".
+ *
+ *
+ * MULTI_REGIONAL = 3;
+ */
+ MULTI_REGIONAL(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ * The type is not specified.
+ *
+ *
+ * TYPE_UNSPECIFIED = 0;
+ */
+ public static final int TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ * The sku is global in nature, e.g. a license sku. Global skus are
+ * available in all regions, and so have an empty region list.
+ *
+ *
+ * GLOBAL = 1;
+ */
+ public static final int GLOBAL_VALUE = 1;
+ /**
+ *
+ * The sku is available in a specific region, e.g. "us-west2".
+ *
+ *
+ * REGIONAL = 2;
+ */
+ public static final int REGIONAL_VALUE = 2;
+ /**
+ *
+ * The sku is associated with multiple regions, e.g. "us-west2" and
+ * "us-east1".
+ *
+ *
+ * MULTI_REGIONAL = 3;
+ */
+ public static final int MULTI_REGIONAL_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Type valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Type forNumber(int value) {
+ switch (value) {
+ case 0: return TYPE_UNSPECIFIED;
+ case 1: return GLOBAL;
+ case 2: return REGIONAL;
+ case 3: return MULTI_REGIONAL;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
+ *
+ *
+ * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1;
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
+ *
+ *
+ * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1;
+ * @return The type.
+ */
+ @java.lang.Override public com.google.cloud.billing.v1.GeoTaxonomy.Type getType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.billing.v1.GeoTaxonomy.Type result = com.google.cloud.billing.v1.GeoTaxonomy.Type.valueOf(type_);
+ return result == null ? com.google.cloud.billing.v1.GeoTaxonomy.Type.UNRECOGNIZED : result;
+ }
+
+ public static final int REGIONS_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList regions_;
+ /**
+ *
+ * The list of regions associated with a sku. Empty for Global skus, which are
+ * associated with all Google Cloud regions.
+ *
+ *
+ * repeated string regions = 2;
+ * @return A list containing the regions.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getRegionsList() {
+ return regions_;
+ }
+ /**
+ *
+ * The list of regions associated with a sku. Empty for Global skus, which are
+ * associated with all Google Cloud regions.
+ *
+ *
+ * repeated string regions = 2;
+ * @return The count of regions.
+ */
+ public int getRegionsCount() {
+ return regions_.size();
+ }
+ /**
+ *
+ * The list of regions associated with a sku. Empty for Global skus, which are
+ * associated with all Google Cloud regions.
+ *
+ *
+ * repeated string regions = 2;
+ * @param index The index of the element to return.
+ * @return The regions at the given index.
+ */
+ public java.lang.String getRegions(int index) {
+ return regions_.get(index);
+ }
+ /**
+ *
+ * The list of regions associated with a sku. Empty for Global skus, which are
+ * associated with all Google Cloud regions.
+ *
+ *
+ * repeated string regions = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the regions at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getRegionsBytes(int index) {
+ return regions_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (type_ != com.google.cloud.billing.v1.GeoTaxonomy.Type.TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(1, type_);
+ }
+ for (int i = 0; i < regions_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regions_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (type_ != com.google.cloud.billing.v1.GeoTaxonomy.Type.TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, type_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < regions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(regions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getRegionsList().size();
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.billing.v1.GeoTaxonomy)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.billing.v1.GeoTaxonomy other = (com.google.cloud.billing.v1.GeoTaxonomy) obj;
+
+ if (type_ != other.type_) return false;
+ if (!getRegionsList()
+ .equals(other.getRegionsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ if (getRegionsCount() > 0) {
+ hash = (37 * hash) + REGIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getRegionsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.billing.v1.GeoTaxonomy prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ * Encapsulates the geographic taxonomy data for a sku.
+ *
+ *
+ * Protobuf type {@code google.cloud.billing.v1.GeoTaxonomy}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
+ *
+ *
+ * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1;
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
+ *
+ *
+ * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1;
+ * @param value The enum numeric value on the wire for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+
+ type_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
+ *
+ *
+ * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1;
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.cloud.billing.v1.GeoTaxonomy.Type getType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.billing.v1.GeoTaxonomy.Type result = com.google.cloud.billing.v1.GeoTaxonomy.Type.valueOf(type_);
+ return result == null ? com.google.cloud.billing.v1.GeoTaxonomy.Type.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
+ *
+ *
+ * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1;
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(com.google.cloud.billing.v1.GeoTaxonomy.Type value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
+ *
+ *
+ * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList regions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureRegionsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ regions_ = new com.google.protobuf.LazyStringArrayList(regions_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ * The list of regions associated with a sku. Empty for Global skus, which are
+ * associated with all Google Cloud regions.
+ *
+ *
+ * repeated string regions = 2;
+ * @return A list containing the regions.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getRegionsList() {
+ return regions_.getUnmodifiableView();
+ }
+ /**
+ *
+ * The list of regions associated with a sku. Empty for Global skus, which are
+ * associated with all Google Cloud regions.
+ *
+ *
+ * repeated string regions = 2;
+ * @return The count of regions.
+ */
+ public int getRegionsCount() {
+ return regions_.size();
+ }
+ /**
+ *
+ * The list of regions associated with a sku. Empty for Global skus, which are
+ * associated with all Google Cloud regions.
+ *
+ *
+ * repeated string regions = 2;
+ * @param index The index of the element to return.
+ * @return The regions at the given index.
+ */
+ public java.lang.String getRegions(int index) {
+ return regions_.get(index);
+ }
+ /**
+ *
+ * The list of regions associated with a sku. Empty for Global skus, which are
+ * associated with all Google Cloud regions.
+ *
+ *
+ * repeated string regions = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the regions at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getRegionsBytes(int index) {
+ return regions_.getByteString(index);
+ }
+ /**
+ *
+ * The list of regions associated with a sku. Empty for Global skus, which are
+ * associated with all Google Cloud regions.
+ *
+ *
+ * repeated string regions = 2;
+ * @param index The index to set the value at.
+ * @param value The regions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRegions(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRegionsIsMutable();
+ regions_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * The list of regions associated with a sku. Empty for Global skus, which are
+ * associated with all Google Cloud regions.
+ *
+ *
+ * repeated string regions = 2;
+ * @param value The regions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addRegions(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRegionsIsMutable();
+ regions_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * The list of regions associated with a sku. Empty for Global skus, which are
+ * associated with all Google Cloud regions.
+ *
+ *
+ * repeated string regions = 2;
+ * @param values The regions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllRegions(
+ java.lang.Iterable