Class ApiGatewayServiceSettings


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

    The default instance has everything set to sensible defaults:

    • The default service address (apigateway.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 getGateway 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
     ApiGatewayServiceSettings.Builder apiGatewayServiceSettingsBuilder =
         ApiGatewayServiceSettings.newBuilder();
     apiGatewayServiceSettingsBuilder
         .getGatewaySettings()
         .setRetrySettings(
             apiGatewayServiceSettingsBuilder
                 .getGatewaySettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     ApiGatewayServiceSettings apiGatewayServiceSettings = apiGatewayServiceSettingsBuilder.build();
     
    • Method Detail

      • getGatewaySettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetGatewayRequest,​Gateway> getGatewaySettings()
        Returns the object with the settings used for calls to getGateway.
      • createGatewaySettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateGatewayRequest,​com.google.longrunning.Operation> createGatewaySettings()
        Returns the object with the settings used for calls to createGateway.
      • createGatewayOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateGatewayRequest,​Gateway,​OperationMetadata> createGatewayOperationSettings()
        Returns the object with the settings used for calls to createGateway.
      • updateGatewaySettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateGatewayRequest,​com.google.longrunning.Operation> updateGatewaySettings()
        Returns the object with the settings used for calls to updateGateway.
      • updateGatewayOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateGatewayRequest,​Gateway,​OperationMetadata> updateGatewayOperationSettings()
        Returns the object with the settings used for calls to updateGateway.
      • deleteGatewaySettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteGatewayRequest,​com.google.longrunning.Operation> deleteGatewaySettings()
        Returns the object with the settings used for calls to deleteGateway.
      • deleteGatewayOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteGatewayRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteGatewayOperationSettings()
        Returns the object with the settings used for calls to deleteGateway.
      • getApiSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetApiRequest,​Api> getApiSettings()
        Returns the object with the settings used for calls to getApi.
      • createApiSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateApiRequest,​com.google.longrunning.Operation> createApiSettings()
        Returns the object with the settings used for calls to createApi.
      • createApiOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateApiRequest,​Api,​OperationMetadata> createApiOperationSettings()
        Returns the object with the settings used for calls to createApi.
      • updateApiSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateApiRequest,​com.google.longrunning.Operation> updateApiSettings()
        Returns the object with the settings used for calls to updateApi.
      • updateApiOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateApiRequest,​Api,​OperationMetadata> updateApiOperationSettings()
        Returns the object with the settings used for calls to updateApi.
      • deleteApiSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteApiRequest,​com.google.longrunning.Operation> deleteApiSettings()
        Returns the object with the settings used for calls to deleteApi.
      • deleteApiOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteApiRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteApiOperationSettings()
        Returns the object with the settings used for calls to deleteApi.
      • getApiConfigSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetApiConfigRequest,​ApiConfig> getApiConfigSettings()
        Returns the object with the settings used for calls to getApiConfig.
      • createApiConfigSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateApiConfigRequest,​com.google.longrunning.Operation> createApiConfigSettings()
        Returns the object with the settings used for calls to createApiConfig.
      • createApiConfigOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateApiConfigRequest,​ApiConfig,​OperationMetadata> createApiConfigOperationSettings()
        Returns the object with the settings used for calls to createApiConfig.
      • updateApiConfigSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateApiConfigRequest,​com.google.longrunning.Operation> updateApiConfigSettings()
        Returns the object with the settings used for calls to updateApiConfig.
      • updateApiConfigOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateApiConfigRequest,​ApiConfig,​OperationMetadata> updateApiConfigOperationSettings()
        Returns the object with the settings used for calls to updateApiConfig.
      • deleteApiConfigSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteApiConfigRequest,​com.google.longrunning.Operation> deleteApiConfigSettings()
        Returns the object with the settings used for calls to deleteApiConfig.
      • deleteApiConfigOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteApiConfigRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteApiConfigOperationSettings()
        Returns the object with the settings used for calls to deleteApiConfig.
      • 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.
      • 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()
      • defaultApiClientHeaderProviderBuilder

        @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 defaultApiClientHeaderProviderBuilder()
      • newBuilder

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