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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Annotation() |
Modifier and Type | Method and Description |
---|---|
Annotation |
clone() |
Integer |
getLength()
Length of the substring in the plain-text message body this annotation corresponds to.
|
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 |
setLength(Integer length)
Length of the substring in the plain-text message body this annotation corresponds to.
|
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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Integer getLength()
null
for nonepublic Annotation setLength(Integer length)
length
- length 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.GenericJson
public Annotation clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.