Class OperationsStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<OperationsStubSettings,OperationsStubSettings.Builder>
-
- com.google.api.gax.httpjson.longrunning.stub.OperationsStubSettings.Builder
-
- Enclosing class:
- OperationsStubSettings
public static class OperationsStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<OperationsStubSettings,OperationsStubSettings.Builder>
Builder for OperationsStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()protectedBuilder(OperationsStubSettings settings)protectedBuilder(com.google.api.gax.rpc.ClientContext clientContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationsStubSettings.BuilderapplyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)Applies the given settings updater function to all of the unary API methods in this service.OperationsStubSettingsbuild()com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty>cancelOperationSettings()Returns the builder for the settings used for calls to cancel.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty>deleteOperationSettings()Returns the builder for the settings used for calls to delete.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation>getOperationSettings()Returns the builder for the settings used for calls to get.com.google.api.gax.rpc.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<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>unaryMethodSettingsBuilders()-
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(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(OperationsStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public OperationsStubSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws 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:
Exception
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
listOperationsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse,OperationsClient.ListOperationsPagedResponse> listOperationsSettings()
Returns the builder for the settings used for calls to listOperations.
-
getOperationSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation> getOperationSettings()
Returns the builder for the settings used for calls to get.
-
deleteOperationSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty> deleteOperationSettings()
Returns the builder for the settings used for calls to delete.
-
cancelOperationSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty> cancelOperationSettings()
Returns the builder for the settings used for calls to cancel.
-
build
public OperationsStubSettings build() throws IOException
- Specified by:
buildin classcom.google.api.gax.rpc.StubSettings.Builder<OperationsStubSettings,OperationsStubSettings.Builder>- Throws:
IOException
-
-