Package com.google.cloud.automl.v1beta1
Class AutoMlSettings
java.lang.Object
com.google.api.gax.rpc.ClientSettings<AutoMlSettings>
com.google.cloud.automl.v1beta1.AutoMlSettings
@BetaApi
@Generated("by gapic-generator-java")
public class AutoMlSettings
extends 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 [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) of createDataset:
// 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()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
.setMaxAttempts(5)
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
.setRetryDelayMultiplier(1.3)
.setRpcTimeoutMultiplier(1.5)
.setTotalTimeoutDuration(Duration.ofSeconds(300))
.build());
AutoMlSettings autoMlSettings = autoMlSettingsBuilder.build();
Please refer to the [Client Side Retry
Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
retries.
To configure the RetrySettings of a Long Running Operation method, create an OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to configure the RetrySettings for deleteDataset:
// 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();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
autoMlSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final AutoMlSettingscreate(AutoMlStubSettings stub) Returns the object with the settings used for calls to createDataset.Returns the object with the settings used for calls to createModel.Returns the object with the settings used for calls to createModel.Returns a builder for the default credentials for this service.Returns a builder for the default ExecutorProvider for this service.Returns a builder for the default gRPC ChannelProvider for this service.Returns a builder for the default REST ChannelProvider for this service.static TransportChannelProviderOperationCallSettings<DeleteDatasetRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteDataset.Returns the object with the settings used for calls to deleteDataset.OperationCallSettings<DeleteModelRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteModel.Returns the object with the settings used for calls to deleteModel.OperationCallSettings<DeployModelRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deployModel.Returns the object with the settings used for calls to deployModel.OperationCallSettings<ExportDataRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to exportData.Returns the object with the settings used for calls to exportData.OperationCallSettings<ExportEvaluatedExamplesRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to exportEvaluatedExamples.Returns the object with the settings used for calls to exportEvaluatedExamples.OperationCallSettings<ExportModelRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to exportModel.Returns the object with the settings used for calls to exportModel.Returns the object with the settings used for calls to getAnnotationSpec.Returns the object with the settings used for calls to getColumnSpec.Returns the object with the settings used for calls to getDataset.static StringReturns the default service endpoint.Returns the default service scopes.Returns the object with the settings used for calls to getModelEvaluation.Returns the object with the settings used for calls to getModel.Returns the object with the settings used for calls to getTableSpec.OperationCallSettings<ImportDataRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to importData.Returns the object with the settings used for calls to importData.PagedCallSettings<ListColumnSpecsRequest,ListColumnSpecsResponse, AutoMlClient.ListColumnSpecsPagedResponse> Returns the object with the settings used for calls to listColumnSpecs.Returns the object with the settings used for calls to listDatasets.PagedCallSettings<ListModelEvaluationsRequest,ListModelEvaluationsResponse, AutoMlClient.ListModelEvaluationsPagedResponse> Returns the object with the settings used for calls to listModelEvaluations.Returns the object with the settings used for calls to listModels.PagedCallSettings<ListTableSpecsRequest,ListTableSpecsResponse, AutoMlClient.ListTableSpecsPagedResponse> Returns the object with the settings used for calls to listTableSpecs.static AutoMlSettings.BuilderReturns a new gRPC builder for this class.static AutoMlSettings.BuildernewBuilder(ClientContext clientContext) Returns a new builder for this class.static AutoMlSettings.BuilderReturns a new REST builder for this class.Returns a builder containing all the values of this settings class.OperationCallSettings<UndeployModelRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to undeployModel.Returns the object with the settings used for calls to undeployModel.Returns the object with the settings used for calls to updateColumnSpec.Returns the object with the settings used for calls to updateDataset.Returns the object with the settings used for calls to updateTableSpec.Methods inherited from class com.google.api.gax.rpc.ClientSettings
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, toString
-
Constructor Details
-
AutoMlSettings
- Throws:
IOException
-
-
Method Details
-
createDatasetSettings
Returns the object with the settings used for calls to createDataset. -
getDatasetSettings
Returns the object with the settings used for calls to getDataset. -
listDatasetsSettings
public PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse, listDatasetsSettings()AutoMlClient.ListDatasetsPagedResponse> Returns the object with the settings used for calls to listDatasets. -
updateDatasetSettings
Returns the object with the settings used for calls to updateDataset. -
deleteDatasetSettings
Returns the object with the settings used for calls to deleteDataset. -
deleteDatasetOperationSettings
public OperationCallSettings<DeleteDatasetRequest,com.google.protobuf.Empty, deleteDatasetOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteDataset. -
importDataSettings
Returns the object with the settings used for calls to importData. -
importDataOperationSettings
public OperationCallSettings<ImportDataRequest,com.google.protobuf.Empty, importDataOperationSettings()OperationMetadata> Returns the object with the settings used for calls to importData. -
exportDataSettings
Returns the object with the settings used for calls to exportData. -
exportDataOperationSettings
public OperationCallSettings<ExportDataRequest,com.google.protobuf.Empty, exportDataOperationSettings()OperationMetadata> Returns the object with the settings used for calls to exportData. -
getAnnotationSpecSettings
Returns the object with the settings used for calls to getAnnotationSpec. -
getTableSpecSettings
Returns the object with the settings used for calls to getTableSpec. -
listTableSpecsSettings
public PagedCallSettings<ListTableSpecsRequest,ListTableSpecsResponse, listTableSpecsSettings()AutoMlClient.ListTableSpecsPagedResponse> Returns the object with the settings used for calls to listTableSpecs. -
updateTableSpecSettings
Returns the object with the settings used for calls to updateTableSpec. -
getColumnSpecSettings
Returns the object with the settings used for calls to getColumnSpec. -
listColumnSpecsSettings
public PagedCallSettings<ListColumnSpecsRequest,ListColumnSpecsResponse, listColumnSpecsSettings()AutoMlClient.ListColumnSpecsPagedResponse> Returns the object with the settings used for calls to listColumnSpecs. -
updateColumnSpecSettings
Returns the object with the settings used for calls to updateColumnSpec. -
createModelSettings
Returns the object with the settings used for calls to createModel. -
createModelOperationSettings
public OperationCallSettings<CreateModelRequest,Model, createModelOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createModel. -
getModelSettings
Returns the object with the settings used for calls to getModel. -
listModelsSettings
public PagedCallSettings<ListModelsRequest,ListModelsResponse, listModelsSettings()AutoMlClient.ListModelsPagedResponse> Returns the object with the settings used for calls to listModels. -
deleteModelSettings
Returns the object with the settings used for calls to deleteModel. -
deleteModelOperationSettings
public OperationCallSettings<DeleteModelRequest,com.google.protobuf.Empty, deleteModelOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteModel. -
deployModelSettings
Returns the object with the settings used for calls to deployModel. -
deployModelOperationSettings
public OperationCallSettings<DeployModelRequest,com.google.protobuf.Empty, deployModelOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deployModel. -
undeployModelSettings
Returns the object with the settings used for calls to undeployModel. -
undeployModelOperationSettings
public OperationCallSettings<UndeployModelRequest,com.google.protobuf.Empty, undeployModelOperationSettings()OperationMetadata> Returns the object with the settings used for calls to undeployModel. -
exportModelSettings
Returns the object with the settings used for calls to exportModel. -
exportModelOperationSettings
public OperationCallSettings<ExportModelRequest,com.google.protobuf.Empty, exportModelOperationSettings()OperationMetadata> Returns the object with the settings used for calls to exportModel. -
exportEvaluatedExamplesSettings
public UnaryCallSettings<ExportEvaluatedExamplesRequest,Operation> exportEvaluatedExamplesSettings()Returns the object with the settings used for calls to exportEvaluatedExamples. -
exportEvaluatedExamplesOperationSettings
public OperationCallSettings<ExportEvaluatedExamplesRequest,com.google.protobuf.Empty, exportEvaluatedExamplesOperationSettings()OperationMetadata> Returns the object with the settings used for calls to exportEvaluatedExamples. -
getModelEvaluationSettings
Returns the object with the settings used for calls to getModelEvaluation. -
listModelEvaluationsSettings
public PagedCallSettings<ListModelEvaluationsRequest,ListModelEvaluationsResponse, listModelEvaluationsSettings()AutoMlClient.ListModelEvaluationsPagedResponse> Returns the object with the settings used for calls to listModelEvaluations. -
create
- Throws:
IOException
-
defaultExecutorProviderBuilder
Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Returns the default service endpoint. -
getDefaultServiceScopes
Returns the default service scopes. -
defaultCredentialsProviderBuilder
Returns a builder for the default credentials for this service. -
defaultGrpcTransportProviderBuilder
Returns a builder for the default gRPC ChannelProvider for this service. -
defaultHttpJsonTransportProviderBuilder
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()Returns a builder for the default REST ChannelProvider for this service. -
defaultTransportChannelProvider
-
defaultApiClientHeaderProviderBuilder
-
newBuilder
Returns a new gRPC builder for this class. -
newHttpJsonBuilder
Returns a new REST builder for this class. -
newBuilder
Returns a new builder for this class. -
toBuilder
Returns a builder containing all the values of this settings class.- Specified by:
toBuilderin classClientSettings<AutoMlSettings>
-