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 Books API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Annotation.ClientVersionRanges
Selection ranges sent from the client.
|
static class |
Annotation.CurrentVersionRanges
Selection ranges for the most recent content version.
|
static class |
Annotation.LayerSummary
Model definition for AnnotationLayerSummary.
|
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() |
String |
getAfterSelectedText()
Anchor text after excerpt.
|
String |
getBeforeSelectedText()
Anchor text before excerpt.
|
Annotation.ClientVersionRanges |
getClientVersionRanges()
Selection ranges sent from the client.
|
com.google.api.client.util.DateTime |
getCreated()
Timestamp for the created time of this annotation.
|
Annotation.CurrentVersionRanges |
getCurrentVersionRanges()
Selection ranges for the most recent content version.
|
String |
getData()
User-created data for this annotation.
|
Boolean |
getDeleted()
Indicates that this annotation is deleted.
|
String |
getHighlightStyle()
The highlight style for this annotation.
|
String |
getId()
Id of this annotation, in the form of a GUID.
|
String |
getKind()
Resource type.
|
String |
getLayerId()
The layer this annotation is for.
|
Annotation.LayerSummary |
getLayerSummary() |
List<String> |
getPageIds()
Pages that this annotation spans.
|
String |
getSelectedText()
Excerpt from the volume.
|
String |
getSelfLink()
URL to this resource.
|
com.google.api.client.util.DateTime |
getUpdated()
Timestamp for the last time this annotation was modified.
|
String |
getVolumeId()
The volume that this annotation belongs to.
|
Annotation |
set(String fieldName,
Object value) |
Annotation |
setAfterSelectedText(String afterSelectedText)
Anchor text after excerpt.
|
Annotation |
setBeforeSelectedText(String beforeSelectedText)
Anchor text before excerpt.
|
Annotation |
setClientVersionRanges(Annotation.ClientVersionRanges clientVersionRanges)
Selection ranges sent from the client.
|
Annotation |
setCreated(com.google.api.client.util.DateTime created)
Timestamp for the created time of this annotation.
|
Annotation |
setCurrentVersionRanges(Annotation.CurrentVersionRanges currentVersionRanges)
Selection ranges for the most recent content version.
|
Annotation |
setData(String data)
User-created data for this annotation.
|
Annotation |
setDeleted(Boolean deleted)
Indicates that this annotation is deleted.
|
Annotation |
setHighlightStyle(String highlightStyle)
The highlight style for this annotation.
|
Annotation |
setId(String id)
Id of this annotation, in the form of a GUID.
|
Annotation |
setKind(String kind)
Resource type.
|
Annotation |
setLayerId(String layerId)
The layer this annotation is for.
|
Annotation |
setLayerSummary(Annotation.LayerSummary layerSummary) |
Annotation |
setPageIds(List<String> pageIds)
Pages that this annotation spans.
|
Annotation |
setSelectedText(String selectedText)
Excerpt from the volume.
|
Annotation |
setSelfLink(String selfLink)
URL to this resource.
|
Annotation |
setUpdated(com.google.api.client.util.DateTime updated)
Timestamp for the last time this annotation was modified.
|
Annotation |
setVolumeId(String volumeId)
The volume that this annotation belongs to.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAfterSelectedText()
null for nonepublic Annotation setAfterSelectedText(String afterSelectedText)
afterSelectedText - afterSelectedText or null for nonepublic String getBeforeSelectedText()
null for nonepublic Annotation setBeforeSelectedText(String beforeSelectedText)
beforeSelectedText - beforeSelectedText or null for nonepublic Annotation.ClientVersionRanges getClientVersionRanges()
null for nonepublic Annotation setClientVersionRanges(Annotation.ClientVersionRanges clientVersionRanges)
clientVersionRanges - clientVersionRanges or null for nonepublic com.google.api.client.util.DateTime getCreated()
null for nonepublic Annotation setCreated(com.google.api.client.util.DateTime created)
created - created or null for nonepublic Annotation.CurrentVersionRanges getCurrentVersionRanges()
null for nonepublic Annotation setCurrentVersionRanges(Annotation.CurrentVersionRanges currentVersionRanges)
currentVersionRanges - currentVersionRanges or null for nonepublic String getData()
null for nonepublic Annotation setData(String data)
data - data or null for nonepublic Boolean getDeleted()
null for nonepublic Annotation setDeleted(Boolean deleted)
deleted - deleted or null for nonepublic String getHighlightStyle()
null for nonepublic Annotation setHighlightStyle(String highlightStyle)
highlightStyle - highlightStyle or null for nonepublic String getId()
null for nonepublic Annotation setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic Annotation setKind(String kind)
kind - kind or null for nonepublic String getLayerId()
null for nonepublic Annotation setLayerId(String layerId)
layerId - layerId or null for nonepublic Annotation.LayerSummary getLayerSummary()
null for nonepublic Annotation setLayerSummary(Annotation.LayerSummary layerSummary)
layerSummary - layerSummary or null for nonepublic List<String> getPageIds()
null for nonepublic Annotation setPageIds(List<String> pageIds)
pageIds - pageIds or null for nonepublic String getSelectedText()
null for nonepublic Annotation setSelectedText(String selectedText)
selectedText - selectedText or null for nonepublic String getSelfLink()
null for nonepublic Annotation setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic com.google.api.client.util.DateTime getUpdated()
null for nonepublic Annotation setUpdated(com.google.api.client.util.DateTime updated)
updated - updated or null for nonepublic String getVolumeId()
null for nonepublic Annotation setVolumeId(String volumeId)
volumeId - volumeId 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–2019 Google. All rights reserved.