public static final class Message.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder> implements MessageOrBuilder
Represents a message posted into a conversation.Protobuf type
google.cloud.dialogflow.v2beta1.Message| Modifier and Type | Method and Description |
|---|---|
Message.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Message |
build() |
Message |
buildPartial() |
Message.Builder |
clear() |
Message.Builder |
clearContent()
Required.
|
Message.Builder |
clearCreateTime()
Output only.
|
Message.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Message.Builder |
clearLanguageCode()
Optional.
|
Message.Builder |
clearMessageAnnotation()
Output only.
|
Message.Builder |
clearName()
Optional.
|
Message.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Message.Builder |
clearParticipant()
Output only.
|
Message.Builder |
clearParticipantRole()
Output only.
|
Message.Builder |
clearSendTime()
Optional.
|
Message.Builder |
clearSentimentAnalysis()
Output only.
|
Message.Builder |
clone() |
String |
getContent()
Required.
|
com.google.protobuf.ByteString |
getContentBytes()
Required.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
Message |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLanguageCode()
Optional.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
Optional.
|
MessageAnnotation |
getMessageAnnotation()
Output only.
|
MessageAnnotation.Builder |
getMessageAnnotationBuilder()
Output only.
|
MessageAnnotationOrBuilder |
getMessageAnnotationOrBuilder()
Output only.
|
String |
getName()
Optional.
|
com.google.protobuf.ByteString |
getNameBytes()
Optional.
|
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.Timestamp.Builder |
getSendTimeBuilder()
Optional.
|
com.google.protobuf.TimestampOrBuilder |
getSendTimeOrBuilder()
Optional.
|
SentimentAnalysisResult |
getSentimentAnalysis()
Output only.
|
SentimentAnalysisResult.Builder |
getSentimentAnalysisBuilder()
Output only.
|
SentimentAnalysisResultOrBuilder |
getSentimentAnalysisOrBuilder()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasMessageAnnotation()
Output only.
|
boolean |
hasSendTime()
Optional.
|
boolean |
hasSentimentAnalysis()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Message.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Message.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Message.Builder |
mergeFrom(com.google.protobuf.Message other) |
Message.Builder |
mergeFrom(Message other) |
Message.Builder |
mergeMessageAnnotation(MessageAnnotation value)
Output only.
|
Message.Builder |
mergeSendTime(com.google.protobuf.Timestamp value)
Optional.
|
Message.Builder |
mergeSentimentAnalysis(SentimentAnalysisResult value)
Output only.
|
Message.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Message.Builder |
setContent(String value)
Required.
|
Message.Builder |
setContentBytes(com.google.protobuf.ByteString value)
Required.
|
Message.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Message.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Message.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Message.Builder |
setLanguageCode(String value)
Optional.
|
Message.Builder |
setLanguageCodeBytes(com.google.protobuf.ByteString value)
Optional.
|
Message.Builder |
setMessageAnnotation(MessageAnnotation.Builder builderForValue)
Output only.
|
Message.Builder |
setMessageAnnotation(MessageAnnotation value)
Output only.
|
Message.Builder |
setName(String value)
Optional.
|
Message.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Optional.
|
Message.Builder |
setParticipant(String value)
Output only.
|
Message.Builder |
setParticipantBytes(com.google.protobuf.ByteString value)
Output only.
|
Message.Builder |
setParticipantRole(Participant.Role value)
Output only.
|
Message.Builder |
setParticipantRoleValue(int value)
Output only.
|
Message.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Message.Builder |
setSendTime(com.google.protobuf.Timestamp.Builder builderForValue)
Optional.
|
Message.Builder |
setSendTime(com.google.protobuf.Timestamp value)
Optional.
|
Message.Builder |
setSentimentAnalysis(SentimentAnalysisResult.Builder builderForValue)
Output only.
|
Message.Builder |
setSentimentAnalysis(SentimentAnalysisResult value)
Output only.
|
Message.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>public Message.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>public Message getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Message build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Message buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Message.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>public Message.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>public Message.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>public Message.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>public Message.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>public Message.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>public Message.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Message.Builder>public Message.Builder mergeFrom(Message other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>public Message.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Message.Builder>IOExceptionpublic 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 Message.Builder setName(String value)
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];value - The name to set.public Message.Builder clearName()
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 Message.Builder setNameBytes(com.google.protobuf.ByteString value)
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];value - The bytes for name to set.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 Message.Builder setContent(String value)
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];value - The content to set.public Message.Builder clearContent()
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];public Message.Builder setContentBytes(com.google.protobuf.ByteString value)
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for content to set.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 Message.Builder setLanguageCode(String value)
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];value - The languageCode to set.public Message.Builder clearLanguageCode()
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 Message.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
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];value - The bytes for languageCode to set.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 Message.Builder setParticipant(String value)
Output only. The participant that sends this message.
string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The participant to set.public Message.Builder clearParticipant()
Output only. The participant that sends this message.
string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];public Message.Builder setParticipantBytes(com.google.protobuf.ByteString value)
Output only. The participant that sends this message.
string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for participant to set.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 Message.Builder setParticipantRoleValue(int value)
Output only. The role of the participant.
.google.cloud.dialogflow.v2beta1.Participant.Role participant_role = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for participantRole to set.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 Message.Builder setParticipantRole(Participant.Role value)
Output only. The role of the participant.
.google.cloud.dialogflow.v2beta1.Participant.Role participant_role = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The participantRole to set.public Message.Builder clearParticipantRole()
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 Message.Builder setCreateTime(com.google.protobuf.Timestamp value)
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 Message.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
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 Message.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
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 Message.Builder clearCreateTime()
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.Builder getCreateTimeBuilder()
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 Message.Builder setSendTime(com.google.protobuf.Timestamp value)
Optional. The time when the message was sent.
.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
public Message.Builder setSendTime(com.google.protobuf.Timestamp.Builder builderForValue)
Optional. The time when the message was sent.
.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
public Message.Builder mergeSendTime(com.google.protobuf.Timestamp value)
Optional. The time when the message was sent.
.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
public Message.Builder clearSendTime()
Optional. The time when the message was sent.
.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.Timestamp.Builder getSendTimeBuilder()
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 Message.Builder setMessageAnnotation(MessageAnnotation value)
Output only. The annotation for the message.
.google.cloud.dialogflow.v2beta1.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Message.Builder setMessageAnnotation(MessageAnnotation.Builder builderForValue)
Output only. The annotation for the message.
.google.cloud.dialogflow.v2beta1.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Message.Builder mergeMessageAnnotation(MessageAnnotation value)
Output only. The annotation for the message.
.google.cloud.dialogflow.v2beta1.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Message.Builder clearMessageAnnotation()
Output only. The annotation for the message.
.google.cloud.dialogflow.v2beta1.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public MessageAnnotation.Builder getMessageAnnotationBuilder()
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 Message.Builder setSentimentAnalysis(SentimentAnalysisResult value)
Output only. The sentiment analysis result for the message.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Message.Builder setSentimentAnalysis(SentimentAnalysisResult.Builder builderForValue)
Output only. The sentiment analysis result for the message.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Message.Builder mergeSentimentAnalysis(SentimentAnalysisResult value)
Output only. The sentiment analysis result for the message.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Message.Builder clearSentimentAnalysis()
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.Builder getSentimentAnalysisBuilder()
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 Message.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>public final Message.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>Copyright © 2023 Google LLC. All rights reserved.