Class Message (3.9.0)

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

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.

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; }

The unique identifier of the message. Format: projects/{Project ID}/locations/{Location ID>/conversations/&lt;Conversation ID>/messages/&lt;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