public final class FileComment
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 |
---|
FileComment() |
Modifier and Type | Method and Description |
---|---|
FileComment |
clone() |
String |
getLegacyCommentId()
The comment in the discussion thread.
|
String |
getLegacyDiscussionId()
The discussion thread to which the comment was added.
|
String |
getLinkToDiscussion()
The link to the discussion thread containing this comment, for example,
`https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID`.
|
DriveItem |
getParent()
The Drive item containing this comment.
|
FileComment |
set(String fieldName,
Object value) |
FileComment |
setLegacyCommentId(String legacyCommentId)
The comment in the discussion thread.
|
FileComment |
setLegacyDiscussionId(String legacyDiscussionId)
The discussion thread to which the comment was added.
|
FileComment |
setLinkToDiscussion(String linkToDiscussion)
The link to the discussion thread containing this comment, for example,
`https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID`.
|
FileComment |
setParent(DriveItem parent)
The Drive item containing this comment.
|
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 String getLegacyCommentId()
null
for nonepublic FileComment setLegacyCommentId(String legacyCommentId)
legacyCommentId
- legacyCommentId or null
for nonepublic String getLegacyDiscussionId()
null
for nonepublic FileComment setLegacyDiscussionId(String legacyDiscussionId)
legacyDiscussionId
- legacyDiscussionId or null
for nonepublic String getLinkToDiscussion()
null
for nonepublic FileComment setLinkToDiscussion(String linkToDiscussion)
linkToDiscussion
- linkToDiscussion or null
for nonepublic DriveItem getParent()
null
for nonepublic FileComment setParent(DriveItem parent)
parent
- parent or null
for nonepublic FileComment set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public FileComment clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.