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) |
Modifier and Type | Method and Description |
---|---|
TranslationServiceStubSettings.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.
|
TranslationServiceStubSettings |
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.
|
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.
|
com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> |
unaryMethodSettingsBuilders() |
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setTracerFactory, setTransportChannelProvider, toString
protected Builder()
protected Builder(ClientContext clientContext)
protected Builder(TranslationServiceStubSettings settings)
public TranslationServiceStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
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 use by generated code 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 use by generated code 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 use by generated code 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 TranslationServiceStubSettings build() throws IOException
build
in class StubSettings.Builder<TranslationServiceStubSettings,TranslationServiceStubSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.