google_api_chat v0.6.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 (integer()): Length of the substring in the plain-text message body this annotation
corresponds to. Defaults to
nil
. - startIndex (integer()): Start index (0-based, inclusive) in the plain-text message body this
annotation corresponds to. Defaults to
nil
. - type (String.t): The type of this annotation. Defaults to
nil
. - userMention (GoogleApi.Chat.V1.Model.UserMentionMetadata.t): The metadata of user mention. Defaults to
nil
.
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 Source
t()
View Source
t() :: %GoogleApi.Chat.V1.Model.Annotation{
length: integer(),
startIndex: integer(),
type: String.t(),
userMention: GoogleApi.Chat.V1.Model.UserMentionMetadata.t()
}
t() :: %GoogleApi.Chat.V1.Model.Annotation{ length: integer(), startIndex: integer(), type: String.t(), userMention: GoogleApi.Chat.V1.Model.UserMentionMetadata.t() }
Link to this section Functions
Link to this function
decode(value, options) View Source
Unwrap a decoded JSON object into its complex fields.