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 Drive Activity 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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Comment() |
Modifier and Type | Method and Description |
---|---|
Comment |
clone() |
Assignment |
getAssignment()
A change on an assignment.
|
List<User> |
getMentionedUsers()
Users who are mentioned in this comment.
|
Post |
getPost()
A change on a regular posted comment.
|
Suggestion |
getSuggestion()
A change on a suggestion.
|
Comment |
set(String fieldName,
Object value) |
Comment |
setAssignment(Assignment assignment)
A change on an assignment.
|
Comment |
setMentionedUsers(List<User> mentionedUsers)
Users who are mentioned in this comment.
|
Comment |
setPost(Post post)
A change on a regular posted comment.
|
Comment |
setSuggestion(Suggestion suggestion)
A change on a suggestion.
|
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 Assignment getAssignment()
null
for nonepublic Comment setAssignment(Assignment assignment)
assignment
- assignment or null
for nonepublic List<User> getMentionedUsers()
null
for nonepublic Comment setMentionedUsers(List<User> mentionedUsers)
mentionedUsers
- mentionedUsers or null
for nonepublic Post getPost()
null
for nonepublic Comment setPost(Post post)
post
- post or null
for nonepublic Suggestion getSuggestion()
null
for nonepublic Comment setSuggestion(Suggestion suggestion)
suggestion
- suggestion 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–2023 Google. All rights reserved.