Class HumanAgentAssistantConfig.MessageAnalysisConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HumanAgentAssistantConfig.MessageAnalysisConfig.Builder>
com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder
All Implemented Interfaces:
HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
HumanAgentAssistantConfig.MessageAnalysisConfig

public static final class HumanAgentAssistantConfig.MessageAnalysisConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<HumanAgentAssistantConfig.MessageAnalysisConfig.Builder> implements HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder
 Configuration for analyses to run on each conversation message.
 
Protobuf type google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig
  • 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<HumanAgentAssistantConfig.MessageAnalysisConfig.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<HumanAgentAssistantConfig.MessageAnalysisConfig.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<HumanAgentAssistantConfig.MessageAnalysisConfig.Builder>
    • getDefaultInstanceForType

      public HumanAgentAssistantConfig.MessageAnalysisConfig 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

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

      public HumanAgentAssistantConfig.MessageAnalysisConfig.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<HumanAgentAssistantConfig.MessageAnalysisConfig.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<HumanAgentAssistantConfig.MessageAnalysisConfig.Builder>
    • mergeFrom

      public HumanAgentAssistantConfig.MessageAnalysisConfig.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<HumanAgentAssistantConfig.MessageAnalysisConfig.Builder>
      Throws:
      IOException
    • getEnableEntityExtraction

      public boolean getEnableEntityExtraction()
       Enable entity extraction in conversation messages on [agent assist
       stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
       If unspecified, defaults to false.
      
       Currently, this feature is not general available, please contact Google
       to get access.
       
      bool enable_entity_extraction = 2;
      Specified by:
      getEnableEntityExtraction in interface HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder
      Returns:
      The enableEntityExtraction.
    • setEnableEntityExtraction

      public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder setEnableEntityExtraction(boolean value)
       Enable entity extraction in conversation messages on [agent assist
       stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
       If unspecified, defaults to false.
      
       Currently, this feature is not general available, please contact Google
       to get access.
       
      bool enable_entity_extraction = 2;
      Parameters:
      value - The enableEntityExtraction to set.
      Returns:
      This builder for chaining.
    • clearEnableEntityExtraction

      public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder clearEnableEntityExtraction()
       Enable entity extraction in conversation messages on [agent assist
       stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
       If unspecified, defaults to false.
      
       Currently, this feature is not general available, please contact Google
       to get access.
       
      bool enable_entity_extraction = 2;
      Returns:
      This builder for chaining.
    • getEnableSentimentAnalysis

      public boolean getEnableSentimentAnalysis()
       Enable sentiment analysis in conversation messages on [agent assist
       stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
       If unspecified, defaults to false. Sentiment analysis inspects user input
       and identifies the prevailing subjective opinion, especially to determine
       a user's attitude as positive, negative, or neutral:
       https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
       For
       [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
       method, result will be in
       [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
       For
       [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
       method, result will be in
       [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
       For
       [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
       method, result will be in
       [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
       If Pub/Sub notification is configured, result will be in
       [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
       
      bool enable_sentiment_analysis = 3;
      Specified by:
      getEnableSentimentAnalysis in interface HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder
      Returns:
      The enableSentimentAnalysis.
    • setEnableSentimentAnalysis

      public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder setEnableSentimentAnalysis(boolean value)
       Enable sentiment analysis in conversation messages on [agent assist
       stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
       If unspecified, defaults to false. Sentiment analysis inspects user input
       and identifies the prevailing subjective opinion, especially to determine
       a user's attitude as positive, negative, or neutral:
       https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
       For
       [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
       method, result will be in
       [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
       For
       [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
       method, result will be in
       [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
       For
       [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
       method, result will be in
       [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
       If Pub/Sub notification is configured, result will be in
       [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
       
      bool enable_sentiment_analysis = 3;
      Parameters:
      value - The enableSentimentAnalysis to set.
      Returns:
      This builder for chaining.
    • clearEnableSentimentAnalysis

      public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder clearEnableSentimentAnalysis()
       Enable sentiment analysis in conversation messages on [agent assist
       stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
       If unspecified, defaults to false. Sentiment analysis inspects user input
       and identifies the prevailing subjective opinion, especially to determine
       a user's attitude as positive, negative, or neutral:
       https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
       For
       [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
       method, result will be in
       [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
       For
       [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
       method, result will be in
       [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
       For
       [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
       method, result will be in
       [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
       If Pub/Sub notification is configured, result will be in
       [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
       
      bool enable_sentiment_analysis = 3;
      Returns:
      This builder for chaining.
    • getEnableSentimentAnalysisV3

      public boolean getEnableSentimentAnalysisV3()
       Optional. Enables sentiment analysis for audio input and conversation
       messages. If unspecified, defaults to false. If this flag is set to true,
       other 'enable_sentiment_analysis' fields will be ignored.
      
       Sentiment analysis inspects user input and identifies the prevailing
       subjective opinion, especially to determine a user's attitude as
       positive, negative, or neutral.
       https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
       For
       [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
       method, result will be in
       [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
       For
       [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
       method, result will be in
       [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
       For
       [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
       method, result will be in
       [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
       If Pub/Sub notification is configured, result will be in
       [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
       
      bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnableSentimentAnalysisV3 in interface HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder
      Returns:
      The enableSentimentAnalysisV3.
    • setEnableSentimentAnalysisV3

      public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder setEnableSentimentAnalysisV3(boolean value)
       Optional. Enables sentiment analysis for audio input and conversation
       messages. If unspecified, defaults to false. If this flag is set to true,
       other 'enable_sentiment_analysis' fields will be ignored.
      
       Sentiment analysis inspects user input and identifies the prevailing
       subjective opinion, especially to determine a user's attitude as
       positive, negative, or neutral.
       https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
       For
       [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
       method, result will be in
       [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
       For
       [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
       method, result will be in
       [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
       For
       [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
       method, result will be in
       [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
       If Pub/Sub notification is configured, result will be in
       [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
       
      bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enableSentimentAnalysisV3 to set.
      Returns:
      This builder for chaining.
    • clearEnableSentimentAnalysisV3

      public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder clearEnableSentimentAnalysisV3()
       Optional. Enables sentiment analysis for audio input and conversation
       messages. If unspecified, defaults to false. If this flag is set to true,
       other 'enable_sentiment_analysis' fields will be ignored.
      
       Sentiment analysis inspects user input and identifies the prevailing
       subjective opinion, especially to determine a user's attitude as
       positive, negative, or neutral.
       https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
       For
       [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
       method, result will be in
       [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
       For
       [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
       method, result will be in
       [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
       For
       [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
       method, result will be in
       [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
       If Pub/Sub notification is configured, result will be in
       [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
       
      bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.