Class CompletionSettings.Builder (2.32.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
NameDescription
clientContextClientContext

Builder(CompletionSettings settings)

protected Builder(CompletionSettings settings)
Parameter
NameDescription
settingsCompletionSettings

Builder(CompletionStubSettings.Builder stubSettings)

protected Builder(CompletionStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsCompletionStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
CompletionSettings.Builder

build()

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

getStubSettingsBuilder()

public CompletionStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
CompletionStubSettings.Builder