public final class Comment
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 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. 
 | 
com.google.api.client.util.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. 
 | 
String | 
getAssigneeEmailAddress()
Output only. 
 | 
User | 
getAuthor()
Output only. 
 | 
String | 
getContent()
The plain text content of the comment. 
 | 
com.google.api.client.util.DateTime | 
getCreatedTime()
The time at which the comment was created (RFC 3339 date-time). 
 | 
Boolean | 
getDeleted()
Output only. 
 | 
String | 
getHtmlContent()
Output only. 
 | 
String | 
getId()
Output only. 
 | 
String | 
getKind()
Output only. 
 | 
List<String> | 
getMentionedEmailAddresses()
Output only. 
 | 
com.google.api.client.util.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()
Output only. 
 | 
Boolean | 
getResolved()
Output only. 
 | 
Comment | 
set(String fieldName,
   Object value)  | 
Comment | 
setAnchor(String anchor)
A region of the document represented as a JSON string. 
 | 
Comment | 
setAssigneeEmailAddress(String assigneeEmailAddress)
Output only. 
 | 
Comment | 
setAuthor(User author)
Output only. 
 | 
Comment | 
setContent(String content)
The plain text content of the comment. 
 | 
Comment | 
setCreatedTime(com.google.api.client.util.DateTime createdTime)
The time at which the comment was created (RFC 3339 date-time). 
 | 
Comment | 
setDeleted(Boolean deleted)
Output only. 
 | 
Comment | 
setHtmlContent(String htmlContent)
Output only. 
 | 
Comment | 
setId(String id)
Output only. 
 | 
Comment | 
setKind(String kind)
Output only. 
 | 
Comment | 
setMentionedEmailAddresses(List<String> mentionedEmailAddresses)
Output only. 
 | 
Comment | 
setModifiedTime(com.google.api.client.util.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)
Output only. 
 | 
Comment | 
setResolved(Boolean resolved)
Output only. 
 | 
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 String getAssigneeEmailAddress()
null for nonepublic Comment setAssigneeEmailAddress(String assigneeEmailAddress)
assigneeEmailAddress - assigneeEmailAddress 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 com.google.api.client.util.DateTime getCreatedTime()
null for nonepublic Comment setCreatedTime(com.google.api.client.util.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 Comment setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic Comment setKind(String kind)
kind - kind or null for nonepublic List<String> getMentionedEmailAddresses()
null for nonepublic Comment setMentionedEmailAddresses(List<String> mentionedEmailAddresses)
mentionedEmailAddresses - mentionedEmailAddresses or null for nonepublic com.google.api.client.util.DateTime getModifiedTime()
null for nonepublic Comment setModifiedTime(com.google.api.client.util.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 com.google.api.client.json.GenericJsonpublic Comment clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.