Package com.google.cloud.dialogflow.v2
Class Message
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class Message extends com.google.protobuf.GeneratedMessageV3 implements MessageOrBuilder
Represents a message posted into a conversation.
Protobuf typegoogle.cloud.dialogflow.v2.Message- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessage.BuilderRepresents a message posted into a conversation.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONTENT_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intLANGUAGE_CODE_FIELD_NUMBERstatic intMESSAGE_ANNOTATION_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPARTICIPANT_FIELD_NUMBERstatic intPARTICIPANT_ROLE_FIELD_NUMBERstatic intSEND_TIME_FIELD_NUMBERstatic intSENTIMENT_ANALYSIS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetContent()Required.com.google.protobuf.ByteStringgetContentBytes()Required.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.static MessagegetDefaultInstance()MessagegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetLanguageCode()Optional.com.google.protobuf.ByteStringgetLanguageCodeBytes()Optional.MessageAnnotationgetMessageAnnotation()Output only.MessageAnnotationOrBuildergetMessageAnnotationOrBuilder()Output only.StringgetName()Optional.com.google.protobuf.ByteStringgetNameBytes()Optional.com.google.protobuf.Parser<Message>getParserForType()StringgetParticipant()Output only.com.google.protobuf.ByteStringgetParticipantBytes()Output only.Participant.RolegetParticipantRole()Output only.intgetParticipantRoleValue()Output only.com.google.protobuf.TimestampgetSendTime()Optional.com.google.protobuf.TimestampOrBuildergetSendTimeOrBuilder()Optional.SentimentAnalysisResultgetSentimentAnalysis()Output only.SentimentAnalysisResultOrBuildergetSentimentAnalysisOrBuilder()Output only.intgetSerializedSize()booleanhasCreateTime()Output only.inthashCode()booleanhasMessageAnnotation()Output only.booleanhasSendTime()Optional.booleanhasSentimentAnalysis()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Message.BuildernewBuilder()static Message.BuildernewBuilder(Message prototype)Message.BuildernewBuilderForType()protected Message.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static MessageparseDelimitedFrom(InputStream input)static MessageparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MessageparseFrom(byte[] data)static MessageparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MessageparseFrom(com.google.protobuf.ByteString data)static MessageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MessageparseFrom(com.google.protobuf.CodedInputStream input)static MessageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MessageparseFrom(InputStream input)static MessageparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MessageparseFrom(ByteBuffer data)static MessageparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Message>parser()Message.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARTICIPANT_FIELD_NUMBER
public static final int PARTICIPANT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARTICIPANT_ROLE_FIELD_NUMBER
public static final int PARTICIPANT_ROLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEND_TIME_FIELD_NUMBER
public static final int SEND_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MESSAGE_ANNOTATION_FIELD_NUMBER
public static final int MESSAGE_ANNOTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SENTIMENT_ANALYSIS_FIELD_NUMBER
public static final int SENTIMENT_ANALYSIS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.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:
getNamein interfaceMessageOrBuilder- 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:
getNameBytesin interfaceMessageOrBuilder- Returns:
- The bytes for name.
-
getContent
public String getContent()
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentin interfaceMessageOrBuilder- Returns:
- The content.
-
getContentBytes
public com.google.protobuf.ByteString getContentBytes()
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentBytesin interfaceMessageOrBuilder- 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:
getLanguageCodein interfaceMessageOrBuilder- 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:
getLanguageCodeBytesin interfaceMessageOrBuilder- 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:
getParticipantin interfaceMessageOrBuilder- 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:
getParticipantBytesin interfaceMessageOrBuilder- 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:
getParticipantRoleValuein interfaceMessageOrBuilder- 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:
getParticipantRolein interfaceMessageOrBuilder- 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:
hasCreateTimein interfaceMessageOrBuilder- 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:
getCreateTimein interfaceMessageOrBuilder- 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:
getCreateTimeOrBuilderin interfaceMessageOrBuilder
-
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:
hasSendTimein interfaceMessageOrBuilder- 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:
getSendTimein interfaceMessageOrBuilder- 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:
getSendTimeOrBuilderin interfaceMessageOrBuilder
-
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:
hasMessageAnnotationin interfaceMessageOrBuilder- 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:
getMessageAnnotationin interfaceMessageOrBuilder- 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:
getMessageAnnotationOrBuilderin interfaceMessageOrBuilder
-
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:
hasSentimentAnalysisin interfaceMessageOrBuilder- 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:
getSentimentAnalysisin interfaceMessageOrBuilder- 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:
getSentimentAnalysisOrBuilderin interfaceMessageOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Message.Builder newBuilder()
-
newBuilder
public static Message.Builder newBuilder(Message prototype)
-
toBuilder
public Message.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Message.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Message getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-