public class CloudChannelServiceStubSettings extends StubSettings<CloudChannelServiceStubSettings>
Settings class to configure an instance of CloudChannelServiceStub.
The default instance has everything set to sensible defaults:
- The default service address (cloudchannel.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
The builder of this class is recursive, so contained classes are themselves builders. When
build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of getCustomer to 30 seconds:
// 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
CloudChannelServiceStubSettings.Builder cloudChannelServiceSettingsBuilder =
CloudChannelServiceStubSettings.newBuilder();
cloudChannelServiceSettingsBuilder
.getCustomerSettings()
.setRetrySettings(
cloudChannelServiceSettingsBuilder.getCustomerSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
CloudChannelServiceStubSettings cloudChannelServiceSettings =
cloudChannelServiceSettingsBuilder.build();
Static Methods
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Returns
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Returns
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Returns
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Returns
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
Returns
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returns
newBuilder()
public static CloudChannelServiceStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns
newBuilder(ClientContext clientContext)
public static CloudChannelServiceStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter
Returns
newHttpJsonBuilder()
public static CloudChannelServiceStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns
Constructors
CloudChannelServiceStubSettings(CloudChannelServiceStubSettings.Builder settingsBuilder)
protected CloudChannelServiceStubSettings(CloudChannelServiceStubSettings.Builder settingsBuilder)
Parameter
Methods
activateEntitlementOperationSettings()
public OperationCallSettings<ActivateEntitlementRequest,Entitlement,OperationMetadata> activateEntitlementOperationSettings()
Returns the object with the settings used for calls to activateEntitlement.
Returns
activateEntitlementSettings()
public UnaryCallSettings<ActivateEntitlementRequest,Operation> activateEntitlementSettings()
Returns the object with the settings used for calls to activateEntitlement.
Returns
cancelEntitlementOperationSettings()
public OperationCallSettings<CancelEntitlementRequest,Empty,OperationMetadata> cancelEntitlementOperationSettings()
Returns the object with the settings used for calls to cancelEntitlement.
Returns
cancelEntitlementSettings()
public UnaryCallSettings<CancelEntitlementRequest,Operation> cancelEntitlementSettings()
Returns the object with the settings used for calls to cancelEntitlement.
Returns
changeOfferOperationSettings()
public OperationCallSettings<ChangeOfferRequest,Entitlement,OperationMetadata> changeOfferOperationSettings()
Returns the object with the settings used for calls to changeOffer.
Returns
changeOfferSettings()
public UnaryCallSettings<ChangeOfferRequest,Operation> changeOfferSettings()
Returns the object with the settings used for calls to changeOffer.
Returns
changeParametersOperationSettings()
public OperationCallSettings<ChangeParametersRequest,Entitlement,OperationMetadata> changeParametersOperationSettings()
Returns the object with the settings used for calls to changeParameters.
Returns
public UnaryCallSettings<ChangeParametersRequest,Operation> changeParametersSettings()
Returns the object with the settings used for calls to changeParameters.
Returns
changeRenewalSettingsOperationSettings()
public OperationCallSettings<ChangeRenewalSettingsRequest,Entitlement,OperationMetadata> changeRenewalSettingsOperationSettings()
Returns the object with the settings used for calls to changeRenewalSettings.
Returns
changeRenewalSettingsSettings()
public UnaryCallSettings<ChangeRenewalSettingsRequest,Operation> changeRenewalSettingsSettings()
Returns the object with the settings used for calls to changeRenewalSettings.
Returns
checkCloudIdentityAccountsExistSettings()
public UnaryCallSettings<CheckCloudIdentityAccountsExistRequest,CheckCloudIdentityAccountsExistResponse> checkCloudIdentityAccountsExistSettings()
Returns the object with the settings used for calls to checkCloudIdentityAccountsExist.
Returns
createChannelPartnerLinkSettings()
public UnaryCallSettings<CreateChannelPartnerLinkRequest,ChannelPartnerLink> createChannelPartnerLinkSettings()
Returns the object with the settings used for calls to createChannelPartnerLink.
Returns
createChannelPartnerRepricingConfigSettings()
public UnaryCallSettings<CreateChannelPartnerRepricingConfigRequest,ChannelPartnerRepricingConfig> createChannelPartnerRepricingConfigSettings()
Returns the object with the settings used for calls to createChannelPartnerRepricingConfig.
Returns
createCustomerRepricingConfigSettings()
public UnaryCallSettings<CreateCustomerRepricingConfigRequest,CustomerRepricingConfig> createCustomerRepricingConfigSettings()
Returns the object with the settings used for calls to createCustomerRepricingConfig.
Returns
createCustomerSettings()
public UnaryCallSettings<CreateCustomerRequest,Customer> createCustomerSettings()
Returns the object with the settings used for calls to createCustomer.
Returns
createEntitlementOperationSettings()
public OperationCallSettings<CreateEntitlementRequest,Entitlement,OperationMetadata> createEntitlementOperationSettings()
Returns the object with the settings used for calls to createEntitlement.
Returns
createEntitlementSettings()
public UnaryCallSettings<CreateEntitlementRequest,Operation> createEntitlementSettings()
Returns the object with the settings used for calls to createEntitlement.
Returns
createStub()
public CloudChannelServiceStub createStub()
Returns
Exceptions
deleteChannelPartnerRepricingConfigSettings()
public UnaryCallSettings<DeleteChannelPartnerRepricingConfigRequest,Empty> deleteChannelPartnerRepricingConfigSettings()
Returns the object with the settings used for calls to deleteChannelPartnerRepricingConfig.
Returns
deleteCustomerRepricingConfigSettings()
public UnaryCallSettings<DeleteCustomerRepricingConfigRequest,Empty> deleteCustomerRepricingConfigSettings()
Returns the object with the settings used for calls to deleteCustomerRepricingConfig.
Returns
deleteCustomerSettings()
public UnaryCallSettings<DeleteCustomerRequest,Empty> deleteCustomerSettings()
Returns the object with the settings used for calls to deleteCustomer.
Returns
getChannelPartnerLinkSettings()
public UnaryCallSettings<GetChannelPartnerLinkRequest,ChannelPartnerLink> getChannelPartnerLinkSettings()
Returns the object with the settings used for calls to getChannelPartnerLink.
Returns
getChannelPartnerRepricingConfigSettings()
public UnaryCallSettings<GetChannelPartnerRepricingConfigRequest,ChannelPartnerRepricingConfig> getChannelPartnerRepricingConfigSettings()
Returns the object with the settings used for calls to getChannelPartnerRepricingConfig.
Returns
getCustomerRepricingConfigSettings()
public UnaryCallSettings<GetCustomerRepricingConfigRequest,CustomerRepricingConfig> getCustomerRepricingConfigSettings()
Returns the object with the settings used for calls to getCustomerRepricingConfig.
Returns
getCustomerSettings()
public UnaryCallSettings<GetCustomerRequest,Customer> getCustomerSettings()
Returns the object with the settings used for calls to getCustomer.
Returns
getEntitlementSettings()
public UnaryCallSettings<GetEntitlementRequest,Entitlement> getEntitlementSettings()
Returns the object with the settings used for calls to getEntitlement.
Returns
importCustomerSettings()
public UnaryCallSettings<ImportCustomerRequest,Customer> importCustomerSettings()
Returns the object with the settings used for calls to importCustomer.
Returns
listChannelPartnerLinksSettings()
public PagedCallSettings<ListChannelPartnerLinksRequest,ListChannelPartnerLinksResponse,CloudChannelServiceClient.ListChannelPartnerLinksPagedResponse> listChannelPartnerLinksSettings()
Returns the object with the settings used for calls to listChannelPartnerLinks.
Returns
listChannelPartnerRepricingConfigsSettings()
public PagedCallSettings<ListChannelPartnerRepricingConfigsRequest,ListChannelPartnerRepricingConfigsResponse,CloudChannelServiceClient.ListChannelPartnerRepricingConfigsPagedResponse> listChannelPartnerRepricingConfigsSettings()
Returns the object with the settings used for calls to listChannelPartnerRepricingConfigs.
Returns
listCustomerRepricingConfigsSettings()
public PagedCallSettings<ListCustomerRepricingConfigsRequest,ListCustomerRepricingConfigsResponse,CloudChannelServiceClient.ListCustomerRepricingConfigsPagedResponse> listCustomerRepricingConfigsSettings()
Returns the object with the settings used for calls to listCustomerRepricingConfigs.
Returns
public PagedCallSettings<ListCustomersRequest,ListCustomersResponse,CloudChannelServiceClient.ListCustomersPagedResponse> listCustomersSettings()
Returns the object with the settings used for calls to listCustomers.
Returns
listEntitlementsSettings()
public PagedCallSettings<ListEntitlementsRequest,ListEntitlementsResponse,CloudChannelServiceClient.ListEntitlementsPagedResponse> listEntitlementsSettings()
Returns the object with the settings used for calls to listEntitlements.
Returns
public PagedCallSettings<ListOffersRequest,ListOffersResponse,CloudChannelServiceClient.ListOffersPagedResponse> listOffersSettings()
Returns the object with the settings used for calls to listOffers.
Returns
listProductsSettings()
public PagedCallSettings<ListProductsRequest,ListProductsResponse,CloudChannelServiceClient.ListProductsPagedResponse> listProductsSettings()
Returns the object with the settings used for calls to listProducts.
Returns
public PagedCallSettings<ListPurchasableOffersRequest,ListPurchasableOffersResponse,CloudChannelServiceClient.ListPurchasableOffersPagedResponse> listPurchasableOffersSettings()
Returns the object with the settings used for calls to listPurchasableOffers.
Returns
listPurchasableSkusSettings()
public PagedCallSettings<ListPurchasableSkusRequest,ListPurchasableSkusResponse,CloudChannelServiceClient.ListPurchasableSkusPagedResponse> listPurchasableSkusSettings()
Returns the object with the settings used for calls to listPurchasableSkus.
Returns
listSkusSettings()
public PagedCallSettings<ListSkusRequest,ListSkusResponse,CloudChannelServiceClient.ListSkusPagedResponse> listSkusSettings()
Returns the object with the settings used for calls to listSkus.
Returns
public PagedCallSettings<ListSubscribersRequest,ListSubscribersResponse,CloudChannelServiceClient.ListSubscribersPagedResponse> listSubscribersSettings()
Returns the object with the settings used for calls to listSubscribers.
Returns
public PagedCallSettings<ListTransferableOffersRequest,ListTransferableOffersResponse,CloudChannelServiceClient.ListTransferableOffersPagedResponse> listTransferableOffersSettings()
Returns the object with the settings used for calls to listTransferableOffers.
Returns
listTransferableSkusSettings()
public PagedCallSettings<ListTransferableSkusRequest,ListTransferableSkusResponse,CloudChannelServiceClient.ListTransferableSkusPagedResponse> listTransferableSkusSettings()
Returns the object with the settings used for calls to listTransferableSkus.
Returns
lookupOfferSettings()
public UnaryCallSettings<LookupOfferRequest,Offer> lookupOfferSettings()
Returns the object with the settings used for calls to lookupOffer.
Returns
provisionCloudIdentityOperationSettings()
public OperationCallSettings<ProvisionCloudIdentityRequest,Customer,OperationMetadata> provisionCloudIdentityOperationSettings()
Returns the object with the settings used for calls to provisionCloudIdentity.
Returns
provisionCloudIdentitySettings()
public UnaryCallSettings<ProvisionCloudIdentityRequest,Operation> provisionCloudIdentitySettings()
Returns the object with the settings used for calls to provisionCloudIdentity.
Returns
registerSubscriberSettings()
public UnaryCallSettings<RegisterSubscriberRequest,RegisterSubscriberResponse> registerSubscriberSettings()
Returns the object with the settings used for calls to registerSubscriber.
Returns
startPaidServiceOperationSettings()
public OperationCallSettings<StartPaidServiceRequest,Entitlement,OperationMetadata> startPaidServiceOperationSettings()
Returns the object with the settings used for calls to startPaidService.
Returns
startPaidServiceSettings()
public UnaryCallSettings<StartPaidServiceRequest,Operation> startPaidServiceSettings()
Returns the object with the settings used for calls to startPaidService.
Returns
suspendEntitlementOperationSettings()
public OperationCallSettings<SuspendEntitlementRequest,Entitlement,OperationMetadata> suspendEntitlementOperationSettings()
Returns the object with the settings used for calls to suspendEntitlement.
Returns
suspendEntitlementSettings()
public UnaryCallSettings<SuspendEntitlementRequest,Operation> suspendEntitlementSettings()
Returns the object with the settings used for calls to suspendEntitlement.
Returns
toBuilder()
public CloudChannelServiceStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Returns
Overrides
transferEntitlementsOperationSettings()
public OperationCallSettings<TransferEntitlementsRequest,TransferEntitlementsResponse,OperationMetadata> transferEntitlementsOperationSettings()
Returns the object with the settings used for calls to transferEntitlements.
Returns
transferEntitlementsSettings()
public UnaryCallSettings<TransferEntitlementsRequest,Operation> transferEntitlementsSettings()
Returns the object with the settings used for calls to transferEntitlements.
Returns
transferEntitlementsToGoogleOperationSettings()
public OperationCallSettings<TransferEntitlementsToGoogleRequest,Empty,OperationMetadata> transferEntitlementsToGoogleOperationSettings()
Returns the object with the settings used for calls to transferEntitlementsToGoogle.
Returns
transferEntitlementsToGoogleSettings()
public UnaryCallSettings<TransferEntitlementsToGoogleRequest,Operation> transferEntitlementsToGoogleSettings()
Returns the object with the settings used for calls to transferEntitlementsToGoogle.
Returns
unregisterSubscriberSettings()
public UnaryCallSettings<UnregisterSubscriberRequest,UnregisterSubscriberResponse> unregisterSubscriberSettings()
Returns the object with the settings used for calls to unregisterSubscriber.
Returns
updateChannelPartnerLinkSettings()
public UnaryCallSettings<UpdateChannelPartnerLinkRequest,ChannelPartnerLink> updateChannelPartnerLinkSettings()
Returns the object with the settings used for calls to updateChannelPartnerLink.
Returns
updateChannelPartnerRepricingConfigSettings()
public UnaryCallSettings<UpdateChannelPartnerRepricingConfigRequest,ChannelPartnerRepricingConfig> updateChannelPartnerRepricingConfigSettings()
Returns the object with the settings used for calls to updateChannelPartnerRepricingConfig.
Returns
updateCustomerRepricingConfigSettings()
public UnaryCallSettings<UpdateCustomerRepricingConfigRequest,CustomerRepricingConfig> updateCustomerRepricingConfigSettings()
Returns the object with the settings used for calls to updateCustomerRepricingConfig.
Returns
updateCustomerSettings()
public UnaryCallSettings<UpdateCustomerRequest,Customer> updateCustomerSettings()
Returns the object with the settings used for calls to updateCustomer.
Returns