@BetaApi public class OperationsSettings extends com.google.api.gax.rpc.ClientSettings<OperationsSettings>
OperationsClient.
The default instance has everything set to sensible defaults:
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 getOperation to 30 seconds:
OperationsSettings.Builder operationsSettingsBuilder = OperationsSettings.newBuilder();
operationsSettingsBuilder
.getOperationSettings()
.setRetrySettings(
operationsSettingsBuilder
.getOperationSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
OperationsSettings operationsSettings = operationsSettingsBuilder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
OperationsSettings.Builder
Builder for OperationsSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
OperationsSettings(OperationsSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.rpc.UnaryCallSettings<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty> |
cancelOperationSettings()
Returns the object with the settings used for calls to cancel.
|
static OperationsSettings |
create(OperationsStubSettings stub) |
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 InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.UnaryCallSettings<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty> |
deleteOperationSettings()
Returns the object with the settings used for calls to delete.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation> |
getOperationSettings()
Returns the object with the settings used for calls to get.
|
com.google.api.gax.rpc.PagedCallSettings<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse,OperationsClient.ListOperationsPagedResponse> |
listOperationsSettings()
Returns the object with the settings used for calls to listOperations.
|
static OperationsSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static OperationsSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
OperationsSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toStringprotected OperationsSettings(OperationsSettings.Builder settingsBuilder) throws IOException
IOExceptionpublic com.google.api.gax.rpc.PagedCallSettings<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse,OperationsClient.ListOperationsPagedResponse> listOperationsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation> getOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty> deleteOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty> cancelOperationSettings()
public static final OperationsSettings create(OperationsStubSettings stub) throws IOException
IOExceptionpublic static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static OperationsSettings.Builder newBuilder()
public static OperationsSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public OperationsSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.ClientSettings<OperationsSettings>