google_api_chat v0.15.0 GoogleApi.Chat.V1.Model.Annotation View Source
Annotations associated with the plain-text body of the message.
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/107946847022116401880",
"displayName":"FooBot",
"avatarUrl":"https://goo.gl/aeDtrS",
"type":"BOT"
},
"type":"MENTION"
}
}]
Attributes
length
(type:integer()
, default:nil
) - Length of the substring in the plain-text message body this annotation corresponds to.startIndex
(type:integer()
, default:nil
) - Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.type
(type:String.t
, default:nil
) - The type of this annotation.userMention
(type:GoogleApi.Chat.V1.Model.UserMentionMetadata.t
, default:nil
) - The metadata of user mention.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Link to this type
t()
View Sourcet() :: %GoogleApi.Chat.V1.Model.Annotation{ length: integer(), startIndex: integer(), type: String.t(), userMention: GoogleApi.Chat.V1.Model.UserMentionMetadata.t() }
Link to this section Functions
Unwrap a decoded JSON object into its complex fields.