@Generated(value="by gapic-generator") @BetaApi public class TranslationServiceSettings extends com.google.api.gax.rpc.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 |
---|---|
com.google.api.gax.rpc.OperationCallSettings<BatchTranslateTextRequest,BatchTranslateResponse,BatchTranslateMetadata> |
batchTranslateTextOperationSettings()
Returns the object with the settings used for calls to batchTranslateText.
|
com.google.api.gax.rpc.UnaryCallSettings<BatchTranslateTextRequest,com.google.longrunning.Operation> |
batchTranslateTextSettings()
Returns the object with the settings used for calls to batchTranslateText.
|
static TranslationServiceSettings |
create(TranslationServiceStubSettings stub) |
com.google.api.gax.rpc.OperationCallSettings<CreateGlossaryRequest,Glossary,CreateGlossaryMetadata> |
createGlossaryOperationSettings()
Returns the object with the settings used for calls to createGlossary.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateGlossaryRequest,com.google.longrunning.Operation> |
createGlossarySettings()
Returns the object with the settings used for calls to createGlossary.
|
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.core.InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.OperationCallSettings<DeleteGlossaryRequest,DeleteGlossaryResponse,DeleteGlossaryMetadata> |
deleteGlossaryOperationSettings()
Returns the object with the settings used for calls to deleteGlossary.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteGlossaryRequest,com.google.longrunning.Operation> |
deleteGlossarySettings()
Returns the object with the settings used for calls to deleteGlossary.
|
com.google.api.gax.rpc.UnaryCallSettings<DetectLanguageRequest,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.
|
com.google.api.gax.rpc.UnaryCallSettings<GetGlossaryRequest,Glossary> |
getGlossarySettings()
Returns the object with the settings used for calls to getGlossary.
|
com.google.api.gax.rpc.UnaryCallSettings<GetSupportedLanguagesRequest,SupportedLanguages> |
getSupportedLanguagesSettings()
Returns the object with the settings used for calls to getSupportedLanguages.
|
com.google.api.gax.rpc.PagedCallSettings<ListGlossariesRequest,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(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
TranslationServiceSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.rpc.UnaryCallSettings<TranslateTextRequest,TranslateTextResponse> |
translateTextSettings()
Returns the object with the settings used for calls to translateText.
|
protected TranslationServiceSettings(TranslationServiceSettings.Builder settingsBuilder) throws IOException
IOException
public com.google.api.gax.rpc.UnaryCallSettings<TranslateTextRequest,TranslateTextResponse> translateTextSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DetectLanguageRequest,DetectLanguageResponse> detectLanguageSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetSupportedLanguagesRequest,SupportedLanguages> getSupportedLanguagesSettings()
public com.google.api.gax.rpc.UnaryCallSettings<BatchTranslateTextRequest,com.google.longrunning.Operation> batchTranslateTextSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings<BatchTranslateTextRequest,BatchTranslateResponse,BatchTranslateMetadata> batchTranslateTextOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateGlossaryRequest,com.google.longrunning.Operation> createGlossarySettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings<CreateGlossaryRequest,Glossary,CreateGlossaryMetadata> createGlossaryOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListGlossariesRequest,ListGlossariesResponse,TranslationServiceClient.ListGlossariesPagedResponse> listGlossariesSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetGlossaryRequest,Glossary> getGlossarySettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteGlossaryRequest,com.google.longrunning.Operation> deleteGlossarySettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings<DeleteGlossaryRequest,DeleteGlossaryResponse,DeleteGlossaryMetadata> deleteGlossaryOperationSettings()
public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) throws IOException
IOException
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static TranslationServiceSettings.Builder newBuilder()
public static TranslationServiceSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public TranslationServiceSettings.Builder toBuilder()
toBuilder
in class com.google.api.gax.rpc.ClientSettings<TranslationServiceSettings>
Copyright © 2019 Google LLC. All rights reserved.