Class Flow.MultiLanguageSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.Builder
All Implemented Interfaces:
Flow.MultiLanguageSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Flow.MultiLanguageSettings

public static final class Flow.MultiLanguageSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder> implements Flow.MultiLanguageSettingsOrBuilder
 Settings for multi-lingual agents.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder>
    • getDefaultInstanceForType

      public Flow.MultiLanguageSettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Flow.MultiLanguageSettings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Flow.MultiLanguageSettings.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Flow.MultiLanguageSettings.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Flow.MultiLanguageSettings.Builder>
    • mergeFrom

      public Flow.MultiLanguageSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Flow.MultiLanguageSettings.Builder>
      Throws:
      IOException
    • getEnableMultiLanguageDetection

      public boolean getEnableMultiLanguageDetection()
       Optional. Enable multi-language detection for this flow. This can be set
       only if [agent level multi language
       setting][Agent.enable_multi_language_training] is enabled.
       
      bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnableMultiLanguageDetection in interface Flow.MultiLanguageSettingsOrBuilder
      Returns:
      The enableMultiLanguageDetection.
    • setEnableMultiLanguageDetection

      public Flow.MultiLanguageSettings.Builder setEnableMultiLanguageDetection(boolean value)
       Optional. Enable multi-language detection for this flow. This can be set
       only if [agent level multi language
       setting][Agent.enable_multi_language_training] is enabled.
       
      bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enableMultiLanguageDetection to set.
      Returns:
      This builder for chaining.
    • clearEnableMultiLanguageDetection

      public Flow.MultiLanguageSettings.Builder clearEnableMultiLanguageDetection()
       Optional. Enable multi-language detection for this flow. This can be set
       only if [agent level multi language
       setting][Agent.enable_multi_language_training] is enabled.
       
      bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getSupportedResponseLanguageCodesList

      public com.google.protobuf.ProtocolStringList getSupportedResponseLanguageCodesList()
       Optional. Agent will respond in the detected language if the detected
       language code is in the supported resolved languages for this flow. This
       will be used only if multi-language training is enabled in the
       [agent][google.cloud.dialogflow.cx.v3beta1.Agent.enable_multi_language_training]
       and multi-language detection is enabled in the
       [flow][google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.enable_multi_language_detection].
       The supported languages must be a subset of the languages supported by
       the agent.
       
      repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSupportedResponseLanguageCodesList in interface Flow.MultiLanguageSettingsOrBuilder
      Returns:
      A list containing the supportedResponseLanguageCodes.
    • getSupportedResponseLanguageCodesCount

      public int getSupportedResponseLanguageCodesCount()
       Optional. Agent will respond in the detected language if the detected
       language code is in the supported resolved languages for this flow. This
       will be used only if multi-language training is enabled in the
       [agent][google.cloud.dialogflow.cx.v3beta1.Agent.enable_multi_language_training]
       and multi-language detection is enabled in the
       [flow][google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.enable_multi_language_detection].
       The supported languages must be a subset of the languages supported by
       the agent.
       
      repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSupportedResponseLanguageCodesCount in interface Flow.MultiLanguageSettingsOrBuilder
      Returns:
      The count of supportedResponseLanguageCodes.
    • getSupportedResponseLanguageCodes

      public String getSupportedResponseLanguageCodes(int index)
       Optional. Agent will respond in the detected language if the detected
       language code is in the supported resolved languages for this flow. This
       will be used only if multi-language training is enabled in the
       [agent][google.cloud.dialogflow.cx.v3beta1.Agent.enable_multi_language_training]
       and multi-language detection is enabled in the
       [flow][google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.enable_multi_language_detection].
       The supported languages must be a subset of the languages supported by
       the agent.
       
      repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSupportedResponseLanguageCodes in interface Flow.MultiLanguageSettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The supportedResponseLanguageCodes at the given index.
    • getSupportedResponseLanguageCodesBytes

      public com.google.protobuf.ByteString getSupportedResponseLanguageCodesBytes(int index)
       Optional. Agent will respond in the detected language if the detected
       language code is in the supported resolved languages for this flow. This
       will be used only if multi-language training is enabled in the
       [agent][google.cloud.dialogflow.cx.v3beta1.Agent.enable_multi_language_training]
       and multi-language detection is enabled in the
       [flow][google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.enable_multi_language_detection].
       The supported languages must be a subset of the languages supported by
       the agent.
       
      repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSupportedResponseLanguageCodesBytes in interface Flow.MultiLanguageSettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the supportedResponseLanguageCodes at the given index.
    • setSupportedResponseLanguageCodes

      public Flow.MultiLanguageSettings.Builder setSupportedResponseLanguageCodes(int index, String value)
       Optional. Agent will respond in the detected language if the detected
       language code is in the supported resolved languages for this flow. This
       will be used only if multi-language training is enabled in the
       [agent][google.cloud.dialogflow.cx.v3beta1.Agent.enable_multi_language_training]
       and multi-language detection is enabled in the
       [flow][google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.enable_multi_language_detection].
       The supported languages must be a subset of the languages supported by
       the agent.
       
      repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The supportedResponseLanguageCodes to set.
      Returns:
      This builder for chaining.
    • addSupportedResponseLanguageCodes

      public Flow.MultiLanguageSettings.Builder addSupportedResponseLanguageCodes(String value)
       Optional. Agent will respond in the detected language if the detected
       language code is in the supported resolved languages for this flow. This
       will be used only if multi-language training is enabled in the
       [agent][google.cloud.dialogflow.cx.v3beta1.Agent.enable_multi_language_training]
       and multi-language detection is enabled in the
       [flow][google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.enable_multi_language_detection].
       The supported languages must be a subset of the languages supported by
       the agent.
       
      repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The supportedResponseLanguageCodes to add.
      Returns:
      This builder for chaining.
    • addAllSupportedResponseLanguageCodes

      public Flow.MultiLanguageSettings.Builder addAllSupportedResponseLanguageCodes(Iterable<String> values)
       Optional. Agent will respond in the detected language if the detected
       language code is in the supported resolved languages for this flow. This
       will be used only if multi-language training is enabled in the
       [agent][google.cloud.dialogflow.cx.v3beta1.Agent.enable_multi_language_training]
       and multi-language detection is enabled in the
       [flow][google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.enable_multi_language_detection].
       The supported languages must be a subset of the languages supported by
       the agent.
       
      repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The supportedResponseLanguageCodes to add.
      Returns:
      This builder for chaining.
    • clearSupportedResponseLanguageCodes

      public Flow.MultiLanguageSettings.Builder clearSupportedResponseLanguageCodes()
       Optional. Agent will respond in the detected language if the detected
       language code is in the supported resolved languages for this flow. This
       will be used only if multi-language training is enabled in the
       [agent][google.cloud.dialogflow.cx.v3beta1.Agent.enable_multi_language_training]
       and multi-language detection is enabled in the
       [flow][google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.enable_multi_language_detection].
       The supported languages must be a subset of the languages supported by
       the agent.
       
      repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addSupportedResponseLanguageCodesBytes

      public Flow.MultiLanguageSettings.Builder addSupportedResponseLanguageCodesBytes(com.google.protobuf.ByteString value)
       Optional. Agent will respond in the detected language if the detected
       language code is in the supported resolved languages for this flow. This
       will be used only if multi-language training is enabled in the
       [agent][google.cloud.dialogflow.cx.v3beta1.Agent.enable_multi_language_training]
       and multi-language detection is enabled in the
       [flow][google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettings.enable_multi_language_detection].
       The supported languages must be a subset of the languages supported by
       the agent.
       
      repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the supportedResponseLanguageCodes to add.
      Returns:
      This builder for chaining.