Package com.google.gerrit.entities
Class ChangeMessage
- java.lang.Object
-
- com.google.gerrit.entities.ChangeMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChangeMessage.Key
-
Field Summary
Fields Modifier and Type Field Description protected Account.Id
author
Who wrote this comment; null if it was written by the Gerrit system.protected ChangeMessage.Key
key
protected String
message
The text left by the user.protected PatchSet.Id
patchset
Which patchset (if any) was this message generated from?protected Account.Id
realAuthor
Real user that added this message on behalf of the user recorded inauthor
.protected String
tag
Tag associated with change messageprotected Timestamp
writtenOn
When this comment was drafted.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChangeMessage()
ChangeMessage(ChangeMessage.Key k, Account.Id a, Timestamp wo, PatchSet.Id psid)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Account.Id
getAuthor()
If null, the message was written 'by the Gerrit system'.ChangeMessage.Key
getKey()
String
getMessage()
PatchSet.Id
getPatchSetId()
Account.Id
getRealAuthor()
String
getTag()
Timestamp
getWrittenOn()
int
hashCode()
static ChangeMessage.Key
key(Change.Id changeId, String uuid)
void
setAuthor(Account.Id accountId)
void
setMessage(String s)
void
setPatchSetId(PatchSet.Id id)
void
setRealAuthor(Account.Id id)
void
setTag(String tag)
void
setWrittenOn(Timestamp ts)
String
toString()
-
-
-
Field Detail
-
key
protected ChangeMessage.Key key
-
author
protected Account.Id author
Who wrote this comment; null if it was written by the Gerrit system.
-
writtenOn
protected Timestamp writtenOn
When this comment was drafted.
-
message
protected String message
The text left by the user.
-
patchset
protected PatchSet.Id patchset
Which patchset (if any) was this message generated from?
-
tag
protected String tag
Tag associated with change message
-
realAuthor
protected Account.Id realAuthor
Real user that added this message on behalf of the user recorded inauthor
.
-
-
Constructor Detail
-
ChangeMessage
protected ChangeMessage()
-
ChangeMessage
public ChangeMessage(ChangeMessage.Key k, Account.Id a, Timestamp wo, PatchSet.Id psid)
-
-
Method Detail
-
key
public static ChangeMessage.Key key(Change.Id changeId, String uuid)
-
getKey
public ChangeMessage.Key getKey()
-
getAuthor
public Account.Id getAuthor()
If null, the message was written 'by the Gerrit system'.
-
setAuthor
public void setAuthor(Account.Id accountId)
-
getRealAuthor
public Account.Id getRealAuthor()
-
setRealAuthor
public void setRealAuthor(Account.Id id)
-
getWrittenOn
public Timestamp getWrittenOn()
-
setWrittenOn
public void setWrittenOn(Timestamp ts)
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String s)
-
getTag
public String getTag()
-
setTag
public void setTag(String tag)
-
getPatchSetId
public PatchSet.Id getPatchSetId()
-
setPatchSetId
public void setPatchSetId(PatchSet.Id id)
-
-