public final class CommentThread
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 Sheets 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CommentThread() |
| Modifier and Type | Method and Description |
|---|---|
CommentThread |
clone() |
String |
getAnchorId()
The ID of the CommentAnchor in the sheet that this thread is tied to.
|
String |
getCommentId()
The unique ID of the comment thread.
|
Post |
getHeadPost()
The first post in the thread.
|
String |
getPlainTextQuote()
The quoted text from the spreadsheet when the comment was created, formatted as plain-text.
|
List<Post> |
getReplies()
Replies to the head post.
|
String |
getStatus()
Whether the thread is open or resolved.
|
CommentThread |
set(String fieldName,
Object value) |
CommentThread |
setAnchorId(String anchorId)
The ID of the CommentAnchor in the sheet that this thread is tied to.
|
CommentThread |
setCommentId(String commentId)
The unique ID of the comment thread.
|
CommentThread |
setHeadPost(Post headPost)
The first post in the thread.
|
CommentThread |
setPlainTextQuote(String plainTextQuote)
The quoted text from the spreadsheet when the comment was created, formatted as plain-text.
|
CommentThread |
setReplies(List<Post> replies)
Replies to the head post.
|
CommentThread |
setStatus(String status)
Whether the thread is open or resolved.
|
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 getAnchorId()
null for nonepublic CommentThread setAnchorId(String anchorId)
anchorId - anchorId or null for nonepublic String getCommentId()
null for nonepublic CommentThread setCommentId(String commentId)
commentId - commentId or null for nonepublic Post getHeadPost()
null for nonepublic CommentThread setHeadPost(Post headPost)
headPost - headPost or null for nonepublic String getPlainTextQuote()
null for nonepublic CommentThread setPlainTextQuote(String plainTextQuote)
plainTextQuote - plainTextQuote or null for nonepublic CommentThread setReplies(List<Post> replies)
replies - replies or null for nonepublic String getStatus()
null for nonepublic CommentThread setStatus(String status)
status - status or null for nonepublic CommentThread set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic CommentThread clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.