public static class TranslationServiceSettings.Builder extends ClientSettings.Builder<TranslationServiceSettings,TranslationServiceSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(TranslationServiceSettings settings) |
protected |
Builder(TranslationServiceStubSettings.Builder stubSettings) |
Modifier and Type | Method and Description |
---|---|
TranslationServiceSettings.Builder |
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
OperationCallSettings.Builder<com.google.cloud.translate.v3beta1.BatchTranslateTextRequest,com.google.cloud.translate.v3beta1.BatchTranslateResponse,com.google.cloud.translate.v3beta1.BatchTranslateMetadata> |
batchTranslateTextOperationSettings()
Returns the builder for the settings used for calls to batchTranslateText.
|
UnaryCallSettings.Builder<com.google.cloud.translate.v3beta1.BatchTranslateTextRequest,Operation> |
batchTranslateTextSettings()
Returns the builder for the settings used for calls to batchTranslateText.
|
TranslationServiceSettings |
build() |
OperationCallSettings.Builder<com.google.cloud.translate.v3beta1.CreateGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary,com.google.cloud.translate.v3beta1.CreateGlossaryMetadata> |
createGlossaryOperationSettings()
Returns the builder for the settings used for calls to createGlossary.
|
UnaryCallSettings.Builder<com.google.cloud.translate.v3beta1.CreateGlossaryRequest,Operation> |
createGlossarySettings()
Returns the builder for the settings used for calls to createGlossary.
|
OperationCallSettings.Builder<com.google.cloud.translate.v3beta1.DeleteGlossaryRequest,com.google.cloud.translate.v3beta1.DeleteGlossaryResponse,com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata> |
deleteGlossaryOperationSettings()
Returns the builder for the settings used for calls to deleteGlossary.
|
UnaryCallSettings.Builder<com.google.cloud.translate.v3beta1.DeleteGlossaryRequest,Operation> |
deleteGlossarySettings()
Returns the builder for the settings used for calls to deleteGlossary.
|
UnaryCallSettings.Builder<com.google.cloud.translate.v3beta1.DetectLanguageRequest,com.google.cloud.translate.v3beta1.DetectLanguageResponse> |
detectLanguageSettings()
Returns the builder for the settings used for calls to detectLanguage.
|
UnaryCallSettings.Builder<com.google.cloud.translate.v3beta1.GetGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary> |
getGlossarySettings()
Returns the builder for the settings used for calls to getGlossary.
|
TranslationServiceStubSettings.Builder |
getStubSettingsBuilder() |
UnaryCallSettings.Builder<com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest,com.google.cloud.translate.v3beta1.SupportedLanguages> |
getSupportedLanguagesSettings()
Returns the builder for the settings used for calls to getSupportedLanguages.
|
PagedCallSettings.Builder<com.google.cloud.translate.v3beta1.ListGlossariesRequest,com.google.cloud.translate.v3beta1.ListGlossariesResponse,TranslationServiceClient.ListGlossariesPagedResponse> |
listGlossariesSettings()
Returns the builder for the settings used for calls to listGlossaries.
|
UnaryCallSettings.Builder<com.google.cloud.translate.v3beta1.TranslateTextRequest,com.google.cloud.translate.v3beta1.TranslateTextResponse> |
translateTextSettings()
Returns the builder for the settings used for calls to translateText.
|
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
protected Builder() throws IOException
IOException
protected Builder(ClientContext clientContext)
protected Builder(TranslationServiceSettings settings)
protected Builder(TranslationServiceStubSettings.Builder stubSettings)
public TranslationServiceStubSettings.Builder getStubSettingsBuilder()
public TranslationServiceSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public UnaryCallSettings.Builder<com.google.cloud.translate.v3beta1.TranslateTextRequest,com.google.cloud.translate.v3beta1.TranslateTextResponse> translateTextSettings()
public UnaryCallSettings.Builder<com.google.cloud.translate.v3beta1.DetectLanguageRequest,com.google.cloud.translate.v3beta1.DetectLanguageResponse> detectLanguageSettings()
public UnaryCallSettings.Builder<com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest,com.google.cloud.translate.v3beta1.SupportedLanguages> getSupportedLanguagesSettings()
public UnaryCallSettings.Builder<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.Builder<com.google.cloud.translate.v3beta1.BatchTranslateTextRequest,com.google.cloud.translate.v3beta1.BatchTranslateResponse,com.google.cloud.translate.v3beta1.BatchTranslateMetadata> batchTranslateTextOperationSettings()
public UnaryCallSettings.Builder<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.Builder<com.google.cloud.translate.v3beta1.CreateGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary,com.google.cloud.translate.v3beta1.CreateGlossaryMetadata> createGlossaryOperationSettings()
public PagedCallSettings.Builder<com.google.cloud.translate.v3beta1.ListGlossariesRequest,com.google.cloud.translate.v3beta1.ListGlossariesResponse,TranslationServiceClient.ListGlossariesPagedResponse> listGlossariesSettings()
public UnaryCallSettings.Builder<com.google.cloud.translate.v3beta1.GetGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary> getGlossarySettings()
public UnaryCallSettings.Builder<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.Builder<com.google.cloud.translate.v3beta1.DeleteGlossaryRequest,com.google.cloud.translate.v3beta1.DeleteGlossaryResponse,com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata> deleteGlossaryOperationSettings()
public TranslationServiceSettings build() throws IOException
build
in class ClientSettings.Builder<TranslationServiceSettings,TranslationServiceSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.