Class CompletionStubSettings.Builder (2.29.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
NameDescription
clientContextClientContext

Builder(CompletionStubSettings settings)

protected Builder(CompletionStubSettings settings)
Parameter
NameDescription
settingsCompletionStubSettings

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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
CompletionStubSettings.Builder

build()

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

completeQuerySettings()

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

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

Returns
TypeDescription
Builder<CompleteQueryRequest,CompleteQueryResponse>

unaryMethodSettingsBuilders()

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