- 4.58.0 (latest)
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Message.BuilderImplements
MessageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Message.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Message.Builder |
build()
public Message build()
Type | Description |
Message |
buildPartial()
public Message buildPartial()
Type | Description |
Message |
clear()
public Message.Builder clear()
Type | Description |
Message.Builder |
clearContent()
public Message.Builder clearContent()
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Message.Builder | This builder for chaining. |
clearCreateTime()
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];
Type | Description |
Message.Builder |
clearField(Descriptors.FieldDescriptor field)
public Message.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Message.Builder |
clearLanguageCode()
public Message.Builder clearLanguageCode()
Optional. The message language. This should be a BCP-47 language tag. Example: "en-US".
string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Message.Builder | This builder for chaining. |
clearMessageAnnotation()
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];
Type | Description |
Message.Builder |
clearName()
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];
Type | Description |
Message.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Message.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Message.Builder |
clearParticipant()
public Message.Builder clearParticipant()
Output only. The participant that sends this message.
string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Message.Builder | This builder for chaining. |
clearParticipantRole()
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];
Type | Description |
Message.Builder | This builder for chaining. |
clearSendTime()
public Message.Builder clearSendTime()
Optional. The time when the message was sent.
.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Message.Builder |
clearSentimentAnalysis()
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];
Type | Description |
Message.Builder |
clone()
public Message.Builder clone()
Type | Description |
Message.Builder |
getContent()
public String getContent()
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The content. |
getContentBytes()
public ByteString getContentBytes()
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for content. |
getCreateTime()
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];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
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];
Type | Description |
Builder |
getCreateTimeOrBuilder()
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];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Message getDefaultInstanceForType()
Type | Description |
Message |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLanguageCode()
public String getLanguageCode()
Optional. The message language. This should be a BCP-47 language tag. Example: "en-US".
string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The languageCode. |
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()
Optional. The message language. This should be a BCP-47 language tag. Example: "en-US".
string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for languageCode. |
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];
Type | Description |
MessageAnnotation | The messageAnnotation. |
getMessageAnnotationBuilder()
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];
Type | Description |
MessageAnnotation.Builder |
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];
Type | Description |
MessageAnnotationOrBuilder |
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];
Type | Description |
String | The name. |
getNameBytes()
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];
Type | Description |
ByteString | The bytes for name. |
getParticipant()
public String getParticipant()
Output only. The participant that sends this message.
string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The participant. |
getParticipantBytes()
public ByteString getParticipantBytes()
Output only. The participant that sends this message.
string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for participant. |
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];
Type | Description |
Participant.Role | The participantRole. |
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];
Type | Description |
int | The enum numeric value on the wire for participantRole. |
getSendTime()
public Timestamp getSendTime()
Optional. The time when the message was sent.
.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Timestamp | The sendTime. |
getSendTimeBuilder()
public Timestamp.Builder getSendTimeBuilder()
Optional. The time when the message was sent.
.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Builder |
getSendTimeOrBuilder()
public TimestampOrBuilder getSendTimeOrBuilder()
Optional. The time when the message was sent.
.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
TimestampOrBuilder |
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];
Type | Description |
SentimentAnalysisResult | The sentimentAnalysis. |
getSentimentAnalysisBuilder()
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];
Type | Description |
SentimentAnalysisResult.Builder |
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];
Type | Description |
SentimentAnalysisResultOrBuilder |
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];
Type | Description |
boolean | Whether the createTime field is set. |
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];
Type | Description |
boolean | Whether the messageAnnotation field is set. |
hasSendTime()
public boolean hasSendTime()
Optional. The time when the message was sent.
.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the sendTime field is set. |
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];
Type | Description |
boolean | Whether the sentimentAnalysis field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
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];
Name | Description |
value | Timestamp |
Type | Description |
Message.Builder |
mergeFrom(Message other)
public Message.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Message.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Message.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Message.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Message.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Message.Builder |
mergeMessageAnnotation(MessageAnnotation value)
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];
Name | Description |
value | MessageAnnotation |
Type | Description |
Message.Builder |
mergeSendTime(Timestamp value)
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];
Name | Description |
value | Timestamp |
Type | Description |
Message.Builder |
mergeSentimentAnalysis(SentimentAnalysisResult value)
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];
Name | Description |
value | SentimentAnalysisResult |
Type | Description |
Message.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Message.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Message.Builder |
setContent(String value)
public Message.Builder setContent(String value)
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The content to set. |
Type | Description |
Message.Builder | This builder for chaining. |
setContentBytes(ByteString value)
public Message.Builder setContentBytes(ByteString value)
Required. The message content.
string content = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for content to set. |
Type | Description |
Message.Builder | This builder for chaining. |
setCreateTime(Timestamp value)
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];
Name | Description |
value | Timestamp |
Type | Description |
Message.Builder |
setCreateTime(Timestamp.Builder builderForValue)
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];
Name | Description |
builderForValue | Builder |
Type | Description |
Message.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Message.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Message.Builder |
setLanguageCode(String value)
public Message.Builder setLanguageCode(String value)
Optional. The message language. This should be a BCP-47 language tag. Example: "en-US".
string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The languageCode to set. |
Type | Description |
Message.Builder | This builder for chaining. |
setLanguageCodeBytes(ByteString value)
public Message.Builder setLanguageCodeBytes(ByteString value)
Optional. The message language. This should be a BCP-47 language tag. Example: "en-US".
string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for languageCode to set. |
Type | Description |
Message.Builder | This builder for chaining. |
setMessageAnnotation(MessageAnnotation value)
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];
Name | Description |
value | MessageAnnotation |
Type | Description |
Message.Builder |
setMessageAnnotation(MessageAnnotation.Builder builderForValue)
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];
Name | Description |
builderForValue | MessageAnnotation.Builder |
Type | Description |
Message.Builder |
setName(String value)
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];
Name | Description |
value | String The name to set. |
Type | Description |
Message.Builder | This builder for chaining. |
setNameBytes(ByteString value)
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];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Message.Builder | This builder for chaining. |
setParticipant(String value)
public Message.Builder setParticipant(String value)
Output only. The participant that sends this message.
string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The participant to set. |
Type | Description |
Message.Builder | This builder for chaining. |
setParticipantBytes(ByteString value)
public Message.Builder setParticipantBytes(ByteString value)
Output only. The participant that sends this message.
string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for participant to set. |
Type | Description |
Message.Builder | This builder for chaining. |
setParticipantRole(Participant.Role value)
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];
Name | Description |
value | Participant.Role The participantRole to set. |
Type | Description |
Message.Builder | This builder for chaining. |
setParticipantRoleValue(int value)
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];
Name | Description |
value | int The enum numeric value on the wire for participantRole to set. |
Type | Description |
Message.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Message.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Message.Builder |
setSendTime(Timestamp value)
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];
Name | Description |
value | Timestamp |
Type | Description |
Message.Builder |
setSendTime(Timestamp.Builder builderForValue)
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];
Name | Description |
builderForValue | Builder |
Type | Description |
Message.Builder |
setSentimentAnalysis(SentimentAnalysisResult value)
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];
Name | Description |
value | SentimentAnalysisResult |
Type | Description |
Message.Builder |
setSentimentAnalysis(SentimentAnalysisResult.Builder builderForValue)
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];
Name | Description |
builderForValue | SentimentAnalysisResult.Builder |
Type | Description |
Message.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Message.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Message.Builder |