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