public static class PredictionServiceStubSettings.Builder extends StubSettings.Builder<PredictionServiceStubSettings,PredictionServiceStubSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(PredictionServiceStubSettings settings) |
Modifier and Type | Method and Description |
---|---|
PredictionServiceStubSettings.Builder |
applyToAllUnaryMethods(com.google.api.core.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.
|
PredictionServiceStubSettings |
build() |
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.
|
com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> |
unaryMethodSettingsBuilders() |
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setTracerFactory, setTransportChannelProvider, toString
protected Builder()
protected Builder(ClientContext clientContext)
protected Builder(PredictionServiceStubSettings settings)
public PredictionServiceStubSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
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 use by generated code 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 PredictionServiceStubSettings build() throws IOException
build
in class StubSettings.Builder<PredictionServiceStubSettings,PredictionServiceStubSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.