public static class SpeechStubSettings.Builder extends StubSettings.Builder<SpeechStubSettings,SpeechStubSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(SpeechStubSettings settings) |
Modifier and Type | Method and Description |
---|---|
SpeechStubSettings.Builder |
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
SpeechStubSettings |
build() |
OperationCallSettings.Builder<com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest,com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse,com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata> |
longRunningRecognizeOperationSettings()
Returns the builder for the settings used for calls to longRunningRecognize.
|
UnaryCallSettings.Builder<com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest,Operation> |
longRunningRecognizeSettings()
Returns the builder for the settings used for calls to longRunningRecognize.
|
UnaryCallSettings.Builder<com.google.cloud.speech.v1p1beta1.RecognizeRequest,com.google.cloud.speech.v1p1beta1.RecognizeResponse> |
recognizeSettings()
Returns the builder for the settings used for calls to recognize.
|
StreamingCallSettings.Builder<com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest,com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> |
streamingRecognizeSettings()
Returns the builder for the settings used for calls to streamingRecognize.
|
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(SpeechStubSettings settings)
public SpeechStubSettings.Builder applyToAllUnaryMethods(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.speech.v1p1beta1.RecognizeRequest,com.google.cloud.speech.v1p1beta1.RecognizeResponse> recognizeSettings()
public UnaryCallSettings.Builder<com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest,Operation> longRunningRecognizeSettings()
@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.speech.v1p1beta1.LongRunningRecognizeRequest,com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse,com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata> longRunningRecognizeOperationSettings()
public StreamingCallSettings.Builder<com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest,com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> streamingRecognizeSettings()
public SpeechStubSettings build() throws IOException
build
in class StubSettings.Builder<SpeechStubSettings,SpeechStubSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.