Class OperationsSettings.Builder (2.18.7)

public static class OperationsSettings.Builder extends ClientSettings.Builder<OperationsSettings,OperationsSettings.Builder>

Builder for OperationsSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > OperationsSettings.Builder

Constructors

Builder()

protected Builder()

Builder(OperationsSettings settings)

protected Builder(OperationsSettings settings)
Parameter
NameDescription
settingsOperationsSettings

Builder(OperationsStubSettings.Builder stubSettings)

protected Builder(OperationsStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsOperationsStubSettings.Builder

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public OperationsSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> 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.

Parameter
NameDescription
settingsUpdatercom.google.api.core.ApiFunction<Builder<?,?>,Void>
Returns
TypeDescription
OperationsSettings.Builder
Exceptions
TypeDescription
Exception

build()

public OperationsSettings build()
Returns
TypeDescription
OperationsSettings
Overrides Exceptions
TypeDescription
IOException

cancelOperationSettings()

public UnaryCallSettings.Builder<CancelOperationRequest,Empty> cancelOperationSettings()

Returns the builder for the settings used for calls to cancel.

Returns
TypeDescription
Builder<CancelOperationRequest,com.google.protobuf.Empty>

deleteOperationSettings()

public UnaryCallSettings.Builder<DeleteOperationRequest,Empty> deleteOperationSettings()

Returns the builder for the settings used for calls to delete.

Returns
TypeDescription
Builder<DeleteOperationRequest,com.google.protobuf.Empty>

getOperationSettings()

public UnaryCallSettings.Builder<GetOperationRequest,Operation> getOperationSettings()

Returns the builder for the settings used for calls to get.

Returns
TypeDescription
Builder<GetOperationRequest,Operation>

getStubSettingsBuilder()

public OperationsStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
OperationsStubSettings.Builder

listOperationsSettings()

public PagedCallSettings.Builder<ListOperationsRequest,ListOperationsResponse,OperationsClient.ListOperationsPagedResponse> listOperationsSettings()

Returns the builder for the settings used for calls to listOperations.

Returns
TypeDescription
Builder<ListOperationsRequest,ListOperationsResponse,ListOperationsPagedResponse>