Class DomainsStubSettings


  • @BetaApi
    @Generated("by gapic-generator-java")
    public class DomainsStubSettings
    extends com.google.api.gax.rpc.StubSettings<DomainsStubSettings>
    Settings class to configure an instance of DomainsStub.

    The default instance has everything set to sensible defaults:

    • The default service address (domains.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 searchDomains 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
     DomainsStubSettings.Builder domainsSettingsBuilder = DomainsStubSettings.newBuilder();
     domainsSettingsBuilder
         .searchDomainsSettings()
         .setRetrySettings(
             domainsSettingsBuilder
                 .searchDomainsSettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     DomainsStubSettings domainsSettings = domainsSettingsBuilder.build();
     
    • Method Detail

      • searchDomainsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SearchDomainsRequest,​SearchDomainsResponse> searchDomainsSettings()
        Returns the object with the settings used for calls to searchDomains.
      • registerDomainSettings

        public com.google.api.gax.rpc.UnaryCallSettings<RegisterDomainRequest,​com.google.longrunning.Operation> registerDomainSettings()
        Returns the object with the settings used for calls to registerDomain.
      • registerDomainOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<RegisterDomainRequest,​Registration,​OperationMetadata> registerDomainOperationSettings()
        Returns the object with the settings used for calls to registerDomain.
      • transferDomainSettings

        public com.google.api.gax.rpc.UnaryCallSettings<TransferDomainRequest,​com.google.longrunning.Operation> transferDomainSettings()
        Returns the object with the settings used for calls to transferDomain.
      • transferDomainOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<TransferDomainRequest,​Registration,​OperationMetadata> transferDomainOperationSettings()
        Returns the object with the settings used for calls to transferDomain.
      • getRegistrationSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetRegistrationRequest,​Registration> getRegistrationSettings()
        Returns the object with the settings used for calls to getRegistration.
      • updateRegistrationSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateRegistrationRequest,​com.google.longrunning.Operation> updateRegistrationSettings()
        Returns the object with the settings used for calls to updateRegistration.
      • configureManagementSettingsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ConfigureManagementSettingsRequest,​com.google.longrunning.Operation> configureManagementSettingsSettings()
        Returns the object with the settings used for calls to configureManagementSettings.
      • configureDnsSettingsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ConfigureDnsSettingsRequest,​com.google.longrunning.Operation> configureDnsSettingsSettings()
        Returns the object with the settings used for calls to configureDnsSettings.
      • configureContactSettingsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ConfigureContactSettingsRequest,​com.google.longrunning.Operation> configureContactSettingsSettings()
        Returns the object with the settings used for calls to configureContactSettings.
      • exportRegistrationSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ExportRegistrationRequest,​com.google.longrunning.Operation> exportRegistrationSettings()
        Returns the object with the settings used for calls to exportRegistration.
      • deleteRegistrationSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteRegistrationRequest,​com.google.longrunning.Operation> deleteRegistrationSettings()
        Returns the object with the settings used for calls to deleteRegistration.
      • deleteRegistrationOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteRegistrationRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteRegistrationOperationSettings()
        Returns the object with the settings used for calls to deleteRegistration.
      • retrieveAuthorizationCodeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<RetrieveAuthorizationCodeRequest,​AuthorizationCode> retrieveAuthorizationCodeSettings()
        Returns the object with the settings used for calls to retrieveAuthorizationCode.
      • resetAuthorizationCodeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ResetAuthorizationCodeRequest,​AuthorizationCode> resetAuthorizationCodeSettings()
        Returns the object with the settings used for calls to resetAuthorizationCode.
      • defaultExecutorProviderBuilder

        public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
        Returns a builder for the default ExecutorProvider for this service.
      • getDefaultEndpoint

        public static String getDefaultEndpoint()
        Returns the default service endpoint.
      • getDefaultMtlsEndpoint

        public static String getDefaultMtlsEndpoint()
        Returns the default mTLS service endpoint.
      • getDefaultServiceScopes

        public static List<String> getDefaultServiceScopes()
        Returns the default service scopes.
      • defaultCredentialsProviderBuilder

        public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
        Returns a builder for the default credentials for this service.
      • defaultGrpcTransportProviderBuilder

        public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
        Returns a builder for the default gRPC ChannelProvider for this service.
      • defaultHttpJsonTransportProviderBuilder

        @BetaApi
        public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
        Returns a builder for the default REST ChannelProvider for this service.
      • defaultTransportChannelProvider

        public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
      • defaultGrpcApiClientHeaderProviderBuilder

        @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
        public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
      • defaultHttpJsonApiClientHeaderProviderBuilder

        @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
        public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
      • defaultApiClientHeaderProviderBuilder

        public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
      • newBuilder

        public static DomainsStubSettings.Builder newBuilder​(com.google.api.gax.rpc.ClientContext clientContext)
        Returns a new builder for this class.