Class AutoMlStubSettings
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings<AutoMlStubSettings>
-
- com.google.cloud.automl.v1beta1.stub.AutoMlStubSettings
-
@BetaApi @Generated("by gapic-generator-java") public class AutoMlStubSettings extends com.google.api.gax.rpc.StubSettings<AutoMlStubSettings>
Settings class to configure an instance ofAutoMlStub
.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();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AutoMlStubSettings.Builder
Builder for AutoMlStubSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AutoMlStubSettings(AutoMlStubSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallSettings<CreateDatasetRequest,Dataset>
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.AutoMlStub
createStub()
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.rpc.ApiClientHeaderProvider.Builder
defaultGrpcApiClientHeaderProviderBuilder()
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.rpc.ApiClientHeaderProvider.Builder
defaultHttpJsonApiClientHeaderProviderBuilder()
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<ExportEvaluatedExamplesRequest,com.google.protobuf.Empty,OperationMetadata>
exportEvaluatedExamplesOperationSettings()
Returns the object with the settings used for calls to exportEvaluatedExamples.com.google.api.gax.rpc.UnaryCallSettings<ExportEvaluatedExamplesRequest,com.google.longrunning.Operation>
exportEvaluatedExamplesSettings()
Returns the object with the settings used for calls to exportEvaluatedExamples.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<GetColumnSpecRequest,ColumnSpec>
getColumnSpecSettings()
Returns the object with the settings used for calls to getColumnSpec.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 String
getDefaultMtlsEndpoint()
Returns the default mTLS 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.UnaryCallSettings<GetTableSpecRequest,TableSpec>
getTableSpecSettings()
Returns the object with the settings used for calls to getTableSpec.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<ListColumnSpecsRequest,ListColumnSpecsResponse,AutoMlClient.ListColumnSpecsPagedResponse>
listColumnSpecsSettings()
Returns the object with the settings used for calls to listColumnSpecs.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.com.google.api.gax.rpc.PagedCallSettings<ListTableSpecsRequest,ListTableSpecsResponse,AutoMlClient.ListTableSpecsPagedResponse>
listTableSpecsSettings()
Returns the object with the settings used for calls to listTableSpecs.static AutoMlStubSettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static AutoMlStubSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static AutoMlStubSettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.AutoMlStubSettings.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<UpdateColumnSpecRequest,ColumnSpec>
updateColumnSpecSettings()
Returns the object with the settings used for calls to updateColumnSpec.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<UpdateTableSpecRequest,TableSpec>
updateTableSpecSettings()
Returns the object with the settings used for calls to updateTableSpec.-
Methods inherited from class com.google.api.gax.rpc.StubSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
AutoMlStubSettings
protected AutoMlStubSettings(AutoMlStubSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
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.
-
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.
-
getTableSpecSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetTableSpecRequest,TableSpec> getTableSpecSettings()
Returns the object with the settings used for calls to getTableSpec.
-
listTableSpecsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListTableSpecsRequest,ListTableSpecsResponse,AutoMlClient.ListTableSpecsPagedResponse> listTableSpecsSettings()
Returns the object with the settings used for calls to listTableSpecs.
-
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.
-
listColumnSpecsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListColumnSpecsRequest,ListColumnSpecsResponse,AutoMlClient.ListColumnSpecsPagedResponse> listColumnSpecsSettings()
Returns the object with the settings used for calls to listColumnSpecs.
-
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.
-
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.
-
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.
-
listModelEvaluationsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListModelEvaluationsRequest,ListModelEvaluationsResponse,AutoMlClient.ListModelEvaluationsPagedResponse> listModelEvaluationsSettings()
Returns the object with the settings used for calls to listModelEvaluations.
-
createStub
public AutoMlStub createStub() 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.
-
getDefaultMtlsEndpoint
public static String getDefaultMtlsEndpoint()
Returns the default mTLS 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()
-
defaultGrpcApiClientHeaderProviderBuilder
@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 defaultGrpcApiClientHeaderProviderBuilder()
-
defaultHttpJsonApiClientHeaderProviderBuilder
@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 defaultHttpJsonApiClientHeaderProviderBuilder()
-
defaultApiClientHeaderProviderBuilder
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static AutoMlStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
public static AutoMlStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static AutoMlStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public AutoMlStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.StubSettings<AutoMlStubSettings>
-
-