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| Modifier and Type | Class and Description |
|---|---|
static class |
Message.Builder
Represents a message posted into a conversation.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENT_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
LANGUAGE_CODE_FIELD_NUMBER |
static int |
MESSAGE_ANNOTATION_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PARTICIPANT_FIELD_NUMBER |
static int |
PARTICIPANT_ROLE_FIELD_NUMBER |
static int |
SEND_TIME_FIELD_NUMBER |
static int |
SENTIMENT_ANALYSIS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContent()
Required.
|
com.google.protobuf.ByteString |
getContentBytes()
Required.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Message |
getDefaultInstance() |
Message |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getLanguageCode()
Optional.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
Optional.
|
MessageAnnotation |
getMessageAnnotation()
Output only.
|
MessageAnnotationOrBuilder |
getMessageAnnotationOrBuilder()
Output only.
|
String |
getName()
Optional.
|
com.google.protobuf.ByteString |
getNameBytes()
Optional.
|
com.google.protobuf.Parser<Message> |
getParserForType() |
String |
getParticipant()
Output only.
|
com.google.protobuf.ByteString |
getParticipantBytes()
Output only.
|
Participant.Role |
getParticipantRole()
Output only.
|
int |
getParticipantRoleValue()
Output only.
|
com.google.protobuf.Timestamp |
getSendTime()
Optional.
|
com.google.protobuf.TimestampOrBuilder |
getSendTimeOrBuilder()
Optional.
|
SentimentAnalysisResult |
getSentimentAnalysis()
Output only.
|
SentimentAnalysisResultOrBuilder |
getSentimentAnalysisOrBuilder()
Output only.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCreateTime()
Output only.
|
int |
hashCode() |
boolean |
hasMessageAnnotation()
Output only.
|
boolean |
hasSendTime()
Optional.
|
boolean |
hasSentimentAnalysis()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Message.Builder |
newBuilder() |
static Message.Builder |
newBuilder(Message prototype) |
Message.Builder |
newBuilderForType() |
protected Message.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Message |
parseDelimitedFrom(InputStream input) |
static Message |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Message |
parseFrom(byte[] data) |
static Message |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Message |
parseFrom(ByteBuffer data) |
static Message |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Message |
parseFrom(com.google.protobuf.ByteString data) |
static Message |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Message |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Message |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Message |
parseFrom(InputStream input) |
static Message |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Message> |
parser() |
Message.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
public static final int PARTICIPANT_FIELD_NUMBER
public static final int PARTICIPANT_ROLE_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int SEND_TIME_FIELD_NUMBER
public static final int MESSAGE_ANNOTATION_FIELD_NUMBER
public static final int SENTIMENT_ANALYSIS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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];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];public String getContent()
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];public com.google.protobuf.ByteString getContentBytes()
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];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];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];public String getParticipant()
Output only. The participant that sends this message.
string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];public com.google.protobuf.ByteString getParticipantBytes()
Output only. The participant that sends this message.
string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];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];
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];
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];
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];
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];
public boolean hasSendTime()
Optional. The time when the message was sent.
.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
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];
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];
public boolean hasMessageAnnotation()
Output only. The annotation for the message.
.google.cloud.dialogflow.v2beta1.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public MessageAnnotation getMessageAnnotation()
Output only. The annotation for the message.
.google.cloud.dialogflow.v2beta1.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public MessageAnnotationOrBuilder getMessageAnnotationOrBuilder()
Output only. The annotation for the message.
.google.cloud.dialogflow.v2beta1.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
public SentimentAnalysisResultOrBuilder getSentimentAnalysisOrBuilder()
Output only. The sentiment analysis result for the message.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Message parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Message parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Message parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Message parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Message parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Message parseFrom(InputStream input) throws IOException
IOExceptionpublic static Message parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Message parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Message parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Message parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Message parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Message.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Message.Builder newBuilder()
public static Message.Builder newBuilder(Message prototype)
public Message.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Message.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Message getDefaultInstance()
public static com.google.protobuf.Parser<Message> parser()
public com.google.protobuf.Parser<Message> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Message getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.