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 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
AutoMlStubSettings.Builder autoMlSettingsBuilder = AutoMlStubSettings.newBuilder();
autoMlSettingsBuilder
.getDatasetSettings()
.setRetrySettings(
autoMlSettingsBuilder
.getDatasetSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
AutoMlStubSettings autoMlSettings = autoMlSettingsBuilder.build();
Static Methods
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
newBuilder()
public static AutoMlStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static AutoMlStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
public static AutoMlStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
AutoMlStubSettings(AutoMlStubSettings.Builder settingsBuilder)
protected AutoMlStubSettings(AutoMlStubSettings.Builder settingsBuilder)
Methods
createDatasetOperationSettings()
public OperationCallSettings<CreateDatasetRequest,Dataset,OperationMetadata> createDatasetOperationSettings()
Returns the object with the settings used for calls to createDataset.
createDatasetSettings()
public UnaryCallSettings<CreateDatasetRequest,Operation> createDatasetSettings()
Returns the object with the settings used for calls to createDataset.
createModelOperationSettings()
public OperationCallSettings<CreateModelRequest,Model,OperationMetadata> createModelOperationSettings()
Returns the object with the settings used for calls to createModel.
createModelSettings()
public UnaryCallSettings<CreateModelRequest,Operation> createModelSettings()
Returns the object with the settings used for calls to createModel.
createStub()
public AutoMlStub createStub()
deleteDatasetOperationSettings()
public OperationCallSettings<DeleteDatasetRequest,Empty,OperationMetadata> deleteDatasetOperationSettings()
Returns the object with the settings used for calls to deleteDataset.
deleteDatasetSettings()
public UnaryCallSettings<DeleteDatasetRequest,Operation> deleteDatasetSettings()
Returns the object with the settings used for calls to deleteDataset.
deleteModelOperationSettings()
public OperationCallSettings<DeleteModelRequest,Empty,OperationMetadata> deleteModelOperationSettings()
Returns the object with the settings used for calls to deleteModel.
deleteModelSettings()
public UnaryCallSettings<DeleteModelRequest,Operation> deleteModelSettings()
Returns the object with the settings used for calls to deleteModel.
deployModelOperationSettings()
public OperationCallSettings<DeployModelRequest,Empty,OperationMetadata> deployModelOperationSettings()
Returns the object with the settings used for calls to deployModel.
deployModelSettings()
public UnaryCallSettings<DeployModelRequest,Operation> deployModelSettings()
Returns the object with the settings used for calls to deployModel.
exportDataOperationSettings()
public OperationCallSettings<ExportDataRequest,Empty,OperationMetadata> exportDataOperationSettings()
Returns the object with the settings used for calls to exportData.
exportDataSettings()
public UnaryCallSettings<ExportDataRequest,Operation> exportDataSettings()
Returns the object with the settings used for calls to exportData.
exportModelOperationSettings()
public OperationCallSettings<ExportModelRequest,Empty,OperationMetadata> exportModelOperationSettings()
Returns the object with the settings used for calls to exportModel.
exportModelSettings()
public UnaryCallSettings<ExportModelRequest,Operation> exportModelSettings()
Returns the object with the settings used for calls to exportModel.
getAnnotationSpecSettings()
public UnaryCallSettings<GetAnnotationSpecRequest,AnnotationSpec> getAnnotationSpecSettings()
Returns the object with the settings used for calls to getAnnotationSpec.
getDatasetSettings()
public UnaryCallSettings<GetDatasetRequest,Dataset> getDatasetSettings()
Returns the object with the settings used for calls to getDataset.
getModelEvaluationSettings()
public UnaryCallSettings<GetModelEvaluationRequest,ModelEvaluation> getModelEvaluationSettings()
Returns the object with the settings used for calls to getModelEvaluation.
getModelSettings()
public UnaryCallSettings<GetModelRequest,Model> getModelSettings()
Returns the object with the settings used for calls to getModel.
importDataOperationSettings()
public OperationCallSettings<ImportDataRequest,Empty,OperationMetadata> importDataOperationSettings()
Returns the object with the settings used for calls to importData.
importDataSettings()
public UnaryCallSettings<ImportDataRequest,Operation> importDataSettings()
Returns the object with the settings used for calls to importData.
listDatasetsSettings()
public PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse,AutoMlClient.ListDatasetsPagedResponse> listDatasetsSettings()
Returns the object with the settings used for calls to listDatasets.
listModelEvaluationsSettings()
public PagedCallSettings<ListModelEvaluationsRequest,ListModelEvaluationsResponse,AutoMlClient.ListModelEvaluationsPagedResponse> listModelEvaluationsSettings()
Returns the object with the settings used for calls to listModelEvaluations.
listModelsSettings()
public PagedCallSettings<ListModelsRequest,ListModelsResponse,AutoMlClient.ListModelsPagedResponse> listModelsSettings()
Returns the object with the settings used for calls to listModels.
toBuilder()
public AutoMlStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Overrides
undeployModelOperationSettings()
public OperationCallSettings<UndeployModelRequest,Empty,OperationMetadata> undeployModelOperationSettings()
Returns the object with the settings used for calls to undeployModel.
undeployModelSettings()
public UnaryCallSettings<UndeployModelRequest,Operation> undeployModelSettings()
Returns the object with the settings used for calls to undeployModel.
updateDatasetSettings()
public UnaryCallSettings<UpdateDatasetRequest,Dataset> updateDatasetSettings()
Returns the object with the settings used for calls to updateDataset.
updateModelSettings()
public UnaryCallSettings<UpdateModelRequest,Model> updateModelSettings()
Returns the object with the settings used for calls to updateModel.