public static class ModelServiceSettings.Builder extends ClientSettings.Builder<ModelServiceSettings,ModelServiceSettings.Builder>
Builder for ModelServiceSettings.
Constructors
Builder()
Builder(ClientContext clientContext)
protected Builder(ClientContext clientContext)
Builder(ModelServiceSettings settings)
protected Builder(ModelServiceSettings settings)
Builder(ModelServiceStubSettings.Builder stubSettings)
protected Builder(ModelServiceStubSettings.Builder stubSettings)
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.
build()
public ModelServiceSettings build()
Overrides
createModelOperationSettings()
public OperationCallSettings.Builder<CreateModelRequest,Model,CreateModelMetadata> createModelOperationSettings()
Returns the builder for the settings used for calls to createModel.
createModelSettings()
public UnaryCallSettings.Builder<CreateModelRequest,Operation> createModelSettings()
Returns the builder for the settings used for calls to createModel.
deleteModelSettings()
public UnaryCallSettings.Builder<DeleteModelRequest,Empty> deleteModelSettings()
Returns the builder for the settings used for calls to deleteModel.
getStubSettingsBuilder()
public ModelServiceStubSettings.Builder getStubSettingsBuilder()
listModelsSettings()
public PagedCallSettings.Builder<ListModelsRequest,ListModelsResponse,ModelServiceClient.ListModelsPagedResponse> listModelsSettings()
Returns the builder for the settings used for calls to listModels.
pauseModelSettings()
public UnaryCallSettings.Builder<PauseModelRequest,Model> pauseModelSettings()
Returns the builder for the settings used for calls to pauseModel.
resumeModelSettings()
public UnaryCallSettings.Builder<ResumeModelRequest,Model> resumeModelSettings()
Returns the builder for the settings used for calls to resumeModel.
tuneModelOperationSettings()
public OperationCallSettings.Builder<TuneModelRequest,TuneModelResponse,TuneModelMetadata> tuneModelOperationSettings()
Returns the builder for the settings used for calls to tuneModel.
tuneModelSettings()
public UnaryCallSettings.Builder<TuneModelRequest,Operation> tuneModelSettings()
Returns the builder for the settings used for calls to tuneModel.
updateModelSettings()
public UnaryCallSettings.Builder<UpdateModelRequest,Model> updateModelSettings()
Returns the builder for the settings used for calls to updateModel.