Package com.google.cloud.retail.v2.stub
Class ModelServiceStubSettings.Builder
java.lang.Object
com.google.api.gax.rpc.StubSettings.Builder<ModelServiceStubSettings,ModelServiceStubSettings.Builder>
com.google.cloud.retail.v2.stub.ModelServiceStubSettings.Builder
- Enclosing class:
- ModelServiceStubSettings
public static class ModelServiceStubSettings.Builder
extends StubSettings.Builder<ModelServiceStubSettings,ModelServiceStubSettings.Builder>
Builder for ModelServiceStubSettings.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()protectedBuilder(ClientContext clientContext) protectedBuilder(ModelServiceStubSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionapplyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) Applies the given settings updater function to all of the unary API methods in this service.build()Returns the builder for the settings used for calls to createModel.Returns the builder for the settings used for calls to createModel.UnaryCallSettings.Builder<DeleteModelRequest,com.google.protobuf.Empty> Returns the builder for the settings used for calls to deleteModel.Returns the builder for the settings used for calls to getModel.PagedCallSettings.Builder<ListModelsRequest,ListModelsResponse, ModelServiceClient.ListModelsPagedResponse> Returns the builder for the settings used for calls to listModels.Returns the builder for the settings used for calls to pauseModel.Returns the builder for the settings used for calls to resumeModel.Returns the builder for the settings used for calls to tuneModel.Returns the builder for the settings used for calls to tuneModel.com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> Returns the builder for the settings used for calls to updateModel.Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setApiKey, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogCheckIntervalDuration, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, setUniverseDomain, toString
-
Constructor Details
-
Builder
protected Builder() -
Builder
-
Builder
-
-
Method Details
-
applyToAllUnaryMethods
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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders() -
createModelSettings
Returns the builder for the settings used for calls to createModel. -
createModelOperationSettings
public OperationCallSettings.Builder<CreateModelRequest,Model, createModelOperationSettings()CreateModelMetadata> Returns the builder for the settings used for calls to createModel. -
getModelSettings
Returns the builder for the settings used for calls to getModel. -
pauseModelSettings
Returns the builder for the settings used for calls to pauseModel. -
resumeModelSettings
Returns the builder for the settings used for calls to resumeModel. -
deleteModelSettings
public UnaryCallSettings.Builder<DeleteModelRequest,com.google.protobuf.Empty> deleteModelSettings()Returns the builder for the settings used for calls to deleteModel. -
listModelsSettings
public PagedCallSettings.Builder<ListModelsRequest,ListModelsResponse, listModelsSettings()ModelServiceClient.ListModelsPagedResponse> Returns the builder for the settings used for calls to listModels. -
updateModelSettings
Returns the builder for the settings used for calls to updateModel. -
tuneModelSettings
Returns the builder for the settings used for calls to tuneModel. -
tuneModelOperationSettings
public OperationCallSettings.Builder<TuneModelRequest,TuneModelResponse, tuneModelOperationSettings()TuneModelMetadata> Returns the builder for the settings used for calls to tuneModel. -
build
- Specified by:
buildin classStubSettings.Builder<ModelServiceStubSettings,ModelServiceStubSettings.Builder> - Throws:
IOException
-