commentsViewMode property

String? commentsViewMode
getter/setter pair

The comments view mode to apply to the spreadsheet.

This allows viewing the spreadsheet with comments omitted or included. If one is not specified, COMMENTS_VIEW_MODE_OMITTED is used. Meaningful only if include_spreadsheet_in_response is 'true'. Possible string values are:

  • "COMMENTS_VIEW_MODE_UNSPECIFIED" : The CommentsViewMode is unspecified; COMMENTS_VIEW_MODE_OMITTED is applied.
  • "COMMENTS_VIEW_MODE_DEFAULT_FOR_CURRENT_ACCESS" : The CommentsViewMode applied to the returned spreadsheet depends on the user's current access level. If the user only has view access, COMMENTS_VIEW_MODE_OMITTED is applied. Otherwise, COMMENTS_VIEW_MODE_INCLUDED is applied.
  • "COMMENTS_VIEW_MODE_OMITTED" : The returned spreadsheet has comments omitted.
  • "COMMENTS_VIEW_MODE_INCLUDED" : The returned spreadsheet has comments included. Requests to retrieve a spreadsheet using this mode will return a 403 error if the user does not have permission to view comments.

Implementation

core.String? commentsViewMode;