Class PatchSet


  • public final class PatchSet
    extends Object
    A single revision of a Change.
    • Field Detail

      • revision

        protected RevId revision
      • createdOn

        protected Timestamp createdOn
        When this patch set was first introduced onto the change.
      • groups

        protected String groups
        Opaque group identifier, usually assigned during creation.

        This field is actually a comma-separated list of values, as in rare cases involving merge commits a patch set may belong to multiple groups.

        Changes on the same branch having patch sets with intersecting groups are considered related, as in the "Related Changes" tab.

      • pushCertificate

        protected String pushCertificate
        Certificate sent with a push that created this patch set.
      • description

        protected String description
        Optional user-supplied description for this patch set.

        When this field is null, the description was never set on the patch set. When this field is an empty string, the description was set and later cleared.

    • Constructor Detail

      • PatchSet

        protected PatchSet()
      • PatchSet

        public PatchSet​(PatchSet src)
    • Method Detail

      • isChangeRef

        public static boolean isChangeRef​(String name)
        Is the reference name a change reference?
      • isRef

        @Deprecated
        public static boolean isRef​(String name)
        Deprecated.
        use isChangeRef instead.
        Is the reference name a change reference?
      • getPatchSetId

        public int getPatchSetId()
      • getRevision

        public RevId getRevision()
      • setRevision

        public void setRevision​(RevId i)
      • setUploader

        public void setUploader​(Account.Id who)
      • getCreatedOn

        public Timestamp getCreatedOn()
      • setCreatedOn

        public void setCreatedOn​(Timestamp ts)
      • setGroups

        public void setGroups​(List<String> groups)
      • getRefName

        public String getRefName()
      • getPushCertificate

        public String getPushCertificate()
      • setPushCertificate

        public void setPushCertificate​(String cert)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object