Resource: Comment
A comment on a file.
Some resource methods (such as comments.update
) require a commentId
. Use the comments.list
method to retrieve the ID for a comment in a file.
JSON representation |
---|
{ "id": string, "kind": string, "createdTime": string, "modifiedTime": string, "resolved": boolean, "anchor": string, "replies": [ { object ( |
Fields | |
---|---|
id |
Output only. The ID of the comment. |
kind |
Output only. Identifies what kind of resource this is. Value: the fixed string |
createdTime |
Output only. The time at which the comment was created (RFC 3339 date-time). |
modifiedTime |
Output only. The last time the comment or any of its replies was modified (RFC 3339 date-time). |
resolved |
Output only. Whether the comment has been resolved by one of its replies. |
anchor |
A region of the document represented as a JSON string. For details on defining anchor properties, refer to Manage comments and replies. |
replies[] |
Output only. The full list of replies to the comment in chronological order. |
author |
Output only. The author of the comment. The author's email address and permission ID will not be populated. |
deleted |
Output only. Whether the comment has been deleted. A deleted comment has no content. |
htmlContent |
Output only. The content of the comment with HTML formatting. |
content |
The plain text content of the comment. This field is used for setting the content, while |
quotedFileContent |
The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment. |
quotedFileContent.mimeType |
The MIME type of the quoted content. |
quotedFileContent.value |
The quoted content itself. This is interpreted as plain text if set through the API. |
Methods |
|
---|---|
|
Creates a comment on a file. |
|
Deletes a comment. |
|
Gets a comment by ID. |
|
Lists a file's comments. |
|
Updates a comment with patch semantics. |