Class AMLStubSettings
java.lang.Object
com.google.api.gax.rpc.StubSettings<AMLStubSettings>
com.google.cloud.financialservices.v1.stub.AMLStubSettings
@Generated("by gapic-generator-java")
public class AMLStubSettings
extends StubSettings<AMLStubSettings>
Settings class to configure an instance of
AMLStub.
The default instance has everything set to sensible defaults:
- The default service address (financialservices.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 getInstance:
// 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
AMLStubSettings.Builder aMLSettingsBuilder = AMLStubSettings.newBuilder();
aMLSettingsBuilder
.getInstanceSettings()
.setRetrySettings(
aMLSettingsBuilder
.getInstanceSettings()
.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());
AMLStubSettings aMLSettings = aMLSettingsBuilder.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 createInstance:
// 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
AMLStubSettings.Builder aMLSettingsBuilder = AMLStubSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
aMLSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for AMLStubSettings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the object with the settings used for calls to createBacktestResult.Returns the object with the settings used for calls to createBacktestResult.Returns the object with the settings used for calls to createDataset.Returns the object with the settings used for calls to createDataset.Returns the object with the settings used for calls to createEngineConfig.Returns the object with the settings used for calls to createEngineConfig.Returns the object with the settings used for calls to createInstance.Returns the object with the settings used for calls to createInstance.Returns the object with the settings used for calls to createModel.Returns the object with the settings used for calls to createModel.Returns the object with the settings used for calls to createPredictionResult.Returns the object with the settings used for calls to createPredictionResult.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<DeleteBacktestResultRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteBacktestResult.Returns the object with the settings used for calls to deleteBacktestResult.OperationCallSettings<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<DeleteEngineConfigRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteEngineConfig.Returns the object with the settings used for calls to deleteEngineConfig.OperationCallSettings<DeleteInstanceRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteInstance.Returns the object with the settings used for calls to deleteInstance.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<DeletePredictionResultRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deletePredictionResult.Returns the object with the settings used for calls to deletePredictionResult.OperationCallSettings<ExportBacktestResultMetadataRequest,ExportBacktestResultMetadataResponse, OperationMetadata> Returns the object with the settings used for calls to exportBacktestResultMetadata.Returns the object with the settings used for calls to exportBacktestResultMetadata.OperationCallSettings<ExportEngineConfigMetadataRequest,ExportEngineConfigMetadataResponse, OperationMetadata> Returns the object with the settings used for calls to exportEngineConfigMetadata.Returns the object with the settings used for calls to exportEngineConfigMetadata.Returns the object with the settings used for calls to exportModelMetadata.Returns the object with the settings used for calls to exportModelMetadata.OperationCallSettings<ExportPredictionResultMetadataRequest,ExportPredictionResultMetadataResponse, OperationMetadata> Returns the object with the settings used for calls to exportPredictionResultMetadata.Returns the object with the settings used for calls to exportPredictionResultMetadata.OperationCallSettings<ExportRegisteredPartiesRequest,ExportRegisteredPartiesResponse, OperationMetadata> Returns the object with the settings used for calls to exportRegisteredParties.Returns the object with the settings used for calls to exportRegisteredParties.Returns the object with the settings used for calls to getBacktestResult.Returns the object with the settings used for calls to getDataset.static StringReturns the default service endpoint.static StringReturns the default mTLS service endpoint.Returns the default service scopes.Returns the object with the settings used for calls to getEngineConfig.Returns the object with the settings used for calls to getEngineVersion.Returns the object with the settings used for calls to getInstance.protected LibraryMetadataReturns the object with the settings used for calls to getLocation.Returns the object with the settings used for calls to getModel.Returns the object with the settings used for calls to getPredictionResult.Returns the default service name.OperationCallSettings<ImportRegisteredPartiesRequest,ImportRegisteredPartiesResponse, OperationMetadata> Returns the object with the settings used for calls to importRegisteredParties.Returns the object with the settings used for calls to importRegisteredParties.PagedCallSettings<ListBacktestResultsRequest,ListBacktestResultsResponse, AMLClient.ListBacktestResultsPagedResponse> Returns the object with the settings used for calls to listBacktestResults.Returns the object with the settings used for calls to listDatasets.PagedCallSettings<ListEngineConfigsRequest,ListEngineConfigsResponse, AMLClient.ListEngineConfigsPagedResponse> Returns the object with the settings used for calls to listEngineConfigs.PagedCallSettings<ListEngineVersionsRequest,ListEngineVersionsResponse, AMLClient.ListEngineVersionsPagedResponse> Returns the object with the settings used for calls to listEngineVersions.Returns the object with the settings used for calls to listInstances.Returns the object with the settings used for calls to listLocations.Returns the object with the settings used for calls to listModels.PagedCallSettings<ListPredictionResultsRequest,ListPredictionResultsResponse, AMLClient.ListPredictionResultsPagedResponse> Returns the object with the settings used for calls to listPredictionResults.static AMLStubSettings.BuilderReturns a new gRPC builder for this class.static AMLStubSettings.BuildernewBuilder(ClientContext clientContext) Returns a new builder for this class.static AMLStubSettings.BuilderReturns a new REST builder for this class.Returns a builder containing all the values of this settings class.Returns the object with the settings used for calls to updateBacktestResult.Returns the object with the settings used for calls to updateBacktestResult.Returns the object with the settings used for calls to updateDataset.Returns the object with the settings used for calls to updateDataset.Returns the object with the settings used for calls to updateEngineConfig.Returns the object with the settings used for calls to updateEngineConfig.Returns the object with the settings used for calls to updateInstance.Returns the object with the settings used for calls to updateInstance.Returns the object with the settings used for calls to updateModel.Returns the object with the settings used for calls to updateModel.Returns the object with the settings used for calls to updatePredictionResult.Returns the object with the settings used for calls to updatePredictionResult.Methods inherited from class com.google.api.gax.rpc.StubSettings
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomain, toString
-
Constructor Details
-
AMLStubSettings
- Throws:
IOException
-
-
Method Details
-
listInstancesSettings
public PagedCallSettings<ListInstancesRequest,ListInstancesResponse, listInstancesSettings()AMLClient.ListInstancesPagedResponse> Returns the object with the settings used for calls to listInstances. -
getInstanceSettings
Returns the object with the settings used for calls to getInstance. -
createInstanceSettings
Returns the object with the settings used for calls to createInstance. -
createInstanceOperationSettings
public OperationCallSettings<CreateInstanceRequest,Instance, createInstanceOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createInstance. -
updateInstanceSettings
Returns the object with the settings used for calls to updateInstance. -
updateInstanceOperationSettings
public OperationCallSettings<UpdateInstanceRequest,Instance, updateInstanceOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateInstance. -
deleteInstanceSettings
Returns the object with the settings used for calls to deleteInstance. -
deleteInstanceOperationSettings
public OperationCallSettings<DeleteInstanceRequest,com.google.protobuf.Empty, deleteInstanceOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteInstance. -
importRegisteredPartiesSettings
public UnaryCallSettings<ImportRegisteredPartiesRequest,Operation> importRegisteredPartiesSettings()Returns the object with the settings used for calls to importRegisteredParties. -
importRegisteredPartiesOperationSettings
public OperationCallSettings<ImportRegisteredPartiesRequest,ImportRegisteredPartiesResponse, importRegisteredPartiesOperationSettings()OperationMetadata> Returns the object with the settings used for calls to importRegisteredParties. -
exportRegisteredPartiesSettings
public UnaryCallSettings<ExportRegisteredPartiesRequest,Operation> exportRegisteredPartiesSettings()Returns the object with the settings used for calls to exportRegisteredParties. -
exportRegisteredPartiesOperationSettings
public OperationCallSettings<ExportRegisteredPartiesRequest,ExportRegisteredPartiesResponse, exportRegisteredPartiesOperationSettings()OperationMetadata> Returns the object with the settings used for calls to exportRegisteredParties. -
listDatasetsSettings
public PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse, listDatasetsSettings()AMLClient.ListDatasetsPagedResponse> Returns the object with the settings used for calls to listDatasets. -
getDatasetSettings
Returns the object with the settings used for calls to getDataset. -
createDatasetSettings
Returns the object with the settings used for calls to createDataset. -
createDatasetOperationSettings
public OperationCallSettings<CreateDatasetRequest,Dataset, createDatasetOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createDataset. -
updateDatasetSettings
Returns the object with the settings used for calls to updateDataset. -
updateDatasetOperationSettings
public OperationCallSettings<UpdateDatasetRequest,Dataset, updateDatasetOperationSettings()OperationMetadata> 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. -
listModelsSettings
public PagedCallSettings<ListModelsRequest,ListModelsResponse, listModelsSettings()AMLClient.ListModelsPagedResponse> Returns the object with the settings used for calls to listModels. -
getModelSettings
Returns the object with the settings used for calls to getModel. -
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. -
updateModelSettings
Returns the object with the settings used for calls to updateModel. -
updateModelOperationSettings
public OperationCallSettings<UpdateModelRequest,Model, updateModelOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateModel. -
exportModelMetadataSettings
Returns the object with the settings used for calls to exportModelMetadata. -
exportModelMetadataOperationSettings
public OperationCallSettings<ExportModelMetadataRequest,ExportModelMetadataResponse, exportModelMetadataOperationSettings()OperationMetadata> Returns the object with the settings used for calls to exportModelMetadata. -
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. -
listEngineConfigsSettings
public PagedCallSettings<ListEngineConfigsRequest,ListEngineConfigsResponse, listEngineConfigsSettings()AMLClient.ListEngineConfigsPagedResponse> Returns the object with the settings used for calls to listEngineConfigs. -
getEngineConfigSettings
Returns the object with the settings used for calls to getEngineConfig. -
createEngineConfigSettings
Returns the object with the settings used for calls to createEngineConfig. -
createEngineConfigOperationSettings
public OperationCallSettings<CreateEngineConfigRequest,EngineConfig, createEngineConfigOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createEngineConfig. -
updateEngineConfigSettings
Returns the object with the settings used for calls to updateEngineConfig. -
updateEngineConfigOperationSettings
public OperationCallSettings<UpdateEngineConfigRequest,EngineConfig, updateEngineConfigOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateEngineConfig. -
exportEngineConfigMetadataSettings
public UnaryCallSettings<ExportEngineConfigMetadataRequest,Operation> exportEngineConfigMetadataSettings()Returns the object with the settings used for calls to exportEngineConfigMetadata. -
exportEngineConfigMetadataOperationSettings
public OperationCallSettings<ExportEngineConfigMetadataRequest,ExportEngineConfigMetadataResponse, exportEngineConfigMetadataOperationSettings()OperationMetadata> Returns the object with the settings used for calls to exportEngineConfigMetadata. -
deleteEngineConfigSettings
Returns the object with the settings used for calls to deleteEngineConfig. -
deleteEngineConfigOperationSettings
public OperationCallSettings<DeleteEngineConfigRequest,com.google.protobuf.Empty, deleteEngineConfigOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteEngineConfig. -
getEngineVersionSettings
Returns the object with the settings used for calls to getEngineVersion. -
listEngineVersionsSettings
public PagedCallSettings<ListEngineVersionsRequest,ListEngineVersionsResponse, listEngineVersionsSettings()AMLClient.ListEngineVersionsPagedResponse> Returns the object with the settings used for calls to listEngineVersions. -
listPredictionResultsSettings
public PagedCallSettings<ListPredictionResultsRequest,ListPredictionResultsResponse, listPredictionResultsSettings()AMLClient.ListPredictionResultsPagedResponse> Returns the object with the settings used for calls to listPredictionResults. -
getPredictionResultSettings
Returns the object with the settings used for calls to getPredictionResult. -
createPredictionResultSettings
Returns the object with the settings used for calls to createPredictionResult. -
createPredictionResultOperationSettings
public OperationCallSettings<CreatePredictionResultRequest,PredictionResult, createPredictionResultOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createPredictionResult. -
updatePredictionResultSettings
Returns the object with the settings used for calls to updatePredictionResult. -
updatePredictionResultOperationSettings
public OperationCallSettings<UpdatePredictionResultRequest,PredictionResult, updatePredictionResultOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updatePredictionResult. -
exportPredictionResultMetadataSettings
public UnaryCallSettings<ExportPredictionResultMetadataRequest,Operation> exportPredictionResultMetadataSettings()Returns the object with the settings used for calls to exportPredictionResultMetadata. -
exportPredictionResultMetadataOperationSettings
public OperationCallSettings<ExportPredictionResultMetadataRequest,ExportPredictionResultMetadataResponse, exportPredictionResultMetadataOperationSettings()OperationMetadata> Returns the object with the settings used for calls to exportPredictionResultMetadata. -
deletePredictionResultSettings
Returns the object with the settings used for calls to deletePredictionResult. -
deletePredictionResultOperationSettings
public OperationCallSettings<DeletePredictionResultRequest,com.google.protobuf.Empty, deletePredictionResultOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deletePredictionResult. -
listBacktestResultsSettings
public PagedCallSettings<ListBacktestResultsRequest,ListBacktestResultsResponse, listBacktestResultsSettings()AMLClient.ListBacktestResultsPagedResponse> Returns the object with the settings used for calls to listBacktestResults. -
getBacktestResultSettings
Returns the object with the settings used for calls to getBacktestResult. -
createBacktestResultSettings
Returns the object with the settings used for calls to createBacktestResult. -
createBacktestResultOperationSettings
public OperationCallSettings<CreateBacktestResultRequest,BacktestResult, createBacktestResultOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createBacktestResult. -
updateBacktestResultSettings
Returns the object with the settings used for calls to updateBacktestResult. -
updateBacktestResultOperationSettings
public OperationCallSettings<UpdateBacktestResultRequest,BacktestResult, updateBacktestResultOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateBacktestResult. -
exportBacktestResultMetadataSettings
public UnaryCallSettings<ExportBacktestResultMetadataRequest,Operation> exportBacktestResultMetadataSettings()Returns the object with the settings used for calls to exportBacktestResultMetadata. -
exportBacktestResultMetadataOperationSettings
public OperationCallSettings<ExportBacktestResultMetadataRequest,ExportBacktestResultMetadataResponse, exportBacktestResultMetadataOperationSettings()OperationMetadata> Returns the object with the settings used for calls to exportBacktestResultMetadata. -
deleteBacktestResultSettings
Returns the object with the settings used for calls to deleteBacktestResult. -
deleteBacktestResultOperationSettings
public OperationCallSettings<DeleteBacktestResultRequest,com.google.protobuf.Empty, deleteBacktestResultOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteBacktestResult. -
listLocationsSettings
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse, listLocationsSettings()AMLClient.ListLocationsPagedResponse> Returns the object with the settings used for calls to listLocations. -
getLocationSettings
Returns the object with the settings used for calls to getLocation. -
createStub
- Throws:
IOException
-
getServiceName
Returns the default service name.- Overrides:
getServiceNamein classStubSettings<AMLStubSettings>
-
defaultExecutorProviderBuilder
Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Returns the default service endpoint. -
getDefaultMtlsEndpoint
Returns the default mTLS 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
-
defaultGrpcApiClientHeaderProviderBuilder
-
defaultHttpJsonApiClientHeaderProviderBuilder
-
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 classStubSettings<AMLStubSettings>
-
getLibraryMetadata
- Overrides:
getLibraryMetadatain classStubSettings<AMLStubSettings>
-