Class TranslationServiceStubSettings.Builder

    • Constructor Detail

      • Builder

        protected Builder()
      • Builder

        protected Builder​(com.google.api.gax.rpc.ClientContext clientContext)
    • 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.
      • 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.
      • 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.
      • 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.