Class TranslationServiceSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings.Builder<TranslationServiceSettings,TranslationServiceSettings.Builder>
-
- com.google.cloud.translate.v3beta1.TranslationServiceSettings.Builder
-
- Enclosing class:
- TranslationServiceSettings
public static class TranslationServiceSettings.Builder extends com.google.api.gax.rpc.ClientSettings.Builder<TranslationServiceSettings,TranslationServiceSettings.Builder>
Builder for TranslationServiceSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(TranslationServiceStubSettings.Builder stubSettings)
protected
Builder(TranslationServiceSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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<BatchTranslateDocumentRequest,BatchTranslateDocumentResponse,BatchTranslateDocumentMetadata>
batchTranslateDocumentOperationSettings()
Returns the builder for the settings used for calls to batchTranslateDocument.com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchTranslateDocumentRequest,com.google.longrunning.Operation>
batchTranslateDocumentSettings()
Returns the builder for the settings used for calls to batchTranslateDocument.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<TranslateDocumentRequest,TranslateDocumentResponse>
translateDocumentSettings()
Returns the builder for the settings used for calls to translateDocument.com.google.api.gax.rpc.UnaryCallSettings.Builder<TranslateTextRequest,TranslateTextResponse>
translateTextSettings()
Returns the builder for the settings used for calls to translateText.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder() throws IOException
- Throws:
IOException
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(TranslationServiceSettings settings)
-
Builder
protected Builder(TranslationServiceStubSettings.Builder stubSettings)
-
-
Method Detail
-
getStubSettingsBuilder
public TranslationServiceStubSettings.Builder getStubSettingsBuilder()
-
applyToAllUnaryMethods
public 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.Note: This method does not support applying settings to streaming methods.
-
translateTextSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<TranslateTextRequest,TranslateTextResponse> translateTextSettings()
Returns the builder for the settings used for calls to translateText.
-
detectLanguageSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DetectLanguageRequest,DetectLanguageResponse> detectLanguageSettings()
Returns the builder for the settings used for calls to detectLanguage.
-
getSupportedLanguagesSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetSupportedLanguagesRequest,SupportedLanguages> getSupportedLanguagesSettings()
Returns the builder for the settings used for calls to getSupportedLanguages.
-
translateDocumentSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<TranslateDocumentRequest,TranslateDocumentResponse> translateDocumentSettings()
Returns the builder for the settings used for calls to translateDocument.
-
batchTranslateTextSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchTranslateTextRequest,com.google.longrunning.Operation> batchTranslateTextSettings()
Returns the builder for the settings used for calls to batchTranslateText.
-
batchTranslateTextOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<BatchTranslateTextRequest,BatchTranslateResponse,BatchTranslateMetadata> batchTranslateTextOperationSettings()
Returns the builder for the settings used for calls to batchTranslateText.
-
batchTranslateDocumentSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchTranslateDocumentRequest,com.google.longrunning.Operation> batchTranslateDocumentSettings()
Returns the builder for the settings used for calls to batchTranslateDocument.
-
batchTranslateDocumentOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<BatchTranslateDocumentRequest,BatchTranslateDocumentResponse,BatchTranslateDocumentMetadata> batchTranslateDocumentOperationSettings()
Returns the builder for the settings used for calls to batchTranslateDocument.
-
createGlossarySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateGlossaryRequest,com.google.longrunning.Operation> createGlossarySettings()
Returns the builder for the settings used for calls to createGlossary.
-
createGlossaryOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<CreateGlossaryRequest,Glossary,CreateGlossaryMetadata> createGlossaryOperationSettings()
Returns the builder for the settings used for calls to createGlossary.
-
listGlossariesSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListGlossariesRequest,ListGlossariesResponse,TranslationServiceClient.ListGlossariesPagedResponse> listGlossariesSettings()
Returns the builder for the settings used for calls to listGlossaries.
-
getGlossarySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetGlossaryRequest,Glossary> getGlossarySettings()
Returns the builder for the settings used for calls to getGlossary.
-
deleteGlossarySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteGlossaryRequest,com.google.longrunning.Operation> deleteGlossarySettings()
Returns the builder for the settings used for calls to deleteGlossary.
-
deleteGlossaryOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteGlossaryRequest,DeleteGlossaryResponse,DeleteGlossaryMetadata> deleteGlossaryOperationSettings()
Returns the builder for the settings used for calls to deleteGlossary.
-
build
public TranslationServiceSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.ClientSettings.Builder<TranslationServiceSettings,TranslationServiceSettings.Builder>
- Throws:
IOException
-
-