Package com.google.cloud.automl.v1
Class AutoMlSettings
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings<AutoMlSettings>
-
- com.google.cloud.automl.v1.AutoMlSettings
-
@Generated("by gapic-generator-java") public class AutoMlSettings extends com.google.api.gax.rpc.ClientSettings<AutoMlSettings>
Settings class to configure an instance ofAutoMlClient
.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 getDataset 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 .getDatasetSettings() .setRetrySettings( autoMlSettingsBuilder .getDatasetSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); AutoMlSettings autoMlSettings = autoMlSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AutoMlSettings.Builder
Builder for AutoMlSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AutoMlSettings(AutoMlSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutoMlSettings
create(AutoMlStubSettings stub)
com.google.api.gax.rpc.OperationCallSettings<CreateDatasetRequest,Dataset,OperationMetadata>
createDatasetOperationSettings()
Returns the object with the settings used for calls to createDataset.com.google.api.gax.rpc.UnaryCallSettings<CreateDatasetRequest,com.google.longrunning.Operation>
createDatasetSettings()
Returns the object with the settings used for calls to createDataset.com.google.api.gax.rpc.OperationCallSettings<CreateModelRequest,Model,OperationMetadata>
createModelOperationSettings()
Returns the object with the settings used for calls to createModel.com.google.api.gax.rpc.UnaryCallSettings<CreateModelRequest,com.google.longrunning.Operation>
createModelSettings()
Returns the object with the settings used for calls to createModel.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.OperationCallSettings<DeleteDatasetRequest,com.google.protobuf.Empty,OperationMetadata>
deleteDatasetOperationSettings()
Returns the object with the settings used for calls to deleteDataset.com.google.api.gax.rpc.UnaryCallSettings<DeleteDatasetRequest,com.google.longrunning.Operation>
deleteDatasetSettings()
Returns the object with the settings used for calls to deleteDataset.com.google.api.gax.rpc.OperationCallSettings<DeleteModelRequest,com.google.protobuf.Empty,OperationMetadata>
deleteModelOperationSettings()
Returns the object with the settings used for calls to deleteModel.com.google.api.gax.rpc.UnaryCallSettings<DeleteModelRequest,com.google.longrunning.Operation>
deleteModelSettings()
Returns the object with the settings used for calls to deleteModel.com.google.api.gax.rpc.OperationCallSettings<DeployModelRequest,com.google.protobuf.Empty,OperationMetadata>
deployModelOperationSettings()
Returns the object with the settings used for calls to deployModel.com.google.api.gax.rpc.UnaryCallSettings<DeployModelRequest,com.google.longrunning.Operation>
deployModelSettings()
Returns the object with the settings used for calls to deployModel.com.google.api.gax.rpc.OperationCallSettings<ExportDataRequest,com.google.protobuf.Empty,OperationMetadata>
exportDataOperationSettings()
Returns the object with the settings used for calls to exportData.com.google.api.gax.rpc.UnaryCallSettings<ExportDataRequest,com.google.longrunning.Operation>
exportDataSettings()
Returns the object with the settings used for calls to exportData.com.google.api.gax.rpc.OperationCallSettings<ExportModelRequest,com.google.protobuf.Empty,OperationMetadata>
exportModelOperationSettings()
Returns the object with the settings used for calls to exportModel.com.google.api.gax.rpc.UnaryCallSettings<ExportModelRequest,com.google.longrunning.Operation>
exportModelSettings()
Returns the object with the settings used for calls to exportModel.com.google.api.gax.rpc.UnaryCallSettings<GetAnnotationSpecRequest,AnnotationSpec>
getAnnotationSpecSettings()
Returns the object with the settings used for calls to getAnnotationSpec.com.google.api.gax.rpc.UnaryCallSettings<GetDatasetRequest,Dataset>
getDatasetSettings()
Returns the object with the settings used for calls to getDataset.static String
getDefaultEndpoint()
Returns the default service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetModelEvaluationRequest,ModelEvaluation>
getModelEvaluationSettings()
Returns the object with the settings used for calls to getModelEvaluation.com.google.api.gax.rpc.UnaryCallSettings<GetModelRequest,Model>
getModelSettings()
Returns the object with the settings used for calls to getModel.com.google.api.gax.rpc.OperationCallSettings<ImportDataRequest,com.google.protobuf.Empty,OperationMetadata>
importDataOperationSettings()
Returns the object with the settings used for calls to importData.com.google.api.gax.rpc.UnaryCallSettings<ImportDataRequest,com.google.longrunning.Operation>
importDataSettings()
Returns the object with the settings used for calls to importData.com.google.api.gax.rpc.PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse,AutoMlClient.ListDatasetsPagedResponse>
listDatasetsSettings()
Returns the object with the settings used for calls to listDatasets.com.google.api.gax.rpc.PagedCallSettings<ListModelEvaluationsRequest,ListModelEvaluationsResponse,AutoMlClient.ListModelEvaluationsPagedResponse>
listModelEvaluationsSettings()
Returns the object with the settings used for calls to listModelEvaluations.com.google.api.gax.rpc.PagedCallSettings<ListModelsRequest,ListModelsResponse,AutoMlClient.ListModelsPagedResponse>
listModelsSettings()
Returns the object with the settings used for calls to listModels.static AutoMlSettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static AutoMlSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static AutoMlSettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.AutoMlSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.OperationCallSettings<UndeployModelRequest,com.google.protobuf.Empty,OperationMetadata>
undeployModelOperationSettings()
Returns the object with the settings used for calls to undeployModel.com.google.api.gax.rpc.UnaryCallSettings<UndeployModelRequest,com.google.longrunning.Operation>
undeployModelSettings()
Returns the object with the settings used for calls to undeployModel.com.google.api.gax.rpc.UnaryCallSettings<UpdateDatasetRequest,Dataset>
updateDatasetSettings()
Returns the object with the settings used for calls to updateDataset.com.google.api.gax.rpc.UnaryCallSettings<UpdateModelRequest,Model>
updateModelSettings()
Returns the object with the settings used for calls to updateModel.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
AutoMlSettings
protected AutoMlSettings(AutoMlSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
createDatasetSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateDatasetRequest,com.google.longrunning.Operation> createDatasetSettings()
Returns the object with the settings used for calls to createDataset.
-
createDatasetOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateDatasetRequest,Dataset,OperationMetadata> createDatasetOperationSettings()
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.
-
listDatasetsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse,AutoMlClient.ListDatasetsPagedResponse> listDatasetsSettings()
Returns the object with the settings used for calls to listDatasets.
-
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.
-
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.
-
listModelsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListModelsRequest,ListModelsResponse,AutoMlClient.ListModelsPagedResponse> listModelsSettings()
Returns the object with the settings used for calls to listModels.
-
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.
-
updateModelSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateModelRequest,Model> updateModelSettings()
Returns the object with the settings used for calls to updateModel.
-
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.
-
getModelEvaluationSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetModelEvaluationRequest,ModelEvaluation> getModelEvaluationSettings()
Returns the object with the settings used for calls to getModelEvaluation.
-
listModelEvaluationsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListModelEvaluationsRequest,ListModelEvaluationsResponse,AutoMlClient.ListModelEvaluationsPagedResponse> listModelEvaluationsSettings()
Returns the object with the settings used for calls to listModelEvaluations.
-
create
public static final AutoMlSettings create(AutoMlStubSettings stub) throws IOException
- Throws:
IOException
-
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 AutoMlSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
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 classcom.google.api.gax.rpc.ClientSettings<AutoMlSettings>
-
-