public final class Annotation
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Chat API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Annotation() |
| Modifier and Type | Method and Description |
|---|---|
Annotation |
clone() |
CustomEmojiMetadata |
getCustomEmojiMetadata()
The metadata for a custom emoji.
|
Integer |
getLength()
Length of the substring in the plain-text message body this annotation corresponds to.
|
RichLinkMetadata |
getRichLinkMetadata()
The metadata for a rich link.
|
SlashCommandMetadata |
getSlashCommand()
The metadata for a slash command.
|
Integer |
getStartIndex()
Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.
|
String |
getType()
The type of this annotation.
|
UserMentionMetadata |
getUserMention()
The metadata of user mention.
|
Annotation |
set(String fieldName,
Object value) |
Annotation |
setCustomEmojiMetadata(CustomEmojiMetadata customEmojiMetadata)
The metadata for a custom emoji.
|
Annotation |
setLength(Integer length)
Length of the substring in the plain-text message body this annotation corresponds to.
|
Annotation |
setRichLinkMetadata(RichLinkMetadata richLinkMetadata)
The metadata for a rich link.
|
Annotation |
setSlashCommand(SlashCommandMetadata slashCommand)
The metadata for a slash command.
|
Annotation |
setStartIndex(Integer startIndex)
Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.
|
Annotation |
setType(String type)
The type of this annotation.
|
Annotation |
setUserMention(UserMentionMetadata userMention)
The metadata of user mention.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic CustomEmojiMetadata getCustomEmojiMetadata()
null for nonepublic Annotation setCustomEmojiMetadata(CustomEmojiMetadata customEmojiMetadata)
customEmojiMetadata - customEmojiMetadata or null for nonepublic Integer getLength()
null for nonepublic Annotation setLength(Integer length)
length - length or null for nonepublic RichLinkMetadata getRichLinkMetadata()
null for nonepublic Annotation setRichLinkMetadata(RichLinkMetadata richLinkMetadata)
richLinkMetadata - richLinkMetadata or null for nonepublic SlashCommandMetadata getSlashCommand()
null for nonepublic Annotation setSlashCommand(SlashCommandMetadata slashCommand)
slashCommand - slashCommand or null for nonepublic Integer getStartIndex()
null for nonepublic Annotation setStartIndex(Integer startIndex)
startIndex - startIndex or null for nonepublic String getType()
null for nonepublic Annotation setType(String type)
type - type or null for nonepublic UserMentionMetadata getUserMention()
null for nonepublic Annotation setUserMention(UserMentionMetadata userMention)
userMention - userMention or null for nonepublic Annotation set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Annotation clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.