Class AutoMlStubSettings (2.36.0)

public class AutoMlStubSettings extends StubSettings<AutoMlStubSettings>

Settings class to configure an instance of AutoMlStub.

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
 AutoMlStubSettings.Builder autoMlSettingsBuilder = AutoMlStubSettings.newBuilder();
 autoMlSettingsBuilder
     .createDatasetSettings()
     .setRetrySettings(
         autoMlSettingsBuilder
             .createDatasetSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 AutoMlStubSettings autoMlSettings = autoMlSettingsBuilder.build();
 

Inheritance

java.lang.Object > StubSettings > AutoMlStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
TypeDescription
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
TypeDescription
Builder

defaultGrpcApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default gRPC ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultHttpJsonApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultHttpJsonTransportProviderBuilder()

public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()

Returns a builder for the default REST ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
TypeDescription
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static AutoMlStubSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
TypeDescription
AutoMlStubSettings.Builder

newBuilder(ClientContext clientContext)

public static AutoMlStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
AutoMlStubSettings.Builder

newHttpJsonBuilder()

public static AutoMlStubSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
TypeDescription
AutoMlStubSettings.Builder

Constructors

AutoMlStubSettings(AutoMlStubSettings.Builder settingsBuilder)

protected AutoMlStubSettings(AutoMlStubSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderAutoMlStubSettings.Builder

Methods

createDatasetSettings()

public UnaryCallSettings<CreateDatasetRequest,Dataset> createDatasetSettings()

Returns the object with the settings used for calls to createDataset.

Returns
TypeDescription
UnaryCallSettings<CreateDatasetRequest,Dataset>

createModelOperationSettings()

public OperationCallSettings<CreateModelRequest,Model,OperationMetadata> createModelOperationSettings()

Returns the object with the settings used for calls to createModel.

Returns
TypeDescription
OperationCallSettings<CreateModelRequest,Model,OperationMetadata>

createModelSettings()

public UnaryCallSettings<CreateModelRequest,Operation> createModelSettings()

Returns the object with the settings used for calls to createModel.

Returns
TypeDescription
UnaryCallSettings<CreateModelRequest,Operation>

createStub()

public AutoMlStub createStub()
Returns
TypeDescription
AutoMlStub
Exceptions
TypeDescription
IOException

deleteDatasetOperationSettings()

public OperationCallSettings<DeleteDatasetRequest,Empty,OperationMetadata> deleteDatasetOperationSettings()

Returns the object with the settings used for calls to deleteDataset.

Returns
TypeDescription
OperationCallSettings<DeleteDatasetRequest,Empty,OperationMetadata>

deleteDatasetSettings()

public UnaryCallSettings<DeleteDatasetRequest,Operation> deleteDatasetSettings()

Returns the object with the settings used for calls to deleteDataset.

Returns
TypeDescription
UnaryCallSettings<DeleteDatasetRequest,Operation>

deleteModelOperationSettings()

public OperationCallSettings<DeleteModelRequest,Empty,OperationMetadata> deleteModelOperationSettings()

Returns the object with the settings used for calls to deleteModel.

Returns
TypeDescription
OperationCallSettings<DeleteModelRequest,Empty,OperationMetadata>

deleteModelSettings()

public UnaryCallSettings<DeleteModelRequest,Operation> deleteModelSettings()

Returns the object with the settings used for calls to deleteModel.

Returns
TypeDescription
UnaryCallSettings<DeleteModelRequest,Operation>

deployModelOperationSettings()

public OperationCallSettings<DeployModelRequest,Empty,OperationMetadata> deployModelOperationSettings()

Returns the object with the settings used for calls to deployModel.

Returns
TypeDescription
OperationCallSettings<DeployModelRequest,Empty,OperationMetadata>

deployModelSettings()

public UnaryCallSettings<DeployModelRequest,Operation> deployModelSettings()

Returns the object with the settings used for calls to deployModel.

Returns
TypeDescription
UnaryCallSettings<DeployModelRequest,Operation>

exportDataOperationSettings()

public OperationCallSettings<ExportDataRequest,Empty,OperationMetadata> exportDataOperationSettings()

Returns the object with the settings used for calls to exportData.

Returns
TypeDescription
OperationCallSettings<ExportDataRequest,Empty,OperationMetadata>

exportDataSettings()

public UnaryCallSettings<ExportDataRequest,Operation> exportDataSettings()

Returns the object with the settings used for calls to exportData.

Returns
TypeDescription
UnaryCallSettings<ExportDataRequest,Operation>

exportEvaluatedExamplesOperationSettings()

public OperationCallSettings<ExportEvaluatedExamplesRequest,Empty,OperationMetadata> exportEvaluatedExamplesOperationSettings()

Returns the object with the settings used for calls to exportEvaluatedExamples.

Returns
TypeDescription
OperationCallSettings<ExportEvaluatedExamplesRequest,Empty,OperationMetadata>

exportEvaluatedExamplesSettings()

public UnaryCallSettings<ExportEvaluatedExamplesRequest,Operation> exportEvaluatedExamplesSettings()

Returns the object with the settings used for calls to exportEvaluatedExamples.

Returns
TypeDescription
UnaryCallSettings<ExportEvaluatedExamplesRequest,Operation>

exportModelOperationSettings()

public OperationCallSettings<ExportModelRequest,Empty,OperationMetadata> exportModelOperationSettings()

Returns the object with the settings used for calls to exportModel.

Returns
TypeDescription
OperationCallSettings<ExportModelRequest,Empty,OperationMetadata>

exportModelSettings()

public UnaryCallSettings<ExportModelRequest,Operation> exportModelSettings()

Returns the object with the settings used for calls to exportModel.

Returns
TypeDescription
UnaryCallSettings<ExportModelRequest,Operation>

getAnnotationSpecSettings()

public UnaryCallSettings<GetAnnotationSpecRequest,AnnotationSpec> getAnnotationSpecSettings()

Returns the object with the settings used for calls to getAnnotationSpec.

Returns
TypeDescription
UnaryCallSettings<GetAnnotationSpecRequest,AnnotationSpec>

getColumnSpecSettings()

public UnaryCallSettings<GetColumnSpecRequest,ColumnSpec> getColumnSpecSettings()

Returns the object with the settings used for calls to getColumnSpec.

Returns
TypeDescription
UnaryCallSettings<GetColumnSpecRequest,ColumnSpec>

getDatasetSettings()

public UnaryCallSettings<GetDatasetRequest,Dataset> getDatasetSettings()

Returns the object with the settings used for calls to getDataset.

Returns
TypeDescription
UnaryCallSettings<GetDatasetRequest,Dataset>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getModelEvaluationSettings()

public UnaryCallSettings<GetModelEvaluationRequest,ModelEvaluation> getModelEvaluationSettings()

Returns the object with the settings used for calls to getModelEvaluation.

Returns
TypeDescription
UnaryCallSettings<GetModelEvaluationRequest,ModelEvaluation>

getModelSettings()

public UnaryCallSettings<GetModelRequest,Model> getModelSettings()

Returns the object with the settings used for calls to getModel.

Returns
TypeDescription
UnaryCallSettings<GetModelRequest,Model>

getServiceName()

public String getServiceName()

Returns the default service name.

Returns
TypeDescription
String
Overrides

getTableSpecSettings()

public UnaryCallSettings<GetTableSpecRequest,TableSpec> getTableSpecSettings()

Returns the object with the settings used for calls to getTableSpec.

Returns
TypeDescription
UnaryCallSettings<GetTableSpecRequest,TableSpec>

importDataOperationSettings()

public OperationCallSettings<ImportDataRequest,Empty,OperationMetadata> importDataOperationSettings()

Returns the object with the settings used for calls to importData.

Returns
TypeDescription
OperationCallSettings<ImportDataRequest,Empty,OperationMetadata>

importDataSettings()

public UnaryCallSettings<ImportDataRequest,Operation> importDataSettings()

Returns the object with the settings used for calls to importData.

Returns
TypeDescription
UnaryCallSettings<ImportDataRequest,Operation>

listColumnSpecsSettings()

public PagedCallSettings<ListColumnSpecsRequest,ListColumnSpecsResponse,AutoMlClient.ListColumnSpecsPagedResponse> listColumnSpecsSettings()

Returns the object with the settings used for calls to listColumnSpecs.

Returns
TypeDescription
PagedCallSettings<ListColumnSpecsRequest,ListColumnSpecsResponse,ListColumnSpecsPagedResponse>

listDatasetsSettings()

public PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse,AutoMlClient.ListDatasetsPagedResponse> listDatasetsSettings()

Returns the object with the settings used for calls to listDatasets.

Returns
TypeDescription
PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse,ListDatasetsPagedResponse>

listModelEvaluationsSettings()

public PagedCallSettings<ListModelEvaluationsRequest,ListModelEvaluationsResponse,AutoMlClient.ListModelEvaluationsPagedResponse> listModelEvaluationsSettings()

Returns the object with the settings used for calls to listModelEvaluations.

Returns
TypeDescription
PagedCallSettings<ListModelEvaluationsRequest,ListModelEvaluationsResponse,ListModelEvaluationsPagedResponse>

listModelsSettings()

public PagedCallSettings<ListModelsRequest,ListModelsResponse,AutoMlClient.ListModelsPagedResponse> listModelsSettings()

Returns the object with the settings used for calls to listModels.

Returns
TypeDescription
PagedCallSettings<ListModelsRequest,ListModelsResponse,ListModelsPagedResponse>

listTableSpecsSettings()

public PagedCallSettings<ListTableSpecsRequest,ListTableSpecsResponse,AutoMlClient.ListTableSpecsPagedResponse> listTableSpecsSettings()

Returns the object with the settings used for calls to listTableSpecs.

Returns
TypeDescription
PagedCallSettings<ListTableSpecsRequest,ListTableSpecsResponse,ListTableSpecsPagedResponse>

toBuilder()

public AutoMlStubSettings.Builder toBuilder()

Returns a builder containing all the values of this settings class.

Returns
TypeDescription
AutoMlStubSettings.Builder
Overrides

undeployModelOperationSettings()

public OperationCallSettings<UndeployModelRequest,Empty,OperationMetadata> undeployModelOperationSettings()

Returns the object with the settings used for calls to undeployModel.

Returns
TypeDescription
OperationCallSettings<UndeployModelRequest,Empty,OperationMetadata>

undeployModelSettings()

public UnaryCallSettings<UndeployModelRequest,Operation> undeployModelSettings()

Returns the object with the settings used for calls to undeployModel.

Returns
TypeDescription
UnaryCallSettings<UndeployModelRequest,Operation>

updateColumnSpecSettings()

public UnaryCallSettings<UpdateColumnSpecRequest,ColumnSpec> updateColumnSpecSettings()

Returns the object with the settings used for calls to updateColumnSpec.

Returns
TypeDescription
UnaryCallSettings<UpdateColumnSpecRequest,ColumnSpec>

updateDatasetSettings()

public UnaryCallSettings<UpdateDatasetRequest,Dataset> updateDatasetSettings()

Returns the object with the settings used for calls to updateDataset.

Returns
TypeDescription
UnaryCallSettings<UpdateDatasetRequest,Dataset>

updateTableSpecSettings()

public UnaryCallSettings<UpdateTableSpecRequest,TableSpec> updateTableSpecSettings()

Returns the object with the settings used for calls to updateTableSpec.

Returns
TypeDescription
UnaryCallSettings<UpdateTableSpecRequest,TableSpec>