Class Message
Message is one unit of communication between client and server. It is associated with a context and optionally a task. Since the server is responsible for the context definition, it must always provide a context_id in its messages. The client can optionally provide the context_id if it knows the context to associate the message to. Similarly for task_id, except the server decides if a task is created and whether to include the task_id.
Implements
Inherited Members
Namespace: Google.Apis.WorkspaceEvents.v1.Data
Assembly: Google.Apis.WorkspaceEvents.v1.dll
Syntax
public class Message : IDirectResponseSchema
Properties
Content
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
Declaration
[JsonProperty("content")]
public virtual IList<Part> Content { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<Part> |
ContextId
The context id of the message. This is optional and if set, the message will be associated with the given context.
Declaration
[JsonProperty("contextId")]
public virtual string ContextId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Extensions
The URIs of extensions that are present or contributed to this Message.
Declaration
[JsonProperty("extensions")]
public virtual IList<string> Extensions { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<string> |
MessageId
The unique identifier (e.g. UUID)of the message. This is required and created by the message creator.
Declaration
[JsonProperty("messageId")]
public virtual string MessageId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Metadata
protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
Declaration
[JsonProperty("metadata")]
public virtual IDictionary<string, object> Metadata { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |
Role
A role for the message.
Declaration
[JsonProperty("role")]
public virtual string Role { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TaskId
The task id of the message. This is optional and if set, the message will be associated with the given task.
Declaration
[JsonProperty("taskId")]
public virtual string TaskId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |