All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.drive.model.Comment.html Maven / Gradle / Ivy

There is a newer version: v3-rev20240903-2.0.0
Show newest version






Comment (Drive API v2-rev20180830-1.26.0)












com.google.api.services.drive.model

Class Comment

    • Constructor Detail

      • Comment

        public Comment()
    • Method Detail

      • getAnchor

        public String getAnchor()
        A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
        Returns:
        value or null for none
      • setAnchor

        public Comment setAnchor(String anchor)
        A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
        Parameters:
        anchor - anchor or null for none
      • getAuthor

        public User getAuthor()
        The user who wrote this comment.
        Returns:
        value or null for none
      • setAuthor

        public Comment setAuthor(User author)
        The user who wrote this comment.
        Parameters:
        author - author or null for none
      • getCommentId

        public String getCommentId()
        The ID of the comment.
        Returns:
        value or null for none
      • setCommentId

        public Comment setCommentId(String commentId)
        The ID of the comment.
        Parameters:
        commentId - commentId or null for none
      • getContent

        public String getContent()
        The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
        Returns:
        value or null for none
      • setContent

        public Comment setContent(String content)
        The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
        Parameters:
        content - content or null for none
      • getContext

        public Comment.Context getContext()
        The context of the file which is being commented on.
        Returns:
        value or null for none
      • setContext

        public Comment setContext(Comment.Context context)
        The context of the file which is being commented on.
        Parameters:
        context - context or null for none
      • getCreatedDate

        public com.google.api.client.util.DateTime getCreatedDate()
        The date when this comment was first created.
        Returns:
        value or null for none
      • setCreatedDate

        public Comment setCreatedDate(com.google.api.client.util.DateTime createdDate)
        The date when this comment was first created.
        Parameters:
        createdDate - createdDate or null for none
      • getDeleted

        public Boolean getDeleted()
        Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
        Returns:
        value or null for none
      • setDeleted

        public Comment setDeleted(Boolean deleted)
        Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
        Parameters:
        deleted - deleted or null for none
      • getFileId

        public String getFileId()
        The file which this comment is addressing.
        Returns:
        value or null for none
      • setFileId

        public Comment setFileId(String fileId)
        The file which this comment is addressing.
        Parameters:
        fileId - fileId or null for none
      • getFileTitle

        public String getFileTitle()
        The title of the file which this comment is addressing.
        Returns:
        value or null for none
      • setFileTitle

        public Comment setFileTitle(String fileTitle)
        The title of the file which this comment is addressing.
        Parameters:
        fileTitle - fileTitle or null for none
      • getHtmlContent

        public String getHtmlContent()
        HTML formatted content for this comment.
        Returns:
        value or null for none
      • setHtmlContent

        public Comment setHtmlContent(String htmlContent)
        HTML formatted content for this comment.
        Parameters:
        htmlContent - htmlContent or null for none
      • getKind

        public String getKind()
        This is always drive#comment.
        Returns:
        value or null for none
      • setKind

        public Comment setKind(String kind)
        This is always drive#comment.
        Parameters:
        kind - kind or null for none
      • getModifiedDate

        public com.google.api.client.util.DateTime getModifiedDate()
        The date when this comment or any of its replies were last modified.
        Returns:
        value or null for none
      • setModifiedDate

        public Comment setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
        The date when this comment or any of its replies were last modified.
        Parameters:
        modifiedDate - modifiedDate or null for none
      • getReplies

        public List<CommentReply> getReplies()
        Replies to this post.
        Returns:
        value or null for none
      • setReplies

        public Comment setReplies(List<CommentReply> replies)
        Replies to this post.
        Parameters:
        replies - replies or null for none
      • getSelfLink

        public String getSelfLink()
        A link back to this comment.
        Returns:
        value or null for none
      • setSelfLink

        public Comment setSelfLink(String selfLink)
        A link back to this comment.
        Parameters:
        selfLink - selfLink or null for none
      • getStatus

        public String getStatus()
        The status of this comment. Status can be changed by posting a reply to a comment with the desired status. - "open" - The comment is still open. - "resolved" - The comment has been resolved by one of its replies.
        Returns:
        value or null for none
      • setStatus

        public Comment setStatus(String status)
        The status of this comment. Status can be changed by posting a reply to a comment with the desired status. - "open" - The comment is still open. - "resolved" - The comment has been resolved by one of its replies.
        Parameters:
        status - status or null for none
      • set

        public Comment set(String fieldName,
                           Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public Comment clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2018 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy