GoogleApi.Chat.V1.Model.Annotation (google_api_chat v0.27.0) 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. -
slashCommand(type:GoogleApi.Chat.V1.Model.SlashCommandMetadata.t, default:nil) - The metadata for a slash command. -
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
Specs
t() :: %GoogleApi.Chat.V1.Model.Annotation{
length: integer() | nil,
slashCommand: GoogleApi.Chat.V1.Model.SlashCommandMetadata.t() | nil,
startIndex: integer() | nil,
type: String.t() | nil,
userMention: GoogleApi.Chat.V1.Model.UserMentionMetadata.t() | nil
}
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.