Class CursorServiceStubSettings.Builder (1.12.1)

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

Builder for CursorServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > CursorServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(CursorServiceStubSettings settings)

protected Builder(CursorServiceStubSettings settings)
Parameter
NameDescription
settingsCursorServiceStubSettings

Methods

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

public CursorServiceStubSettings.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
settingsUpdaterApiFunction<Builder<?,?>,Void>
Returns
TypeDescription
CursorServiceStubSettings.Builder

build()

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

commitCursorSettings()

public UnaryCallSettings.Builder<CommitCursorRequest,CommitCursorResponse> commitCursorSettings()

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

Returns
TypeDescription
Builder<CommitCursorRequest,CommitCursorResponse>

listPartitionCursorsSettings()

public PagedCallSettings.Builder<ListPartitionCursorsRequest,ListPartitionCursorsResponse,CursorServiceClient.ListPartitionCursorsPagedResponse> listPartitionCursorsSettings()

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

Returns
TypeDescription
Builder<ListPartitionCursorsRequest,ListPartitionCursorsResponse,ListPartitionCursorsPagedResponse>

streamingCommitCursorSettings()

public StreamingCallSettings.Builder<StreamingCommitCursorRequest,StreamingCommitCursorResponse> streamingCommitCursorSettings()

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

Returns
TypeDescription
Builder<StreamingCommitCursorRequest,StreamingCommitCursorResponse>

unaryMethodSettingsBuilders()

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