@Generated(value="by gapic-generator") @BetaApi public class TranslationServiceSettings extends ClientSettings<TranslationServiceSettings>
TranslationServiceClient
.
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 detectLanguage to 30 seconds:
TranslationServiceSettings.Builder translationServiceSettingsBuilder =
TranslationServiceSettings.newBuilder();
translationServiceSettingsBuilder.detectLanguageSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
TranslationServiceSettings translationServiceSettings = translationServiceSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
TranslationServiceSettings.Builder
Builder for TranslationServiceSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
TranslationServiceSettings(TranslationServiceSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
OperationCallSettings<com.google.cloud.translate.v3beta1.BatchTranslateTextRequest,com.google.cloud.translate.v3beta1.BatchTranslateResponse,com.google.cloud.translate.v3beta1.BatchTranslateMetadata> |
batchTranslateTextOperationSettings()
Returns the object with the settings used for calls to batchTranslateText.
|
UnaryCallSettings<com.google.cloud.translate.v3beta1.BatchTranslateTextRequest,Operation> |
batchTranslateTextSettings()
Returns the object with the settings used for calls to batchTranslateText.
|
static TranslationServiceSettings |
create(TranslationServiceStubSettings stub) |
OperationCallSettings<com.google.cloud.translate.v3beta1.CreateGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary,com.google.cloud.translate.v3beta1.CreateGlossaryMetadata> |
createGlossaryOperationSettings()
Returns the object with the settings used for calls to createGlossary.
|
UnaryCallSettings<com.google.cloud.translate.v3beta1.CreateGlossaryRequest,Operation> |
createGlossarySettings()
Returns the object with the settings used for calls to createGlossary.
|
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
OperationCallSettings<com.google.cloud.translate.v3beta1.DeleteGlossaryRequest,com.google.cloud.translate.v3beta1.DeleteGlossaryResponse,com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata> |
deleteGlossaryOperationSettings()
Returns the object with the settings used for calls to deleteGlossary.
|
UnaryCallSettings<com.google.cloud.translate.v3beta1.DeleteGlossaryRequest,Operation> |
deleteGlossarySettings()
Returns the object with the settings used for calls to deleteGlossary.
|
UnaryCallSettings<com.google.cloud.translate.v3beta1.DetectLanguageRequest,com.google.cloud.translate.v3beta1.DetectLanguageResponse> |
detectLanguageSettings()
Returns the object with the settings used for calls to detectLanguage.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<com.google.cloud.translate.v3beta1.GetGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary> |
getGlossarySettings()
Returns the object with the settings used for calls to getGlossary.
|
UnaryCallSettings<com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest,com.google.cloud.translate.v3beta1.SupportedLanguages> |
getSupportedLanguagesSettings()
Returns the object with the settings used for calls to getSupportedLanguages.
|
PagedCallSettings<com.google.cloud.translate.v3beta1.ListGlossariesRequest,com.google.cloud.translate.v3beta1.ListGlossariesResponse,TranslationServiceClient.ListGlossariesPagedResponse> |
listGlossariesSettings()
Returns the object with the settings used for calls to listGlossaries.
|
static TranslationServiceSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static TranslationServiceSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
TranslationServiceSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
UnaryCallSettings<com.google.cloud.translate.v3beta1.TranslateTextRequest,com.google.cloud.translate.v3beta1.TranslateTextResponse> |
translateTextSettings()
Returns the object with the settings used for calls to translateText.
|
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected TranslationServiceSettings(TranslationServiceSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<com.google.cloud.translate.v3beta1.TranslateTextRequest,com.google.cloud.translate.v3beta1.TranslateTextResponse> translateTextSettings()
public UnaryCallSettings<com.google.cloud.translate.v3beta1.DetectLanguageRequest,com.google.cloud.translate.v3beta1.DetectLanguageResponse> detectLanguageSettings()
public UnaryCallSettings<com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest,com.google.cloud.translate.v3beta1.SupportedLanguages> getSupportedLanguagesSettings()
public UnaryCallSettings<com.google.cloud.translate.v3beta1.BatchTranslateTextRequest,Operation> batchTranslateTextSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings<com.google.cloud.translate.v3beta1.BatchTranslateTextRequest,com.google.cloud.translate.v3beta1.BatchTranslateResponse,com.google.cloud.translate.v3beta1.BatchTranslateMetadata> batchTranslateTextOperationSettings()
public UnaryCallSettings<com.google.cloud.translate.v3beta1.CreateGlossaryRequest,Operation> createGlossarySettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings<com.google.cloud.translate.v3beta1.CreateGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary,com.google.cloud.translate.v3beta1.CreateGlossaryMetadata> createGlossaryOperationSettings()
public PagedCallSettings<com.google.cloud.translate.v3beta1.ListGlossariesRequest,com.google.cloud.translate.v3beta1.ListGlossariesResponse,TranslationServiceClient.ListGlossariesPagedResponse> listGlossariesSettings()
public UnaryCallSettings<com.google.cloud.translate.v3beta1.GetGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary> getGlossarySettings()
public UnaryCallSettings<com.google.cloud.translate.v3beta1.DeleteGlossaryRequest,Operation> deleteGlossarySettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings<com.google.cloud.translate.v3beta1.DeleteGlossaryRequest,com.google.cloud.translate.v3beta1.DeleteGlossaryResponse,com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata> deleteGlossaryOperationSettings()
public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static TranslationServiceSettings.Builder newBuilder()
public static TranslationServiceSettings.Builder newBuilder(ClientContext clientContext)
public TranslationServiceSettings.Builder toBuilder()
toBuilder
in class ClientSettings<TranslationServiceSettings>
Copyright © 2019 Google LLC. All rights reserved.