Class CompletionStubSettings.Builder (2.45.0)

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

Builder for CompletionStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > CompletionStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(CompletionStubSettings settings)

protected Builder(CompletionStubSettings settings)
Parameter
Name Description
settings CompletionStubSettings

Methods

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

public CompletionStubSettings.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<?,?>,java.lang.Void>
Returns
Type Description
CompletionStubSettings.Builder

build()

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

completeQuerySettings()

public UnaryCallSettings.Builder<CompleteQueryRequest,CompleteQueryResponse> completeQuerySettings()

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

Returns
Type Description
Builder<CompleteQueryRequest,CompleteQueryResponse>

unaryMethodSettingsBuilders()

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