target.apidocs.com.google.api.services.drive.model.Reply.html Maven / Gradle / Ivy
Reply (Google Drive API v3-rev20241027-2.0.0)
com.google.api.services.drive.model
Class Reply
- 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.Reply
-
public final class Reply
extends com.google.api.client.json.GenericJson
A reply to a comment on a file. 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
Reply()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Reply
clone()
String
getAction()
The action the reply performed to the parent comment.
User
getAuthor()
Output only.
String
getContent()
The plain text content of the reply.
com.google.api.client.util.DateTime
getCreatedTime()
The time at which the reply 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 reply was modified (RFC 3339 date-time).
Reply
set(String fieldName,
Object value)
Reply
setAction(String action)
The action the reply performed to the parent comment.
Reply
setAuthor(User author)
Output only.
Reply
setContent(String content)
The plain text content of the reply.
Reply
setCreatedTime(com.google.api.client.util.DateTime createdTime)
The time at which the reply was created (RFC 3339 date-time).
Reply
setDeleted(Boolean deleted)
Output only.
Reply
setHtmlContent(String htmlContent)
Output only.
Reply
setId(String id)
Output only.
Reply
setKind(String kind)
Output only.
Reply
setModifiedTime(com.google.api.client.util.DateTime modifiedTime)
The last time the reply was modified (RFC 3339 date-time).
-
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
-
getAction
public String getAction()
The action the reply performed to the parent comment. Valid values are: * `resolve` * `reopen`
- Returns:
- value or
null
for none
-
setAction
public Reply setAction(String action)
The action the reply performed to the parent comment. Valid values are: * `resolve` * `reopen`
- Parameters:
action
- action or null
for none
-
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 Reply 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 of the reply. This field is used for setting the content, while
`htmlContent` should be displayed. This is required on creates if no `action` is specified.
- Returns:
- value or
null
for none
-
setContent
public Reply setContent(String content)
The plain text content of the reply. This field is used for setting the content, while
`htmlContent` should be displayed. This is required on creates if no `action` is specified.
- Parameters:
content
- content or null
for none
-
getCreatedTime
public com.google.api.client.util.DateTime getCreatedTime()
The time at which the reply was created (RFC 3339 date-time).
- Returns:
- value or
null
for none
-
setCreatedTime
public Reply setCreatedTime(com.google.api.client.util.DateTime createdTime)
The time at which the reply was created (RFC 3339 date-time).
- Parameters:
createdTime
- createdTime or null
for none
-
getDeleted
public Boolean getDeleted()
Output only. Whether the reply has been deleted. A deleted reply has no content.
- Returns:
- value or
null
for none
-
setDeleted
public Reply setDeleted(Boolean deleted)
Output only. Whether the reply has been deleted. A deleted reply has no content.
- Parameters:
deleted
- deleted or null
for none
-
getHtmlContent
public String getHtmlContent()
Output only. The content of the reply with HTML formatting.
- Returns:
- value or
null
for none
-
setHtmlContent
public Reply setHtmlContent(String htmlContent)
Output only. The content of the reply with HTML formatting.
- Parameters:
htmlContent
- htmlContent or null
for none
-
getId
public String getId()
Output only. The ID of the reply.
- Returns:
- value or
null
for none
-
setId
public Reply setId(String id)
Output only. The ID of the reply.
- Parameters:
id
- id or null
for none
-
getKind
public String getKind()
Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#reply"`.
- Returns:
- value or
null
for none
-
setKind
public Reply setKind(String kind)
Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#reply"`.
- Parameters:
kind
- kind or null
for none
-
getModifiedTime
public com.google.api.client.util.DateTime getModifiedTime()
The last time the reply was modified (RFC 3339 date-time).
- Returns:
- value or
null
for none
-
setModifiedTime
public Reply setModifiedTime(com.google.api.client.util.DateTime modifiedTime)
The last time the reply was modified (RFC 3339 date-time).
- Parameters:
modifiedTime
- modifiedTime or null
for none
-
set
public Reply set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Reply clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy