public final class Comment extends 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 Drive 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 |
Comment.QuotedFileContent
The file content to which the comment refers, typically within the anchor region.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Comment() |
| Modifier and Type | Method and Description |
|---|---|
Comment |
clone() |
String |
getAnchor()
A region of the document represented as a JSON string.
|
User |
getAuthor()
The author of the comment.
|
String |
getContent()
The plain text content of the comment.
|
DateTime |
getCreatedTime()
The time at which the comment was created (RFC 3339 date-time).
|
Boolean |
getDeleted()
Whether the comment has been deleted.
|
String |
getHtmlContent()
The content of the comment with HTML formatting.
|
String |
getId()
The ID of the comment.
|
String |
getKind()
Identifies what kind of resource this is.
|
DateTime |
getModifiedTime()
The last time the comment or any of its replies was modified (RFC 3339 date-time).
|
Comment.QuotedFileContent |
getQuotedFileContent()
The file content to which the comment refers, typically within the anchor region.
|
List<Reply> |
getReplies()
The full list of replies to the comment in chronological order.
|
Boolean |
getResolved()
Whether the comment has been resolved by one of its replies.
|
Comment |
set(String fieldName,
Object value) |
Comment |
setAnchor(String anchor)
A region of the document represented as a JSON string.
|
Comment |
setAuthor(User author)
The author of the comment.
|
Comment |
setContent(String content)
The plain text content of the comment.
|
Comment |
setCreatedTime(DateTime createdTime)
The time at which the comment was created (RFC 3339 date-time).
|
Comment |
setDeleted(Boolean deleted)
Whether the comment has been deleted.
|
Comment |
setHtmlContent(String htmlContent)
The content of the comment with HTML formatting.
|
Comment |
setId(String id)
The ID of the comment.
|
Comment |
setKind(String kind)
Identifies what kind of resource this is.
|
Comment |
setModifiedTime(DateTime modifiedTime)
The last time the comment or any of its replies was modified (RFC 3339 date-time).
|
Comment |
setQuotedFileContent(Comment.QuotedFileContent quotedFileContent)
The file content to which the comment refers, typically within the anchor region.
|
Comment |
setReplies(List<Reply> replies)
The full list of replies to the comment in chronological order.
|
Comment |
setResolved(Boolean resolved)
Whether the comment has been resolved by one of its replies.
|
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 String getAnchor()
null for nonepublic Comment setAnchor(String anchor)
anchor - anchor or null for nonepublic User getAuthor()
null for nonepublic Comment setAuthor(User author)
author - author or null for nonepublic String getContent()
null for nonepublic Comment setContent(String content)
content - content or null for nonepublic DateTime getCreatedTime()
null for nonepublic Comment setCreatedTime(DateTime createdTime)
createdTime - createdTime or null for nonepublic Boolean getDeleted()
null for nonepublic Comment setDeleted(Boolean deleted)
deleted - deleted or null for nonepublic String getHtmlContent()
null for nonepublic Comment setHtmlContent(String htmlContent)
htmlContent - htmlContent or null for nonepublic String getId()
null for nonepublic String getKind()
null for nonepublic Comment setKind(String kind)
kind - kind or null for nonepublic DateTime getModifiedTime()
null for nonepublic Comment setModifiedTime(DateTime modifiedTime)
modifiedTime - modifiedTime or null for nonepublic Comment.QuotedFileContent getQuotedFileContent()
null for nonepublic Comment setQuotedFileContent(Comment.QuotedFileContent quotedFileContent)
quotedFileContent - quotedFileContent or null for nonepublic List<Reply> getReplies()
null for nonepublic Comment setReplies(List<Reply> replies)
replies - replies or null for nonepublic Boolean getResolved()
null for nonepublic Comment setResolved(Boolean resolved)
resolved - resolved or null for nonepublic Comment set(String fieldName, Object value)
set in class GenericJsonpublic Comment clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.