target.apidocs.com.google.api.services.drive.model.CommentReply.html Maven / Gradle / Ivy
CommentReply (Drive API v2-rev20180830-1.26.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.
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
- 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()
The user who wrote this reply.
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()
Whether this reply has been deleted.
String
getHtmlContent()
HTML formatted content for this reply.
String
getKind()
This is always drive#commentReply.
com.google.api.client.util.DateTime
getModifiedDate()
The date when this reply was last modified.
String
getReplyId()
The ID of the reply.
String
getVerb()
The action this reply performed to the parent comment.
CommentReply
set(String fieldName,
Object value)
CommentReply
setAuthor(User author)
The user who wrote this reply.
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)
Whether this reply has been deleted.
CommentReply
setHtmlContent(String htmlContent)
HTML formatted content for this reply.
CommentReply
setKind(String kind)
This is always drive#commentReply.
CommentReply
setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
The date when this reply was last modified.
CommentReply
setReplyId(String replyId)
The ID of the reply.
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, 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()
The user who wrote this reply.
- Returns:
- value or
null
for none
-
setAuthor
public CommentReply setAuthor(User author)
The user who wrote this reply.
- 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()
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)
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()
HTML formatted content for this reply.
- Returns:
- value or
null
for none
-
setHtmlContent
public CommentReply setHtmlContent(String htmlContent)
HTML formatted content for this reply.
- Parameters:
htmlContent
- htmlContent or null
for none
-
getKind
public String getKind()
This is always drive#commentReply.
- Returns:
- value or
null
for none
-
setKind
public CommentReply setKind(String kind)
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()
The ID of the reply.
- Returns:
- value or
null
for none
-
setReplyId
public CommentReply setReplyId(String replyId)
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–2018 Google. All rights reserved.