Class AutoMlSettings


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

    The default instance has everything set to sensible defaults:

    • The default service address (automl.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 createDataset 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
     AutoMlSettings.Builder autoMlSettingsBuilder = AutoMlSettings.newBuilder();
     autoMlSettingsBuilder
         .createDatasetSettings()
         .setRetrySettings(
             autoMlSettingsBuilder
                 .createDatasetSettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     AutoMlSettings autoMlSettings = autoMlSettingsBuilder.build();
     
    • Method Detail

      • createDatasetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateDatasetRequest,​Dataset> createDatasetSettings()
        Returns the object with the settings used for calls to createDataset.
      • getDatasetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetDatasetRequest,​Dataset> getDatasetSettings()
        Returns the object with the settings used for calls to getDataset.
      • updateDatasetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateDatasetRequest,​Dataset> updateDatasetSettings()
        Returns the object with the settings used for calls to updateDataset.
      • deleteDatasetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteDatasetRequest,​com.google.longrunning.Operation> deleteDatasetSettings()
        Returns the object with the settings used for calls to deleteDataset.
      • deleteDatasetOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteDatasetRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteDatasetOperationSettings()
        Returns the object with the settings used for calls to deleteDataset.
      • importDataSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ImportDataRequest,​com.google.longrunning.Operation> importDataSettings()
        Returns the object with the settings used for calls to importData.
      • importDataOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<ImportDataRequest,​com.google.protobuf.Empty,​OperationMetadata> importDataOperationSettings()
        Returns the object with the settings used for calls to importData.
      • exportDataSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ExportDataRequest,​com.google.longrunning.Operation> exportDataSettings()
        Returns the object with the settings used for calls to exportData.
      • exportDataOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<ExportDataRequest,​com.google.protobuf.Empty,​OperationMetadata> exportDataOperationSettings()
        Returns the object with the settings used for calls to exportData.
      • getAnnotationSpecSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetAnnotationSpecRequest,​AnnotationSpec> getAnnotationSpecSettings()
        Returns the object with the settings used for calls to getAnnotationSpec.
      • getTableSpecSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetTableSpecRequest,​TableSpec> getTableSpecSettings()
        Returns the object with the settings used for calls to getTableSpec.
      • updateTableSpecSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateTableSpecRequest,​TableSpec> updateTableSpecSettings()
        Returns the object with the settings used for calls to updateTableSpec.
      • getColumnSpecSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetColumnSpecRequest,​ColumnSpec> getColumnSpecSettings()
        Returns the object with the settings used for calls to getColumnSpec.
      • updateColumnSpecSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateColumnSpecRequest,​ColumnSpec> updateColumnSpecSettings()
        Returns the object with the settings used for calls to updateColumnSpec.
      • createModelSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateModelRequest,​com.google.longrunning.Operation> createModelSettings()
        Returns the object with the settings used for calls to createModel.
      • createModelOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateModelRequest,​Model,​OperationMetadata> createModelOperationSettings()
        Returns the object with the settings used for calls to createModel.
      • getModelSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetModelRequest,​Model> getModelSettings()
        Returns the object with the settings used for calls to getModel.
      • deleteModelSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteModelRequest,​com.google.longrunning.Operation> deleteModelSettings()
        Returns the object with the settings used for calls to deleteModel.
      • deleteModelOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteModelRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteModelOperationSettings()
        Returns the object with the settings used for calls to deleteModel.
      • deployModelSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeployModelRequest,​com.google.longrunning.Operation> deployModelSettings()
        Returns the object with the settings used for calls to deployModel.
      • deployModelOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeployModelRequest,​com.google.protobuf.Empty,​OperationMetadata> deployModelOperationSettings()
        Returns the object with the settings used for calls to deployModel.
      • undeployModelSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UndeployModelRequest,​com.google.longrunning.Operation> undeployModelSettings()
        Returns the object with the settings used for calls to undeployModel.
      • undeployModelOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UndeployModelRequest,​com.google.protobuf.Empty,​OperationMetadata> undeployModelOperationSettings()
        Returns the object with the settings used for calls to undeployModel.
      • exportModelSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ExportModelRequest,​com.google.longrunning.Operation> exportModelSettings()
        Returns the object with the settings used for calls to exportModel.
      • exportModelOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<ExportModelRequest,​com.google.protobuf.Empty,​OperationMetadata> exportModelOperationSettings()
        Returns the object with the settings used for calls to exportModel.
      • exportEvaluatedExamplesSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ExportEvaluatedExamplesRequest,​com.google.longrunning.Operation> exportEvaluatedExamplesSettings()
        Returns the object with the settings used for calls to exportEvaluatedExamples.
      • exportEvaluatedExamplesOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<ExportEvaluatedExamplesRequest,​com.google.protobuf.Empty,​OperationMetadata> exportEvaluatedExamplesOperationSettings()
        Returns the object with the settings used for calls to exportEvaluatedExamples.
      • getModelEvaluationSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetModelEvaluationRequest,​ModelEvaluation> getModelEvaluationSettings()
        Returns the object with the settings used for calls to getModelEvaluation.
      • 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()
      • newHttpJsonBuilder

        @BetaApi
        public static AutoMlSettings.Builder newHttpJsonBuilder()
        Returns a new REST builder for this class.
      • newBuilder

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

        public AutoMlSettings.Builder toBuilder()
        Returns a builder containing all the values of this settings class.
        Specified by:
        toBuilder in class com.google.api.gax.rpc.ClientSettings<AutoMlSettings>