Class Comment

java.lang.Object
com.google.gerrit.extensions.client.Comment
Direct Known Subclasses:
CommentInfo, DraftInput, ReviewInput.CommentInput, ReviewInput.RobotCommentInput

public abstract class Comment extends Object
  • Field Details

    • patchSet

      public Integer patchSet
      Patch set number containing this commit.

      Only set in contexts where comments may come from multiple patch sets.

    • id

      public String id
    • path

      public String path
    • side

      public Side side
    • parent

      public Integer parent
    • line

      public Integer line
      Value 0 or null indicates a file comment, normal lines start at 1.
    • range

      public Comment.Range range
    • inReplyTo

      public String inReplyTo
    • updated

      public Timestamp updated
    • message

      public String message
    • commitId

      public String commitId
      Hex commit SHA1 (as 40 characters hex string) of the commit of the patchset to which this comment applies.
  • Constructor Details

    • Comment

      public Comment()
  • Method Details

    • getUpdated

      public Instant getUpdated()
    • setUpdated

      public void setUpdated(Instant when)
    • side

      public short side()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object