Package com.google.longrunning.stub
Class OperationsStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<OperationsStubSettings,OperationsStubSettings.Builder>
-
- com.google.longrunning.stub.OperationsStubSettings.Builder
-
- Enclosing class:
- OperationsStubSettings
public static class OperationsStubSettings.Builder extends StubSettings.Builder<OperationsStubSettings,OperationsStubSettings.Builder>
Builder for OperationsStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(ClientContext clientContext)
protected
Builder(OperationsStubSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationsStubSettings.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.OperationsStubSettings
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.PagedCallSettings.Builder<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse,OperationsClient.ListOperationsPagedResponse>
listOperationsSettings()
Returns the builder for the settings used for calls to listOperations.com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
UnaryCallSettings.Builder<com.google.longrunning.WaitOperationRequest,com.google.longrunning.Operation>
waitOperationSettings()
Returns the builder for the settings used for calls to waitOperation.-
Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(ClientContext clientContext)
-
Builder
protected Builder(OperationsStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public OperationsStubSettings.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
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
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 waitOperation.
-
build
public OperationsStubSettings build() throws java.io.IOException
- Specified by:
build
in classStubSettings.Builder<OperationsStubSettings,OperationsStubSettings.Builder>
- Throws:
java.io.IOException
-
-