Package com.google.longrunning
Class OperationsSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings.Builder<OperationsSettings,OperationsSettings.Builder>
-
- com.google.longrunning.OperationsSettings.Builder
-
- Enclosing class:
- OperationsSettings
public static class OperationsSettings.Builder extends ClientSettings.Builder<OperationsSettings,OperationsSettings.Builder>
Builder for OperationsSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(ClientContext clientContext)
protected
Builder(OperationsSettings settings)
protected
Builder(OperationsStubSettings.Builder stubSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationsSettings.Builder
applyToAllUnaryMethods(com.google.api.core.ApiFunction<UnaryCallSettings.Builder<?,?>,java.lang.Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.OperationsSettings
build()
UnaryCallSettings.Builder<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty>
cancelOperationSettings()
Returns the builder for the settings used for calls to cancelOperation.UnaryCallSettings.Builder<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty>
deleteOperationSettings()
Returns the builder for the settings used for calls to deleteOperation.UnaryCallSettings.Builder<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation>
getOperationSettings()
Returns the builder for the settings used for calls to getOperation.OperationsStubSettings.Builder
getStubSettingsBuilder()
PagedCallSettings.Builder<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse,OperationsClient.ListOperationsPagedResponse>
listOperationsSettings()
Returns the builder for the settings used for calls to listOperations.UnaryCallSettings.Builder<com.google.longrunning.WaitOperationRequest,com.google.longrunning.Operation>
waitOperationSettings()
Returns the builder for the settings used for calls to deleteOperation.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder() throws java.io.IOException
- Throws:
java.io.IOException
-
Builder
protected Builder(ClientContext clientContext)
-
Builder
protected Builder(OperationsSettings settings)
-
Builder
protected Builder(OperationsStubSettings.Builder stubSettings)
-
-
Method Detail
-
getStubSettingsBuilder
public OperationsStubSettings.Builder getStubSettingsBuilder()
-
applyToAllUnaryMethods
public OperationsSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<UnaryCallSettings.Builder<?,?>,java.lang.Void> settingsUpdater) throws java.lang.Exception
Applies the given settings updater function to all of the unary API methods in this service.Note: This method does not support applying settings to streaming methods.
- Throws:
java.lang.Exception
-
getOperationSettings
public UnaryCallSettings.Builder<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation> getOperationSettings()
Returns the builder for the settings used for calls to getOperation.
-
listOperationsSettings
public PagedCallSettings.Builder<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse,OperationsClient.ListOperationsPagedResponse> listOperationsSettings()
Returns the builder for the settings used for calls to listOperations.
-
cancelOperationSettings
public UnaryCallSettings.Builder<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty> cancelOperationSettings()
Returns the builder for the settings used for calls to cancelOperation.
-
deleteOperationSettings
public UnaryCallSettings.Builder<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty> deleteOperationSettings()
Returns the builder for the settings used for calls to deleteOperation.
-
waitOperationSettings
public UnaryCallSettings.Builder<com.google.longrunning.WaitOperationRequest,com.google.longrunning.Operation> waitOperationSettings()
Returns the builder for the settings used for calls to deleteOperation.
-
build
public OperationsSettings build() throws java.io.IOException
- Specified by:
build
in classClientSettings.Builder<OperationsSettings,OperationsSettings.Builder>
- Throws:
java.io.IOException
-
-