Class GroundedGenerationServiceStubSettings.Builder (0.47.0)

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

Builder for GroundedGenerationServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > GroundedGenerationServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(GroundedGenerationServiceStubSettings settings)

protected Builder(GroundedGenerationServiceStubSettings settings)
Parameter
Name Description
settings GroundedGenerationServiceStubSettings

Methods

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

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

build()

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

checkGroundingSettings()

public UnaryCallSettings.Builder<CheckGroundingRequest,CheckGroundingResponse> checkGroundingSettings()

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

Returns
Type Description
Builder<CheckGroundingRequest,CheckGroundingResponse>

unaryMethodSettingsBuilders()

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