@Generated(value="by gapic-generator") @BetaApi public class TranslationServiceStubSettings extends StubSettings<TranslationServiceStubSettings>
TranslationServiceStub
.
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:
TranslationServiceStubSettings.Builder translationServiceSettingsBuilder =
TranslationServiceStubSettings.newBuilder();
translationServiceSettingsBuilder.detectLanguageSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
TranslationServiceStubSettings translationServiceSettings = translationServiceSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
TranslationServiceStubSettings.Builder
Builder for TranslationServiceStubSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
TranslationServiceStubSettings(TranslationServiceStubSettings.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.
|
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.
|
TranslationServiceStub |
createStub() |
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 TranslationServiceStubSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static TranslationServiceStubSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
TranslationServiceStubSettings.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, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
protected TranslationServiceStubSettings(TranslationServiceStubSettings.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 use by generated code 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 use by generated code 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 use by generated code 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()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public TranslationServiceStub createStub() 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 TranslationServiceStubSettings.Builder newBuilder()
public static TranslationServiceStubSettings.Builder newBuilder(ClientContext clientContext)
public TranslationServiceStubSettings.Builder toBuilder()
toBuilder
in class StubSettings<TranslationServiceStubSettings>
Copyright © 2019 Google LLC. All rights reserved.