Class TranslationServiceStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<TranslationServiceStubSettings,TranslationServiceStubSettings.Builder>
-
- com.google.cloud.translate.v3.stub.TranslationServiceStubSettings.Builder
-
- Enclosing class:
- TranslationServiceStubSettings
public static class TranslationServiceStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<TranslationServiceStubSettings,TranslationServiceStubSettings.Builder>
Builder for TranslationServiceStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(TranslationServiceStubSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslationServiceStubSettings.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.TranslationServiceStubSettings
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.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.com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
-
Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(TranslationServiceStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public TranslationServiceStubSettings.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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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 TranslationServiceStubSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.StubSettings.Builder<TranslationServiceStubSettings,TranslationServiceStubSettings.Builder>
- Throws:
IOException
-
-