Class SearchTuningServiceStubSettings.Builder (0.29.0)

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

Builder for SearchTuningServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > SearchTuningServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(SearchTuningServiceStubSettings settings)

protected Builder(SearchTuningServiceStubSettings settings)
Parameter
NameDescription
settingsSearchTuningServiceStubSettings

Methods

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

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

build()

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

trainCustomModelOperationSettings()

public OperationCallSettings.Builder<TrainCustomModelRequest,TrainCustomModelResponse,TrainCustomModelMetadata> trainCustomModelOperationSettings()

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

Returns
TypeDescription
Builder<TrainCustomModelRequest,TrainCustomModelResponse,TrainCustomModelMetadata>

trainCustomModelSettings()

public UnaryCallSettings.Builder<TrainCustomModelRequest,Operation> trainCustomModelSettings()

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

Returns
TypeDescription
Builder<TrainCustomModelRequest,Operation>

unaryMethodSettingsBuilders()

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