public static final class Message.Builder extends GeneratedMessageV3.Builder<Message.Builder> implements MessageOrBuilder
Represents a message posted into a conversation.Protobuf type
google.cloud.dialogflow.v2.Message
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Message.Builder>
public Message.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Message.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Message.Builder>
public Message getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Message build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Message buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Message.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Message.Builder>
public Message.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Message.Builder>
public Message.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Message.Builder>
public Message.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Message.Builder>
public Message.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Message.Builder>
public Message.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Message.Builder>
public Message.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Message.Builder>
public Message.Builder mergeFrom(Message other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Message.Builder>
public Message.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Message.Builder>
IOException
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];
public 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(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 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(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 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(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 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(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.v2.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.v2.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.v2.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.v2.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.v2.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 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(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(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(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 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 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 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(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(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(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 Timestamp.Builder getSendTimeBuilder()
Optional. The time when the message was sent.
.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
public 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.v2.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public MessageAnnotation getMessageAnnotation()
Output only. The annotation for the message.
.google.cloud.dialogflow.v2.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.v2.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.v2.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.v2.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Message.Builder clearMessageAnnotation()
Output only. The annotation for the message.
.google.cloud.dialogflow.v2.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public MessageAnnotation.Builder getMessageAnnotationBuilder()
Output only. The annotation for the message.
.google.cloud.dialogflow.v2.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public MessageAnnotationOrBuilder getMessageAnnotationOrBuilder()
Output only. The annotation for the message.
.google.cloud.dialogflow.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final Message.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Message.Builder>
public final Message.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Message.Builder>
Copyright © 2022 Google LLC. All rights reserved.