public static class PredictionServiceSettings.Builder extends ClientSettings.Builder<PredictionServiceSettings,PredictionServiceSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(PredictionServiceSettings settings) |
protected |
Builder(PredictionServiceStubSettings.Builder stubSettings) |
Modifier and Type | Method and Description |
---|---|
PredictionServiceSettings.Builder |
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
OperationCallSettings.Builder<com.google.cloud.automl.v1beta1.BatchPredictRequest,com.google.cloud.automl.v1beta1.BatchPredictResult,com.google.cloud.automl.v1beta1.OperationMetadata> |
batchPredictOperationSettings()
Returns the builder for the settings used for calls to batchPredict.
|
UnaryCallSettings.Builder<com.google.cloud.automl.v1beta1.BatchPredictRequest,Operation> |
batchPredictSettings()
Returns the builder for the settings used for calls to batchPredict.
|
PredictionServiceSettings |
build() |
PredictionServiceStubSettings.Builder |
getStubSettingsBuilder() |
UnaryCallSettings.Builder<com.google.cloud.automl.v1beta1.PredictRequest,com.google.cloud.automl.v1beta1.PredictResponse> |
predictSettings()
Returns the builder for the settings used for calls to predict.
|
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
protected Builder() throws IOException
IOException
protected Builder(ClientContext clientContext)
protected Builder(PredictionServiceSettings settings)
protected Builder(PredictionServiceStubSettings.Builder stubSettings)
public PredictionServiceStubSettings.Builder getStubSettingsBuilder()
public PredictionServiceSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public UnaryCallSettings.Builder<com.google.cloud.automl.v1beta1.PredictRequest,com.google.cloud.automl.v1beta1.PredictResponse> predictSettings()
public UnaryCallSettings.Builder<com.google.cloud.automl.v1beta1.BatchPredictRequest,Operation> batchPredictSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder<com.google.cloud.automl.v1beta1.BatchPredictRequest,com.google.cloud.automl.v1beta1.BatchPredictResult,com.google.cloud.automl.v1beta1.OperationMetadata> batchPredictOperationSettings()
public PredictionServiceSettings build() throws IOException
build
in class ClientSettings.Builder<PredictionServiceSettings,PredictionServiceSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.