public final class PatchSet
extends java.lang.Object
Change
.Modifier and Type | Class and Description |
---|---|
static class |
PatchSet.Id |
Modifier and Type | Field and Description |
---|---|
protected java.sql.Timestamp |
createdOn
When this patch set was first introduced onto the change.
|
protected java.lang.String |
description
Optional user-supplied description for this patch set.
|
protected boolean |
draft |
protected java.lang.String |
groups
Opaque group identifier, usually assigned during creation.
|
protected PatchSet.Id |
id |
protected java.lang.String |
pushCertificate
Certificate sent with a push that created this patch set.
|
protected RevId |
revision |
protected Account.Id |
uploader |
Modifier | Constructor and Description |
---|---|
protected |
PatchSet() |
|
PatchSet(PatchSet.Id k) |
|
PatchSet(PatchSet src) |
Modifier and Type | Method and Description |
---|---|
java.sql.Timestamp |
getCreatedOn() |
java.lang.String |
getDescription() |
java.util.List<java.lang.String> |
getGroups() |
PatchSet.Id |
getId() |
int |
getPatchSetId() |
java.lang.String |
getPushCertificate() |
java.lang.String |
getRefName() |
RevId |
getRevision() |
Account.Id |
getUploader() |
static boolean |
isChangeRef(java.lang.String name)
Is the reference name a change reference?
|
boolean |
isDraft() |
static boolean |
isRef(java.lang.String name)
Deprecated.
use isChangeRef instead.
|
void |
setCreatedOn(java.sql.Timestamp ts) |
void |
setDescription(java.lang.String description) |
void |
setDraft(boolean draftStatus) |
void |
setGroups(java.util.List<java.lang.String> groups) |
void |
setPushCertificate(java.lang.String cert) |
void |
setRevision(RevId i) |
void |
setUploader(Account.Id who) |
static java.util.List<java.lang.String> |
splitGroups(java.lang.String joinedGroups) |
java.lang.String |
toString() |
protected PatchSet.Id id
protected RevId revision
protected Account.Id uploader
protected java.sql.Timestamp createdOn
protected boolean draft
protected java.lang.String groups
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.
protected java.lang.String pushCertificate
protected java.lang.String description
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.
protected PatchSet()
public PatchSet(PatchSet.Id k)
public PatchSet(PatchSet src)
public static boolean isChangeRef(java.lang.String name)
@Deprecated public static boolean isRef(java.lang.String name)
public static java.util.List<java.lang.String> splitGroups(java.lang.String joinedGroups)
public PatchSet.Id getId()
public int getPatchSetId()
public RevId getRevision()
public void setRevision(RevId i)
public Account.Id getUploader()
public void setUploader(Account.Id who)
public java.sql.Timestamp getCreatedOn()
public void setCreatedOn(java.sql.Timestamp ts)
public boolean isDraft()
public void setDraft(boolean draftStatus)
public java.util.List<java.lang.String> getGroups()
public void setGroups(java.util.List<java.lang.String> groups)
public java.lang.String getRefName()
public java.lang.String getPushCertificate()
public void setPushCertificate(java.lang.String cert)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String toString()
toString
in class java.lang.Object