google_api_chat v0.4.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: null.
  • startIndex (integer()): Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to. Defaults to: null.
  • type (String.t): The type of this annotation. Defaults to: null.

    • Enum - one of [ANNOTATION_TYPE_UNSPECIFIED, USER_MENTION]
  • userMention (UserMentionMetadata): The metadata of user mention. Defaults to: null.

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() :: %GoogleApi.Chat.V1.Model.Annotation{
  length: any(),
  startIndex: any(),
  type: any(),
  userMention: GoogleApi.Chat.V1.Model.UserMentionMetadata.t()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.