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 Hangouts 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| Constructor and Description |
|---|
Annotation() |
| Modifier and Type | Method and Description |
|---|---|
Annotation |
clone() |
java.lang.Integer |
getLength()
Length of the substring in the plain-text message body this annotation corresponds to.
|
java.lang.Integer |
getStartIndex()
Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.
|
java.lang.String |
getType()
The type of this annotation.
|
UserMentionMetadata |
getUserMention()
The metadata of user mention.
|
Annotation |
set(java.lang.String fieldName,
java.lang.Object value) |
Annotation |
setLength(java.lang.Integer length)
Length of the substring in the plain-text message body this annotation corresponds to.
|
Annotation |
setStartIndex(java.lang.Integer startIndex)
Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.
|
Annotation |
setType(java.lang.String type)
The type of this annotation.
|
Annotation |
setUserMention(UserMentionMetadata userMention)
The metadata of user mention.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Integer getLength()
null for nonepublic Annotation setLength(java.lang.Integer length)
length - length or null for nonepublic java.lang.Integer getStartIndex()
null for nonepublic Annotation setStartIndex(java.lang.Integer startIndex)
startIndex - startIndex or null for nonepublic java.lang.String getType()
null for nonepublic Annotation setType(java.lang.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(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Annotation clone()
clone in class com.google.api.client.json.GenericJson