Class Annotation
Output only. Annotations can be associated with the plain-text body of the message or with chips that link to
Google Workspace resources like Google Docs or Sheets with start_index and length of 0. To add basic
formatting to a text message, see Format text
messages. Example plain-text message body:
Hello @FooBot how are you!"
The corresponding annotations metadata:
"annotations":[{
"type":"USER_MENTION", "startIndex":6, "length":7, "userMention": { "user": { "name":"users/{user}",
"displayName":"FooBot", "avatarUrl":"https://goo.gl/aeDtrS", "type":"BOT" }, "type":"MENTION" } }]
Implements
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class Annotation : IDirectResponseSchema
Properties
CustomEmojiMetadata
The metadata for a custom emoji.
Declaration
[JsonProperty("customEmojiMetadata")]
public virtual CustomEmojiMetadata CustomEmojiMetadata { get; set; }
Property Value
| Type | Description |
|---|---|
| CustomEmojiMetadata |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Length
Length of the substring in the plain-text message body this annotation corresponds to. If not present, indicates a length of 0.
Declaration
[JsonProperty("length")]
public virtual int? Length { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
RichLinkMetadata
The metadata for a rich link.
Declaration
[JsonProperty("richLinkMetadata")]
public virtual RichLinkMetadata RichLinkMetadata { get; set; }
Property Value
| Type | Description |
|---|---|
| RichLinkMetadata |
SlashCommand
The metadata for a slash command.
Declaration
[JsonProperty("slashCommand")]
public virtual SlashCommandMetadata SlashCommand { get; set; }
Property Value
| Type | Description |
|---|---|
| SlashCommandMetadata |
StartIndex
Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.
Declaration
[JsonProperty("startIndex")]
public virtual int? StartIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Type
The type of this annotation.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserMention
The metadata of user mention.
Declaration
[JsonProperty("userMention")]
public virtual UserMentionMetadata UserMention { get; set; }
Property Value
| Type | Description |
|---|---|
| UserMentionMetadata |