public static class TranslationServiceStubSettings.Builder extends StubSettings.Builder<TranslationServiceStubSettings,TranslationServiceStubSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(TranslationServiceStubSettings settings) |
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
protected Builder()
protected Builder(ClientContext clientContext)
protected Builder(TranslationServiceStubSettings settings)
public TranslationServiceStubSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Note: This method does not support applying settings to streaming methods.
public com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
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()
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder<BatchTranslateTextRequest,BatchTranslateResponse,BatchTranslateMetadata> batchTranslateTextOperationSettings()
public UnaryCallSettings.Builder<BatchTranslateDocumentRequest,Operation> batchTranslateDocumentSettings()
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder<BatchTranslateDocumentRequest,BatchTranslateDocumentResponse,BatchTranslateDocumentMetadata> batchTranslateDocumentOperationSettings()
public UnaryCallSettings.Builder<CreateGlossaryRequest,Operation> createGlossarySettings()
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") 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()
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder<DeleteGlossaryRequest,DeleteGlossaryResponse,DeleteGlossaryMetadata> deleteGlossaryOperationSettings()
public TranslationServiceStubSettings build() throws IOException
build
in class StubSettings.Builder<TranslationServiceStubSettings,TranslationServiceStubSettings.Builder>
IOException
Copyright © 2022 Google LLC. All rights reserved.