Output only. The author of the comment. The author's email address and permission ID will not be populated.
deleted
boolean
Output only. Whether the comment has been deleted. A deleted comment has no content.
htmlContent
string
Output only. The content of the comment with HTML formatting.
content
string
The plain text content of the comment. This field is used for setting the content, whilehtmlContentshould be displayed.
quotedFileContent
object
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
string
The MIME type of the quoted content.
quotedFileContent.value
string
The quoted content itself. This is interpreted as plain text if set through the API.
assigneeEmailAddress
string
Output only. The email address of the user assigned to this comment. If no user is assigned, the field is unset.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-06 UTC."],[],[]]
Resource: Comment
A comment on a file.
Some resource methods (such as
comments.update) require acommentId. Use thecomments.listmethod to retrieve the ID for a comment in a file.replies[]object (Reply)Output only. The full list of replies to the comment in chronological order.
mentionedEmailAddresses[]stringOutput only. A list of email addresses for users mentioned in this comment. If no users are mentioned, the list is empty.
idstringOutput only. The ID of the comment.
kindstringOutput only. Identifies what kind of resource this is. Value: the fixed string
"drive#comment".createdTimestringOutput only. The time at which the comment was created (RFC 3339 date-time).
modifiedTimestringOutput only. The last time the comment or any of its replies was modified (RFC 3339 date-time).
resolvedbooleanOutput only. Whether the comment has been resolved by one of its replies.
anchorstringA region of the document represented as a JSON string. For details on defining anchor properties, refer to Manage comments and replies .
authorobject (User)Output only. The author of the comment. The author's email address and permission ID will not be populated.
deletedbooleanOutput only. Whether the comment has been deleted. A deleted comment has no content.
htmlContentstringOutput only. The content of the comment with HTML formatting.
contentstringThe plain text content of the comment. This field is used for setting the content, while
htmlContentshould be displayed.quotedFileContentobjectThe 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.mimeTypestringThe MIME type of the quoted content.
quotedFileContent.valuestringThe quoted content itself. This is interpreted as plain text if set through the API.
assigneeEmailAddressstringOutput only. The email address of the user assigned to this comment. If no user is assigned, the field is unset.
Methods
createdeletegetlistupdate