Class CompletionSettings.Builder (2.46.0)

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

Builder for CompletionSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > CompletionSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(CompletionSettings settings)

protected Builder(CompletionSettings settings)
Parameter
Name Description
settings CompletionSettings

Builder(CompletionStubSettings.Builder stubSettings)

protected Builder(CompletionStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings CompletionStubSettings.Builder

Methods

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

public CompletionSettings.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
CompletionSettings.Builder

build()

public CompletionSettings build()
Returns
Type Description
CompletionSettings
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>

getStubSettingsBuilder()

public CompletionStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
CompletionStubSettings.Builder