Class OperationsSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings.Builder<OperationsSettings,OperationsSettings.Builder>
-
- com.google.api.gax.httpjson.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 protectedBuilder()protectedBuilder(OperationsSettings settings)protectedBuilder(OperationsStubSettings.Builder stubSettings)protectedBuilder(ClientContext clientContext)
-
Method Summary
-
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 IOException- Throws:
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(ApiFunction<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
-
listOperationsSettings
public PagedCallSettings.Builder<ListOperationsRequest,ListOperationsResponse,OperationsClient.ListOperationsPagedResponse> listOperationsSettings()
Returns the builder for the settings used for calls to listOperations.
-
getOperationSettings
public UnaryCallSettings.Builder<GetOperationRequest,Operation> getOperationSettings()
Returns the builder for the settings used for calls to get.
-
deleteOperationSettings
public UnaryCallSettings.Builder<DeleteOperationRequest,com.google.protobuf.Empty> deleteOperationSettings()
Returns the builder for the settings used for calls to delete.
-
cancelOperationSettings
public UnaryCallSettings.Builder<CancelOperationRequest,com.google.protobuf.Empty> cancelOperationSettings()
Returns the builder for the settings used for calls to cancel.
-
build
public OperationsSettings build() throws IOException
- Specified by:
buildin classClientSettings.Builder<OperationsSettings,OperationsSettings.Builder>- Throws:
IOException
-
-