Google Cloud Dialogflow v2 API - Class Message (4.5.0)

public sealed class Message : IMessage<Message>, IEquatable<Message>, IDeepCloneable<Message>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class Message.

Represents a message posted into a conversation.

Inheritance

Object > Message

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

Message()

public Message()

Message(Message)

public Message(Message other)
Parameter
NameDescription
otherMessage

Properties

Content

public string Content { get; set; }

Required. The message content.

Property Value
TypeDescription
String

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The time when the message was created in Contact Center AI.

Property Value
TypeDescription
Timestamp

LanguageCode

public string LanguageCode { get; set; }

Optional. The message language. This should be a BCP-47 language tag. Example: "en-US".

Property Value
TypeDescription
String

MessageAnnotation

public MessageAnnotation MessageAnnotation { get; set; }

Output only. The annotation for the message.

Property Value
TypeDescription
MessageAnnotation

MessageName

public MessageName MessageName { get; set; }

MessageName-typed view over the Name resource name property.

Property Value
TypeDescription
MessageName

Name

public string Name { get; set; }

Optional. The unique identifier of the message. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

Property Value
TypeDescription
String

Participant

public string Participant { get; set; }

Output only. The participant that sends this message.

Property Value
TypeDescription
String

ParticipantRole

public Participant.Types.Role ParticipantRole { get; set; }

Output only. The role of the participant.

Property Value
TypeDescription
Participant.Types.Role

SendTime

public Timestamp SendTime { get; set; }

Optional. The time when the message was sent.

Property Value
TypeDescription
Timestamp

SentimentAnalysis

public SentimentAnalysisResult SentimentAnalysis { get; set; }

Output only. The sentiment analysis result for the message.

Property Value
TypeDescription
SentimentAnalysisResult