Class HumanAgentAssistantConfig.MessageAnalysisConfig

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

public static final class HumanAgentAssistantConfig.MessageAnalysisConfig extends com.google.protobuf.GeneratedMessage implements HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder
 Configuration for analyses to run on each conversation message.
 
Protobuf type google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig
See Also:
  • Field Details

    • ENABLE_ENTITY_EXTRACTION_FIELD_NUMBER

      public static final int ENABLE_ENTITY_EXTRACTION_FIELD_NUMBER
      See Also:
    • ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER

      public static final int ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER
      See Also:
    • ENABLE_SENTIMENT_ANALYSIS_V3_FIELD_NUMBER

      public static final int ENABLE_SENTIMENT_ANALYSIS_V3_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      Throws:
      IOException
    • parseFrom

      public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static HumanAgentAssistantConfig.MessageAnalysisConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static HumanAgentAssistantConfig.MessageAnalysisConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected HumanAgentAssistantConfig.MessageAnalysisConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static HumanAgentAssistantConfig.MessageAnalysisConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<HumanAgentAssistantConfig.MessageAnalysisConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<HumanAgentAssistantConfig.MessageAnalysisConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public HumanAgentAssistantConfig.MessageAnalysisConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder