@Generated(value="by GAPIC") public class SpeechSettings extends com.google.api.gax.grpc.ServiceApiSettings
SpeechApi.
The default instance has everything set to sensible defaults:
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object. For example, to set the total timeout of syncRecognize to 30 seconds:
SpeechSettings.Builder speechSettingsBuilder =
SpeechSettings.defaultBuilder();
speechSettingsBuilder.syncRecognizeSettings().getRetrySettingsBuilder()
.setTotalTimeout(Duration.standardSeconds(30));
SpeechSettings speechSettings = speechSettingsBuilder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
SpeechSettings.Builder
Builder for SpeechSettings.
|
| Modifier and Type | Field and Description |
|---|---|
static com.google.api.gax.core.ConnectionSettings |
DEFAULT_CONNECTION_SETTINGS
The default connection settings of the service.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.grpc.SimpleCallSettings<com.google.cloud.speech.v1beta1.AsyncRecognizeRequest,com.google.longrunning.Operation> |
asyncRecognizeSettings()
Returns the object with the settings used for calls to asyncRecognize.
|
static SpeechSettings.Builder |
defaultBuilder()
Returns a builder for this class with recommended defaults.
|
static String |
getDefaultServiceAddress()
Returns the default service address.
|
static int |
getDefaultServicePort()
Returns the default service port.
|
static com.google.common.collect.ImmutableList<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
static SpeechSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
com.google.api.gax.grpc.SimpleCallSettings<com.google.cloud.speech.v1beta1.SyncRecognizeRequest,com.google.cloud.speech.v1beta1.SyncRecognizeResponse> |
syncRecognizeSettings()
Returns the object with the settings used for calls to syncRecognize.
|
SpeechSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
public static final com.google.api.gax.core.ConnectionSettings DEFAULT_CONNECTION_SETTINGS
public com.google.api.gax.grpc.SimpleCallSettings<com.google.cloud.speech.v1beta1.SyncRecognizeRequest,com.google.cloud.speech.v1beta1.SyncRecognizeResponse> syncRecognizeSettings()
public com.google.api.gax.grpc.SimpleCallSettings<com.google.cloud.speech.v1beta1.AsyncRecognizeRequest,com.google.longrunning.Operation> asyncRecognizeSettings()
public static String getDefaultServiceAddress()
public static int getDefaultServicePort()
public static com.google.common.collect.ImmutableList<String> getDefaultServiceScopes()
public static SpeechSettings.Builder defaultBuilder()
public static SpeechSettings.Builder newBuilder()
public SpeechSettings.Builder toBuilder()
Copyright © 2016 Google. All rights reserved.