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
ConstructorsModifierConstructorDescriptionprotectedBuilder()protectedBuilder(OperationsSettings settings) protectedBuilder(OperationsStubSettings.Builder stubSettings) protectedBuilder(ClientContext clientContext) -
Method Summary
Modifier and TypeMethodDescriptionapplyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) Applies the given settings updater function to all of the unary API methods in this service.build()UnaryCallSettings.Builder<CancelOperationRequest,com.google.protobuf.Empty> Returns the builder for the settings used for calls to cancel.UnaryCallSettings.Builder<DeleteOperationRequest,com.google.protobuf.Empty> Returns the builder for the settings used for calls to delete.Returns the builder for the settings used for calls to get.PagedCallSettings.Builder<ListOperationsRequest,ListOperationsResponse, OperationsClient.ListOperationsPagedResponse> Returns the builder for the settings used for calls to listOperations.Methods inherited from class com.google.api.gax.rpc.ClientSettings.Builder
applyToAllUnaryMethods, getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, self, setApiKey, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, setTransportChannelProvider, setUniverseDomain, setWatchdogCheckInterval, setWatchdogCheckIntervalDuration, setWatchdogProvider, toString
-
Constructor Details
-
Builder
- Throws:
IOException
-
Builder
-
Builder
-
Builder
-
-
Method Details
-
getStubSettingsBuilder
-
applyToAllUnaryMethods
public OperationsSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?, ?>, throws ExceptionVoid> settingsUpdater) 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, listOperationsSettings()OperationsClient.ListOperationsPagedResponse> Returns the builder for the settings used for calls to listOperations. -
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
- Specified by:
buildin classClientSettings.Builder<OperationsSettings,OperationsSettings.Builder> - Throws:
IOException
-