Class ModelServiceSettings.Builder (2.48.0)

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

Builder for ModelServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ModelServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ModelServiceSettings settings)

protected Builder(ModelServiceSettings settings)
Parameter
Name Description
settings ModelServiceSettings

Builder(ModelServiceStubSettings.Builder stubSettings)

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

Methods

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

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

build()

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

createModelOperationSettings()

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

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

Returns
Type Description
Builder<CreateModelRequest,Model,CreateModelMetadata>

createModelSettings()

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

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

Returns
Type Description
Builder<CreateModelRequest,Operation>

deleteModelSettings()

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

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

Returns
Type Description
Builder<DeleteModelRequest,Empty>

getModelSettings()

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

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

Returns
Type Description
Builder<GetModelRequest,Model>

getStubSettingsBuilder()

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

listModelsSettings()

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

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

Returns
Type Description
Builder<ListModelsRequest,ListModelsResponse,ListModelsPagedResponse>

pauseModelSettings()

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

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

Returns
Type Description
Builder<PauseModelRequest,Model>

resumeModelSettings()

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

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

Returns
Type Description
Builder<ResumeModelRequest,Model>

tuneModelOperationSettings()

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

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

Returns
Type Description
Builder<TuneModelRequest,TuneModelResponse,TuneModelMetadata>

tuneModelSettings()

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

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

Returns
Type Description
Builder<TuneModelRequest,Operation>

updateModelSettings()

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

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

Returns
Type Description
Builder<UpdateModelRequest,Model>