target.apidocs.com.google.api.services.drive.model.CommentReply.html Maven / Gradle / Ivy
CommentReply (Google Drive API v2-rev20240809-2.0.0)
com.google.api.services.drive.model
Class CommentReply
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.CommentReply
-
public final class CommentReply
extends com.google.api.client.json.GenericJson
A comment on a file in Google Drive. Some resource methods (such as `replies.update`) require a
`replyId`. Use the `replies.list` method to retrieve the ID for a reply.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
CommentReply()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
CommentReply
clone()
User
getAuthor()
Output only.
String
getContent()
The plain text content used to create this reply.
com.google.api.client.util.DateTime
getCreatedDate()
The date when this reply was first created.
Boolean
getDeleted()
Output only.
String
getHtmlContent()
Output only.
String
getKind()
Output only.
com.google.api.client.util.DateTime
getModifiedDate()
The date when this reply was last modified.
String
getReplyId()
Output only.
String
getVerb()
The action this reply performed to the parent comment.
CommentReply
set(String fieldName,
Object value)
CommentReply
setAuthor(User author)
Output only.
CommentReply
setContent(String content)
The plain text content used to create this reply.
CommentReply
setCreatedDate(com.google.api.client.util.DateTime createdDate)
The date when this reply was first created.
CommentReply
setDeleted(Boolean deleted)
Output only.
CommentReply
setHtmlContent(String htmlContent)
Output only.
CommentReply
setKind(String kind)
Output only.
CommentReply
setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
The date when this reply was last modified.
CommentReply
setReplyId(String replyId)
Output only.
CommentReply
setVerb(String verb)
The action this reply performed to the parent comment.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAuthor
public User getAuthor()
Output only. The author of the reply. The author's email address and permission ID will not be
populated.
- Returns:
- value or
null
for none
-
setAuthor
public CommentReply setAuthor(User author)
Output only. The author of the reply. The author's email address and permission ID will not be
populated.
- Parameters:
author
- author or null
for none
-
getContent
public String getContent()
The plain text content used to create this reply. This is not HTML safe and should only be used
as a starting point to make edits to a reply's content. This field is required on inserts if no
verb is specified (resolve/reopen).
- Returns:
- value or
null
for none
-
setContent
public CommentReply setContent(String content)
The plain text content used to create this reply. This is not HTML safe and should only be used
as a starting point to make edits to a reply's content. This field is required on inserts if no
verb is specified (resolve/reopen).
- Parameters:
content
- content or null
for none
-
getCreatedDate
public com.google.api.client.util.DateTime getCreatedDate()
The date when this reply was first created.
- Returns:
- value or
null
for none
-
setCreatedDate
public CommentReply setCreatedDate(com.google.api.client.util.DateTime createdDate)
The date when this reply was first created.
- Parameters:
createdDate
- createdDate or null
for none
-
getDeleted
public Boolean getDeleted()
Output only. Whether this reply has been deleted. If a reply has been deleted the content will
be cleared and this will only represent a reply that once existed.
- Returns:
- value or
null
for none
-
setDeleted
public CommentReply setDeleted(Boolean deleted)
Output only. Whether this reply has been deleted. If a reply has been deleted the content will
be cleared and this will only represent a reply that once existed.
- Parameters:
deleted
- deleted or null
for none
-
getHtmlContent
public String getHtmlContent()
Output only. HTML formatted content for this reply.
- Returns:
- value or
null
for none
-
setHtmlContent
public CommentReply setHtmlContent(String htmlContent)
Output only. HTML formatted content for this reply.
- Parameters:
htmlContent
- htmlContent or null
for none
-
getKind
public String getKind()
Output only. This is always `drive#commentReply`.
- Returns:
- value or
null
for none
-
setKind
public CommentReply setKind(String kind)
Output only. This is always `drive#commentReply`.
- Parameters:
kind
- kind or null
for none
-
getModifiedDate
public com.google.api.client.util.DateTime getModifiedDate()
The date when this reply was last modified.
- Returns:
- value or
null
for none
-
setModifiedDate
public CommentReply setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
The date when this reply was last modified.
- Parameters:
modifiedDate
- modifiedDate or null
for none
-
getReplyId
public String getReplyId()
Output only. The ID of the reply.
- Returns:
- value or
null
for none
-
setReplyId
public CommentReply setReplyId(String replyId)
Output only. The ID of the reply.
- Parameters:
replyId
- replyId or null
for none
-
getVerb
public String getVerb()
The action this reply performed to the parent comment. When creating a new reply this is the
action to be perform to the parent comment. Possible values are: * `resolve` - To resolve a
comment. * `reopen` - To reopen (un-resolve) a comment.
- Returns:
- value or
null
for none
-
setVerb
public CommentReply setVerb(String verb)
The action this reply performed to the parent comment. When creating a new reply this is the
action to be perform to the parent comment. Possible values are: * `resolve` - To resolve a
comment. * `reopen` - To reopen (un-resolve) a comment.
- Parameters:
verb
- verb or null
for none
-
set
public CommentReply set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public CommentReply clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.