Class Message

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

@Generated public final class Message extends com.google.protobuf.GeneratedMessage implements MessageOrBuilder
 Represents a message posted into a conversation.
 
Protobuf type google.cloud.dialogflow.v2.Message
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CONTENT_FIELD_NUMBER

      public static final int CONTENT_FIELD_NUMBER
      See Also:
    • LANGUAGE_CODE_FIELD_NUMBER

      public static final int LANGUAGE_CODE_FIELD_NUMBER
      See Also:
    • PARTICIPANT_FIELD_NUMBER

      public static final int PARTICIPANT_FIELD_NUMBER
      See Also:
    • PARTICIPANT_ROLE_FIELD_NUMBER

      public static final int PARTICIPANT_ROLE_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • SEND_TIME_FIELD_NUMBER

      public static final int SEND_TIME_FIELD_NUMBER
      See Also:
    • MESSAGE_ANNOTATION_FIELD_NUMBER

      public static final int MESSAGE_ANNOTATION_FIELD_NUMBER
      See Also:
    • SENTIMENT_ANALYSIS_FIELD_NUMBER

      public static final int SENTIMENT_ANALYSIS_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
    • getName

      public String getName()
       Optional. The unique identifier of the message.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getName in interface MessageOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Optional. The unique identifier of the message.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNameBytes in interface MessageOrBuilder
      Returns:
      The bytes for name.
    • getContent

      public String getContent()
       Required. The message content.
       
      string content = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContent in interface MessageOrBuilder
      Returns:
      The content.
    • getContentBytes

      public com.google.protobuf.ByteString getContentBytes()
       Required. The message content.
       
      string content = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContentBytes in interface MessageOrBuilder
      Returns:
      The bytes for content.
    • getLanguageCode

      public String getLanguageCode()
       Optional. The message language.
       This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
       language tag. Example: "en-US".
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface MessageOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Optional. The message language.
       This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
       language tag. Example: "en-US".
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface MessageOrBuilder
      Returns:
      The bytes for languageCode.
    • getParticipant

      public String getParticipant()
       Output only. The participant that sends this message.
       
      string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getParticipant in interface MessageOrBuilder
      Returns:
      The participant.
    • getParticipantBytes

      public com.google.protobuf.ByteString getParticipantBytes()
       Output only. The participant that sends this message.
       
      string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getParticipantBytes in interface MessageOrBuilder
      Returns:
      The bytes for participant.
    • getParticipantRoleValue

      public int getParticipantRoleValue()
       Output only. The role of the participant.
       
      .google.cloud.dialogflow.v2.Participant.Role participant_role = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getParticipantRoleValue in interface MessageOrBuilder
      Returns:
      The enum numeric value on the wire for participantRole.
    • getParticipantRole

      public Participant.Role getParticipantRole()
       Output only. The role of the participant.
       
      .google.cloud.dialogflow.v2.Participant.Role participant_role = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getParticipantRole in interface MessageOrBuilder
      Returns:
      The participantRole.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time when the message was created in Contact Center AI.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface MessageOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when the message was created in Contact Center AI.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface MessageOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when the message was created in Contact Center AI.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface MessageOrBuilder
    • hasSendTime

      public boolean hasSendTime()
       Optional. The time when the message was sent. For voice messages, this is
       the time when an utterance started.
       
      .google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSendTime in interface MessageOrBuilder
      Returns:
      Whether the sendTime field is set.
    • getSendTime

      public com.google.protobuf.Timestamp getSendTime()
       Optional. The time when the message was sent. For voice messages, this is
       the time when an utterance started.
       
      .google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSendTime in interface MessageOrBuilder
      Returns:
      The sendTime.
    • getSendTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder()
       Optional. The time when the message was sent. For voice messages, this is
       the time when an utterance started.
       
      .google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSendTimeOrBuilder in interface MessageOrBuilder
    • hasMessageAnnotation

      public boolean hasMessageAnnotation()
       Output only. The annotation for the message.
       
      .google.cloud.dialogflow.v2.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasMessageAnnotation in interface MessageOrBuilder
      Returns:
      Whether the messageAnnotation field is set.
    • getMessageAnnotation

      public MessageAnnotation getMessageAnnotation()
       Output only. The annotation for the message.
       
      .google.cloud.dialogflow.v2.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMessageAnnotation in interface MessageOrBuilder
      Returns:
      The messageAnnotation.
    • getMessageAnnotationOrBuilder

      public MessageAnnotationOrBuilder getMessageAnnotationOrBuilder()
       Output only. The annotation for the message.
       
      .google.cloud.dialogflow.v2.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMessageAnnotationOrBuilder in interface MessageOrBuilder
    • hasSentimentAnalysis

      public boolean hasSentimentAnalysis()
       Output only. The sentiment analysis result for the message.
       
      .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSentimentAnalysis in interface MessageOrBuilder
      Returns:
      Whether the sentimentAnalysis field is set.
    • getSentimentAnalysis

      public SentimentAnalysisResult getSentimentAnalysis()
       Output only. The sentiment analysis result for the message.
       
      .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSentimentAnalysis in interface MessageOrBuilder
      Returns:
      The sentimentAnalysis.
    • getSentimentAnalysisOrBuilder

      public SentimentAnalysisResultOrBuilder getSentimentAnalysisOrBuilder()
       Output only. The sentiment analysis result for the message.
       
      .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSentimentAnalysisOrBuilder in interface MessageOrBuilder
    • 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 Message parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Message parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Message parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

      public Message.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Message.Builder newBuilder()
    • newBuilder

      public static Message.Builder newBuilder(Message prototype)
    • toBuilder

      public Message.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static Message getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Message> 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 Message getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder