Class ModelServiceStubSettings.Builder (2.23.0)

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

Builder for ModelServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ModelServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ModelServiceStubSettings settings)

protected Builder(ModelServiceStubSettings settings)
Parameter
NameDescription
settingsModelServiceStubSettings

Methods

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

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

build()

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

createModelOperationSettings()

public OperationCallSettings.Builder<CreateModelRequest,Model,CreateModelMetadata> createModelOperationSettings()

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

Returns
TypeDescription
Builder<CreateModelRequest,Model,CreateModelMetadata>

createModelSettings()

public UnaryCallSettings.Builder<CreateModelRequest,Operation> createModelSettings()

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

Returns
TypeDescription
Builder<CreateModelRequest,Operation>

deleteModelSettings()

public UnaryCallSettings.Builder<DeleteModelRequest,Empty> deleteModelSettings()

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

Returns
TypeDescription
Builder<DeleteModelRequest,Empty>

getModelSettings()

public UnaryCallSettings.Builder<GetModelRequest,Model> getModelSettings()

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

Returns
TypeDescription
Builder<GetModelRequest,Model>

listModelsSettings()

public PagedCallSettings.Builder<ListModelsRequest,ListModelsResponse,ModelServiceClient.ListModelsPagedResponse> listModelsSettings()

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

Returns
TypeDescription
Builder<ListModelsRequest,ListModelsResponse,ListModelsPagedResponse>

pauseModelSettings()

public UnaryCallSettings.Builder<PauseModelRequest,Model> pauseModelSettings()

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

Returns
TypeDescription
Builder<PauseModelRequest,Model>

resumeModelSettings()

public UnaryCallSettings.Builder<ResumeModelRequest,Model> resumeModelSettings()

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

Returns
TypeDescription
Builder<ResumeModelRequest,Model>

tuneModelOperationSettings()

public OperationCallSettings.Builder<TuneModelRequest,TuneModelResponse,TuneModelMetadata> tuneModelOperationSettings()

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

Returns
TypeDescription
Builder<TuneModelRequest,TuneModelResponse,TuneModelMetadata>

tuneModelSettings()

public UnaryCallSettings.Builder<TuneModelRequest,Operation> tuneModelSettings()

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

Returns
TypeDescription
Builder<TuneModelRequest,Operation>

unaryMethodSettingsBuilders()

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

updateModelSettings()

public UnaryCallSettings.Builder<UpdateModelRequest,Model> updateModelSettings()

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

Returns
TypeDescription
Builder<UpdateModelRequest,Model>