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.Flags
AbstractMap.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()
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.
|
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 |
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 |
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, 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 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 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 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.GenericJson
public Comment clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.