public static class SpeechSettings.Builder extends ClientSettings.Builder<SpeechSettings,SpeechSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(SpeechSettings settings) |
protected |
Builder(SpeechStubSettings.Builder stubSettings) |
Modifier and Type | Method and Description |
---|---|
SpeechSettings.Builder |
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
SpeechSettings |
build() |
SpeechStubSettings.Builder |
getStubSettingsBuilder() |
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.
|
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(SpeechSettings settings)
protected Builder(SpeechStubSettings.Builder stubSettings)
public SpeechStubSettings.Builder getStubSettingsBuilder()
public SpeechSettings.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.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 long-running operations 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 SpeechSettings build() throws IOException
build
in class ClientSettings.Builder<SpeechSettings,SpeechSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.