Class Message

  • All Implemented Interfaces:
    MessageOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Message
    extends com.google.protobuf.GeneratedMessageV3
    implements MessageOrBuilder
     Represents a message posted into a conversation.
     
    Protobuf type google.cloud.dialogflow.v2beta1.Message
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.v2beta1.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.v2beta1.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.
         
        .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.
         
        .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.
         
        .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.v2beta1.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.v2beta1.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMessageAnnotation in interface MessageOrBuilder
        Returns:
        The messageAnnotation.
      • hasSentimentAnalysis

        public boolean hasSentimentAnalysis()
         Output only. The sentiment analysis result for the message.
         
        .google.cloud.dialogflow.v2beta1.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.v2beta1.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSentimentAnalysis in interface MessageOrBuilder
        Returns:
        The sentimentAnalysis.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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