Class OperationsStubSettings.Builder (2.52.0)

public static class OperationsStubSettings.Builder extends StubSettings.Builder<OperationsStubSettings,OperationsStubSettings.Builder>

Builder for OperationsStubSettings.

Inheritance

StubSettings.Builder > java.lang.Object > OperationsStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(OperationsStubSettings settings)

protected Builder(OperationsStubSettings settings)
Parameter
Name Description
settings OperationsStubSettings

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

public OperationsStubSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,Void>
Returns
Type Description
OperationsStubSettings.Builder
Exceptions
Type Description
Exception

build()

public OperationsStubSettings build()
Returns
Type Description
OperationsStubSettings
Overrides
Exceptions
Type Description
IOException

cancelOperationSettings()

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

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

Returns
Type Description
Builder<CancelOperationRequest,Empty>

deleteOperationSettings()

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

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

Returns
Type Description
Builder<DeleteOperationRequest,Empty>

getOperationSettings()

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

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

Returns
Type Description
Builder<GetOperationRequest,Operation>

listOperationsSettings()

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

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

Returns
Type Description
Builder<ListOperationsRequest,ListOperationsResponse,ListOperationsPagedResponse>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
Type Description
com.google.common.collect.ImmutableList<Builder<?,?>>