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) |
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, 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(com.google.api.core.ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Note: This method does not support applying settings to streaming methods.
public UnaryCallSettings.Builder<TranslateTextRequest,TranslateTextResponse> translateTextSettings()
public UnaryCallSettings.Builder<DetectLanguageRequest,DetectLanguageResponse> detectLanguageSettings()
public UnaryCallSettings.Builder<GetSupportedLanguagesRequest,SupportedLanguages> getSupportedLanguagesSettings()
public UnaryCallSettings.Builder<TranslateDocumentRequest,TranslateDocumentResponse> translateDocumentSettings()
public UnaryCallSettings.Builder<BatchTranslateTextRequest,Operation> batchTranslateTextSettings()
public OperationCallSettings.Builder<BatchTranslateTextRequest,BatchTranslateResponse,BatchTranslateMetadata> batchTranslateTextOperationSettings()
public UnaryCallSettings.Builder<BatchTranslateDocumentRequest,Operation> batchTranslateDocumentSettings()
public OperationCallSettings.Builder<BatchTranslateDocumentRequest,BatchTranslateDocumentResponse,BatchTranslateDocumentMetadata> batchTranslateDocumentOperationSettings()
public UnaryCallSettings.Builder<CreateGlossaryRequest,Operation> createGlossarySettings()
public OperationCallSettings.Builder<CreateGlossaryRequest,Glossary,CreateGlossaryMetadata> createGlossaryOperationSettings()
public PagedCallSettings.Builder<ListGlossariesRequest,ListGlossariesResponse,TranslationServiceClient.ListGlossariesPagedResponse> listGlossariesSettings()
public UnaryCallSettings.Builder<GetGlossaryRequest,Glossary> getGlossarySettings()
public UnaryCallSettings.Builder<DeleteGlossaryRequest,Operation> deleteGlossarySettings()
public OperationCallSettings.Builder<DeleteGlossaryRequest,DeleteGlossaryResponse,DeleteGlossaryMetadata> deleteGlossaryOperationSettings()
public TranslationServiceSettings build() throws IOException
build
in class ClientSettings.Builder<TranslationServiceSettings,TranslationServiceSettings.Builder>
IOException
Copyright © 2022 Google LLC. All rights reserved.