diff --git a/java-channel/README.md b/java-channel/README.md
index 4906a763549b..f7d035e3f44d 100644
--- a/java-channel/README.md
+++ b/java-channel/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible Error Codes: @@ -5573,10 +5606,12 @@ public final ChannelPartnerRepricingConfig createChannelPartnerRepricingConfig( *
Possible Error Codes: @@ -5651,10 +5686,12 @@ public final ChannelPartnerRepricingConfig createChannelPartnerRepricingConfig( *
Possible Error Codes: @@ -5722,10 +5759,12 @@ public final ChannelPartnerRepricingConfig createChannelPartnerRepricingConfig( *
Possible Error Codes: @@ -7224,7 +7263,9 @@ public final ListPurchasableSkusPagedResponse listPurchasableSkus( *
Possible error codes: * *
Possible error codes: * *
Possible error codes: * *
Possible error codes: + * + *
Return value: Based on the provided list of SKUs, returns a list of SKU groups that must be + * purchased using the same billing account and the billing accounts eligible to purchase each SKU + * group. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
+ * QueryEligibleBillingAccountsRequest request =
+ * QueryEligibleBillingAccountsRequest.newBuilder()
+ * .setCustomer(CustomerName.of("[ACCOUNT]", "[CUSTOMER]").toString())
+ * .addAllSkus(new ArrayList())
+ * .build();
+ * QueryEligibleBillingAccountsResponse response =
+ * cloudChannelServiceClient.queryEligibleBillingAccounts(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryEligibleBillingAccountsResponse queryEligibleBillingAccounts(
+ QueryEligibleBillingAccountsRequest request) {
+ return queryEligibleBillingAccountsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the billing accounts that are eligible to purchase particular SKUs for a given customer.
+ *
+ * Possible error codes: + * + *
Return value: Based on the provided list of SKUs, returns a list of SKU groups that must be + * purchased using the same billing account and the billing accounts eligible to purchase each SKU + * group. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
+ * QueryEligibleBillingAccountsRequest request =
+ * QueryEligibleBillingAccountsRequest.newBuilder()
+ * .setCustomer(CustomerName.of("[ACCOUNT]", "[CUSTOMER]").toString())
+ * .addAllSkus(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * cloudChannelServiceClient.queryEligibleBillingAccountsCallable().futureCall(request);
+ * // Do something.
+ * QueryEligibleBillingAccountsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
+ queryEligibleBillingAccountsCallable() {
+ return stub.queryEligibleBillingAccountsCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Registers a service account with subscriber privileges on the Cloud Pub/Sub topic for this
diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java
index 02c4c7103745..2daeec6b6d27 100644
--- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java
+++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java
@@ -458,6 +458,14 @@ public UnaryCallSettings
* Creates an entitlement for a customer.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller.
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT:
* * Required request parameters are missing or invalid.
* * There is already a customer entitlement for a SKU from the same
@@ -3019,7 +3086,10 @@ default void activateEntitlement(
*
* Transfers customer entitlements to new reseller.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller.
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
* * NOT_FOUND: The customer or offer resource was not found.
* * ALREADY_EXISTS: The SKU was already transferred for the customer.
@@ -3286,12 +3356,12 @@ default void listCustomerRepricingConfigs(
* * The new config will not modify exports used with other configs.
* Changes to the config may be immediate, but may take up to 24 hours.
* * There is a limit of ten configs for any
- * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]
- * or
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement],
+ * for any
* [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
* * The contained
* [CustomerRepricingConfig.repricing_config][google.cloud.channel.v1.CustomerRepricingConfig.repricing_config]
- * vaule must be different from the value used in the current config for a
+ * value must be different from the value used in the current config for a
* [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
* Possible Error Codes:
* * PERMISSION_DENIED: If the account making the request and the account
@@ -3467,10 +3537,12 @@ default void listChannelPartnerRepricingConfigs(
* * The new config will not modify exports used with other configs.
* Changes to the config may be immediate, but may take up to 24 hours.
* * There is a limit of ten configs for any ChannelPartner or
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement],
+ * for any
* [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
* * The contained
* [ChannelPartnerRepricingConfig.repricing_config][google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config]
- * vaule must be different from the value used in the current config for a
+ * value must be different from the value used in the current config for a
* ChannelPartner.
* Possible Error Codes:
* * PERMISSION_DENIED: If the account making the request and the account
@@ -3720,7 +3792,10 @@ default void listPurchasableSkus(
* * Offers that you can purchase for a customer.
* * Offers that you can change for an entitlement.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
*
*/
@@ -3732,6 +3807,30 @@ default void listPurchasableOffers(
getListPurchasableOffersMethod(), responseObserver);
}
+ /**
+ *
+ *
+ *
+ * Lists the billing accounts that are eligible to purchase particular SKUs
+ * for a given customer.
+ * Possible error codes:
+ * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
+ * Return value:
+ * Based on the provided list of SKUs, returns a list of SKU groups that must
+ * be purchased using the same billing account and the billing accounts
+ * eligible to purchase each SKU group.
+ *
+ */
+ default void queryEligibleBillingAccounts(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getQueryEligibleBillingAccountsMethod(), responseObserver);
+ }
+
/**
*
*
@@ -4002,8 +4101,11 @@ public void checkCloudIdentityAccountsExist(
* Creates a new [Customer][google.cloud.channel.v1.Customer] resource under
* the reseller or distributor account.
* Possible error codes:
- * * PERMISSION_DENIED: The reseller account making the request is different
- * from the reseller account in the API request.
+ * * PERMISSION_DENIED:
+ * * The reseller account making the request is different from the
+ * reseller account in the API request.
+ * * You are not authorized to create a customer. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT:
* * Required request parameters are missing or invalid.
* * Domain field value doesn't match the primary email domain.
@@ -4077,8 +4179,11 @@ public void deleteCustomer(
* TransferEntitlements call. If a linked Customer already exists and
* overwrite_if_exists is true, it will update that Customer's data.
* Possible error codes:
- * * PERMISSION_DENIED: The reseller account making the request is different
- * from the reseller account in the API request.
+ * * PERMISSION_DENIED:
+ * * The reseller account making the request is different from the
+ * reseller account in the API request.
+ * * You are not authorized to import the customer. See
+ * https://support.google.com/channelservices/answer/9759265
* * NOT_FOUND: Cloud Identity doesn't exist or was deleted.
* * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is
* expired or invalid.
@@ -4104,7 +4209,10 @@ public void importCustomer(
* Creates a Cloud Identity for the given customer using the customer's
* information, or the information provided here.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller.
+ * * You are not authorized to provision cloud identity id. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
* * NOT_FOUND: The customer was not found.
* * ALREADY_EXISTS: The customer's primary email already exists. Retry
@@ -4200,6 +4308,8 @@ public void listTransferableSkus(
* auth token.
* * The reseller account making the request is different
* from the reseller account in the query.
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
* Return value:
* List of [TransferableOffer][google.cloud.channel.v1.TransferableOffer] for
@@ -4245,7 +4355,10 @@ public void getEntitlement(
*
* Creates an entitlement for a customer.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller.
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT:
* * Required request parameters are missing or invalid.
* * There is already a customer entitlement for a SKU from the same
@@ -4527,7 +4640,10 @@ public void activateEntitlement(
*
* Transfers customer entitlements to new reseller.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller.
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
* * NOT_FOUND: The customer or offer resource was not found.
* * ALREADY_EXISTS: The SKU was already transferred for the customer.
@@ -4810,12 +4926,12 @@ public void listCustomerRepricingConfigs(
* * The new config will not modify exports used with other configs.
* Changes to the config may be immediate, but may take up to 24 hours.
* * There is a limit of ten configs for any
- * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]
- * or
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement],
+ * for any
* [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
* * The contained
* [CustomerRepricingConfig.repricing_config][google.cloud.channel.v1.CustomerRepricingConfig.repricing_config]
- * vaule must be different from the value used in the current config for a
+ * value must be different from the value used in the current config for a
* [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
* Possible Error Codes:
* * PERMISSION_DENIED: If the account making the request and the account
@@ -5001,10 +5117,12 @@ public void listChannelPartnerRepricingConfigs(
* * The new config will not modify exports used with other configs.
* Changes to the config may be immediate, but may take up to 24 hours.
* * There is a limit of ten configs for any ChannelPartner or
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement],
+ * for any
* [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
* * The contained
* [ChannelPartnerRepricingConfig.repricing_config][google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config]
- * vaule must be different from the value used in the current config for a
+ * value must be different from the value used in the current config for a
* ChannelPartner.
* Possible Error Codes:
* * PERMISSION_DENIED: If the account making the request and the account
@@ -5272,7 +5390,10 @@ public void listPurchasableSkus(
* * Offers that you can purchase for a customer.
* * Offers that you can change for an entitlement.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
*
*/
@@ -5286,6 +5407,32 @@ public void listPurchasableOffers(
responseObserver);
}
+ /**
+ *
+ *
+ *
+ * Lists the billing accounts that are eligible to purchase particular SKUs
+ * for a given customer.
+ * Possible error codes:
+ * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
+ * Return value:
+ * Based on the provided list of SKUs, returns a list of SKU groups that must
+ * be purchased using the same billing account and the billing accounts
+ * eligible to purchase each SKU group.
+ *
+ */
+ public void queryEligibleBillingAccounts(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getQueryEligibleBillingAccountsMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
/**
*
*
@@ -5523,8 +5670,11 @@ public com.google.cloud.channel.v1.Customer getCustomer(
* Creates a new [Customer][google.cloud.channel.v1.Customer] resource under
* the reseller or distributor account.
* Possible error codes:
- * * PERMISSION_DENIED: The reseller account making the request is different
- * from the reseller account in the API request.
+ * * PERMISSION_DENIED:
+ * * The reseller account making the request is different from the
+ * reseller account in the API request.
+ * * You are not authorized to create a customer. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT:
* * Required request parameters are missing or invalid.
* * Domain field value doesn't match the primary email domain.
@@ -5589,8 +5739,11 @@ public com.google.protobuf.Empty deleteCustomer(
* TransferEntitlements call. If a linked Customer already exists and
* overwrite_if_exists is true, it will update that Customer's data.
* Possible error codes:
- * * PERMISSION_DENIED: The reseller account making the request is different
- * from the reseller account in the API request.
+ * * PERMISSION_DENIED:
+ * * The reseller account making the request is different from the
+ * reseller account in the API request.
+ * * You are not authorized to import the customer. See
+ * https://support.google.com/channelservices/answer/9759265
* * NOT_FOUND: Cloud Identity doesn't exist or was deleted.
* * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is
* expired or invalid.
@@ -5613,7 +5766,10 @@ public com.google.cloud.channel.v1.Customer importCustomer(
* Creates a Cloud Identity for the given customer using the customer's
* information, or the information provided here.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller.
+ * * You are not authorized to provision cloud identity id. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
* * NOT_FOUND: The customer was not found.
* * ALREADY_EXISTS: The customer's primary email already exists. Retry
@@ -5698,6 +5854,8 @@ public com.google.cloud.channel.v1.ListTransferableSkusResponse listTransferable
* auth token.
* * The reseller account making the request is different
* from the reseller account in the query.
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
* Return value:
* List of [TransferableOffer][google.cloud.channel.v1.TransferableOffer] for
@@ -5736,7 +5894,10 @@ public com.google.cloud.channel.v1.Entitlement getEntitlement(
*
* Creates an entitlement for a customer.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller.
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT:
* * Required request parameters are missing or invalid.
* * There is already a customer entitlement for a SKU from the same
@@ -5994,7 +6155,10 @@ public com.google.longrunning.Operation activateEntitlement(
*
* Transfers customer entitlements to new reseller.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller.
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
* * NOT_FOUND: The customer or offer resource was not found.
* * ALREADY_EXISTS: The SKU was already transferred for the customer.
@@ -6247,12 +6411,12 @@ public com.google.cloud.channel.v1.CustomerRepricingConfig getCustomerRepricingC
* * The new config will not modify exports used with other configs.
* Changes to the config may be immediate, but may take up to 24 hours.
* * There is a limit of ten configs for any
- * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]
- * or
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement],
+ * for any
* [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
* * The contained
* [CustomerRepricingConfig.repricing_config][google.cloud.channel.v1.CustomerRepricingConfig.repricing_config]
- * vaule must be different from the value used in the current config for a
+ * value must be different from the value used in the current config for a
* [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
* Possible Error Codes:
* * PERMISSION_DENIED: If the account making the request and the account
@@ -6420,10 +6584,12 @@ public com.google.protobuf.Empty deleteCustomerRepricingConfig(
* * The new config will not modify exports used with other configs.
* Changes to the config may be immediate, but may take up to 24 hours.
* * There is a limit of ten configs for any ChannelPartner or
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement],
+ * for any
* [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
* * The contained
* [ChannelPartnerRepricingConfig.repricing_config][google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config]
- * vaule must be different from the value used in the current config for a
+ * value must be different from the value used in the current config for a
* ChannelPartner.
* Possible Error Codes:
* * PERMISSION_DENIED: If the account making the request and the account
@@ -6659,7 +6825,10 @@ public com.google.cloud.channel.v1.ListPurchasableSkusResponse listPurchasableSk
* * Offers that you can purchase for a customer.
* * Offers that you can change for an entitlement.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
*
*/
@@ -6669,6 +6838,28 @@ public com.google.cloud.channel.v1.ListPurchasableOffersResponse listPurchasable
getChannel(), getListPurchasableOffersMethod(), getCallOptions(), request);
}
+ /**
+ *
+ *
+ *
+ * Lists the billing accounts that are eligible to purchase particular SKUs
+ * for a given customer.
+ * Possible error codes:
+ * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
+ * Return value:
+ * Based on the provided list of SKUs, returns a list of SKU groups that must
+ * be purchased using the same billing account and the billing accounts
+ * eligible to purchase each SKU group.
+ *
+ */
+ public com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse
+ queryEligibleBillingAccounts(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getQueryEligibleBillingAccountsMethod(), getCallOptions(), request);
+ }
+
/**
*
*
@@ -6893,8 +7084,11 @@ protected CloudChannelServiceFutureStub build(
* Creates a new [Customer][google.cloud.channel.v1.Customer] resource under
* the reseller or distributor account.
* Possible error codes:
- * * PERMISSION_DENIED: The reseller account making the request is different
- * from the reseller account in the API request.
+ * * PERMISSION_DENIED:
+ * * The reseller account making the request is different from the
+ * reseller account in the API request.
+ * * You are not authorized to create a customer. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT:
* * Required request parameters are missing or invalid.
* * Domain field value doesn't match the primary email domain.
@@ -6959,8 +7153,11 @@ protected CloudChannelServiceFutureStub build(
* TransferEntitlements call. If a linked Customer already exists and
* overwrite_if_exists is true, it will update that Customer's data.
* Possible error codes:
- * * PERMISSION_DENIED: The reseller account making the request is different
- * from the reseller account in the API request.
+ * * PERMISSION_DENIED:
+ * * The reseller account making the request is different from the
+ * reseller account in the API request.
+ * * You are not authorized to import the customer. See
+ * https://support.google.com/channelservices/answer/9759265
* * NOT_FOUND: Cloud Identity doesn't exist or was deleted.
* * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is
* expired or invalid.
@@ -6983,7 +7180,10 @@ protected CloudChannelServiceFutureStub build(
* Creates a Cloud Identity for the given customer using the customer's
* information, or the information provided here.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller.
+ * * You are not authorized to provision cloud identity id. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
* * NOT_FOUND: The customer was not found.
* * ALREADY_EXISTS: The customer's primary email already exists. Retry
@@ -7070,6 +7270,8 @@ protected CloudChannelServiceFutureStub build(
* auth token.
* * The reseller account making the request is different
* from the reseller account in the query.
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
* Return value:
* List of [TransferableOffer][google.cloud.channel.v1.TransferableOffer] for
@@ -7110,7 +7312,10 @@ protected CloudChannelServiceFutureStub build(
*
* Creates an entitlement for a customer.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller.
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT:
* * Required request parameters are missing or invalid.
* * There is already a customer entitlement for a SKU from the same
@@ -7368,7 +7573,10 @@ protected CloudChannelServiceFutureStub build(
*
* Transfers customer entitlements to new reseller.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller.
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
* * NOT_FOUND: The customer or offer resource was not found.
* * ALREADY_EXISTS: The SKU was already transferred for the customer.
@@ -7632,12 +7840,12 @@ protected CloudChannelServiceFutureStub build(
* * The new config will not modify exports used with other configs.
* Changes to the config may be immediate, but may take up to 24 hours.
* * There is a limit of ten configs for any
- * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]
- * or
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement],
+ * for any
* [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
* * The contained
* [CustomerRepricingConfig.repricing_config][google.cloud.channel.v1.CustomerRepricingConfig.repricing_config]
- * vaule must be different from the value used in the current config for a
+ * value must be different from the value used in the current config for a
* [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
* Possible Error Codes:
* * PERMISSION_DENIED: If the account making the request and the account
@@ -7817,10 +8025,12 @@ protected CloudChannelServiceFutureStub build(
* * The new config will not modify exports used with other configs.
* Changes to the config may be immediate, but may take up to 24 hours.
* * There is a limit of ten configs for any ChannelPartner or
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement],
+ * for any
* [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
* * The contained
* [ChannelPartnerRepricingConfig.repricing_config][google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config]
- * vaule must be different from the value used in the current config for a
+ * value must be different from the value used in the current config for a
* ChannelPartner.
* Possible Error Codes:
* * PERMISSION_DENIED: If the account making the request and the account
@@ -8069,7 +8279,10 @@ protected CloudChannelServiceFutureStub build(
* * Offers that you can purchase for a customer.
* * Offers that you can change for an entitlement.
* Possible error codes:
- * * PERMISSION_DENIED: The customer doesn't belong to the reseller
+ * * PERMISSION_DENIED:
+ * * The customer doesn't belong to the reseller
+ * * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
* * INVALID_ARGUMENT: Required request parameters are missing or invalid.
*
*/
@@ -8080,6 +8293,29 @@ protected CloudChannelServiceFutureStub build(
getChannel().newCall(getListPurchasableOffersMethod(), getCallOptions()), request);
}
+ /**
+ *
+ *
+ *
+ * Lists the billing accounts that are eligible to purchase particular SKUs
+ * for a given customer.
+ * Possible error codes:
+ * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
+ * Return value:
+ * Based on the provided list of SKUs, returns a list of SKU groups that must
+ * be purchased using the same billing account and the billing accounts
+ * eligible to purchase each SKU group.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse>
+ queryEligibleBillingAccounts(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getQueryEligibleBillingAccountsMethod(), getCallOptions()), request);
+ }
+
/**
*
*
@@ -8237,10 +8473,11 @@ protected CloudChannelServiceFutureStub build(
private static final int METHODID_LIST_OFFERS = 41;
private static final int METHODID_LIST_PURCHASABLE_SKUS = 42;
private static final int METHODID_LIST_PURCHASABLE_OFFERS = 43;
- private static final int METHODID_REGISTER_SUBSCRIBER = 44;
- private static final int METHODID_UNREGISTER_SUBSCRIBER = 45;
- private static final int METHODID_LIST_SUBSCRIBERS = 46;
- private static final int METHODID_LIST_ENTITLEMENT_CHANGES = 47;
+ private static final int METHODID_QUERY_ELIGIBLE_BILLING_ACCOUNTS = 44;
+ private static final int METHODID_REGISTER_SUBSCRIBER = 45;
+ private static final int METHODID_UNREGISTER_SUBSCRIBER = 46;
+ private static final int METHODID_LIST_SUBSCRIBERS = 47;
+ private static final int METHODID_LIST_ENTITLEMENT_CHANGES = 48;
private static final class MethodHandlers
implements io.grpc.stub.ServerCalls.UnaryMethod,
@@ -8515,6 +8752,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
com.google.cloud.channel.v1.ListPurchasableOffersResponse>)
responseObserver);
break;
+ case METHODID_QUERY_ELIGIBLE_BILLING_ACCOUNTS:
+ serviceImpl.queryEligibleBillingAccounts(
+ (com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest) request,
+ (io.grpc.stub.StreamObserver<
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse>)
+ responseObserver);
+ break;
case METHODID_REGISTER_SUBSCRIBER:
serviceImpl.registerSubscriber(
(com.google.cloud.channel.v1.RegisterSubscriberRequest) request,
@@ -8847,6 +9091,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
com.google.cloud.channel.v1.ListPurchasableOffersRequest,
com.google.cloud.channel.v1.ListPurchasableOffersResponse>(
service, METHODID_LIST_PURCHASABLE_OFFERS)))
+ .addMethod(
+ getQueryEligibleBillingAccountsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest,
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse>(
+ service, METHODID_QUERY_ELIGIBLE_BILLING_ACCOUNTS)))
.addMethod(
getRegisterSubscriberMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
@@ -8970,6 +9221,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getListOffersMethod())
.addMethod(getListPurchasableSkusMethod())
.addMethod(getListPurchasableOffersMethod())
+ .addMethod(getQueryEligibleBillingAccountsMethod())
.addMethod(getRegisterSubscriberMethod())
.addMethod(getUnregisterSubscriberMethod())
.addMethod(getListSubscribersMethod())
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccount.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccount.java
new file mode 100644
index 000000000000..87d4d40e856a
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccount.java
@@ -0,0 +1,1457 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/channel/v1/billing_accounts.proto
+
+package com.google.cloud.channel.v1;
+
+/**
+ *
+ *
+ *
+ * Represents a billing account.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.BillingAccount}
+ */
+public final class BillingAccount extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.BillingAccount)
+ BillingAccountOrBuilder {
+ 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_ = "";
+ currencyCode_ = "";
+ regionCode_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new BillingAccount();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.BillingAccountsProto
+ .internal_static_google_cloud_channel_v1_BillingAccount_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.BillingAccountsProto
+ .internal_static_google_cloud_channel_v1_BillingAccount_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.BillingAccount.class,
+ com.google.cloud.channel.v1.BillingAccount.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. Resource name of the billing account.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Resource name of the billing account.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ 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);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * Display name of the billing account.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Display name of the billing account.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ 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);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CREATE_TIME_FIELD_NUMBER = 3;
+ private com.google.protobuf.Timestamp createTime_;
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateTime() {
+ return createTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+
+ public static final int CURRENCY_CODE_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object currencyCode_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. The 3-letter currency code defined in ISO 4217.
+ *
+ *
+ * string currency_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The currencyCode.
+ */
+ @java.lang.Override
+ public java.lang.String getCurrencyCode() {
+ java.lang.Object ref = currencyCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ currencyCode_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The 3-letter currency code defined in ISO 4217.
+ *
+ *
+ * string currency_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for currencyCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCurrencyCodeBytes() {
+ java.lang.Object ref = currencyCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ currencyCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REGION_CODE_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object regionCode_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. The CLDR region code.
+ *
+ *
+ * string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The regionCode.
+ */
+ @java.lang.Override
+ public java.lang.String getRegionCode() {
+ java.lang.Object ref = regionCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ regionCode_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The CLDR region code.
+ *
+ *
+ * string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for regionCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRegionCodeBytes() {
+ java.lang.Object ref = regionCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ regionCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
+ }
+ if (createTime_ != null) {
+ output.writeMessage(3, getCreateTime());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currencyCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, regionCode_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
+ }
+ if (createTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currencyCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, regionCode_);
+ }
+ 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.channel.v1.BillingAccount)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.channel.v1.BillingAccount other =
+ (com.google.cloud.channel.v1.BillingAccount) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (hasCreateTime() != other.hasCreateTime()) return false;
+ if (hasCreateTime()) {
+ if (!getCreateTime().equals(other.getCreateTime())) return false;
+ }
+ if (!getCurrencyCode().equals(other.getCurrencyCode())) return false;
+ if (!getRegionCode().equals(other.getRegionCode())) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ if (hasCreateTime()) {
+ hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getCreateTime().hashCode();
+ }
+ hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getCurrencyCode().hashCode();
+ hash = (37 * hash) + REGION_CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getRegionCode().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccount parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccount 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.channel.v1.BillingAccount parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.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.channel.v1.BillingAccount parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccount parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccount parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccount 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.channel.v1.BillingAccount parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccount 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.channel.v1.BillingAccount parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.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);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.channel.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);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Represents a billing account.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.BillingAccount}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.BillingAccount)
+ com.google.cloud.channel.v1.BillingAccountOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.BillingAccountsProto
+ .internal_static_google_cloud_channel_v1_BillingAccount_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.BillingAccountsProto
+ .internal_static_google_cloud_channel_v1_BillingAccount_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.BillingAccount.class,
+ com.google.cloud.channel.v1.BillingAccount.Builder.class);
+ }
+
+ // Construct using com.google.cloud.channel.v1.BillingAccount.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ name_ = "";
+ displayName_ = "";
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
+ createTimeBuilder_ = null;
+ }
+ currencyCode_ = "";
+ regionCode_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.channel.v1.BillingAccountsProto
+ .internal_static_google_cloud_channel_v1_BillingAccount_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccount getDefaultInstanceForType() {
+ return com.google.cloud.channel.v1.BillingAccount.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccount build() {
+ com.google.cloud.channel.v1.BillingAccount result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccount buildPartial() {
+ com.google.cloud.channel.v1.BillingAccount result =
+ new com.google.cloud.channel.v1.BillingAccount(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.channel.v1.BillingAccount result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.currencyCode_ = currencyCode_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.regionCode_ = regionCode_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.channel.v1.BillingAccount) {
+ return mergeFrom((com.google.cloud.channel.v1.BillingAccount) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.channel.v1.BillingAccount other) {
+ if (other == com.google.cloud.channel.v1.BillingAccount.getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getDisplayName().isEmpty()) {
+ displayName_ = other.displayName_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.hasCreateTime()) {
+ mergeCreateTime(other.getCreateTime());
+ }
+ if (!other.getCurrencyCode().isEmpty()) {
+ currencyCode_ = other.currencyCode_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getRegionCode().isEmpty()) {
+ regionCode_ = other.regionCode_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ displayName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34:
+ {
+ currencyCode_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42:
+ {
+ regionCode_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. Resource name of the billing account.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Resource name of the billing account.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for name.
+ */
+ 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);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Resource name of the billing account.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Resource name of the billing account.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Resource name of the billing account.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * Display name of the billing account.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Display name of the billing account.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ 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);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Display name of the billing account.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ displayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display name of the billing account.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Display name of the billing account.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ displayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp createTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ createTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ } else {
+ createTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && createTime_ != null
+ && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCreateTimeBuilder().mergeFrom(value);
+ } else {
+ createTime_ = value;
+ }
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearCreateTime() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
+ createTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
+ }
+ return createTimeBuilder_;
+ }
+
+ private java.lang.Object currencyCode_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. The 3-letter currency code defined in ISO 4217.
+ *
+ *
+ * string currency_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The currencyCode.
+ */
+ public java.lang.String getCurrencyCode() {
+ java.lang.Object ref = currencyCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ currencyCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The 3-letter currency code defined in ISO 4217.
+ *
+ *
+ * string currency_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for currencyCode.
+ */
+ public com.google.protobuf.ByteString getCurrencyCodeBytes() {
+ java.lang.Object ref = currencyCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ currencyCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The 3-letter currency code defined in ISO 4217.
+ *
+ *
+ * string currency_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The currencyCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCurrencyCode(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ currencyCode_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The 3-letter currency code defined in ISO 4217.
+ *
+ *
+ * string currency_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCurrencyCode() {
+ currencyCode_ = getDefaultInstance().getCurrencyCode();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The 3-letter currency code defined in ISO 4217.
+ *
+ *
+ * string currency_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for currencyCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ currencyCode_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object regionCode_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. The CLDR region code.
+ *
+ *
+ * string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The regionCode.
+ */
+ public java.lang.String getRegionCode() {
+ java.lang.Object ref = regionCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ regionCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The CLDR region code.
+ *
+ *
+ * string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for regionCode.
+ */
+ public com.google.protobuf.ByteString getRegionCodeBytes() {
+ java.lang.Object ref = regionCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ regionCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The CLDR region code.
+ *
+ *
+ * string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The regionCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRegionCode(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ regionCode_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The CLDR region code.
+ *
+ *
+ * string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRegionCode() {
+ regionCode_ = getDefaultInstance().getRegionCode();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The CLDR region code.
+ *
+ *
+ * string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for regionCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ regionCode_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.channel.v1.BillingAccount)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.BillingAccount)
+ private static final com.google.cloud.channel.v1.BillingAccount DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.channel.v1.BillingAccount();
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccount getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BillingAccount parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccount getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountOrBuilder.java
new file mode 100644
index 000000000000..d475a0982e20
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountOrBuilder.java
@@ -0,0 +1,165 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/channel/v1/billing_accounts.proto
+
+package com.google.cloud.channel.v1;
+
+public interface BillingAccountOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.BillingAccount)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. Resource name of the billing account.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Output only. Resource name of the billing account.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Display name of the billing account.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ *
+ * Display name of the billing account.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ boolean hasCreateTime();
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ *
+ *
+ *
+ * Output only. The time when this billing account was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The 3-letter currency code defined in ISO 4217.
+ *
+ *
+ * string currency_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The currencyCode.
+ */
+ java.lang.String getCurrencyCode();
+ /**
+ *
+ *
+ *
+ * Output only. The 3-letter currency code defined in ISO 4217.
+ *
+ *
+ * string currency_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for currencyCode.
+ */
+ com.google.protobuf.ByteString getCurrencyCodeBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The CLDR region code.
+ *
+ *
+ * string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The regionCode.
+ */
+ java.lang.String getRegionCode();
+ /**
+ *
+ *
+ *
+ * Output only. The CLDR region code.
+ *
+ *
+ * string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for regionCode.
+ */
+ com.google.protobuf.ByteString getRegionCodeBytes();
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountPurchaseInfo.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountPurchaseInfo.java
new file mode 100644
index 000000000000..179d4ee4564e
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountPurchaseInfo.java
@@ -0,0 +1,708 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/channel/v1/service.proto
+
+package com.google.cloud.channel.v1;
+
+/**
+ *
+ *
+ *
+ * Represents a billing account that can be used to make a purchase.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.BillingAccountPurchaseInfo}
+ */
+public final class BillingAccountPurchaseInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.BillingAccountPurchaseInfo)
+ BillingAccountPurchaseInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BillingAccountPurchaseInfo.newBuilder() to construct.
+ private BillingAccountPurchaseInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private BillingAccountPurchaseInfo() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new BillingAccountPurchaseInfo();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_BillingAccountPurchaseInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_BillingAccountPurchaseInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo.class,
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo.Builder.class);
+ }
+
+ public static final int BILLING_ACCOUNT_FIELD_NUMBER = 1;
+ private com.google.cloud.channel.v1.BillingAccount billingAccount_;
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ *
+ * @return Whether the billingAccount field is set.
+ */
+ @java.lang.Override
+ public boolean hasBillingAccount() {
+ return billingAccount_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ *
+ * @return The billingAccount.
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccount getBillingAccount() {
+ return billingAccount_ == null
+ ? com.google.cloud.channel.v1.BillingAccount.getDefaultInstance()
+ : billingAccount_;
+ }
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() {
+ return billingAccount_ == null
+ ? com.google.cloud.channel.v1.BillingAccount.getDefaultInstance()
+ : billingAccount_;
+ }
+
+ 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 (billingAccount_ != null) {
+ output.writeMessage(1, getBillingAccount());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (billingAccount_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBillingAccount());
+ }
+ 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.channel.v1.BillingAccountPurchaseInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo other =
+ (com.google.cloud.channel.v1.BillingAccountPurchaseInfo) obj;
+
+ if (hasBillingAccount() != other.hasBillingAccount()) return false;
+ if (hasBillingAccount()) {
+ if (!getBillingAccount().equals(other.getBillingAccount())) 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();
+ if (hasBillingAccount()) {
+ hash = (37 * hash) + BILLING_ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getBillingAccount().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccountPurchaseInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccountPurchaseInfo 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.channel.v1.BillingAccountPurchaseInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccountPurchaseInfo 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.channel.v1.BillingAccountPurchaseInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccountPurchaseInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccountPurchaseInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccountPurchaseInfo 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.channel.v1.BillingAccountPurchaseInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccountPurchaseInfo 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.channel.v1.BillingAccountPurchaseInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccountPurchaseInfo 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.channel.v1.BillingAccountPurchaseInfo 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;
+ }
+ /**
+ *
+ *
+ *
+ * Represents a billing account that can be used to make a purchase.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.BillingAccountPurchaseInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.BillingAccountPurchaseInfo)
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_BillingAccountPurchaseInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_BillingAccountPurchaseInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo.class,
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo.Builder.class);
+ }
+
+ // Construct using com.google.cloud.channel.v1.BillingAccountPurchaseInfo.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ billingAccount_ = null;
+ if (billingAccountBuilder_ != null) {
+ billingAccountBuilder_.dispose();
+ billingAccountBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_BillingAccountPurchaseInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccountPurchaseInfo getDefaultInstanceForType() {
+ return com.google.cloud.channel.v1.BillingAccountPurchaseInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccountPurchaseInfo build() {
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccountPurchaseInfo buildPartial() {
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo result =
+ new com.google.cloud.channel.v1.BillingAccountPurchaseInfo(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.channel.v1.BillingAccountPurchaseInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.billingAccount_ =
+ billingAccountBuilder_ == null ? billingAccount_ : billingAccountBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.channel.v1.BillingAccountPurchaseInfo) {
+ return mergeFrom((com.google.cloud.channel.v1.BillingAccountPurchaseInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.channel.v1.BillingAccountPurchaseInfo other) {
+ if (other == com.google.cloud.channel.v1.BillingAccountPurchaseInfo.getDefaultInstance())
+ return this;
+ if (other.hasBillingAccount()) {
+ mergeBillingAccount(other.getBillingAccount());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getBillingAccountFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.cloud.channel.v1.BillingAccount billingAccount_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.channel.v1.BillingAccount,
+ com.google.cloud.channel.v1.BillingAccount.Builder,
+ com.google.cloud.channel.v1.BillingAccountOrBuilder>
+ billingAccountBuilder_;
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ *
+ * @return Whether the billingAccount field is set.
+ */
+ public boolean hasBillingAccount() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ *
+ * @return The billingAccount.
+ */
+ public com.google.cloud.channel.v1.BillingAccount getBillingAccount() {
+ if (billingAccountBuilder_ == null) {
+ return billingAccount_ == null
+ ? com.google.cloud.channel.v1.BillingAccount.getDefaultInstance()
+ : billingAccount_;
+ } else {
+ return billingAccountBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ */
+ public Builder setBillingAccount(com.google.cloud.channel.v1.BillingAccount value) {
+ if (billingAccountBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ billingAccount_ = value;
+ } else {
+ billingAccountBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ */
+ public Builder setBillingAccount(
+ com.google.cloud.channel.v1.BillingAccount.Builder builderForValue) {
+ if (billingAccountBuilder_ == null) {
+ billingAccount_ = builderForValue.build();
+ } else {
+ billingAccountBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ */
+ public Builder mergeBillingAccount(com.google.cloud.channel.v1.BillingAccount value) {
+ if (billingAccountBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && billingAccount_ != null
+ && billingAccount_ != com.google.cloud.channel.v1.BillingAccount.getDefaultInstance()) {
+ getBillingAccountBuilder().mergeFrom(value);
+ } else {
+ billingAccount_ = value;
+ }
+ } else {
+ billingAccountBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ */
+ public Builder clearBillingAccount() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ billingAccount_ = null;
+ if (billingAccountBuilder_ != null) {
+ billingAccountBuilder_.dispose();
+ billingAccountBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ */
+ public com.google.cloud.channel.v1.BillingAccount.Builder getBillingAccountBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getBillingAccountFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ */
+ public com.google.cloud.channel.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() {
+ if (billingAccountBuilder_ != null) {
+ return billingAccountBuilder_.getMessageOrBuilder();
+ } else {
+ return billingAccount_ == null
+ ? com.google.cloud.channel.v1.BillingAccount.getDefaultInstance()
+ : billingAccount_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.channel.v1.BillingAccount,
+ com.google.cloud.channel.v1.BillingAccount.Builder,
+ com.google.cloud.channel.v1.BillingAccountOrBuilder>
+ getBillingAccountFieldBuilder() {
+ if (billingAccountBuilder_ == null) {
+ billingAccountBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.channel.v1.BillingAccount,
+ com.google.cloud.channel.v1.BillingAccount.Builder,
+ com.google.cloud.channel.v1.BillingAccountOrBuilder>(
+ getBillingAccount(), getParentForChildren(), isClean());
+ billingAccount_ = null;
+ }
+ return billingAccountBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.channel.v1.BillingAccountPurchaseInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.BillingAccountPurchaseInfo)
+ private static final com.google.cloud.channel.v1.BillingAccountPurchaseInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.channel.v1.BillingAccountPurchaseInfo();
+ }
+
+ public static com.google.cloud.channel.v1.BillingAccountPurchaseInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BillingAccountPurchaseInfo parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccountPurchaseInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountPurchaseInfoOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountPurchaseInfoOrBuilder.java
new file mode 100644
index 000000000000..05f4fab3a925
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountPurchaseInfoOrBuilder.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/channel/v1/service.proto
+
+package com.google.cloud.channel.v1;
+
+public interface BillingAccountPurchaseInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.BillingAccountPurchaseInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ *
+ * @return Whether the billingAccount field is set.
+ */
+ boolean hasBillingAccount();
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ *
+ * @return The billingAccount.
+ */
+ com.google.cloud.channel.v1.BillingAccount getBillingAccount();
+ /**
+ *
+ *
+ *
+ * The billing account resource.
+ *
+ *
+ * .google.cloud.channel.v1.BillingAccount billing_account = 1;
+ */
+ com.google.cloud.channel.v1.BillingAccountOrBuilder getBillingAccountOrBuilder();
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountsProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountsProto.java
new file mode 100644
index 000000000000..0c7044201840
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/BillingAccountsProto.java
@@ -0,0 +1,86 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/channel/v1/billing_accounts.proto
+
+package com.google.cloud.channel.v1;
+
+public final class BillingAccountsProto {
+ private BillingAccountsProto() {}
+
+ 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_channel_v1_BillingAccount_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_channel_v1_BillingAccount_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/channel/v1/billing_accoun"
+ + "ts.proto\022\027google.cloud.channel.v1\032\037googl"
+ + "e/api/field_behavior.proto\032\031google/api/r"
+ + "esource.proto\032\037google/protobuf/timestamp"
+ + ".proto\"\220\002\n\016BillingAccount\022\022\n\004name\030\001 \001(\tB"
+ + "\004\342A\001\003\022\024\n\014display_name\030\002 \001(\t\0225\n\013create_ti"
+ + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A"
+ + "\001\003\022\033\n\rcurrency_code\030\004 \001(\tB\004\342A\001\003\022\031\n\013regio"
+ + "n_code\030\005 \001(\tB\004\342A\001\003:e\352Ab\n*cloudchannel.go"
+ + "ogleapis.com/BillingAccount\0224accounts/{a"
+ + "ccount}/billingAccounts/{billing_account"
+ + "}Bl\n\033com.google.cloud.channel.v1B\024Billin"
+ + "gAccountsProtoP\001Z5cloud.google.com/go/ch"
+ + "annel/apiv1/channelpb;channelpbb\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ });
+ internal_static_google_cloud_channel_v1_BillingAccount_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_channel_v1_BillingAccount_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_channel_v1_BillingAccount_descriptor,
+ new java.lang.String[] {
+ "Name", "DisplayName", "CreateTime", "CurrencyCode", "RegionCode",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.ResourceProto.resource);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java
index bc3b24de5a89..ce02a131550f 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java
@@ -44,6 +44,7 @@ private ChangeOfferRequest() {
parameters_ = java.util.Collections.emptyList();
purchaseOrderId_ = "";
requestId_ = "";
+ billingAccount_ = "";
}
@java.lang.Override
@@ -399,6 +400,65 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
}
}
+ public static final int BILLING_ACCOUNT_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object billingAccount_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The billing account resource name that is used to pay for this
+ * entitlement when setting up billing on a trial subscription.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ @java.lang.Override
+ public java.lang.String getBillingAccount() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ billingAccount_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The billing account resource name that is used to pay for this
+ * entitlement when setting up billing on a trial subscription.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBillingAccountBytes() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ billingAccount_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -428,6 +488,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, requestId_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, billingAccount_);
+ }
getUnknownFields().writeTo(output);
}
@@ -452,6 +515,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, requestId_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, billingAccount_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -473,6 +539,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getParametersList().equals(other.getParametersList())) return false;
if (!getPurchaseOrderId().equals(other.getPurchaseOrderId())) return false;
if (!getRequestId().equals(other.getRequestId())) return false;
+ if (!getBillingAccount().equals(other.getBillingAccount())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -496,6 +563,8 @@ public int hashCode() {
hash = (53 * hash) + getPurchaseOrderId().hashCode();
hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
hash = (53 * hash) + getRequestId().hashCode();
+ hash = (37 * hash) + BILLING_ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getBillingAccount().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -647,6 +716,7 @@ public Builder clear() {
bitField0_ = (bitField0_ & ~0x00000004);
purchaseOrderId_ = "";
requestId_ = "";
+ billingAccount_ = "";
return this;
}
@@ -708,6 +778,9 @@ private void buildPartial0(com.google.cloud.channel.v1.ChangeOfferRequest result
if (((from_bitField0_ & 0x00000010) != 0)) {
result.requestId_ = requestId_;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.billingAccount_ = billingAccount_;
+ }
}
@java.lang.Override
@@ -802,6 +875,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.ChangeOfferRequest other) {
bitField0_ |= 0x00000010;
onChanged();
}
+ if (!other.getBillingAccount().isEmpty()) {
+ billingAccount_ = other.billingAccount_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -865,6 +943,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 50
+ case 58:
+ {
+ billingAccount_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1827,6 +1911,132 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object billingAccount_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The billing account resource name that is used to pay for this
+ * entitlement when setting up billing on a trial subscription.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ public java.lang.String getBillingAccount() {
+ java.lang.Object ref = billingAccount_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ billingAccount_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The billing account resource name that is used to pay for this
+ * entitlement when setting up billing on a trial subscription.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ public com.google.protobuf.ByteString getBillingAccountBytes() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ billingAccount_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The billing account resource name that is used to pay for this
+ * entitlement when setting up billing on a trial subscription.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The billingAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBillingAccount(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ billingAccount_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The billing account resource name that is used to pay for this
+ * entitlement when setting up billing on a trial subscription.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBillingAccount() {
+ billingAccount_ = getDefaultInstance().getBillingAccount();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The billing account resource name that is used to pay for this
+ * entitlement when setting up billing on a trial subscription.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for billingAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ billingAccount_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java
index 5e274b0ea09b..151ba2223ae4 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java
@@ -231,4 +231,37 @@ public interface ChangeOfferRequestOrBuilder
* @return The bytes for requestId.
*/
com.google.protobuf.ByteString getRequestIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The billing account resource name that is used to pay for this
+ * entitlement when setting up billing on a trial subscription.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ java.lang.String getBillingAccount();
+ /**
+ *
+ *
+ *
+ * Optional. The billing account resource name that is used to pay for this
+ * entitlement when setting up billing on a trial subscription.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ com.google.protobuf.ByteString getBillingAccountBytes();
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java
index 12970c995d0e..a56a636a8b35 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java
@@ -180,9 +180,9 @@ public com.google.protobuf.ByteString getOrgDisplayNameBytes() {
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -200,9 +200,9 @@ public boolean hasOrgPostalAddress() {
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -222,9 +222,9 @@ public com.google.type.PostalAddress getOrgPostalAddress() {
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -1670,9 +1670,9 @@ public Builder setOrgDisplayNameBytes(com.google.protobuf.ByteString value) {
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -1689,9 +1689,9 @@ public boolean hasOrgPostalAddress() {
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -1714,9 +1714,9 @@ public com.google.type.PostalAddress getOrgPostalAddress() {
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -1741,9 +1741,9 @@ public Builder setOrgPostalAddress(com.google.type.PostalAddress value) {
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -1765,9 +1765,9 @@ public Builder setOrgPostalAddress(com.google.type.PostalAddress.Builder builder
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -1795,9 +1795,9 @@ public Builder mergeOrgPostalAddress(com.google.type.PostalAddress value) {
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -1819,9 +1819,9 @@ public Builder clearOrgPostalAddress() {
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -1838,9 +1838,9 @@ public com.google.type.PostalAddress.Builder getOrgPostalAddressBuilder() {
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -1861,9 +1861,9 @@ public com.google.type.PostalAddressOrBuilder getOrgPostalAddressOrBuilder() {
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java
index 905e77ed5c69..6a6421b59650 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java
@@ -80,9 +80,9 @@ public interface CustomerOrBuilder
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -97,9 +97,9 @@ public interface CustomerOrBuilder
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
@@ -114,9 +114,9 @@ public interface CustomerOrBuilder
*
*
* Required. The organization address for the customer. To enforce US laws and
- * embargoes, we require a region and zip code. You must provide valid
- * addresses for every customer. To set the customer's language, use the
- * Customer-level language code.
+ * embargoes, we require a region, postal code, and address lines. You must
+ * provide valid addresses for every customer. To set the customer's
+ * language, use the Customer-level language code.
*
*
*
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java
index 4a82fc7c781d..6d2e39a03a78 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java
@@ -131,16 +131,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\030\t \001(\0132,.google.cloud.channel.v1.Transfe"
+ "rEligibility\022)\n\003sku\030\013 \001(\0132\034.google.cloud"
+ ".channel.v1.Sku\0226\n\nlegacy_sku\030\014 \001(\0132\034.go"
- + "ogle.cloud.channel.v1.SkuB\004\342A\001\001\"\371\001\n\023Tran"
+ + "ogle.cloud.channel.v1.SkuB\004\342A\001\001\"\246\002\n\023Tran"
+ "sferEligibility\022\023\n\013is_eligible\030\001 \001(\010\022\023\n\013"
+ "description\030\002 \001(\t\022Q\n\024ineligibility_reaso"
+ "n\030\003 \001(\01623.google.cloud.channel.v1.Transf"
- + "erEligibility.Reason\"e\n\006Reason\022\026\n\022REASON"
- + "_UNSPECIFIED\020\000\022\032\n\026PENDING_TOS_ACCEPTANCE"
- + "\020\001\022\024\n\020SKU_NOT_ELIGIBLE\020\002\022\021\n\rSKU_SUSPENDE"
- + "D\020\003Bi\n\033com.google.cloud.channel.v1B\021Enti"
- + "tlementsProtoP\001Z5cloud.google.com/go/cha"
- + "nnel/apiv1/channelpb;channelpbb\006proto3"
+ + "erEligibility.Reason\"\221\001\n\006Reason\022\026\n\022REASO"
+ + "N_UNSPECIFIED\020\000\022\032\n\026PENDING_TOS_ACCEPTANC"
+ + "E\020\001\022\024\n\020SKU_NOT_ELIGIBLE\020\002\022\021\n\rSKU_SUSPEND"
+ + "ED\020\003\022*\n&CHANNEL_PARTNER_NOT_AUTHORIZED_F"
+ + "OR_SKU\020\004Bi\n\033com.google.cloud.channel.v1B"
+ + "\021EntitlementsProtoP\001Z5cloud.google.com/g"
+ + "o/channel/apiv1/channelpb;channelpbb\006pro"
+ + "to3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListPurchasableOffersRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListPurchasableOffersRequest.java
index a92b4e0caf36..50946243eac5 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListPurchasableOffersRequest.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListPurchasableOffersRequest.java
@@ -95,6 +95,33 @@ public interface CreateEntitlementPurchaseOrBuilder
* @return The bytes for sku.
*/
com.google.protobuf.ByteString getSkuBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Billing account that the result should be restricted to.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ java.lang.String getBillingAccount();
+ /**
+ *
+ *
+ *
+ * Optional. Billing account that the result should be restricted to.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ com.google.protobuf.ByteString getBillingAccountBytes();
}
/**
*
@@ -118,6 +145,7 @@ private CreateEntitlementPurchase(com.google.protobuf.GeneratedMessageV3.Builder
private CreateEntitlementPurchase() {
sku_ = "";
+ billingAccount_ = "";
}
@java.lang.Override
@@ -196,6 +224,59 @@ public com.google.protobuf.ByteString getSkuBytes() {
}
}
+ public static final int BILLING_ACCOUNT_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object billingAccount_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. Billing account that the result should be restricted to.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ @java.lang.Override
+ public java.lang.String getBillingAccount() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ billingAccount_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Billing account that the result should be restricted to.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBillingAccountBytes() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ billingAccount_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -213,6 +294,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sku_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sku_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, billingAccount_);
+ }
getUnknownFields().writeTo(output);
}
@@ -225,6 +309,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sku_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sku_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, billingAccount_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -244,6 +331,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.channel.v1.ListPurchasableOffersRequest.CreateEntitlementPurchase) obj;
if (!getSku().equals(other.getSku())) return false;
+ if (!getBillingAccount().equals(other.getBillingAccount())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -257,6 +345,8 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SKU_FIELD_NUMBER;
hash = (53 * hash) + getSku().hashCode();
+ hash = (37 * hash) + BILLING_ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getBillingAccount().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -412,6 +502,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
sku_ = "";
+ billingAccount_ = "";
return this;
}
@@ -459,6 +550,9 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sku_ = sku_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.billingAccount_ = billingAccount_;
+ }
}
@java.lang.Override
@@ -521,6 +615,11 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
onChanged();
}
+ if (!other.getBillingAccount().isEmpty()) {
+ billingAccount_ = other.billingAccount_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -553,6 +652,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 18:
+ {
+ billingAccount_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -683,6 +788,117 @@ public Builder setSkuBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object billingAccount_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. Billing account that the result should be restricted to.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ public java.lang.String getBillingAccount() {
+ java.lang.Object ref = billingAccount_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ billingAccount_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Billing account that the result should be restricted to.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ public com.google.protobuf.ByteString getBillingAccountBytes() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ billingAccount_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Billing account that the result should be restricted to.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The billingAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBillingAccount(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ billingAccount_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Billing account that the result should be restricted to.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBillingAccount() {
+ billingAccount_ = getDefaultInstance().getBillingAccount();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Billing account that the result should be restricted to.
+ * Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ *
+ * string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for billingAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ billingAccount_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -814,6 +1030,41 @@ public interface ChangeOfferPurchaseOrBuilder
* @return The bytes for newSku.
*/
com.google.protobuf.ByteString getNewSkuBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the new target Billing Account. Provide this
+ * Billing Account when setting up billing for a trial subscription. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ java.lang.String getBillingAccount();
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the new target Billing Account. Provide this
+ * Billing Account when setting up billing for a trial subscription. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ com.google.protobuf.ByteString getBillingAccountBytes();
}
/**
*
@@ -837,6 +1088,7 @@ private ChangeOfferPurchase(com.google.protobuf.GeneratedMessageV3.Builder> bu
private ChangeOfferPurchase() {
entitlement_ = "";
newSku_ = "";
+ billingAccount_ = "";
}
@java.lang.Override
@@ -971,6 +1223,67 @@ public com.google.protobuf.ByteString getNewSkuBytes() {
}
}
+ public static final int BILLING_ACCOUNT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object billingAccount_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the new target Billing Account. Provide this
+ * Billing Account when setting up billing for a trial subscription. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ @java.lang.Override
+ public java.lang.String getBillingAccount() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ billingAccount_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the new target Billing Account. Provide this
+ * Billing Account when setting up billing for a trial subscription. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBillingAccountBytes() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ billingAccount_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -991,6 +1304,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSku_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newSku_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, billingAccount_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1006,6 +1322,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSku_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, newSku_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, billingAccount_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1026,6 +1345,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getEntitlement().equals(other.getEntitlement())) return false;
if (!getNewSku().equals(other.getNewSku())) return false;
+ if (!getBillingAccount().equals(other.getBillingAccount())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1041,6 +1361,8 @@ public int hashCode() {
hash = (53 * hash) + getEntitlement().hashCode();
hash = (37 * hash) + NEW_SKU_FIELD_NUMBER;
hash = (53 * hash) + getNewSku().hashCode();
+ hash = (37 * hash) + BILLING_ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getBillingAccount().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1194,6 +1516,7 @@ public Builder clear() {
bitField0_ = 0;
entitlement_ = "";
newSku_ = "";
+ billingAccount_ = "";
return this;
}
@@ -1241,6 +1564,9 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000002) != 0)) {
result.newSku_ = newSku_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.billingAccount_ = billingAccount_;
+ }
}
@java.lang.Override
@@ -1306,6 +1632,11 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
onChanged();
}
+ if (!other.getBillingAccount().isEmpty()) {
+ billingAccount_ = other.billingAccount_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1344,6 +1675,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ billingAccount_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1595,6 +1932,137 @@ public Builder setNewSkuBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object billingAccount_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the new target Billing Account. Provide this
+ * Billing Account when setting up billing for a trial subscription. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ public java.lang.String getBillingAccount() {
+ java.lang.Object ref = billingAccount_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ billingAccount_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the new target Billing Account. Provide this
+ * Billing Account when setting up billing for a trial subscription. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ public com.google.protobuf.ByteString getBillingAccountBytes() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ billingAccount_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the new target Billing Account. Provide this
+ * Billing Account when setting up billing for a trial subscription. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The billingAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBillingAccount(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ billingAccount_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the new target Billing Account. Provide this
+ * Billing Account when setting up billing for a trial subscription. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBillingAccount() {
+ billingAccount_ = getDefaultInstance().getBillingAccount();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Resource name of the new target Billing Account. Provide this
+ * Billing Account when setting up billing for a trial subscription. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be
+ * left empty for single currency accounts.
+ *
+ *
+ * string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for billingAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ billingAccount_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListTransferableOffersRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListTransferableOffersRequest.java
index f13cfe810db0..c80fc409373d 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListTransferableOffersRequest.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListTransferableOffersRequest.java
@@ -43,6 +43,7 @@ private ListTransferableOffersRequest() {
pageToken_ = "";
sku_ = "";
languageCode_ = "";
+ billingAccount_ = "";
}
@java.lang.Override
@@ -496,6 +497,65 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
}
}
+ public static final int BILLING_ACCOUNT_FIELD_NUMBER = 8;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object billingAccount_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The Billing Account to look up Offers for. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be left
+ * empty for single currency accounts.
+ *
+ *
+ * string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ @java.lang.Override
+ public java.lang.String getBillingAccount() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ billingAccount_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Billing Account to look up Offers for. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be left
+ * empty for single currency accounts.
+ *
+ *
+ * string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBillingAccountBytes() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ billingAccount_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -531,6 +591,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, languageCode_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, billingAccount_);
+ }
getUnknownFields().writeTo(output);
}
@@ -563,6 +626,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, languageCode_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, billingAccount_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -584,6 +650,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getPageToken().equals(other.getPageToken())) return false;
if (!getSku().equals(other.getSku())) return false;
if (!getLanguageCode().equals(other.getLanguageCode())) return false;
+ if (!getBillingAccount().equals(other.getBillingAccount())) return false;
if (!getTransferredCustomerIdentityCase().equals(other.getTransferredCustomerIdentityCase()))
return false;
switch (transferredCustomerIdentityCase_) {
@@ -617,6 +684,8 @@ public int hashCode() {
hash = (53 * hash) + getSku().hashCode();
hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER;
hash = (53 * hash) + getLanguageCode().hashCode();
+ hash = (37 * hash) + BILLING_ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getBillingAccount().hashCode();
switch (transferredCustomerIdentityCase_) {
case 4:
hash = (37 * hash) + CLOUD_IDENTITY_ID_FIELD_NUMBER;
@@ -775,6 +844,7 @@ public Builder clear() {
pageToken_ = "";
sku_ = "";
languageCode_ = "";
+ billingAccount_ = "";
transferredCustomerIdentityCase_ = 0;
transferredCustomerIdentity_ = null;
return this;
@@ -829,6 +899,9 @@ private void buildPartial0(com.google.cloud.channel.v1.ListTransferableOffersReq
if (((from_bitField0_ & 0x00000040) != 0)) {
result.languageCode_ = languageCode_;
}
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.billingAccount_ = billingAccount_;
+ }
}
private void buildPartialOneofs(
@@ -906,6 +979,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.ListTransferableOffersReque
bitField0_ |= 0x00000040;
onChanged();
}
+ if (!other.getBillingAccount().isEmpty()) {
+ billingAccount_ = other.billingAccount_;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
switch (other.getTransferredCustomerIdentityCase()) {
case CLOUD_IDENTITY_ID:
{
@@ -996,6 +1074,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 58
+ case 66:
+ {
+ billingAccount_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1821,6 +1905,132 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object billingAccount_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The Billing Account to look up Offers for. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be left
+ * empty for single currency accounts.
+ *
+ *
+ * string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ public java.lang.String getBillingAccount() {
+ java.lang.Object ref = billingAccount_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ billingAccount_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Billing Account to look up Offers for. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be left
+ * empty for single currency accounts.
+ *
+ *
+ * string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ public com.google.protobuf.ByteString getBillingAccountBytes() {
+ java.lang.Object ref = billingAccount_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ billingAccount_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Billing Account to look up Offers for. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be left
+ * empty for single currency accounts.
+ *
+ *
+ * string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The billingAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBillingAccount(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ billingAccount_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Billing Account to look up Offers for. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be left
+ * empty for single currency accounts.
+ *
+ *
+ * string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBillingAccount() {
+ billingAccount_ = getDefaultInstance().getBillingAccount();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Billing Account to look up Offers for. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be left
+ * empty for single currency accounts.
+ *
+ *
+ * string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for billingAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ billingAccount_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListTransferableOffersRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListTransferableOffersRequestOrBuilder.java
index 60323d35d8f3..437975d00824 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListTransferableOffersRequestOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListTransferableOffersRequestOrBuilder.java
@@ -229,6 +229,39 @@ public interface ListTransferableOffersRequestOrBuilder
*/
com.google.protobuf.ByteString getLanguageCodeBytes();
+ /**
+ *
+ *
+ *
+ * Optional. The Billing Account to look up Offers for. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be left
+ * empty for single currency accounts.
+ *
+ *
+ * string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The billingAccount.
+ */
+ java.lang.String getBillingAccount();
+ /**
+ *
+ *
+ *
+ * Optional. The Billing Account to look up Offers for. Format:
+ * accounts/{account_id}/billingAccounts/{billing_account_id}.
+ *
+ * This field is only relevant for multi-currency accounts. It should be left
+ * empty for single currency accounts.
+ *
+ *
+ * string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for billingAccount.
+ */
+ com.google.protobuf.ByteString getBillingAccountBytes();
+
com.google.cloud.channel.v1.ListTransferableOffersRequest.TransferredCustomerIdentityCase
getTransferredCustomerIdentityCase();
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java
index 853332acd4af..acd71a9eabfe 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java
@@ -96,7 +96,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "finitions\030\t \003(\0132,.google.cloud.channel.v"
+ "1.ParameterDefinition\022\021\n\tdeal_code\030\014 \001(\t"
+ ":I\352AF\n!cloudchannel.googleapis.com/Offer"
- + "\022!accounts/{account}/offers/{offer}\"\373\002\n\023"
+ + "\022!accounts/{account}/offers/{offer}\"\210\003\n\023"
+ "ParameterDefinition\022\014\n\004name\030\001 \001(\t\022R\n\016par"
+ "ameter_type\030\002 \001(\0162:.google.cloud.channel"
+ ".v1.ParameterDefinition.ParameterType\0221\n"
@@ -104,57 +104,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "v1.Value\0221\n\tmax_value\030\004 \001(\0132\036.google.clo"
+ "ud.channel.v1.Value\0226\n\016allowed_values\030\005 "
+ "\003(\0132\036.google.cloud.channel.v1.Value\022\020\n\010o"
- + "ptional\030\006 \001(\010\"R\n\rParameterType\022\036\n\032PARAME"
+ + "ptional\030\006 \001(\010\"_\n\rParameterType\022\036\n\032PARAME"
+ "TER_TYPE_UNSPECIFIED\020\000\022\t\n\005INT64\020\001\022\n\n\006STR"
- + "ING\020\002\022\n\n\006DOUBLE\020\003\"Y\n\013Constraints\022J\n\024cust"
- + "omer_constraints\030\001 \001(\0132,.google.cloud.ch"
- + "annel.v1.CustomerConstraints\"\327\001\n\023Custome"
- + "rConstraints\022\027\n\017allowed_regions\030\001 \003(\t\022W\n"
- + "\026allowed_customer_types\030\002 \003(\01627.google.c"
- + "loud.channel.v1.CloudIdentityInfo.Custom"
- + "erType\022N\n\027promotional_order_types\030\003 \003(\0162"
- + "-.google.cloud.channel.v1.PromotionalOrd"
- + "erType\"\206\002\n\004Plan\022:\n\014payment_plan\030\001 \001(\0162$."
- + "google.cloud.channel.v1.PaymentPlan\022:\n\014p"
- + "ayment_type\030\002 \001(\0162$.google.cloud.channel"
- + ".v1.PaymentType\0226\n\rpayment_cycle\030\003 \001(\0132\037"
- + ".google.cloud.channel.v1.Period\0225\n\014trial"
- + "_period\030\004 \001(\0132\037.google.cloud.channel.v1."
- + "Period\022\027\n\017billing_account\030\005 \001(\t\"\271\001\n\017Pric"
- + "eByResource\022<\n\rresource_type\030\001 \001(\0162%.goo"
- + "gle.cloud.channel.v1.ResourceType\022-\n\005pri"
- + "ce\030\002 \001(\0132\036.google.cloud.channel.v1.Price"
- + "\0229\n\014price_phases\030\003 \003(\0132#.google.cloud.ch"
- + "annel.v1.PricePhase\"\212\001\n\005Price\022&\n\nbase_pr"
- + "ice\030\001 \001(\0132\022.google.type.Money\022\020\n\010discoun"
- + "t\030\002 \001(\001\022+\n\017effective_price\030\003 \001(\0132\022.googl"
- + "e.type.Money\022\032\n\022external_price_uri\030\004 \001(\t"
- + "\"\331\001\n\nPricePhase\0228\n\013period_type\030\001 \001(\0162#.g"
- + "oogle.cloud.channel.v1.PeriodType\022\024\n\014fir"
- + "st_period\030\002 \001(\005\022\023\n\013last_period\030\003 \001(\005\022-\n\005"
- + "price\030\004 \001(\0132\036.google.cloud.channel.v1.Pr"
- + "ice\0227\n\013price_tiers\030\005 \003(\0132\".google.cloud."
- + "channel.v1.PriceTier\"i\n\tPriceTier\022\026\n\016fir"
- + "st_resource\030\001 \001(\005\022\025\n\rlast_resource\030\002 \001(\005"
- + "\022-\n\005price\030\003 \001(\0132\036.google.cloud.channel.v"
- + "1.Price\"T\n\006Period\022\020\n\010duration\030\001 \001(\005\0228\n\013p"
- + "eriod_type\030\002 \001(\0162#.google.cloud.channel."
- + "v1.PeriodType*m\n\024PromotionalOrderType\022 \n"
- + "\034PROMOTIONAL_TYPE_UNSPECIFIED\020\000\022\017\n\013NEW_U"
- + "PGRADE\020\001\022\014\n\010TRANSFER\020\002\022\024\n\020PROMOTION_SWIT"
- + "CH\020\003*k\n\013PaymentPlan\022\034\n\030PAYMENT_PLAN_UNSP"
- + "ECIFIED\020\000\022\016\n\nCOMMITMENT\020\001\022\014\n\010FLEXIBLE\020\002\022"
- + "\010\n\004FREE\020\003\022\t\n\005TRIAL\020\004\022\013\n\007OFFLINE\020\005*D\n\013Pay"
- + "mentType\022\034\n\030PAYMENT_TYPE_UNSPECIFIED\020\000\022\n"
- + "\n\006PREPAY\020\001\022\013\n\007POSTPAY\020\002*\212\001\n\014ResourceType"
- + "\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\010\n\004SEAT\020"
- + "\001\022\007\n\003MAU\020\002\022\006\n\002GB\020\003\022\021\n\rLICENSED_USER\020\004\022\013\n"
- + "\007MINUTES\020\005\022\016\n\nIAAS_USAGE\020\006\022\020\n\014SUBSCRIPTI"
- + "ON\020\007*G\n\nPeriodType\022\033\n\027PERIOD_TYPE_UNSPEC"
- + "IFIED\020\000\022\007\n\003DAY\020\001\022\t\n\005MONTH\020\002\022\010\n\004YEAR\020\003Bc\n"
- + "\033com.google.cloud.channel.v1B\013OffersProt"
- + "oP\001Z5cloud.google.com/go/channel/apiv1/c"
- + "hannelpb;channelpbb\006proto3"
+ + "ING\020\002\022\n\n\006DOUBLE\020\003\022\013\n\007BOOLEAN\020\004\"Y\n\013Constr"
+ + "aints\022J\n\024customer_constraints\030\001 \001(\0132,.go"
+ + "ogle.cloud.channel.v1.CustomerConstraint"
+ + "s\"\327\001\n\023CustomerConstraints\022\027\n\017allowed_reg"
+ + "ions\030\001 \003(\t\022W\n\026allowed_customer_types\030\002 \003"
+ + "(\01627.google.cloud.channel.v1.CloudIdenti"
+ + "tyInfo.CustomerType\022N\n\027promotional_order"
+ + "_types\030\003 \003(\0162-.google.cloud.channel.v1.P"
+ + "romotionalOrderType\"\206\002\n\004Plan\022:\n\014payment_"
+ + "plan\030\001 \001(\0162$.google.cloud.channel.v1.Pay"
+ + "mentPlan\022:\n\014payment_type\030\002 \001(\0162$.google."
+ + "cloud.channel.v1.PaymentType\0226\n\rpayment_"
+ + "cycle\030\003 \001(\0132\037.google.cloud.channel.v1.Pe"
+ + "riod\0225\n\014trial_period\030\004 \001(\0132\037.google.clou"
+ + "d.channel.v1.Period\022\027\n\017billing_account\030\005"
+ + " \001(\t\"\271\001\n\017PriceByResource\022<\n\rresource_typ"
+ + "e\030\001 \001(\0162%.google.cloud.channel.v1.Resour"
+ + "ceType\022-\n\005price\030\002 \001(\0132\036.google.cloud.cha"
+ + "nnel.v1.Price\0229\n\014price_phases\030\003 \003(\0132#.go"
+ + "ogle.cloud.channel.v1.PricePhase\"\212\001\n\005Pri"
+ + "ce\022&\n\nbase_price\030\001 \001(\0132\022.google.type.Mon"
+ + "ey\022\020\n\010discount\030\002 \001(\001\022+\n\017effective_price\030"
+ + "\003 \001(\0132\022.google.type.Money\022\032\n\022external_pr"
+ + "ice_uri\030\004 \001(\t\"\331\001\n\nPricePhase\0228\n\013period_t"
+ + "ype\030\001 \001(\0162#.google.cloud.channel.v1.Peri"
+ + "odType\022\024\n\014first_period\030\002 \001(\005\022\023\n\013last_per"
+ + "iod\030\003 \001(\005\022-\n\005price\030\004 \001(\0132\036.google.cloud."
+ + "channel.v1.Price\0227\n\013price_tiers\030\005 \003(\0132\"."
+ + "google.cloud.channel.v1.PriceTier\"i\n\tPri"
+ + "ceTier\022\026\n\016first_resource\030\001 \001(\005\022\025\n\rlast_r"
+ + "esource\030\002 \001(\005\022-\n\005price\030\003 \001(\0132\036.google.cl"
+ + "oud.channel.v1.Price\"T\n\006Period\022\020\n\010durati"
+ + "on\030\001 \001(\005\0228\n\013period_type\030\002 \001(\0162#.google.c"
+ + "loud.channel.v1.PeriodType*m\n\024Promotiona"
+ + "lOrderType\022 \n\034PROMOTIONAL_TYPE_UNSPECIFI"
+ + "ED\020\000\022\017\n\013NEW_UPGRADE\020\001\022\014\n\010TRANSFER\020\002\022\024\n\020P"
+ + "ROMOTION_SWITCH\020\003*k\n\013PaymentPlan\022\034\n\030PAYM"
+ + "ENT_PLAN_UNSPECIFIED\020\000\022\016\n\nCOMMITMENT\020\001\022\014"
+ + "\n\010FLEXIBLE\020\002\022\010\n\004FREE\020\003\022\t\n\005TRIAL\020\004\022\013\n\007OFF"
+ + "LINE\020\005*D\n\013PaymentType\022\034\n\030PAYMENT_TYPE_UN"
+ + "SPECIFIED\020\000\022\n\n\006PREPAY\020\001\022\013\n\007POSTPAY\020\002*\212\001\n"
+ + "\014ResourceType\022\035\n\031RESOURCE_TYPE_UNSPECIFI"
+ + "ED\020\000\022\010\n\004SEAT\020\001\022\007\n\003MAU\020\002\022\006\n\002GB\020\003\022\021\n\rLICEN"
+ + "SED_USER\020\004\022\013\n\007MINUTES\020\005\022\016\n\nIAAS_USAGE\020\006\022"
+ + "\020\n\014SUBSCRIPTION\020\007*G\n\nPeriodType\022\033\n\027PERIO"
+ + "D_TYPE_UNSPECIFIED\020\000\022\007\n\003DAY\020\001\022\t\n\005MONTH\020\002"
+ + "\022\010\n\004YEAR\020\003Bc\n\033com.google.cloud.channel.v"
+ + "1B\013OffersProtoP\001Z5cloud.google.com/go/ch"
+ + "annel/apiv1/channelpb;channelpbb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ParameterDefinition.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ParameterDefinition.java
index e841837e037c..8a519b684f6b 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ParameterDefinition.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ParameterDefinition.java
@@ -115,6 +115,16 @@ public enum ParameterType implements com.google.protobuf.ProtocolMessageEnum {
* DOUBLE = 3;
*/
DOUBLE(3),
+ /**
+ *
+ *
+ *
+ * Boolean type.
+ *
+ *
+ * BOOLEAN = 4;
+ */
+ BOOLEAN(4),
UNRECOGNIZED(-1),
;
@@ -158,6 +168,16 @@ public enum ParameterType implements com.google.protobuf.ProtocolMessageEnum {
* DOUBLE = 3;
*/
public static final int DOUBLE_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Boolean type.
+ *
+ *
+ * BOOLEAN = 4;
+ */
+ public static final int BOOLEAN_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -191,6 +211,8 @@ public static ParameterType forNumber(int value) {
return STRING;
case 3:
return DOUBLE;
+ case 4:
+ return BOOLEAN;
default:
return null;
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProvisionedService.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProvisionedService.java
index 46e634d9caba..0655ed714b3c 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProvisionedService.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProvisionedService.java
@@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Output only. Provisioning ID of the entitlement. For Google Workspace, this
* is the underlying Subscription ID. For Google Cloud, this is the Billing
- * Account ID of the billing subaccount."
+ * Account ID of the billing subaccount.
*
*
* string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -99,7 +99,7 @@ public java.lang.String getProvisioningId() {
*
* Output only. Provisioning ID of the entitlement. For Google Workspace, this
* is the underlying Subscription ID. For Google Cloud, this is the Billing
- * Account ID of the billing subaccount."
+ * Account ID of the billing subaccount.
*
*
* string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -621,7 +621,7 @@ public Builder mergeFrom(
*
* Output only. Provisioning ID of the entitlement. For Google Workspace, this
* is the underlying Subscription ID. For Google Cloud, this is the Billing
- * Account ID of the billing subaccount."
+ * Account ID of the billing subaccount.
*
*
* string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -645,7 +645,7 @@ public java.lang.String getProvisioningId() {
*
* Output only. Provisioning ID of the entitlement. For Google Workspace, this
* is the underlying Subscription ID. For Google Cloud, this is the Billing
- * Account ID of the billing subaccount."
+ * Account ID of the billing subaccount.
*
*
* string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -669,7 +669,7 @@ public com.google.protobuf.ByteString getProvisioningIdBytes() {
*
* Output only. Provisioning ID of the entitlement. For Google Workspace, this
* is the underlying Subscription ID. For Google Cloud, this is the Billing
- * Account ID of the billing subaccount."
+ * Account ID of the billing subaccount.
*
*
* string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -692,7 +692,7 @@ public Builder setProvisioningId(java.lang.String value) {
*
* Output only. Provisioning ID of the entitlement. For Google Workspace, this
* is the underlying Subscription ID. For Google Cloud, this is the Billing
- * Account ID of the billing subaccount."
+ * Account ID of the billing subaccount.
*
*
* string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -711,7 +711,7 @@ public Builder clearProvisioningId() {
*
* Output only. Provisioning ID of the entitlement. For Google Workspace, this
* is the underlying Subscription ID. For Google Cloud, this is the Billing
- * Account ID of the billing subaccount."
+ * Account ID of the billing subaccount.
*
*
* string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProvisionedServiceOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProvisionedServiceOrBuilder.java
index 2ab16dbe6532..50fe6b0fb5ec 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProvisionedServiceOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProvisionedServiceOrBuilder.java
@@ -29,7 +29,7 @@ public interface ProvisionedServiceOrBuilder
*
* Output only. Provisioning ID of the entitlement. For Google Workspace, this
* is the underlying Subscription ID. For Google Cloud, this is the Billing
- * Account ID of the billing subaccount."
+ * Account ID of the billing subaccount.
*
*
* string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -43,7 +43,7 @@ public interface ProvisionedServiceOrBuilder
*
* Output only. Provisioning ID of the entitlement. For Google Workspace, this
* is the underlying Subscription ID. For Google Cloud, this is the Billing
- * Account ID of the billing subaccount."
+ * Account ID of the billing subaccount.
*
*
* string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsRequest.java
new file mode 100644
index 000000000000..5dde8b023c09
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsRequest.java
@@ -0,0 +1,945 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/channel/v1/service.proto
+
+package com.google.cloud.channel.v1;
+
+/**
+ *
+ *
+ *
+ * Request message for QueryEligibleBillingAccounts.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.QueryEligibleBillingAccountsRequest}
+ */
+public final class QueryEligibleBillingAccountsRequest
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.QueryEligibleBillingAccountsRequest)
+ QueryEligibleBillingAccountsRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use QueryEligibleBillingAccountsRequest.newBuilder() to construct.
+ private QueryEligibleBillingAccountsRequest(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private QueryEligibleBillingAccountsRequest() {
+ customer_ = "";
+ skus_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new QueryEligibleBillingAccountsRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest.class,
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest.Builder.class);
+ }
+
+ public static final int CUSTOMER_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object customer_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the customer to list eligible billing
+ * accounts for. Format: accounts/{account_id}/customers/{customer_id}.
+ *
+ *
+ *
+ * string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The customer.
+ */
+ @java.lang.Override
+ public java.lang.String getCustomer() {
+ java.lang.Object ref = customer_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ customer_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the customer to list eligible billing
+ * accounts for. Format: accounts/{account_id}/customers/{customer_id}.
+ *
+ *
+ *
+ * string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for customer.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCustomerBytes() {
+ java.lang.Object ref = customer_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ customer_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SKUS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList skus_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the skus.
+ */
+ public com.google.protobuf.ProtocolStringList getSkusList() {
+ return skus_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of skus.
+ */
+ public int getSkusCount() {
+ return skus_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The skus at the given index.
+ */
+ public java.lang.String getSkus(int index) {
+ return skus_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the skus at the given index.
+ */
+ public com.google.protobuf.ByteString getSkusBytes(int index) {
+ return skus_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customer_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customer_);
+ }
+ for (int i = 0; i < skus_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, skus_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customer_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customer_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < skus_.size(); i++) {
+ dataSize += computeStringSizeNoTag(skus_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getSkusList().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.channel.v1.QueryEligibleBillingAccountsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest other =
+ (com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest) obj;
+
+ if (!getCustomer().equals(other.getCustomer())) return false;
+ if (!getSkusList().equals(other.getSkusList())) 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) + CUSTOMER_FIELD_NUMBER;
+ hash = (53 * hash) + getCustomer().hashCode();
+ if (getSkusCount() > 0) {
+ hash = (37 * hash) + SKUS_FIELD_NUMBER;
+ hash = (53 * hash) + getSkusList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest 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.channel.v1.QueryEligibleBillingAccountsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest 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.channel.v1.QueryEligibleBillingAccountsRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest 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.channel.v1.QueryEligibleBillingAccountsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest 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.channel.v1.QueryEligibleBillingAccountsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest 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.channel.v1.QueryEligibleBillingAccountsRequest 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;
+ }
+ /**
+ *
+ *
+ *
+ * Request message for QueryEligibleBillingAccounts.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.QueryEligibleBillingAccountsRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.QueryEligibleBillingAccountsRequest)
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest.class,
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest.Builder.class);
+ }
+
+ // Construct using com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ customer_ = "";
+ skus_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest
+ getDefaultInstanceForType() {
+ return com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest build() {
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest buildPartial() {
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest result =
+ new com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.customer_ = customer_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ skus_.makeImmutable();
+ result.skus_ = skus_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest) {
+ return mergeFrom((com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest other) {
+ if (other
+ == com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest.getDefaultInstance())
+ return this;
+ if (!other.getCustomer().isEmpty()) {
+ customer_ = other.customer_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.skus_.isEmpty()) {
+ if (skus_.isEmpty()) {
+ skus_ = other.skus_;
+ bitField0_ |= 0x00000002;
+ } else {
+ ensureSkusIsMutable();
+ skus_.addAll(other.skus_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ customer_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureSkusIsMutable();
+ skus_.add(s);
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object customer_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the customer to list eligible billing
+ * accounts for. Format: accounts/{account_id}/customers/{customer_id}.
+ *
+ *
+ *
+ * string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The customer.
+ */
+ public java.lang.String getCustomer() {
+ java.lang.Object ref = customer_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ customer_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the customer to list eligible billing
+ * accounts for. Format: accounts/{account_id}/customers/{customer_id}.
+ *
+ *
+ *
+ * string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for customer.
+ */
+ public com.google.protobuf.ByteString getCustomerBytes() {
+ java.lang.Object ref = customer_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ customer_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the customer to list eligible billing
+ * accounts for. Format: accounts/{account_id}/customers/{customer_id}.
+ *
+ *
+ *
+ * string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The customer to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomer(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ customer_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the customer to list eligible billing
+ * accounts for. Format: accounts/{account_id}/customers/{customer_id}.
+ *
+ *
+ *
+ * string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCustomer() {
+ customer_ = getDefaultInstance().getCustomer();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the customer to list eligible billing
+ * accounts for. Format: accounts/{account_id}/customers/{customer_id}.
+ *
+ *
+ *
+ * string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for customer to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomerBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ customer_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList skus_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureSkusIsMutable() {
+ if (!skus_.isModifiable()) {
+ skus_ = new com.google.protobuf.LazyStringArrayList(skus_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the skus.
+ */
+ public com.google.protobuf.ProtocolStringList getSkusList() {
+ skus_.makeImmutable();
+ return skus_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of skus.
+ */
+ public int getSkusCount() {
+ return skus_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The skus at the given index.
+ */
+ public java.lang.String getSkus(int index) {
+ return skus_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the skus at the given index.
+ */
+ public com.google.protobuf.ByteString getSkusBytes(int index) {
+ return skus_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index to set the value at.
+ * @param value The skus to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSkus(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkusIsMutable();
+ skus_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The skus to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSkus(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkusIsMutable();
+ skus_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param values The skus to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllSkus(java.lang.Iterable values) {
+ ensureSkusIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skus_);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSkus() {
+ skus_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes of the skus to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSkusBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureSkusIsMutable();
+ skus_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.channel.v1.QueryEligibleBillingAccountsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.QueryEligibleBillingAccountsRequest)
+ private static final com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest();
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public QueryEligibleBillingAccountsRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsRequestOrBuilder.java
new file mode 100644
index 000000000000..0b6a3cc6308d
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsRequestOrBuilder.java
@@ -0,0 +1,111 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/channel/v1/service.proto
+
+package com.google.cloud.channel.v1;
+
+public interface QueryEligibleBillingAccountsRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.QueryEligibleBillingAccountsRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the customer to list eligible billing
+ * accounts for. Format: accounts/{account_id}/customers/{customer_id}.
+ *
+ *
+ *
+ * string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The customer.
+ */
+ java.lang.String getCustomer();
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the customer to list eligible billing
+ * accounts for. Format: accounts/{account_id}/customers/{customer_id}.
+ *
+ *
+ *
+ * string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for customer.
+ */
+ com.google.protobuf.ByteString getCustomerBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the skus.
+ */
+ java.util.List getSkusList();
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of skus.
+ */
+ int getSkusCount();
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The skus at the given index.
+ */
+ java.lang.String getSkus(int index);
+ /**
+ *
+ *
+ *
+ * Required. List of SKUs to list eligible billing accounts for. At least one
+ * SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the skus at the given index.
+ */
+ com.google.protobuf.ByteString getSkusBytes(int index);
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsResponse.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsResponse.java
new file mode 100644
index 000000000000..e228a7156e9b
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsResponse.java
@@ -0,0 +1,1027 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/channel/v1/service.proto
+
+package com.google.cloud.channel.v1;
+
+/**
+ *
+ *
+ *
+ * Response message for QueryEligibleBillingAccounts.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.QueryEligibleBillingAccountsResponse}
+ */
+public final class QueryEligibleBillingAccountsResponse
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.QueryEligibleBillingAccountsResponse)
+ QueryEligibleBillingAccountsResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use QueryEligibleBillingAccountsResponse.newBuilder() to construct.
+ private QueryEligibleBillingAccountsResponse(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private QueryEligibleBillingAccountsResponse() {
+ skuPurchaseGroups_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new QueryEligibleBillingAccountsResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse.class,
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse.Builder.class);
+ }
+
+ public static final int SKU_PURCHASE_GROUPS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private java.util.List skuPurchaseGroups_;
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ @java.lang.Override
+ public java.util.List getSkuPurchaseGroupsList() {
+ return skuPurchaseGroups_;
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.channel.v1.SkuPurchaseGroupOrBuilder>
+ getSkuPurchaseGroupsOrBuilderList() {
+ return skuPurchaseGroups_;
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ @java.lang.Override
+ public int getSkuPurchaseGroupsCount() {
+ return skuPurchaseGroups_.size();
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.SkuPurchaseGroup getSkuPurchaseGroups(int index) {
+ return skuPurchaseGroups_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.SkuPurchaseGroupOrBuilder getSkuPurchaseGroupsOrBuilder(
+ int index) {
+ return skuPurchaseGroups_.get(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 {
+ for (int i = 0; i < skuPurchaseGroups_.size(); i++) {
+ output.writeMessage(1, skuPurchaseGroups_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < skuPurchaseGroups_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, skuPurchaseGroups_.get(i));
+ }
+ 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.channel.v1.QueryEligibleBillingAccountsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse other =
+ (com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse) obj;
+
+ if (!getSkuPurchaseGroupsList().equals(other.getSkuPurchaseGroupsList())) 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();
+ if (getSkuPurchaseGroupsCount() > 0) {
+ hash = (37 * hash) + SKU_PURCHASE_GROUPS_FIELD_NUMBER;
+ hash = (53 * hash) + getSkuPurchaseGroupsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse 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.channel.v1.QueryEligibleBillingAccountsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse 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.channel.v1.QueryEligibleBillingAccountsResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse 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.channel.v1.QueryEligibleBillingAccountsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse 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.channel.v1.QueryEligibleBillingAccountsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse 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.channel.v1.QueryEligibleBillingAccountsResponse 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;
+ }
+ /**
+ *
+ *
+ *
+ * Response message for QueryEligibleBillingAccounts.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.QueryEligibleBillingAccountsResponse}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.QueryEligibleBillingAccountsResponse)
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse.class,
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse.Builder.class);
+ }
+
+ // Construct using com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (skuPurchaseGroupsBuilder_ == null) {
+ skuPurchaseGroups_ = java.util.Collections.emptyList();
+ } else {
+ skuPurchaseGroups_ = null;
+ skuPurchaseGroupsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse
+ getDefaultInstanceForType() {
+ return com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse build() {
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse buildPartial() {
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse result =
+ new com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse result) {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ skuPurchaseGroups_ = java.util.Collections.unmodifiableList(skuPurchaseGroups_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.skuPurchaseGroups_ = skuPurchaseGroups_;
+ } else {
+ result.skuPurchaseGroups_ = skuPurchaseGroupsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse) {
+ return mergeFrom((com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse other) {
+ if (other
+ == com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse.getDefaultInstance())
+ return this;
+ if (skuPurchaseGroupsBuilder_ == null) {
+ if (!other.skuPurchaseGroups_.isEmpty()) {
+ if (skuPurchaseGroups_.isEmpty()) {
+ skuPurchaseGroups_ = other.skuPurchaseGroups_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureSkuPurchaseGroupsIsMutable();
+ skuPurchaseGroups_.addAll(other.skuPurchaseGroups_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.skuPurchaseGroups_.isEmpty()) {
+ if (skuPurchaseGroupsBuilder_.isEmpty()) {
+ skuPurchaseGroupsBuilder_.dispose();
+ skuPurchaseGroupsBuilder_ = null;
+ skuPurchaseGroups_ = other.skuPurchaseGroups_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ skuPurchaseGroupsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getSkuPurchaseGroupsFieldBuilder()
+ : null;
+ } else {
+ skuPurchaseGroupsBuilder_.addAllMessages(other.skuPurchaseGroups_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.cloud.channel.v1.SkuPurchaseGroup m =
+ input.readMessage(
+ com.google.cloud.channel.v1.SkuPurchaseGroup.parser(), extensionRegistry);
+ if (skuPurchaseGroupsBuilder_ == null) {
+ ensureSkuPurchaseGroupsIsMutable();
+ skuPurchaseGroups_.add(m);
+ } else {
+ skuPurchaseGroupsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.util.List skuPurchaseGroups_ =
+ java.util.Collections.emptyList();
+
+ private void ensureSkuPurchaseGroupsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ skuPurchaseGroups_ =
+ new java.util.ArrayList(
+ skuPurchaseGroups_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.channel.v1.SkuPurchaseGroup,
+ com.google.cloud.channel.v1.SkuPurchaseGroup.Builder,
+ com.google.cloud.channel.v1.SkuPurchaseGroupOrBuilder>
+ skuPurchaseGroupsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public java.util.List getSkuPurchaseGroupsList() {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(skuPurchaseGroups_);
+ } else {
+ return skuPurchaseGroupsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public int getSkuPurchaseGroupsCount() {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ return skuPurchaseGroups_.size();
+ } else {
+ return skuPurchaseGroupsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public com.google.cloud.channel.v1.SkuPurchaseGroup getSkuPurchaseGroups(int index) {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ return skuPurchaseGroups_.get(index);
+ } else {
+ return skuPurchaseGroupsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public Builder setSkuPurchaseGroups(
+ int index, com.google.cloud.channel.v1.SkuPurchaseGroup value) {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkuPurchaseGroupsIsMutable();
+ skuPurchaseGroups_.set(index, value);
+ onChanged();
+ } else {
+ skuPurchaseGroupsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public Builder setSkuPurchaseGroups(
+ int index, com.google.cloud.channel.v1.SkuPurchaseGroup.Builder builderForValue) {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ ensureSkuPurchaseGroupsIsMutable();
+ skuPurchaseGroups_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ skuPurchaseGroupsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public Builder addSkuPurchaseGroups(com.google.cloud.channel.v1.SkuPurchaseGroup value) {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkuPurchaseGroupsIsMutable();
+ skuPurchaseGroups_.add(value);
+ onChanged();
+ } else {
+ skuPurchaseGroupsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public Builder addSkuPurchaseGroups(
+ int index, com.google.cloud.channel.v1.SkuPurchaseGroup value) {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkuPurchaseGroupsIsMutable();
+ skuPurchaseGroups_.add(index, value);
+ onChanged();
+ } else {
+ skuPurchaseGroupsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public Builder addSkuPurchaseGroups(
+ com.google.cloud.channel.v1.SkuPurchaseGroup.Builder builderForValue) {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ ensureSkuPurchaseGroupsIsMutable();
+ skuPurchaseGroups_.add(builderForValue.build());
+ onChanged();
+ } else {
+ skuPurchaseGroupsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public Builder addSkuPurchaseGroups(
+ int index, com.google.cloud.channel.v1.SkuPurchaseGroup.Builder builderForValue) {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ ensureSkuPurchaseGroupsIsMutable();
+ skuPurchaseGroups_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ skuPurchaseGroupsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public Builder addAllSkuPurchaseGroups(
+ java.lang.Iterable extends com.google.cloud.channel.v1.SkuPurchaseGroup> values) {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ ensureSkuPurchaseGroupsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skuPurchaseGroups_);
+ onChanged();
+ } else {
+ skuPurchaseGroupsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public Builder clearSkuPurchaseGroups() {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ skuPurchaseGroups_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ skuPurchaseGroupsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public Builder removeSkuPurchaseGroups(int index) {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ ensureSkuPurchaseGroupsIsMutable();
+ skuPurchaseGroups_.remove(index);
+ onChanged();
+ } else {
+ skuPurchaseGroupsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public com.google.cloud.channel.v1.SkuPurchaseGroup.Builder getSkuPurchaseGroupsBuilder(
+ int index) {
+ return getSkuPurchaseGroupsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public com.google.cloud.channel.v1.SkuPurchaseGroupOrBuilder getSkuPurchaseGroupsOrBuilder(
+ int index) {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ return skuPurchaseGroups_.get(index);
+ } else {
+ return skuPurchaseGroupsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public java.util.List extends com.google.cloud.channel.v1.SkuPurchaseGroupOrBuilder>
+ getSkuPurchaseGroupsOrBuilderList() {
+ if (skuPurchaseGroupsBuilder_ != null) {
+ return skuPurchaseGroupsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(skuPurchaseGroups_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public com.google.cloud.channel.v1.SkuPurchaseGroup.Builder addSkuPurchaseGroupsBuilder() {
+ return getSkuPurchaseGroupsFieldBuilder()
+ .addBuilder(com.google.cloud.channel.v1.SkuPurchaseGroup.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public com.google.cloud.channel.v1.SkuPurchaseGroup.Builder addSkuPurchaseGroupsBuilder(
+ int index) {
+ return getSkuPurchaseGroupsFieldBuilder()
+ .addBuilder(index, com.google.cloud.channel.v1.SkuPurchaseGroup.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ public java.util.List
+ getSkuPurchaseGroupsBuilderList() {
+ return getSkuPurchaseGroupsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.channel.v1.SkuPurchaseGroup,
+ com.google.cloud.channel.v1.SkuPurchaseGroup.Builder,
+ com.google.cloud.channel.v1.SkuPurchaseGroupOrBuilder>
+ getSkuPurchaseGroupsFieldBuilder() {
+ if (skuPurchaseGroupsBuilder_ == null) {
+ skuPurchaseGroupsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.channel.v1.SkuPurchaseGroup,
+ com.google.cloud.channel.v1.SkuPurchaseGroup.Builder,
+ com.google.cloud.channel.v1.SkuPurchaseGroupOrBuilder>(
+ skuPurchaseGroups_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ skuPurchaseGroups_ = null;
+ }
+ return skuPurchaseGroupsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.channel.v1.QueryEligibleBillingAccountsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.QueryEligibleBillingAccountsResponse)
+ private static final com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse();
+ }
+
+ public static com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public QueryEligibleBillingAccountsResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsResponseOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsResponseOrBuilder.java
new file mode 100644
index 000000000000..7d92b5c9ec74
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/QueryEligibleBillingAccountsResponseOrBuilder.java
@@ -0,0 +1,92 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/channel/v1/service.proto
+
+package com.google.cloud.channel.v1;
+
+public interface QueryEligibleBillingAccountsResponseOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.QueryEligibleBillingAccountsResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ java.util.List getSkuPurchaseGroupsList();
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ com.google.cloud.channel.v1.SkuPurchaseGroup getSkuPurchaseGroups(int index);
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ int getSkuPurchaseGroupsCount();
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ java.util.List extends com.google.cloud.channel.v1.SkuPurchaseGroupOrBuilder>
+ getSkuPurchaseGroupsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * List of SKU purchase groups where each group represents a set of SKUs that
+ * must be purchased using the same billing account. Each SKU from
+ * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ * group.
+ *
+ *
+ * repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1;
+ */
+ com.google.cloud.channel.v1.SkuPurchaseGroupOrBuilder getSkuPurchaseGroupsOrBuilder(int index);
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java
index 1cadd49a8981..2c2663b55335 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java
@@ -1229,8 +1229,20 @@ public GranularityCase getGranularityCase() {
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -1247,8 +1259,20 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -1269,8 +1293,20 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -1292,7 +1328,9 @@ public boolean hasEntitlementGranularity() {
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -1310,7 +1348,9 @@ public boolean hasChannelPartnerGranularity() {
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -1333,7 +1373,9 @@ public boolean hasChannelPartnerGranularity() {
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -2185,8 +2227,20 @@ public Builder clearGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -2203,8 +2257,20 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -2234,8 +2300,20 @@ public boolean hasEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -2260,8 +2338,20 @@ public Builder setEntitlementGranularity(
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -2284,8 +2374,20 @@ public Builder setEntitlementGranularity(
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -2323,8 +2425,20 @@ public Builder mergeEntitlementGranularity(
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -2351,8 +2465,20 @@ public Builder clearEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -2367,8 +2493,20 @@ public Builder clearEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -2392,8 +2530,20 @@ public Builder clearEntitlementGranularity() {
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -2436,7 +2586,9 @@ public Builder clearEntitlementGranularity() {
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -2454,7 +2606,9 @@ public boolean hasChannelPartnerGranularity() {
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -2486,7 +2640,9 @@ public boolean hasChannelPartnerGranularity() {
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -2512,7 +2668,9 @@ public Builder setChannelPartnerGranularity(
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -2536,7 +2694,9 @@ public Builder setChannelPartnerGranularity(
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -2575,7 +2735,9 @@ public Builder mergeChannelPartnerGranularity(
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -2603,7 +2765,9 @@ public Builder clearChannelPartnerGranularity() {
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -2619,7 +2783,9 @@ public Builder clearChannelPartnerGranularity() {
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -2645,7 +2811,9 @@ public Builder clearChannelPartnerGranularity() {
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java
index ac8c5b56b9c5..ed9f8e5d12f9 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java
@@ -27,8 +27,20 @@ public interface RepricingConfigOrBuilder
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -42,8 +54,20 @@ public interface RepricingConfigOrBuilder
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -57,8 +81,20 @@ public interface RepricingConfigOrBuilder
*
*
*
- * Applies the repricing configuration at the entitlement level. This is
- * the only supported value for CustomerRepricingConfig.
+ * Applies the repricing configuration at the entitlement level.
+ *
+ * Note: If a
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * using
+ * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ * becomes effective, then no existing or future
+ * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ * will apply to the
+ * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ * This is the recommended value for both
+ * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ * and
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
*
*
*
@@ -73,7 +109,9 @@ public interface RepricingConfigOrBuilder
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -88,7 +126,9 @@ public interface RepricingConfigOrBuilder
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
@@ -104,7 +144,9 @@ public interface RepricingConfigOrBuilder
*
*
* Applies the repricing configuration at the channel partner level.
- * This is the only supported value for ChannelPartnerRepricingConfig.
+ * Only
+ * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ * supports this value.
*
*
*
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java
index b60381652602..8d15a7fddc9d 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java
@@ -307,6 +307,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_channel_v1_PurchasableOffer_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_channel_v1_PurchasableOffer_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_channel_v1_QueryEligibleBillingAccountsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_channel_v1_SkuPurchaseGroup_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_channel_v1_SkuPurchaseGroup_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_channel_v1_BillingAccountPurchaseInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_channel_v1_BillingAccountPurchaseInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_channel_v1_RegisterSubscriberRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -352,547 +368,569 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\027google.cloud.channel.v1\032\034google/api/ann"
+ "otations.proto\032\027google/api/client.proto\032"
+ "\037google/api/field_behavior.proto\032\031google"
- + "/api/resource.proto\0323google/cloud/channe"
- + "l/v1/channel_partner_links.proto\032$google"
- + "/cloud/channel/v1/common.proto\032\'google/c"
- + "loud/channel/v1/customers.proto\0321google/"
- + "cloud/channel/v1/entitlement_changes.pro"
- + "to\032*google/cloud/channel/v1/entitlements"
- + ".proto\032$google/cloud/channel/v1/offers.p"
- + "roto\032(google/cloud/channel/v1/operations"
- + ".proto\032&google/cloud/channel/v1/products"
- + ".proto\032\'google/cloud/channel/v1/repricin"
- + "g.proto\032#google/longrunning/operations.p"
- + "roto\032\033google/protobuf/empty.proto\032 googl"
- + "e/protobuf/field_mask.proto\"T\n&CheckClou"
- + "dIdentityAccountsExistRequest\022\024\n\006parent\030"
- + "\001 \001(\tB\004\342A\001\002\022\024\n\006domain\030\002 \001(\tB\004\342A\001\002\"z\n\034Clo"
- + "udIdentityCustomerAccount\022\020\n\010existing\030\001 "
- + "\001(\010\022\r\n\005owned\030\002 \001(\010\022\025\n\rcustomer_name\030\003 \001("
- + "\t\022\"\n\032customer_cloud_identity_id\030\004 \001(\t\"\201\001"
- + "\n\'CheckCloudIdentityAccountsExistRespons"
- + "e\022V\n\027cloud_identity_accounts\030\001 \003(\01325.goo"
- + "gle.cloud.channel.v1.CloudIdentityCustom"
- + "erAccount\"u\n\024ListCustomersRequest\022\024\n\006par"
- + "ent\030\001 \001(\tB\004\342A\001\002\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001"
- + "\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001"
- + "(\tB\004\342A\001\001\"f\n\025ListCustomersResponse\0224\n\tcus"
- + "tomers\030\001 \003(\0132!.google.cloud.channel.v1.C"
- + "ustomer\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\022GetC"
- + "ustomerRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$c"
- + "loudchannel.googleapis.com/Customer\"h\n\025C"
- + "reateCustomerRequest\022\024\n\006parent\030\001 \001(\tB\004\342A"
- + "\001\002\0229\n\010customer\030\002 \001(\0132!.google.cloud.chan"
- + "nel.v1.CustomerB\004\342A\001\002\"\203\001\n\025UpdateCustomer"
- + "Request\0229\n\010customer\030\002 \001(\0132!.google.cloud"
- + ".channel.v1.CustomerB\004\342A\001\002\022/\n\013update_mas"
- + "k\030\003 \001(\0132\032.google.protobuf.FieldMask\"T\n\025D"
- + "eleteCustomerRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002"
- + "\372A&\n$cloudchannel.googleapis.com/Custome"
- + "r\"\235\002\n\025ImportCustomerRequest\022\026\n\006domain\030\002 "
- + "\001(\tB\004\342A\001\002H\000\022!\n\021cloud_identity_id\030\003 \001(\tB\004"
- + "\342A\001\002H\000\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\030\n\nauth_tok"
- + "en\030\004 \001(\tB\004\342A\001\001\022!\n\023overwrite_if_exists\030\005 "
- + "\001(\010B\004\342A\001\002\022 \n\022channel_partner_id\030\006 \001(\tB\004\342"
- + "A\001\001\022?\n\010customer\030\007 \001(\tB-\342A\001\001\372A&\n$cloudcha"
- + "nnel.googleapis.com/CustomerB\023\n\021customer"
- + "_identity\"\362\001\n\035ProvisionCloudIdentityRequ"
- + "est\022?\n\010customer\030\001 \001(\tB-\342A\001\002\372A&\n$cloudcha"
- + "nnel.googleapis.com/Customer\022G\n\023cloud_id"
- + "entity_info\030\002 \001(\0132*.google.cloud.channel"
- + ".v1.CloudIdentityInfo\0220\n\004user\030\003 \001(\0132\".go"
- + "ogle.cloud.channel.v1.AdminUser\022\025\n\rvalid"
- + "ate_only\030\004 \001(\010\"\213\001\n\027ListEntitlementsReque"
+ + "/api/resource.proto\032.google/cloud/channe"
+ + "l/v1/billing_accounts.proto\0323google/clou"
+ + "d/channel/v1/channel_partner_links.proto"
+ + "\032$google/cloud/channel/v1/common.proto\032\'"
+ + "google/cloud/channel/v1/customers.proto\032"
+ + "1google/cloud/channel/v1/entitlement_cha"
+ + "nges.proto\032*google/cloud/channel/v1/enti"
+ + "tlements.proto\032$google/cloud/channel/v1/"
+ + "offers.proto\032(google/cloud/channel/v1/op"
+ + "erations.proto\032&google/cloud/channel/v1/"
+ + "products.proto\032\'google/cloud/channel/v1/"
+ + "repricing.proto\032#google/longrunning/oper"
+ + "ations.proto\032\033google/protobuf/empty.prot"
+ + "o\032 google/protobuf/field_mask.proto\"T\n&C"
+ + "heckCloudIdentityAccountsExistRequest\022\024\n"
+ + "\006parent\030\001 \001(\tB\004\342A\001\002\022\024\n\006domain\030\002 \001(\tB\004\342A\001"
+ + "\002\"z\n\034CloudIdentityCustomerAccount\022\020\n\010exi"
+ + "sting\030\001 \001(\010\022\r\n\005owned\030\002 \001(\010\022\025\n\rcustomer_n"
+ + "ame\030\003 \001(\t\022\"\n\032customer_cloud_identity_id\030"
+ + "\004 \001(\t\"\201\001\n\'CheckCloudIdentityAccountsExis"
+ + "tResponse\022V\n\027cloud_identity_accounts\030\001 \003"
+ + "(\01325.google.cloud.channel.v1.CloudIdenti"
+ + "tyCustomerAccount\"u\n\024ListCustomersReques"
+ + "t\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\027\n\tpage_size\030\002 \001"
+ + "(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006fi"
+ + "lter\030\004 \001(\tB\004\342A\001\001\"f\n\025ListCustomersRespons"
+ + "e\0224\n\tcustomers\030\001 \003(\0132!.google.cloud.chan"
+ + "nel.v1.Customer\022\027\n\017next_page_token\030\002 \001(\t"
+ + "\"Q\n\022GetCustomerRequest\022;\n\004name\030\001 \001(\tB-\342A"
+ + "\001\002\372A&\n$cloudchannel.googleapis.com/Custo"
+ + "mer\"h\n\025CreateCustomerRequest\022\024\n\006parent\030\001"
+ + " \001(\tB\004\342A\001\002\0229\n\010customer\030\002 \001(\0132!.google.cl"
+ + "oud.channel.v1.CustomerB\004\342A\001\002\"\203\001\n\025Update"
+ + "CustomerRequest\0229\n\010customer\030\002 \001(\0132!.goog"
+ + "le.cloud.channel.v1.CustomerB\004\342A\001\002\022/\n\013up"
+ + "date_mask\030\003 \001(\0132\032.google.protobuf.FieldM"
+ + "ask\"T\n\025DeleteCustomerRequest\022;\n\004name\030\001 \001"
+ + "(\tB-\342A\001\002\372A&\n$cloudchannel.googleapis.com"
+ + "/Customer\"\235\002\n\025ImportCustomerRequest\022\026\n\006d"
+ + "omain\030\002 \001(\tB\004\342A\001\002H\000\022!\n\021cloud_identity_id"
+ + "\030\003 \001(\tB\004\342A\001\002H\000\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\030\n\n"
+ + "auth_token\030\004 \001(\tB\004\342A\001\001\022!\n\023overwrite_if_e"
+ + "xists\030\005 \001(\010B\004\342A\001\002\022 \n\022channel_partner_id\030"
+ + "\006 \001(\tB\004\342A\001\001\022?\n\010customer\030\007 \001(\tB-\342A\001\001\372A&\n$"
+ + "cloudchannel.googleapis.com/CustomerB\023\n\021"
+ + "customer_identity\"\362\001\n\035ProvisionCloudIden"
+ + "tityRequest\022?\n\010customer\030\001 \001(\tB-\342A\001\002\372A&\n$"
+ + "cloudchannel.googleapis.com/Customer\022G\n\023"
+ + "cloud_identity_info\030\002 \001(\0132*.google.cloud"
+ + ".channel.v1.CloudIdentityInfo\0220\n\004user\030\003 "
+ + "\001(\0132\".google.cloud.channel.v1.AdminUser\022"
+ + "\025\n\rvalidate_only\030\004 \001(\010\"\213\001\n\027ListEntitleme"
+ + "ntsRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\n$clo"
+ + "udchannel.googleapis.com/Customer\022\027\n\tpag"
+ + "e_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004"
+ + "\342A\001\001\"o\n\030ListEntitlementsResponse\022:\n\014enti"
+ + "tlements\030\001 \003(\0132$.google.cloud.channel.v1"
+ + ".Entitlement\022\027\n\017next_page_token\030\002 \001(\t\"\342\001"
+ + "\n\033ListTransferableSkusRequest\022\033\n\021cloud_i"
+ + "dentity_id\030\004 \001(\tH\000\022\027\n\rcustomer_name\030\007 \001("
+ + "\tH\000\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002"
+ + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\030\n\nauth_token\030\005"
+ + " \001(\tB\004\342A\001\001\022\025\n\rlanguage_code\030\006 \001(\tB\037\n\035tra"
+ + "nsferred_customer_identity\"|\n\034ListTransf"
+ + "erableSkusResponse\022C\n\021transferable_skus\030"
+ + "\001 \003(\0132(.google.cloud.channel.v1.Transfer"
+ + "ableSku\022\027\n\017next_page_token\030\002 \001(\t\"\202\002\n\035Lis"
+ + "tTransferableOffersRequest\022\033\n\021cloud_iden"
+ + "tity_id\030\004 \001(\tH\000\022\027\n\rcustomer_name\030\005 \001(\tH\000"
+ + "\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001("
+ + "\005\022\022\n\npage_token\030\003 \001(\t\022\021\n\003sku\030\006 \001(\tB\004\342A\001\002"
+ + "\022\033\n\rlanguage_code\030\007 \001(\tB\004\342A\001\001\022\035\n\017billing"
+ + "_account\030\010 \001(\tB\004\342A\001\001B\037\n\035transferred_cust"
+ + "omer_identity\"\202\001\n\036ListTransferableOffers"
+ + "Response\022G\n\023transferable_offers\030\001 \003(\0132*."
+ + "google.cloud.channel.v1.TransferableOffe"
+ + "r\022\027\n\017next_page_token\030\002 \001(\t\"B\n\021Transferab"
+ + "leOffer\022-\n\005offer\030\001 \001(\0132\036.google.cloud.ch"
+ + "annel.v1.Offer\"W\n\025GetEntitlementRequest\022"
+ + ">\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'cloudchannel.goo"
+ + "gleapis.com/Entitlement\"\256\001\n\036ListChannelP"
+ + "artnerLinksRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002"
+ + "\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030"
+ + "\003 \001(\tB\004\342A\001\001\022C\n\004view\030\004 \001(\0162/.google.cloud"
+ + ".channel.v1.ChannelPartnerLinkViewB\004\342A\001\001"
+ + "\"\206\001\n\037ListChannelPartnerLinksResponse\022J\n\025"
+ + "channel_partner_links\030\001 \003(\0132+.google.clo"
+ + "ud.channel.v1.ChannelPartnerLink\022\027\n\017next"
+ + "_page_token\030\002 \001(\t\"w\n\034GetChannelPartnerLi"
+ + "nkRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022C\n\004view\030\002 "
+ + "\001(\0162/.google.cloud.channel.v1.ChannelPar"
+ + "tnerLinkViewB\004\342A\001\001\"\210\001\n\037CreateChannelPart"
+ + "nerLinkRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022O\n\024"
+ + "channel_partner_link\030\002 \001(\0132+.google.clou"
+ + "d.channel.v1.ChannelPartnerLinkB\004\342A\001\002\"\275\001"
+ + "\n\037UpdateChannelPartnerLinkRequest\022\022\n\004nam"
+ + "e\030\001 \001(\tB\004\342A\001\002\022O\n\024channel_partner_link\030\002 "
+ + "\001(\0132+.google.cloud.channel.v1.ChannelPar"
+ + "tnerLinkB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032.go"
+ + "ogle.protobuf.FieldMaskB\004\342A\001\002\"o\n!GetCust"
+ + "omerRepricingConfigRequest\022J\n\004name\030\001 \001(\t"
+ + "B<\342A\001\002\372A5\n3cloudchannel.googleapis.com/C"
+ + "ustomerRepricingConfig\"\255\001\n#ListCustomerR"
+ + "epricingConfigsRequest\022=\n\006parent\030\001 \001(\tB-"
+ + "\342A\001\002\372A&\n$cloudchannel.googleapis.com/Cus"
+ + "tomer\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_t"
+ + "oken\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\"\225"
+ + "\001\n$ListCustomerRepricingConfigsResponse\022"
+ + "T\n\032customer_repricing_configs\030\001 \003(\01320.go"
+ + "ogle.cloud.channel.v1.CustomerRepricingC"
+ + "onfig\022\027\n\017next_page_token\030\002 \001(\t\"\300\001\n$Creat"
+ + "eCustomerRepricingConfigRequest\022=\n\006paren"
+ + "t\030\001 \001(\tB-\342A\001\002\372A&\n$cloudchannel.googleapi"
+ + "s.com/Customer\022Y\n\031customer_repricing_con"
+ + "fig\030\002 \001(\01320.google.cloud.channel.v1.Cust"
+ + "omerRepricingConfigB\004\342A\001\002\"\201\001\n$UpdateCust"
+ + "omerRepricingConfigRequest\022Y\n\031customer_r"
+ + "epricing_config\030\001 \001(\01320.google.cloud.cha"
+ + "nnel.v1.CustomerRepricingConfigB\004\342A\001\002\"r\n"
+ + "$DeleteCustomerRepricingConfigRequest\022J\n"
+ + "\004name\030\001 \001(\tB<\342A\001\002\372A5\n3cloudchannel.googl"
+ + "eapis.com/CustomerRepricingConfig\"{\n\'Get"
+ + "ChannelPartnerRepricingConfigRequest\022P\n\004"
+ + "name\030\001 \001(\tBB\342A\001\002\372A;\n9cloudchannel.google"
+ + "apis.com/ChannelPartnerRepricingConfig\"\275"
+ + "\001\n)ListChannelPartnerRepricingConfigsReq"
+ + "uest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\n.cloudchan"
+ + "nel.googleapis.com/ChannelPartnerLink\022\027\n"
+ + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001"
+ + "(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\"\250\001\n*ListC"
+ + "hannelPartnerRepricingConfigsResponse\022a\n"
+ + "!channel_partner_repricing_configs\030\001 \003(\013"
+ + "26.google.cloud.channel.v1.ChannelPartne"
+ + "rRepricingConfig\022\027\n\017next_page_token\030\002 \001("
+ + "\t\"\335\001\n*CreateChannelPartnerRepricingConfi"
+ + "gRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\n.cloud"
+ + "channel.googleapis.com/ChannelPartnerLin"
+ + "k\022f\n channel_partner_repricing_config\030\002 "
+ + "\001(\01326.google.cloud.channel.v1.ChannelPar"
+ + "tnerRepricingConfigB\004\342A\001\002\"\224\001\n*UpdateChan"
+ + "nelPartnerRepricingConfigRequest\022f\n chan"
+ + "nel_partner_repricing_config\030\001 \001(\01326.goo"
+ + "gle.cloud.channel.v1.ChannelPartnerRepri"
+ + "cingConfigB\004\342A\001\002\"~\n*DeleteChannelPartner"
+ + "RepricingConfigRequest\022P\n\004name\030\001 \001(\tBB\342A"
+ + "\001\002\372A;\n9cloudchannel.googleapis.com/Chann"
+ + "elPartnerRepricingConfig\"_\n\024ListSkuGroup"
+ + "sRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\027\n\tpage_s"
+ + "ize\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001"
+ + "\001\"\223\001\n\037ListSkuGroupBillableSkusRequest\022=\n"
+ + "\006parent\030\001 \001(\tB-\342A\001\002\372A&\n$cloudchannel.goo"
+ + "gleapis.com/SkuGroup\022\027\n\tpage_size\030\002 \001(\005B"
+ + "\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"g\n\025ListS"
+ + "kuGroupsResponse\0225\n\nsku_groups\030\001 \003(\0132!.g"
+ + "oogle.cloud.channel.v1.SkuGroup\022\027\n\017next_"
+ + "page_token\030\002 \001(\t\"x\n ListSkuGroupBillable"
+ + "SkusResponse\022;\n\rbillable_skus\030\001 \003(\0132$.go"
+ + "ogle.cloud.channel.v1.BillableSku\022\027\n\017nex"
+ + "t_page_token\030\002 \001(\t\"\203\001\n\010SkuGroup\022\014\n\004name\030"
+ + "\001 \001(\t\022\024\n\014display_name\030\002 \001(\t:S\352AP\n$cloudc"
+ + "hannel.googleapis.com/SkuGroup\022(accounts"
+ + "/{account}/skuGroups/{sku_group}\"c\n\013Bill"
+ + "ableSku\022\013\n\003sku\030\001 \001(\t\022\030\n\020sku_display_name"
+ + "\030\002 \001(\t\022\017\n\007service\030\003 \001(\t\022\034\n\024service_displ"
+ + "ay_name\030\004 \001(\t\"\264\001\n\030CreateEntitlementReque"
+ "st\022=\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\n$cloudchanne"
- + "l.googleapis.com/Customer\022\027\n\tpage_size\030\002"
- + " \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"o\n\030"
- + "ListEntitlementsResponse\022:\n\014entitlements"
- + "\030\001 \003(\0132$.google.cloud.channel.v1.Entitle"
- + "ment\022\027\n\017next_page_token\030\002 \001(\t\"\342\001\n\033ListTr"
- + "ansferableSkusRequest\022\033\n\021cloud_identity_"
- + "id\030\004 \001(\tH\000\022\027\n\rcustomer_name\030\007 \001(\tH\000\022\024\n\006p"
- + "arent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n"
- + "page_token\030\003 \001(\t\022\030\n\nauth_token\030\005 \001(\tB\004\342A"
- + "\001\001\022\025\n\rlanguage_code\030\006 \001(\tB\037\n\035transferred"
- + "_customer_identity\"|\n\034ListTransferableSk"
- + "usResponse\022C\n\021transferable_skus\030\001 \003(\0132(."
- + "google.cloud.channel.v1.TransferableSku\022"
- + "\027\n\017next_page_token\030\002 \001(\t\"\343\001\n\035ListTransfe"
- + "rableOffersRequest\022\033\n\021cloud_identity_id\030"
- + "\004 \001(\tH\000\022\027\n\rcustomer_name\030\005 \001(\tH\000\022\024\n\006pare"
- + "nt\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag"
- + "e_token\030\003 \001(\t\022\021\n\003sku\030\006 \001(\tB\004\342A\001\002\022\033\n\rlang"
- + "uage_code\030\007 \001(\tB\004\342A\001\001B\037\n\035transferred_cus"
- + "tomer_identity\"\202\001\n\036ListTransferableOffer"
- + "sResponse\022G\n\023transferable_offers\030\001 \003(\0132*"
- + ".google.cloud.channel.v1.TransferableOff"
- + "er\022\027\n\017next_page_token\030\002 \001(\t\"B\n\021Transfera"
- + "bleOffer\022-\n\005offer\030\001 \001(\0132\036.google.cloud.c"
- + "hannel.v1.Offer\"W\n\025GetEntitlementRequest"
- + "\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'cloudchannel.go"
- + "ogleapis.com/Entitlement\"\256\001\n\036ListChannel"
- + "PartnerLinksRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001"
- + "\002\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token"
- + "\030\003 \001(\tB\004\342A\001\001\022C\n\004view\030\004 \001(\0162/.google.clou"
- + "d.channel.v1.ChannelPartnerLinkViewB\004\342A\001"
- + "\001\"\206\001\n\037ListChannelPartnerLinksResponse\022J\n"
- + "\025channel_partner_links\030\001 \003(\0132+.google.cl"
- + "oud.channel.v1.ChannelPartnerLink\022\027\n\017nex"
- + "t_page_token\030\002 \001(\t\"w\n\034GetChannelPartnerL"
- + "inkRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022C\n\004view\030\002"
- + " \001(\0162/.google.cloud.channel.v1.ChannelPa"
- + "rtnerLinkViewB\004\342A\001\001\"\210\001\n\037CreateChannelPar"
- + "tnerLinkRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022O\n"
- + "\024channel_partner_link\030\002 \001(\0132+.google.clo"
- + "ud.channel.v1.ChannelPartnerLinkB\004\342A\001\002\"\275"
- + "\001\n\037UpdateChannelPartnerLinkRequest\022\022\n\004na"
- + "me\030\001 \001(\tB\004\342A\001\002\022O\n\024channel_partner_link\030\002"
- + " \001(\0132+.google.cloud.channel.v1.ChannelPa"
- + "rtnerLinkB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032.g"
- + "oogle.protobuf.FieldMaskB\004\342A\001\002\"o\n!GetCus"
- + "tomerRepricingConfigRequest\022J\n\004name\030\001 \001("
- + "\tB<\342A\001\002\372A5\n3cloudchannel.googleapis.com/"
- + "CustomerRepricingConfig\"\255\001\n#ListCustomer"
- + "RepricingConfigsRequest\022=\n\006parent\030\001 \001(\tB"
- + "-\342A\001\002\372A&\n$cloudchannel.googleapis.com/Cu"
- + "stomer\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_"
- + "token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\""
- + "\225\001\n$ListCustomerRepricingConfigsResponse"
- + "\022T\n\032customer_repricing_configs\030\001 \003(\01320.g"
- + "oogle.cloud.channel.v1.CustomerRepricing"
- + "Config\022\027\n\017next_page_token\030\002 \001(\t\"\300\001\n$Crea"
- + "teCustomerRepricingConfigRequest\022=\n\006pare"
- + "nt\030\001 \001(\tB-\342A\001\002\372A&\n$cloudchannel.googleap"
- + "is.com/Customer\022Y\n\031customer_repricing_co"
- + "nfig\030\002 \001(\01320.google.cloud.channel.v1.Cus"
- + "tomerRepricingConfigB\004\342A\001\002\"\201\001\n$UpdateCus"
- + "tomerRepricingConfigRequest\022Y\n\031customer_"
- + "repricing_config\030\001 \001(\01320.google.cloud.ch"
- + "annel.v1.CustomerRepricingConfigB\004\342A\001\002\"r"
- + "\n$DeleteCustomerRepricingConfigRequest\022J"
- + "\n\004name\030\001 \001(\tB<\342A\001\002\372A5\n3cloudchannel.goog"
- + "leapis.com/CustomerRepricingConfig\"{\n\'Ge"
- + "tChannelPartnerRepricingConfigRequest\022P\n"
- + "\004name\030\001 \001(\tBB\342A\001\002\372A;\n9cloudchannel.googl"
- + "eapis.com/ChannelPartnerRepricingConfig\""
- + "\275\001\n)ListChannelPartnerRepricingConfigsRe"
- + "quest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\n.cloudcha"
- + "nnel.googleapis.com/ChannelPartnerLink\022\027"
- + "\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 "
- + "\001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\"\250\001\n*List"
- + "ChannelPartnerRepricingConfigsResponse\022a"
- + "\n!channel_partner_repricing_configs\030\001 \003("
- + "\01326.google.cloud.channel.v1.ChannelPartn"
- + "erRepricingConfig\022\027\n\017next_page_token\030\002 \001"
- + "(\t\"\335\001\n*CreateChannelPartnerRepricingConf"
- + "igRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\n.clou"
- + "dchannel.googleapis.com/ChannelPartnerLi"
- + "nk\022f\n channel_partner_repricing_config\030\002"
- + " \001(\01326.google.cloud.channel.v1.ChannelPa"
- + "rtnerRepricingConfigB\004\342A\001\002\"\224\001\n*UpdateCha"
- + "nnelPartnerRepricingConfigRequest\022f\n cha"
- + "nnel_partner_repricing_config\030\001 \001(\01326.go"
- + "ogle.cloud.channel.v1.ChannelPartnerRepr"
- + "icingConfigB\004\342A\001\002\"~\n*DeleteChannelPartne"
- + "rRepricingConfigRequest\022P\n\004name\030\001 \001(\tBB\342"
- + "A\001\002\372A;\n9cloudchannel.googleapis.com/Chan"
- + "nelPartnerRepricingConfig\"_\n\024ListSkuGrou"
- + "psRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\027\n\tpage_"
- + "size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A"
- + "\001\001\"\223\001\n\037ListSkuGroupBillableSkusRequest\022="
- + "\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\n$cloudchannel.go"
- + "ogleapis.com/SkuGroup\022\027\n\tpage_size\030\002 \001(\005"
- + "B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"g\n\025List"
- + "SkuGroupsResponse\0225\n\nsku_groups\030\001 \003(\0132!."
- + "google.cloud.channel.v1.SkuGroup\022\027\n\017next"
- + "_page_token\030\002 \001(\t\"x\n ListSkuGroupBillabl"
- + "eSkusResponse\022;\n\rbillable_skus\030\001 \003(\0132$.g"
- + "oogle.cloud.channel.v1.BillableSku\022\027\n\017ne"
- + "xt_page_token\030\002 \001(\t\"\203\001\n\010SkuGroup\022\014\n\004name"
- + "\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t:S\352AP\n$cloud"
- + "channel.googleapis.com/SkuGroup\022(account"
- + "s/{account}/skuGroups/{sku_group}\"c\n\013Bil"
- + "lableSku\022\013\n\003sku\030\001 \001(\t\022\030\n\020sku_display_nam"
- + "e\030\002 \001(\t\022\017\n\007service\030\003 \001(\t\022\034\n\024service_disp"
- + "lay_name\030\004 \001(\t\"\264\001\n\030CreateEntitlementRequ"
- + "est\022=\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\n$cloudchann"
- + "el.googleapis.com/Customer\022?\n\013entitlemen"
- + "t\030\002 \001(\0132$.google.cloud.channel.v1.Entitl"
- + "ementB\004\342A\001\002\022\030\n\nrequest_id\030\005 \001(\tB\004\342A\001\001\"\243\001"
- + "\n\033TransferEntitlementsRequest\022\024\n\006parent\030"
- + "\001 \001(\tB\004\342A\001\002\022@\n\014entitlements\030\002 \003(\0132$.goog"
- + "le.cloud.channel.v1.EntitlementB\004\342A\001\002\022\022\n"
- + "\nauth_token\030\004 \001(\t\022\030\n\nrequest_id\030\006 \001(\tB\004\342"
- + "A\001\001\"Z\n\034TransferEntitlementsResponse\022:\n\014e"
- + "ntitlements\030\001 \003(\0132$.google.cloud.channel"
- + ".v1.Entitlement\"\227\001\n#TransferEntitlements"
- + "ToGoogleRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022@\n"
- + "\014entitlements\030\002 \003(\0132$.google.cloud.chann"
- + "el.v1.EntitlementB\004\342A\001\002\022\030\n\nrequest_id\030\003 "
- + "\001(\tB\004\342A\001\001\"\246\001\n\027ChangeParametersRequest\022\022\n"
- + "\004name\030\001 \001(\tB\004\342A\001\002\022<\n\nparameters\030\002 \003(\0132\"."
- + "google.cloud.channel.v1.ParameterB\004\342A\001\002\022"
- + "\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\037\n\021purchase_or"
- + "der_id\030\005 \001(\tB\004\342A\001\001\"\226\001\n\034ChangeRenewalSett"
- + "ingsRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022H\n\020renew"
- + "al_settings\030\004 \001(\0132(.google.cloud.channel"
- + ".v1.RenewalSettingsB\004\342A\001\002\022\030\n\nrequest_id\030"
- + "\005 \001(\tB\004\342A\001\001\"\334\001\n\022ChangeOfferRequest\022\022\n\004na"
- + "me\030\001 \001(\tB\004\342A\001\002\0229\n\005offer\030\002 \001(\tB*\342A\001\002\372A#\n!"
- + "cloudchannel.googleapis.com/Offer\022<\n\npar"
- + "ameters\030\003 \003(\0132\".google.cloud.channel.v1."
- + "ParameterB\004\342A\001\001\022\037\n\021purchase_order_id\030\005 \001"
- + "(\tB\004\342A\001\001\022\030\n\nrequest_id\030\006 \001(\tB\004\342A\001\001\"G\n\027St"
- + "artPaidServiceRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001"
- + "\002\022\030\n\nrequest_id\030\003 \001(\tB\004\342A\001\001\"H\n\030CancelEnt"
- + "itlementRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\030\n\nr"
- + "equest_id\030\003 \001(\tB\004\342A\001\001\"I\n\031SuspendEntitlem"
- + "entRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\030\n\nreques"
- + "t_id\030\003 \001(\tB\004\342A\001\001\"J\n\032ActivateEntitlementR"
- + "equest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\030\n\nrequest_id"
- + "\030\003 \001(\tB\004\342A\001\001\"[\n\022LookupOfferRequest\022E\n\013en"
- + "titlement\030\001 \001(\tB0\342A\001\002\372A)\n\'cloudchannel.g"
- + "oogleapis.com/Entitlement\"|\n\023ListProduct"
- + "sRequest\022\025\n\007account\030\001 \001(\tB\004\342A\001\002\022\027\n\tpage_"
- + "size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A"
- + "\001\001\022\033\n\rlanguage_code\030\004 \001(\tB\004\342A\001\001\"c\n\024ListP"
- + "roductsResponse\0222\n\010products\030\001 \003(\0132 .goog"
- + "le.cloud.channel.v1.Product\022\027\n\017next_page"
- + "_token\030\002 \001(\t\"\266\001\n\017ListSkusRequest\022<\n\006pare"
- + "nt\030\001 \001(\tB,\342A\001\002\372A%\n#cloudchannel.googleap"
- + "is.com/Product\022\025\n\007account\030\002 \001(\tB\004\342A\001\002\022\027\n"
- + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\004 \001"
- + "(\tB\004\342A\001\001\022\033\n\rlanguage_code\030\005 \001(\tB\004\342A\001\001\"W\n"
- + "\020ListSkusResponse\022*\n\004skus\030\001 \003(\0132\034.google"
- + ".cloud.channel.v1.Sku\022\027\n\017next_page_token"
- + "\030\002 \001(\t\"\261\001\n\021ListOffersRequest\022\024\n\006parent\030\001"
- + " \001(\tB\004\342A\001\002\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\np"
- + "age_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342"
- + "A\001\001\022\033\n\rlanguage_code\030\005 \001(\tB\004\342A\001\001\022 \n\022show"
- + "_future_offers\030\007 \001(\010B\004\342A\001\001\"]\n\022ListOffers"
- + "Response\022.\n\006offers\030\001 \003(\0132\036.google.cloud."
- + "channel.v1.Offer\022\027\n\017next_page_token\030\002 \001("
- + "\t\"\275\005\n\032ListPurchasableSkusRequest\022t\n\033crea"
- + "te_entitlement_purchase\030\002 \001(\0132M.google.c"
- + "loud.channel.v1.ListPurchasableSkusReque"
- + "st.CreateEntitlementPurchaseH\000\022h\n\025change"
- + "_offer_purchase\030\003 \001(\0132G.google.cloud.cha"
- + "nnel.v1.ListPurchasableSkusRequest.Chang"
- + "eOfferPurchaseH\000\022?\n\010customer\030\001 \001(\tB-\342A\001\002"
- + "\372A&\n$cloudchannel.googleapis.com/Custome"
- + "r\022\027\n\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\npage_token"
- + "\030\005 \001(\tB\004\342A\001\001\022\033\n\rlanguage_code\030\006 \001(\tB\004\342A\001"
- + "\001\0322\n\031CreateEntitlementPurchase\022\025\n\007produc"
- + "t\030\001 \001(\tB\004\342A\001\002\032\346\001\n\023ChangeOfferPurchase\022\031\n"
- + "\013entitlement\030\001 \001(\tB\004\342A\001\002\022m\n\013change_type\030"
- + "\002 \001(\0162R.google.cloud.channel.v1.ListPurc"
- + "hasableSkusRequest.ChangeOfferPurchase.C"
- + "hangeTypeB\004\342A\001\002\"E\n\nChangeType\022\033\n\027CHANGE_"
- + "TYPE_UNSPECIFIED\020\000\022\013\n\007UPGRADE\020\001\022\r\n\tDOWNG"
- + "RADE\020\002B\021\n\017purchase_option\"y\n\033ListPurchas"
- + "ableSkusResponse\022A\n\020purchasable_skus\030\001 \003"
- + "(\0132\'.google.cloud.channel.v1.Purchasable"
- + "Sku\022\027\n\017next_page_token\030\002 \001(\t\";\n\016Purchasa"
- + "bleSku\022)\n\003sku\030\001 \001(\0132\034.google.cloud.chann"
- + "el.v1.Sku\"\237\004\n\034ListPurchasableOffersReque"
- + "st\022v\n\033create_entitlement_purchase\030\002 \001(\0132"
- + "O.google.cloud.channel.v1.ListPurchasabl"
- + "eOffersRequest.CreateEntitlementPurchase"
- + "H\000\022j\n\025change_offer_purchase\030\003 \001(\0132I.goog"
- + "le.cloud.channel.v1.ListPurchasableOffer"
- + "sRequest.ChangeOfferPurchaseH\000\022?\n\010custom"
- + "er\030\001 \001(\tB-\342A\001\002\372A&\n$cloudchannel.googleap"
- + "is.com/Customer\022\027\n\tpage_size\030\004 \001(\005B\004\342A\001\001"
- + "\022\030\n\npage_token\030\005 \001(\tB\004\342A\001\001\022\033\n\rlanguage_c"
- + "ode\030\006 \001(\tB\004\342A\001\001\032.\n\031CreateEntitlementPurc"
- + "hase\022\021\n\003sku\030\001 \001(\tB\004\342A\001\002\032G\n\023ChangeOfferPu"
- + "rchase\022\031\n\013entitlement\030\001 \001(\tB\004\342A\001\002\022\025\n\007new"
- + "_sku\030\002 \001(\tB\004\342A\001\001B\021\n\017purchase_option\"\177\n\035L"
- + "istPurchasableOffersResponse\022E\n\022purchasa"
- + "ble_offers\030\001 \003(\0132).google.cloud.channel."
- + "v1.PurchasableOffer\022\027\n\017next_page_token\030\002"
- + " \001(\t\"A\n\020PurchasableOffer\022-\n\005offer\030\001 \001(\0132"
- + "\036.google.cloud.channel.v1.Offer\"Q\n\031Regis"
- + "terSubscriberRequest\022\025\n\007account\030\001 \001(\tB\004\342"
- + "A\001\002\022\035\n\017service_account\030\002 \001(\tB\004\342A\001\002\"+\n\032Re"
- + "gisterSubscriberResponse\022\r\n\005topic\030\001 \001(\t\""
- + "S\n\033UnregisterSubscriberRequest\022\025\n\007accoun"
- + "t\030\001 \001(\tB\004\342A\001\002\022\035\n\017service_account\030\002 \001(\tB\004"
- + "\342A\001\002\"-\n\034UnregisterSubscriberResponse\022\r\n\005"
- + "topic\030\001 \001(\t\"b\n\026ListSubscribersRequest\022\025\n"
- + "\007account\030\001 \001(\tB\004\342A\001\002\022\027\n\tpage_size\030\002 \001(\005B"
- + "\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"[\n\027ListS"
- + "ubscribersResponse\022\r\n\005topic\030\001 \001(\t\022\030\n\020ser"
- + "vice_accounts\030\002 \003(\t\022\027\n\017next_page_token\030\003"
- + " \001(\t\"\252\001\n\035ListEntitlementChangesRequest\022@"
- + "\n\006parent\030\001 \001(\tB0\342A\001\002\372A)\n\'cloudchannel.go"
- + "ogleapis.com/Entitlement\022\027\n\tpage_size\030\002 "
- + "\001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006f"
- + "ilter\030\004 \001(\tB\004\342A\001\001\"\202\001\n\036ListEntitlementCha"
- + "ngesResponse\022G\n\023entitlement_changes\030\001 \003("
- + "\0132*.google.cloud.channel.v1.EntitlementC"
- + "hange\022\027\n\017next_page_token\030\002 \001(\t2\333P\n\023Cloud"
- + "ChannelService\022\324\001\n\rListCustomers\022-.googl"
- + "e.cloud.channel.v1.ListCustomersRequest\032"
- + "..google.cloud.channel.v1.ListCustomersR"
- + "esponse\"d\202\323\344\223\002^\022!/v1/{parent=accounts/*}"
- + "/customersZ9\0227/v1/{parent=accounts/*/cha"
- + "nnelPartnerLinks/*}/customers\022\312\001\n\013GetCus"
- + "tomer\022+.google.cloud.channel.v1.GetCusto"
- + "merRequest\032!.google.cloud.channel.v1.Cus"
- + "tomer\"k\332A\004name\202\323\344\223\002^\022!/v1/{name=accounts"
- + "/*/customers/*}Z9\0227/v1/{name=accounts/*/"
- + "channelPartnerLinks/*/customers/*}\022\350\001\n\037C"
- + "heckCloudIdentityAccountsExist\022?.google."
- + "cloud.channel.v1.CheckCloudIdentityAccou"
- + "ntsExistRequest\032@.google.cloud.channel.v"
- + "1.CheckCloudIdentityAccountsExistRespons"
- + "e\"B\202\323\344\223\002<\"7/v1/{parent=accounts/*}:check"
- + "CloudIdentityAccountsExist:\001*\022\335\001\n\016Create"
- + "Customer\022..google.cloud.channel.v1.Creat"
- + "eCustomerRequest\032!.google.cloud.channel."
- + "v1.Customer\"x\202\323\344\223\002r\"!/v1/{parent=account"
- + "s/*}/customers:\010customerZC\"7/v1/{parent="
- + "accounts/*/channelPartnerLinks/*}/custom"
- + "ers:\010customer\022\361\001\n\016UpdateCustomer\022..googl"
- + "e.cloud.channel.v1.UpdateCustomerRequest"
- + "\032!.google.cloud.channel.v1.Customer\"\213\001\202\323"
- + "\344\223\002\204\0012*/v1/{customer.name=accounts/*/cus"
- + "tomers/*}:\010customerZL2@/v1/{customer.nam"
- + "e=accounts/*/channelPartnerLinks/*/custo"
- + "mers/*}:\010customer\022\305\001\n\016DeleteCustomer\022..g"
- + "oogle.cloud.channel.v1.DeleteCustomerReq"
- + "uest\032\026.google.protobuf.Empty\"k\332A\004name\202\323\344"
- + "\223\002^*!/v1/{name=accounts/*/customers/*}Z9"
- + "*7/v1/{name=accounts/*/channelPartnerLin"
- + "ks/*/customers/*}\022\335\001\n\016ImportCustomer\022..g"
- + "oogle.cloud.channel.v1.ImportCustomerReq"
- + "uest\032!.google.cloud.channel.v1.Customer\""
- + "x\202\323\344\223\002r\"(/v1/{parent=accounts/*}/custome"
- + "rs:import:\001*ZC\">/v1/{parent=accounts/*/c"
- + "hannelPartnerLinks/*}/customers:import:\001"
- + "*\022\330\001\n\026ProvisionCloudIdentity\0226.google.cl"
- + "oud.channel.v1.ProvisionCloudIdentityReq"
- + "uest\032\035.google.longrunning.Operation\"g\312A\035"
- + "\n\010Customer\022\021OperationMetadata\202\323\344\223\002A\"\"9/v1/{na"
- + "me=accounts/*/customers/*/entitlements/*"
- + "}:activate:\001*\022\344\001\n\024TransferEntitlements\0224"
- + ".google.cloud.channel.v1.TransferEntitle"
- + "mentsRequest\032\035.google.longrunning.Operat"
- + "ion\"w\312A1\n\034TransferEntitlementsResponse\022\021"
- + "OperationMetadata\202\323\344\223\002=\"8/v1/{parent=acc"
- + "ounts/*/customers/*}:transferEntitlement"
- + "s:\001*\022\365\001\n\034TransferEntitlementsToGoogle\022<."
- + "google.cloud.channel.v1.TransferEntitlem"
- + "entsToGoogleRequest\032\035.google.longrunning"
- + ".Operation\"x\312A*\n\025google.protobuf.Empty\022\021"
- + "OperationMetadata\202\323\344\223\002E\"@/v1/{parent=acc",
- "ounts/*/customers/*}:transferEntitlement"
- + "sToGoogle:\001*\022\301\001\n\027ListChannelPartnerLinks"
- + "\0227.google.cloud.channel.v1.ListChannelPa"
- + "rtnerLinksRequest\0328.google.cloud.channel"
- + ".v1.ListChannelPartnerLinksResponse\"3\202\323\344"
- + "\223\002-\022+/v1/{parent=accounts/*}/channelPart"
- + "nerLinks\022\260\001\n\025GetChannelPartnerLink\0225.goo"
- + "gle.cloud.channel.v1.GetChannelPartnerLi"
- + "nkRequest\032+.google.cloud.channel.v1.Chan"
- + "nelPartnerLink\"3\202\323\344\223\002-\022+/v1/{name=accoun"
- + "ts/*/channelPartnerLinks/*}\022\314\001\n\030CreateCh"
- + "annelPartnerLink\0228.google.cloud.channel."
- + "v1.CreateChannelPartnerLinkRequest\032+.goo"
- + "gle.cloud.channel.v1.ChannelPartnerLink\""
- + "I\202\323\344\223\002C\"+/v1/{parent=accounts/*}/channel"
- + "PartnerLinks:\024channel_partner_link\022\271\001\n\030U"
- + "pdateChannelPartnerLink\0228.google.cloud.c"
- + "hannel.v1.UpdateChannelPartnerLinkReques"
- + "t\032+.google.cloud.channel.v1.ChannelPartn"
- + "erLink\"6\202\323\344\223\00202+/v1/{name=accounts/*/cha"
- + "nnelPartnerLinks/*}:\001*\022\327\001\n\032GetCustomerRe"
- + "pricingConfig\022:.google.cloud.channel.v1."
- + "GetCustomerRepricingConfigRequest\0320.goog"
- + "le.cloud.channel.v1.CustomerRepricingCon"
- + "fig\"K\332A\004name\202\323\344\223\002>\022\022*/v1/{parent=accounts/*/channelPar"
+ + "tnerLinks/*}/customers:import:\001*\022\330\001\n\026Pro"
+ + "visionCloudIdentity\0226.google.cloud.chann"
+ + "el.v1.ProvisionCloudIdentityRequest\032\035.go"
+ + "ogle.longrunning.Operation\"g\312A\035\n\010Custome"
+ + "r\022\021OperationMetadata\202\323\344\223\002A\"\"9/v1/{name=accoun"
+ + "ts/*/customers/*/entitlements/*}:activat"
+ + "e:\001*\022\344\001\n\024TransferEntitlements\0224.google.c"
+ + "loud.channel.v1.TransferEntitlementsRequ"
+ + "est\032\035.google.longrunning.Operation\"w\312A1\n"
+ + "\034TransferEntitlementsResponse\022\021Operation"
+ + "Metadata\202\323\344\223\002=\"8/v1/{parent=accounts/*/c"
+ + "ustomers/*}:transferEntitlements:\001*\022\365\001\n\034"
+ + "TransferEntitlementsToGoogle\022<.google.cl"
+ + "oud.channel.v1.TransferEntitlementsToGoo"
+ + "gleRequest\032\035.google.longrunning.Operatio"
+ + "n\"x\312A*\n\025google.protobuf.Empty\022\021Operation"
+ + "Metadata\202\323\344\223\002E\"@/v1/{parent=accounts/*/c"
+ + "ustomers/*}:transferEntitlementsToGoogle"
+ + ":\001*\022\301\001\n\027ListChannelPartnerLinks\0227.google"
+ + ".cloud.channel.v1.ListChannelPartnerLink"
+ + "sRequest\0328.google.cloud.channel.v1.ListC"
+ + "hannelPartnerLinksResponse\"3\202\323\344\223\002-\022+/v1/"
+ + "{parent=accounts/*}/channelPartnerLinks\022"
+ + "\260\001\n\025GetChannelPartnerLink\0225.google.cloud"
+ + ".channel.v1.GetChannelPartnerLinkRequest"
+ + "\032+.google.cloud.channel.v1.ChannelPartne"
+ + "rLink\"3\202\323\344\223\002-\022+/v1/{name=accounts/*/chan"
+ + "nelPartnerLinks/*}\022\314\001\n\030CreateChannelPart"
+ + "nerLink\0228.google.cloud.channel.v1.Create"
+ + "ChannelPartnerLinkRequest\032+.google.cloud"
+ + ".channel.v1.ChannelPartnerLink\"I\202\323\344\223\002C\"+"
+ + "/v1/{parent=accounts/*}/channelPartnerLi"
+ + "nks:\024channel_partner_link\022\271\001\n\030UpdateChan"
+ + "nelPartnerLink\0228.google.cloud.channel.v1"
+ + ".UpdateChannelPartnerLinkRequest\032+.googl"
+ + "e.cloud.channel.v1.ChannelPartnerLink\"6\202"
+ + "\323\344\223\00202+/v1/{name=accounts/*/channelPartn"
+ + "erLinks/*}:\001*\022\327\001\n\032GetCustomerRepricingCo"
+ + "nfig\022:.google.cloud.channel.v1.GetCustom"
+ + "erRepricingConfigRequest\0320.google.cloud."
+ + "channel.v1.CustomerRepricingConfig\"K\332A\004n"
+ + "ame\202\323\344\223\002>\022\022*
+ * Represents a set of SKUs that must be purchased using the same billing
+ * account.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.SkuPurchaseGroup}
+ */
+public final class SkuPurchaseGroup extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.SkuPurchaseGroup)
+ SkuPurchaseGroupOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SkuPurchaseGroup.newBuilder() to construct.
+ private SkuPurchaseGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SkuPurchaseGroup() {
+ skus_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ billingAccountPurchaseInfos_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new SkuPurchaseGroup();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_SkuPurchaseGroup_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_SkuPurchaseGroup_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.SkuPurchaseGroup.class,
+ com.google.cloud.channel.v1.SkuPurchaseGroup.Builder.class);
+ }
+
+ public static final int SKUS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList skus_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @return A list containing the skus.
+ */
+ public com.google.protobuf.ProtocolStringList getSkusList() {
+ return skus_;
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @return The count of skus.
+ */
+ public int getSkusCount() {
+ return skus_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The skus at the given index.
+ */
+ public java.lang.String getSkus(int index) {
+ return skus_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the skus at the given index.
+ */
+ public com.google.protobuf.ByteString getSkusBytes(int index) {
+ return skus_.getByteString(index);
+ }
+
+ public static final int BILLING_ACCOUNT_PURCHASE_INFOS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List
+ billingAccountPurchaseInfos_;
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ getBillingAccountPurchaseInfosList() {
+ return billingAccountPurchaseInfos_;
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder>
+ getBillingAccountPurchaseInfosOrBuilderList() {
+ return billingAccountPurchaseInfos_;
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ @java.lang.Override
+ public int getBillingAccountPurchaseInfosCount() {
+ return billingAccountPurchaseInfos_.size();
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccountPurchaseInfo getBillingAccountPurchaseInfos(
+ int index) {
+ return billingAccountPurchaseInfos_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder
+ getBillingAccountPurchaseInfosOrBuilder(int index) {
+ return billingAccountPurchaseInfos_.get(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 {
+ for (int i = 0; i < skus_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, skus_.getRaw(i));
+ }
+ for (int i = 0; i < billingAccountPurchaseInfos_.size(); i++) {
+ output.writeMessage(2, billingAccountPurchaseInfos_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < skus_.size(); i++) {
+ dataSize += computeStringSizeNoTag(skus_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getSkusList().size();
+ }
+ for (int i = 0; i < billingAccountPurchaseInfos_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, billingAccountPurchaseInfos_.get(i));
+ }
+ 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.channel.v1.SkuPurchaseGroup)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.channel.v1.SkuPurchaseGroup other =
+ (com.google.cloud.channel.v1.SkuPurchaseGroup) obj;
+
+ if (!getSkusList().equals(other.getSkusList())) return false;
+ if (!getBillingAccountPurchaseInfosList().equals(other.getBillingAccountPurchaseInfosList()))
+ 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();
+ if (getSkusCount() > 0) {
+ hash = (37 * hash) + SKUS_FIELD_NUMBER;
+ hash = (53 * hash) + getSkusList().hashCode();
+ }
+ if (getBillingAccountPurchaseInfosCount() > 0) {
+ hash = (37 * hash) + BILLING_ACCOUNT_PURCHASE_INFOS_FIELD_NUMBER;
+ hash = (53 * hash) + getBillingAccountPurchaseInfosList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.channel.v1.SkuPurchaseGroup parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.SkuPurchaseGroup 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.channel.v1.SkuPurchaseGroup parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.SkuPurchaseGroup 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.channel.v1.SkuPurchaseGroup parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.channel.v1.SkuPurchaseGroup parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.channel.v1.SkuPurchaseGroup parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.SkuPurchaseGroup 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.channel.v1.SkuPurchaseGroup parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.SkuPurchaseGroup 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.channel.v1.SkuPurchaseGroup parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.channel.v1.SkuPurchaseGroup 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.channel.v1.SkuPurchaseGroup 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;
+ }
+ /**
+ *
+ *
+ *
+ * Represents a set of SKUs that must be purchased using the same billing
+ * account.
+ *
+ *
+ * Protobuf type {@code google.cloud.channel.v1.SkuPurchaseGroup}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.SkuPurchaseGroup)
+ com.google.cloud.channel.v1.SkuPurchaseGroupOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_SkuPurchaseGroup_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_SkuPurchaseGroup_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.channel.v1.SkuPurchaseGroup.class,
+ com.google.cloud.channel.v1.SkuPurchaseGroup.Builder.class);
+ }
+
+ // Construct using com.google.cloud.channel.v1.SkuPurchaseGroup.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ skus_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ billingAccountPurchaseInfos_ = java.util.Collections.emptyList();
+ } else {
+ billingAccountPurchaseInfos_ = null;
+ billingAccountPurchaseInfosBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.channel.v1.ServiceProto
+ .internal_static_google_cloud_channel_v1_SkuPurchaseGroup_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.SkuPurchaseGroup getDefaultInstanceForType() {
+ return com.google.cloud.channel.v1.SkuPurchaseGroup.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.SkuPurchaseGroup build() {
+ com.google.cloud.channel.v1.SkuPurchaseGroup result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.SkuPurchaseGroup buildPartial() {
+ com.google.cloud.channel.v1.SkuPurchaseGroup result =
+ new com.google.cloud.channel.v1.SkuPurchaseGroup(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.google.cloud.channel.v1.SkuPurchaseGroup result) {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ billingAccountPurchaseInfos_ =
+ java.util.Collections.unmodifiableList(billingAccountPurchaseInfos_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.billingAccountPurchaseInfos_ = billingAccountPurchaseInfos_;
+ } else {
+ result.billingAccountPurchaseInfos_ = billingAccountPurchaseInfosBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.google.cloud.channel.v1.SkuPurchaseGroup result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ skus_.makeImmutable();
+ result.skus_ = skus_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.channel.v1.SkuPurchaseGroup) {
+ return mergeFrom((com.google.cloud.channel.v1.SkuPurchaseGroup) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.channel.v1.SkuPurchaseGroup other) {
+ if (other == com.google.cloud.channel.v1.SkuPurchaseGroup.getDefaultInstance()) return this;
+ if (!other.skus_.isEmpty()) {
+ if (skus_.isEmpty()) {
+ skus_ = other.skus_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureSkusIsMutable();
+ skus_.addAll(other.skus_);
+ }
+ onChanged();
+ }
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ if (!other.billingAccountPurchaseInfos_.isEmpty()) {
+ if (billingAccountPurchaseInfos_.isEmpty()) {
+ billingAccountPurchaseInfos_ = other.billingAccountPurchaseInfos_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureBillingAccountPurchaseInfosIsMutable();
+ billingAccountPurchaseInfos_.addAll(other.billingAccountPurchaseInfos_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.billingAccountPurchaseInfos_.isEmpty()) {
+ if (billingAccountPurchaseInfosBuilder_.isEmpty()) {
+ billingAccountPurchaseInfosBuilder_.dispose();
+ billingAccountPurchaseInfosBuilder_ = null;
+ billingAccountPurchaseInfos_ = other.billingAccountPurchaseInfos_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ billingAccountPurchaseInfosBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getBillingAccountPurchaseInfosFieldBuilder()
+ : null;
+ } else {
+ billingAccountPurchaseInfosBuilder_.addAllMessages(other.billingAccountPurchaseInfos_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureSkusIsMutable();
+ skus_.add(s);
+ break;
+ } // case 10
+ case 18:
+ {
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo m =
+ input.readMessage(
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo.parser(),
+ extensionRegistry);
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ ensureBillingAccountPurchaseInfosIsMutable();
+ billingAccountPurchaseInfos_.add(m);
+ } else {
+ billingAccountPurchaseInfosBuilder_.addMessage(m);
+ }
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringArrayList skus_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureSkusIsMutable() {
+ if (!skus_.isModifiable()) {
+ skus_ = new com.google.protobuf.LazyStringArrayList(skus_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @return A list containing the skus.
+ */
+ public com.google.protobuf.ProtocolStringList getSkusList() {
+ skus_.makeImmutable();
+ return skus_;
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @return The count of skus.
+ */
+ public int getSkusCount() {
+ return skus_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The skus at the given index.
+ */
+ public java.lang.String getSkus(int index) {
+ return skus_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the skus at the given index.
+ */
+ public com.google.protobuf.ByteString getSkusBytes(int index) {
+ return skus_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @param index The index to set the value at.
+ * @param value The skus to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSkus(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkusIsMutable();
+ skus_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @param value The skus to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSkus(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkusIsMutable();
+ skus_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @param values The skus to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllSkus(java.lang.Iterable values) {
+ ensureSkusIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skus_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSkus() {
+ skus_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @param value The bytes of the skus to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSkusBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureSkusIsMutable();
+ skus_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ billingAccountPurchaseInfos_ = java.util.Collections.emptyList();
+
+ private void ensureBillingAccountPurchaseInfosIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ billingAccountPurchaseInfos_ =
+ new java.util.ArrayList(
+ billingAccountPurchaseInfos_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo,
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo.Builder,
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder>
+ billingAccountPurchaseInfosBuilder_;
+
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public java.util.List
+ getBillingAccountPurchaseInfosList() {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(billingAccountPurchaseInfos_);
+ } else {
+ return billingAccountPurchaseInfosBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public int getBillingAccountPurchaseInfosCount() {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ return billingAccountPurchaseInfos_.size();
+ } else {
+ return billingAccountPurchaseInfosBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public com.google.cloud.channel.v1.BillingAccountPurchaseInfo getBillingAccountPurchaseInfos(
+ int index) {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ return billingAccountPurchaseInfos_.get(index);
+ } else {
+ return billingAccountPurchaseInfosBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public Builder setBillingAccountPurchaseInfos(
+ int index, com.google.cloud.channel.v1.BillingAccountPurchaseInfo value) {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBillingAccountPurchaseInfosIsMutable();
+ billingAccountPurchaseInfos_.set(index, value);
+ onChanged();
+ } else {
+ billingAccountPurchaseInfosBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public Builder setBillingAccountPurchaseInfos(
+ int index, com.google.cloud.channel.v1.BillingAccountPurchaseInfo.Builder builderForValue) {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ ensureBillingAccountPurchaseInfosIsMutable();
+ billingAccountPurchaseInfos_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ billingAccountPurchaseInfosBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public Builder addBillingAccountPurchaseInfos(
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo value) {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBillingAccountPurchaseInfosIsMutable();
+ billingAccountPurchaseInfos_.add(value);
+ onChanged();
+ } else {
+ billingAccountPurchaseInfosBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public Builder addBillingAccountPurchaseInfos(
+ int index, com.google.cloud.channel.v1.BillingAccountPurchaseInfo value) {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBillingAccountPurchaseInfosIsMutable();
+ billingAccountPurchaseInfos_.add(index, value);
+ onChanged();
+ } else {
+ billingAccountPurchaseInfosBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public Builder addBillingAccountPurchaseInfos(
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo.Builder builderForValue) {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ ensureBillingAccountPurchaseInfosIsMutable();
+ billingAccountPurchaseInfos_.add(builderForValue.build());
+ onChanged();
+ } else {
+ billingAccountPurchaseInfosBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public Builder addBillingAccountPurchaseInfos(
+ int index, com.google.cloud.channel.v1.BillingAccountPurchaseInfo.Builder builderForValue) {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ ensureBillingAccountPurchaseInfosIsMutable();
+ billingAccountPurchaseInfos_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ billingAccountPurchaseInfosBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public Builder addAllBillingAccountPurchaseInfos(
+ java.lang.Iterable extends com.google.cloud.channel.v1.BillingAccountPurchaseInfo>
+ values) {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ ensureBillingAccountPurchaseInfosIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, billingAccountPurchaseInfos_);
+ onChanged();
+ } else {
+ billingAccountPurchaseInfosBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public Builder clearBillingAccountPurchaseInfos() {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ billingAccountPurchaseInfos_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ billingAccountPurchaseInfosBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public Builder removeBillingAccountPurchaseInfos(int index) {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ ensureBillingAccountPurchaseInfosIsMutable();
+ billingAccountPurchaseInfos_.remove(index);
+ onChanged();
+ } else {
+ billingAccountPurchaseInfosBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public com.google.cloud.channel.v1.BillingAccountPurchaseInfo.Builder
+ getBillingAccountPurchaseInfosBuilder(int index) {
+ return getBillingAccountPurchaseInfosFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder
+ getBillingAccountPurchaseInfosOrBuilder(int index) {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ return billingAccountPurchaseInfos_.get(index);
+ } else {
+ return billingAccountPurchaseInfosBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public java.util.List extends com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder>
+ getBillingAccountPurchaseInfosOrBuilderList() {
+ if (billingAccountPurchaseInfosBuilder_ != null) {
+ return billingAccountPurchaseInfosBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(billingAccountPurchaseInfos_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public com.google.cloud.channel.v1.BillingAccountPurchaseInfo.Builder
+ addBillingAccountPurchaseInfosBuilder() {
+ return getBillingAccountPurchaseInfosFieldBuilder()
+ .addBuilder(com.google.cloud.channel.v1.BillingAccountPurchaseInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public com.google.cloud.channel.v1.BillingAccountPurchaseInfo.Builder
+ addBillingAccountPurchaseInfosBuilder(int index) {
+ return getBillingAccountPurchaseInfosFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.channel.v1.BillingAccountPurchaseInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ public java.util.List
+ getBillingAccountPurchaseInfosBuilderList() {
+ return getBillingAccountPurchaseInfosFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo,
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo.Builder,
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder>
+ getBillingAccountPurchaseInfosFieldBuilder() {
+ if (billingAccountPurchaseInfosBuilder_ == null) {
+ billingAccountPurchaseInfosBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo,
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo.Builder,
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder>(
+ billingAccountPurchaseInfos_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ billingAccountPurchaseInfos_ = null;
+ }
+ return billingAccountPurchaseInfosBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.channel.v1.SkuPurchaseGroup)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.SkuPurchaseGroup)
+ private static final com.google.cloud.channel.v1.SkuPurchaseGroup DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.channel.v1.SkuPurchaseGroup();
+ }
+
+ public static com.google.cloud.channel.v1.SkuPurchaseGroup getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SkuPurchaseGroup parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.channel.v1.SkuPurchaseGroup getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/SkuPurchaseGroupOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/SkuPurchaseGroupOrBuilder.java
new file mode 100644
index 000000000000..ba00aa2cc802
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/SkuPurchaseGroupOrBuilder.java
@@ -0,0 +1,144 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/channel/v1/service.proto
+
+package com.google.cloud.channel.v1;
+
+public interface SkuPurchaseGroupOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.SkuPurchaseGroup)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @return A list containing the skus.
+ */
+ java.util.List getSkusList();
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @return The count of skus.
+ */
+ int getSkusCount();
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The skus at the given index.
+ */
+ java.lang.String getSkus(int index);
+ /**
+ *
+ *
+ *
+ * Resource names of the SKUs included in this group.
+ * Format: products/{product_id}/skus/{sku_id}.
+ *
+ *
+ * repeated string skus = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the skus at the given index.
+ */
+ com.google.protobuf.ByteString getSkusBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ java.util.List
+ getBillingAccountPurchaseInfosList();
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfo getBillingAccountPurchaseInfos(int index);
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ int getBillingAccountPurchaseInfosCount();
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ java.util.List extends com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder>
+ getBillingAccountPurchaseInfosOrBuilderList();
+ /**
+ *
+ *
+ *
+ * List of billing accounts that are eligible to purhcase these SKUs.
+ *
+ *
+ *
+ * repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+ *
+ */
+ com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder
+ getBillingAccountPurchaseInfosOrBuilder(int index);
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferEligibility.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferEligibility.java
index 3e5bb2849288..e319a9ecefd6 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferEligibility.java
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferEligibility.java
@@ -113,6 +113,17 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
* SKU_SUSPENDED = 3;
*/
SKU_SUSPENDED(3),
+ /**
+ *
+ *
+ *
+ * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
+ *
+ *
+ * CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU = 4;
+ */
+ CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU(4),
UNRECOGNIZED(-1),
;
@@ -156,6 +167,17 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
* SKU_SUSPENDED = 3;
*/
public static final int SKU_SUSPENDED_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * The reseller is not authorized to transact on this Product. See
+ * https://support.google.com/channelservices/answer/9759265
+ *
+ *
+ * CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU = 4;
+ */
+ public static final int CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -189,6 +211,8 @@ public static Reason forNumber(int value) {
return SKU_NOT_ELIGIBLE;
case 3:
return SKU_SUSPENDED;
+ case 4:
+ return CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU;
default:
return null;
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/billing_accounts.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/billing_accounts.proto
new file mode 100644
index 000000000000..7ab8ba006a6e
--- /dev/null
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/billing_accounts.proto
@@ -0,0 +1,51 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.channel.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb";
+option java_multiple_files = true;
+option java_outer_classname = "BillingAccountsProto";
+option java_package = "com.google.cloud.channel.v1";
+
+// Represents a billing account.
+message BillingAccount {
+ option (google.api.resource) = {
+ type: "cloudchannel.googleapis.com/BillingAccount"
+ pattern: "accounts/{account}/billingAccounts/{billing_account}"
+ };
+
+ // Output only. Resource name of the billing account.
+ // Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Display name of the billing account.
+ string display_name = 2;
+
+ // Output only. The time when this billing account was created.
+ google.protobuf.Timestamp create_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The 3-letter currency code defined in ISO 4217.
+ string currency_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The CLDR region code.
+ string region_code = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto
index 02ad3f55e9b0..304a07496596 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto
@@ -42,9 +42,9 @@ message Customer {
string org_display_name = 2 [(google.api.field_behavior) = REQUIRED];
// Required. The organization address for the customer. To enforce US laws and
- // embargoes, we require a region and zip code. You must provide valid
- // addresses for every customer. To set the customer's language, use the
- // Customer-level language code.
+ // embargoes, we require a region, postal code, and address lines. You must
+ // provide valid addresses for every customer. To set the customer's
+ // language, use the Customer-level language code.
google.type.PostalAddress org_postal_address = 3
[(google.api.field_behavior) = REQUIRED];
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto
index 82834312ceee..f0b168922c89 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto
@@ -175,7 +175,7 @@ message AssociationInfo {
message ProvisionedService {
// Output only. Provisioning ID of the entitlement. For Google Workspace, this
// is the underlying Subscription ID. For Google Cloud, this is the Billing
- // Account ID of the billing subaccount."
+ // Account ID of the billing subaccount.
string provisioning_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. The product pertaining to the provisioning resource as
@@ -262,6 +262,10 @@ message TransferEligibility {
// SKU subscription is suspended
SKU_SUSPENDED = 3;
+
+ // The reseller is not authorized to transact on this Product. See
+ // https://support.google.com/channelservices/answer/9759265
+ CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU = 4;
}
// Whether reseller is eligible to transfer the SKU.
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto
index 930925a5df9c..6f40198e03ee 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto
@@ -181,6 +181,9 @@ message ParameterDefinition {
// Double type.
DOUBLE = 3;
+
+ // Boolean type.
+ BOOLEAN = 4;
}
// Name of the parameter.
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto
index a88b1bc6619a..8553e77bdc54 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto
@@ -110,12 +110,26 @@ message RepricingConfig {
// Required. Defines the granularity for repricing.
oneof granularity {
- // Applies the repricing configuration at the entitlement level. This is
- // the only supported value for CustomerRepricingConfig.
+ // Applies the repricing configuration at the entitlement level.
+ //
+ // Note: If a
+ // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ // using
+ // [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
+ // becomes effective, then no existing or future
+ // [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
+ // will apply to the
+ // [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
+ // This is the recommended value for both
+ // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
+ // and
+ // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
EntitlementGranularity entitlement_granularity = 4;
// Applies the repricing configuration at the channel partner level.
- // This is the only supported value for ChannelPartnerRepricingConfig.
+ // Only
+ // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
+ // supports this value.
ChannelPartnerGranularity channel_partner_granularity = 5;
}
diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto
index eee63aea794a..98aa066f7374 100644
--- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto
+++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto
@@ -20,6 +20,7 @@ import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
+import "google/cloud/channel/v1/billing_accounts.proto";
import "google/cloud/channel/v1/channel_partner_links.proto";
import "google/cloud/channel/v1/common.proto";
import "google/cloud/channel/v1/customers.proto";
@@ -138,8 +139,11 @@ service CloudChannelService {
//
// Possible error codes:
//
- // * PERMISSION_DENIED: The reseller account making the request is different
- // from the reseller account in the API request.
+ // * PERMISSION_DENIED:
+ // * The reseller account making the request is different from the
+ // reseller account in the API request.
+ // * You are not authorized to create a customer. See
+ // https://support.google.com/channelservices/answer/9759265
// * INVALID_ARGUMENT:
// * Required request parameters are missing or invalid.
// * Domain field value doesn't match the primary email domain.
@@ -208,8 +212,11 @@ service CloudChannelService {
//
// Possible error codes:
//
- // * PERMISSION_DENIED: The reseller account making the request is different
- // from the reseller account in the API request.
+ // * PERMISSION_DENIED:
+ // * The reseller account making the request is different from the
+ // reseller account in the API request.
+ // * You are not authorized to import the customer. See
+ // https://support.google.com/channelservices/answer/9759265
// * NOT_FOUND: Cloud Identity doesn't exist or was deleted.
// * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is
// expired or invalid.
@@ -234,7 +241,10 @@ service CloudChannelService {
//
// Possible error codes:
//
- // * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ // * PERMISSION_DENIED:
+ // * The customer doesn't belong to the reseller.
+ // * You are not authorized to provision cloud identity id. See
+ // https://support.google.com/channelservices/answer/9759265
// * INVALID_ARGUMENT: Required request parameters are missing or invalid.
// * NOT_FOUND: The customer was not found.
// * ALREADY_EXISTS: The customer's primary email already exists. Retry
@@ -322,6 +332,8 @@ service CloudChannelService {
// auth token.
// * The reseller account making the request is different
// from the reseller account in the query.
+ // * The reseller is not authorized to transact on this Product. See
+ // https://support.google.com/channelservices/answer/9759265
// * INVALID_ARGUMENT: Required request parameters are missing or invalid.
//
// Return value:
@@ -356,7 +368,10 @@ service CloudChannelService {
//
// Possible error codes:
//
- // * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ // * PERMISSION_DENIED:
+ // * The customer doesn't belong to the reseller.
+ // * The reseller is not authorized to transact on this Product. See
+ // https://support.google.com/channelservices/answer/9759265
// * INVALID_ARGUMENT:
// * Required request parameters are missing or invalid.
// * There is already a customer entitlement for a SKU from the same
@@ -652,7 +667,10 @@ service CloudChannelService {
//
// Possible error codes:
//
- // * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ // * PERMISSION_DENIED:
+ // * The customer doesn't belong to the reseller.
+ // * The reseller is not authorized to transact on this Product. See
+ // https://support.google.com/channelservices/answer/9759265
// * INVALID_ARGUMENT: Required request parameters are missing or invalid.
// * NOT_FOUND: The customer or offer resource was not found.
// * ALREADY_EXISTS: The SKU was already transferred for the customer.
@@ -907,12 +925,12 @@ service CloudChannelService {
// * The new config will not modify exports used with other configs.
// Changes to the config may be immediate, but may take up to 24 hours.
// * There is a limit of ten configs for any
- // [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]
- // or
+ // [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement],
+ // for any
// [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
// * The contained
// [CustomerRepricingConfig.repricing_config][google.cloud.channel.v1.CustomerRepricingConfig.repricing_config]
- // vaule must be different from the value used in the current config for a
+ // value must be different from the value used in the current config for a
// [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
//
// Possible Error Codes:
@@ -1083,10 +1101,12 @@ service CloudChannelService {
// * The new config will not modify exports used with other configs.
// Changes to the config may be immediate, but may take up to 24 hours.
// * There is a limit of ten configs for any ChannelPartner or
+ // [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement],
+ // for any
// [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
// * The contained
// [ChannelPartnerRepricingConfig.repricing_config][google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config]
- // vaule must be different from the value used in the current config for a
+ // value must be different from the value used in the current config for a
// ChannelPartner.
//
// Possible Error Codes:
@@ -1310,7 +1330,10 @@ service CloudChannelService {
//
// Possible error codes:
//
- // * PERMISSION_DENIED: The customer doesn't belong to the reseller
+ // * PERMISSION_DENIED:
+ // * The customer doesn't belong to the reseller
+ // * The reseller is not authorized to transact on this Product. See
+ // https://support.google.com/channelservices/answer/9759265
// * INVALID_ARGUMENT: Required request parameters are missing or invalid.
rpc ListPurchasableOffers(ListPurchasableOffersRequest)
returns (ListPurchasableOffersResponse) {
@@ -1319,6 +1342,25 @@ service CloudChannelService {
};
}
+ // Lists the billing accounts that are eligible to purchase particular SKUs
+ // for a given customer.
+ //
+ // Possible error codes:
+ //
+ // * PERMISSION_DENIED: The customer doesn't belong to the reseller.
+ // * INVALID_ARGUMENT: Required request parameters are missing or invalid.
+ //
+ // Return value:
+ // Based on the provided list of SKUs, returns a list of SKU groups that must
+ // be purchased using the same billing account and the billing accounts
+ // eligible to purchase each SKU group.
+ rpc QueryEligibleBillingAccounts(QueryEligibleBillingAccountsRequest)
+ returns (QueryEligibleBillingAccountsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{customer=accounts/*/customers/*}:queryEligibleBillingAccounts"
+ };
+ }
+
// Registers a service account with subscriber privileges on the Cloud Pub/Sub
// topic for this Channel Services account. After you create a
// subscriber, you get the events through
@@ -1757,6 +1799,13 @@ message ListTransferableOffersRequest {
// response will localize in the corresponding language code, if specified.
// The default value is "en-US".
string language_code = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The Billing Account to look up Offers for. Format:
+ // accounts/{account_id}/billingAccounts/{billing_account_id}.
+ //
+ // This field is only relevant for multi-currency accounts. It should be left
+ // empty for single currency accounts.
+ string billing_account = 8 [(google.api.field_behavior) = OPTIONAL];
}
// Response message for
@@ -2389,6 +2438,13 @@ message ChangeOfferRequest {
// with the exception that zero UUID is not supported
// (`00000000-0000-0000-0000-000000000000`).
string request_id = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The billing account resource name that is used to pay for this
+ // entitlement when setting up billing on a trial subscription.
+ //
+ // This field is only relevant for multi-currency accounts. It should be
+ // left empty for single currency accounts.
+ string billing_account = 7 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
@@ -2698,6 +2754,10 @@ message ListPurchasableOffersRequest {
// Required. SKU that the result should be restricted to.
// Format: products/{product_id}/skus/{sku_id}.
string sku = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Billing account that the result should be restricted to.
+ // Format: accounts/{account_id}/billingAccounts/{billing_account_id}.
+ string billing_account = 2 [(google.api.field_behavior) = OPTIONAL];
}
// List Offers for ChangeOffer purchase.
@@ -2711,6 +2771,14 @@ message ListPurchasableOffersRequest {
// upgrading or downgrading an entitlement. Format:
// products/{product_id}/skus/{sku_id}
string new_sku = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Resource name of the new target Billing Account. Provide this
+ // Billing Account when setting up billing for a trial subscription. Format:
+ // accounts/{account_id}/billingAccounts/{billing_account_id}.
+ //
+ // This field is only relevant for multi-currency accounts. It should be
+ // left empty for single currency accounts.
+ string billing_account = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Defines the intended purchase.
@@ -2761,6 +2829,48 @@ message PurchasableOffer {
Offer offer = 1;
}
+// Request message for QueryEligibleBillingAccounts.
+message QueryEligibleBillingAccountsRequest {
+ // Required. The resource name of the customer to list eligible billing
+ // accounts for. Format: accounts/{account_id}/customers/{customer_id}.
+ string customer = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudchannel.googleapis.com/Customer"
+ }
+ ];
+
+ // Required. List of SKUs to list eligible billing accounts for. At least one
+ // SKU is required. Format: products/{product_id}/skus/{sku_id}.
+ repeated string skus = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response message for QueryEligibleBillingAccounts.
+message QueryEligibleBillingAccountsResponse {
+ // List of SKU purchase groups where each group represents a set of SKUs that
+ // must be purchased using the same billing account. Each SKU from
+ // [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
+ // group.
+ repeated SkuPurchaseGroup sku_purchase_groups = 1;
+}
+
+// Represents a set of SKUs that must be purchased using the same billing
+// account.
+message SkuPurchaseGroup {
+ // Resource names of the SKUs included in this group.
+ // Format: products/{product_id}/skus/{sku_id}.
+ repeated string skus = 1;
+
+ // List of billing accounts that are eligible to purhcase these SKUs.
+ repeated BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
+}
+
+// Represents a billing account that can be used to make a purchase.
+message BillingAccountPurchaseInfo {
+ // The billing account resource.
+ BillingAccount billing_account = 1;
+}
+
// Request Message for RegisterSubscriber.
message RegisterSubscriberRequest {
// Required. Resource name of the account.
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java
index 8444eeac4487..0f28e5f710f6 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java
@@ -45,6 +45,7 @@ public static void asyncChangeOffer() throws Exception {
.addAllParameters(new ArrayList())
.setPurchaseOrderId("purchaseOrderId2029917384")
.setRequestId("requestId693933066")
+ .setBillingAccount("billingAccount708726578")
.build();
ApiFuture future =
cloudChannelServiceClient.changeOfferCallable().futureCall(request);
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java
index 290f1558e6e1..a0407b6dd2c9 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java
@@ -46,6 +46,7 @@ public static void asyncChangeOfferLRO() throws Exception {
.addAllParameters(new ArrayList())
.setPurchaseOrderId("purchaseOrderId2029917384")
.setRequestId("requestId693933066")
+ .setBillingAccount("billingAccount708726578")
.build();
OperationFuture future =
cloudChannelServiceClient.changeOfferOperationCallable().futureCall(request);
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java
index 570ce8810ee7..ca4813729eca 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java
@@ -44,6 +44,7 @@ public static void syncChangeOffer() throws Exception {
.addAllParameters(new ArrayList())
.setPurchaseOrderId("purchaseOrderId2029917384")
.setRequestId("requestId693933066")
+ .setBillingAccount("billingAccount708726578")
.build();
Entitlement response = cloudChannelServiceClient.changeOfferAsync(request).get();
}
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/AsyncListTransferableOffers.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/AsyncListTransferableOffers.java
index befb57dd74c5..be813403b389 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/AsyncListTransferableOffers.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/AsyncListTransferableOffers.java
@@ -42,6 +42,7 @@ public static void asyncListTransferableOffers() throws Exception {
.setPageToken("pageToken873572522")
.setSku("sku113949")
.setLanguageCode("languageCode-2092349083")
+ .setBillingAccount("billingAccount708726578")
.build();
ApiFuture future =
cloudChannelServiceClient.listTransferableOffersPagedCallable().futureCall(request);
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/AsyncListTransferableOffersPaged.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/AsyncListTransferableOffersPaged.java
index a15324f153bb..8c75df2cb02c 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/AsyncListTransferableOffersPaged.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/AsyncListTransferableOffersPaged.java
@@ -43,6 +43,7 @@ public static void asyncListTransferableOffersPaged() throws Exception {
.setPageToken("pageToken873572522")
.setSku("sku113949")
.setLanguageCode("languageCode-2092349083")
+ .setBillingAccount("billingAccount708726578")
.build();
while (true) {
ListTransferableOffersResponse response =
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/SyncListTransferableOffers.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/SyncListTransferableOffers.java
index fb4fd25f7e1e..0ae2a8b3d6ff 100644
--- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/SyncListTransferableOffers.java
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listtransferableoffers/SyncListTransferableOffers.java
@@ -41,6 +41,7 @@ public static void syncListTransferableOffers() throws Exception {
.setPageToken("pageToken873572522")
.setSku("sku113949")
.setLanguageCode("languageCode-2092349083")
+ .setBillingAccount("billingAccount708726578")
.build();
for (TransferableOffer element :
cloudChannelServiceClient.listTransferableOffers(request).iterateAll()) {
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/queryeligiblebillingaccounts/AsyncQueryEligibleBillingAccounts.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/queryeligiblebillingaccounts/AsyncQueryEligibleBillingAccounts.java
new file mode 100644
index 000000000000..fa41843565b0
--- /dev/null
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/queryeligiblebillingaccounts/AsyncQueryEligibleBillingAccounts.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.channel.v1.samples;
+
+// [START cloudchannel_v1_generated_CloudChannelService_QueryEligibleBillingAccounts_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.channel.v1.CloudChannelServiceClient;
+import com.google.cloud.channel.v1.CustomerName;
+import com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest;
+import com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse;
+import java.util.ArrayList;
+
+public class AsyncQueryEligibleBillingAccounts {
+
+ public static void main(String[] args) throws Exception {
+ asyncQueryEligibleBillingAccounts();
+ }
+
+ public static void asyncQueryEligibleBillingAccounts() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
+ QueryEligibleBillingAccountsRequest request =
+ QueryEligibleBillingAccountsRequest.newBuilder()
+ .setCustomer(CustomerName.of("[ACCOUNT]", "[CUSTOMER]").toString())
+ .addAllSkus(new ArrayList())
+ .build();
+ ApiFuture future =
+ cloudChannelServiceClient.queryEligibleBillingAccountsCallable().futureCall(request);
+ // Do something.
+ QueryEligibleBillingAccountsResponse response = future.get();
+ }
+ }
+}
+// [END cloudchannel_v1_generated_CloudChannelService_QueryEligibleBillingAccounts_async]
diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/queryeligiblebillingaccounts/SyncQueryEligibleBillingAccounts.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/queryeligiblebillingaccounts/SyncQueryEligibleBillingAccounts.java
new file mode 100644
index 000000000000..f7a520a393e1
--- /dev/null
+++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/queryeligiblebillingaccounts/SyncQueryEligibleBillingAccounts.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.channel.v1.samples;
+
+// [START cloudchannel_v1_generated_CloudChannelService_QueryEligibleBillingAccounts_sync]
+import com.google.cloud.channel.v1.CloudChannelServiceClient;
+import com.google.cloud.channel.v1.CustomerName;
+import com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest;
+import com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse;
+import java.util.ArrayList;
+
+public class SyncQueryEligibleBillingAccounts {
+
+ public static void main(String[] args) throws Exception {
+ syncQueryEligibleBillingAccounts();
+ }
+
+ public static void syncQueryEligibleBillingAccounts() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
+ QueryEligibleBillingAccountsRequest request =
+ QueryEligibleBillingAccountsRequest.newBuilder()
+ .setCustomer(CustomerName.of("[ACCOUNT]", "[CUSTOMER]").toString())
+ .addAllSkus(new ArrayList())
+ .build();
+ QueryEligibleBillingAccountsResponse response =
+ cloudChannelServiceClient.queryEligibleBillingAccounts(request);
+ }
+ }
+}
+// [END cloudchannel_v1_generated_CloudChannelService_QueryEligibleBillingAccounts_sync]