public static class SpeechSettings.Builder
extends com.google.api.gax.grpc.ServiceApiSettings.Builder
| Modifier and Type | Method and Description |
|---|---|
SpeechSettings.Builder |
applyToAllApiMethods(com.google.api.gax.grpc.ApiCallSettings.Builder apiCallSettings)
Applies the given settings to all of the API methods in this service.
|
com.google.api.gax.grpc.SimpleCallSettings.Builder<com.google.cloud.speech.v1beta1.AsyncRecognizeRequest,com.google.longrunning.Operation> |
asyncRecognizeSettings()
Returns the builder for the settings used for calls to asyncRecognize.
|
SpeechSettings |
build() |
protected com.google.api.gax.core.ConnectionSettings |
getDefaultConnectionSettings() |
SpeechSettings.Builder |
provideChannelWith(com.google.api.gax.core.ConnectionSettings settings) |
SpeechSettings.Builder |
provideChannelWith(com.google.auth.Credentials credentials) |
SpeechSettings.Builder |
provideChannelWith(List<String> scopes) |
SpeechSettings.Builder |
provideChannelWith(io.grpc.ManagedChannel channel,
boolean shouldAutoClose) |
SpeechSettings.Builder |
provideExecutorWith(ScheduledExecutorService executor,
boolean shouldAutoClose) |
SpeechSettings.Builder |
setClientLibHeader(String name,
String version) |
SpeechSettings.Builder |
setGeneratorHeader(String name,
String version) |
com.google.api.gax.grpc.SimpleCallSettings.Builder<com.google.cloud.speech.v1beta1.SyncRecognizeRequest,com.google.cloud.speech.v1beta1.SyncRecognizeResponse> |
syncRecognizeSettings()
Returns the builder for the settings used for calls to syncRecognize.
|
protected com.google.api.gax.core.ConnectionSettings getDefaultConnectionSettings()
getDefaultConnectionSettings in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic SpeechSettings.Builder provideExecutorWith(ScheduledExecutorService executor, boolean shouldAutoClose)
provideExecutorWith in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic SpeechSettings.Builder provideChannelWith(io.grpc.ManagedChannel channel, boolean shouldAutoClose)
provideChannelWith in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic SpeechSettings.Builder provideChannelWith(com.google.api.gax.core.ConnectionSettings settings)
provideChannelWith in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic SpeechSettings.Builder provideChannelWith(com.google.auth.Credentials credentials)
provideChannelWith in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic SpeechSettings.Builder provideChannelWith(List<String> scopes)
provideChannelWith in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic SpeechSettings.Builder setGeneratorHeader(String name, String version)
setGeneratorHeader in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic SpeechSettings.Builder setClientLibHeader(String name, String version)
setClientLibHeader in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic SpeechSettings.Builder applyToAllApiMethods(com.google.api.gax.grpc.ApiCallSettings.Builder apiCallSettings) throws Exception
Exceptionpublic com.google.api.gax.grpc.SimpleCallSettings.Builder<com.google.cloud.speech.v1beta1.SyncRecognizeRequest,com.google.cloud.speech.v1beta1.SyncRecognizeResponse> syncRecognizeSettings()
public com.google.api.gax.grpc.SimpleCallSettings.Builder<com.google.cloud.speech.v1beta1.AsyncRecognizeRequest,com.google.longrunning.Operation> asyncRecognizeSettings()
public SpeechSettings build() throws IOException
build in class com.google.api.gax.grpc.ServiceApiSettings.BuilderIOExceptionCopyright © 2016 Google. All rights reserved.