Class ChangeInfo
- java.lang.Object
-
- com.google.gerrit.extensions.common.ChangeInfo
-
public class ChangeInfo extends Object
Representation of a change used in the API. InternallyChangeData
andChange
are used.Many fields are actually nullable.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ChangeInfo()
ChangeInfo(ChangeMessageInfo... messages)
ChangeInfo(Map<String,RevisionInfo> revisions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instant
getCreated()
RevisionInfo
getCurrentRevision()
Instant
getSubmitted()
Instant
getUpdated()
void
setCreated(Instant when)
void
setSubmitted(Instant when, AccountInfo who)
void
setUpdated(Instant when)
-
-
-
Field Detail
-
id
public String id
-
project
public String project
-
branch
public String branch
-
topic
public String topic
-
attentionSet
public Map<Integer,AttentionSetInfo> attentionSet
The attention set for this change. Keyed by account ID. We don't useAccount.Id
to avoid a circular dependency.
-
removedFromAttentionSet
public Map<Integer,AttentionSetInfo> removedFromAttentionSet
-
hashtags
public Collection<String> hashtags
-
changeId
public String changeId
-
subject
public String subject
-
status
public ChangeStatus status
-
created
public Timestamp created
-
updated
public Timestamp updated
-
submitted
public Timestamp submitted
-
submitter
public AccountInfo submitter
-
starred
public Boolean starred
-
stars
public Collection<String> stars
-
reviewed
public Boolean reviewed
-
submitType
public SubmitType submitType
-
mergeable
public Boolean mergeable
-
submittable
public Boolean submittable
-
insertions
public Integer insertions
-
deletions
public Integer deletions
-
totalCommentCount
public Integer totalCommentCount
-
unresolvedCommentCount
public Integer unresolvedCommentCount
-
isPrivate
public Boolean isPrivate
-
workInProgress
public Boolean workInProgress
-
hasReviewStarted
public Boolean hasReviewStarted
-
revertOf
public Integer revertOf
-
submissionId
public String submissionId
-
cherryPickOfChange
public Integer cherryPickOfChange
-
cherryPickOfPatchSet
public Integer cherryPickOfPatchSet
-
metaRevId
public String metaRevId
-
containsGitConflicts
public Boolean containsGitConflicts
Whether the change contains conflicts.If
true
, some of the file contents of the change contain git conflict markers to indicate the conflicts.Only set if this change info is returned in response to a request that creates a new change or patch set and conflicts are allowed. In particular this field is only populated if the change info is returned by one of the following REST endpoints:
CreateChange
,CreateMergePatchSet
,CherryPick
,CherryPickCommit
,Rebase
-
_number
public Integer _number
-
virtualIdNumber
public Integer virtualIdNumber
-
owner
public AccountInfo owner
-
actions
public Map<String,ActionInfo> actions
-
permittedLabels
public Map<String,Collection<String>> permittedLabels
-
removableReviewers
public Collection<AccountInfo> removableReviewers
-
reviewers
public Map<ReviewerState,Collection<AccountInfo>> reviewers
-
pendingReviewers
public Map<ReviewerState,Collection<AccountInfo>> pendingReviewers
-
reviewerUpdates
public Collection<ReviewerUpdateInfo> reviewerUpdates
-
messages
public Collection<ChangeMessageInfo> messages
-
currentRevision
public String currentRevision
-
revisions
public Map<String,RevisionInfo> revisions
-
_moreChanges
public Boolean _moreChanges
-
problems
public List<ProblemInfo> problems
-
plugins
public List<PluginDefinedInfo> plugins
-
trackingIds
public Collection<TrackingIdInfo> trackingIds
-
requirements
public Collection<LegacySubmitRequirementInfo> requirements
-
submitRecords
public Collection<SubmitRecordInfo> submitRecords
-
submitRequirements
public Collection<SubmitRequirementResultInfo> submitRequirements
-
-
Constructor Detail
-
ChangeInfo
public ChangeInfo()
-
ChangeInfo
public ChangeInfo(ChangeMessageInfo... messages)
-
ChangeInfo
public ChangeInfo(Map<String,RevisionInfo> revisions)
-
-
Method Detail
-
getCreated
public Instant getCreated()
-
setCreated
public void setCreated(Instant when)
-
getUpdated
public Instant getUpdated()
-
setUpdated
public void setUpdated(Instant when)
-
getSubmitted
public Instant getSubmitted()
-
setSubmitted
public void setSubmitted(Instant when, AccountInfo who)
-
getCurrentRevision
public RevisionInfo getCurrentRevision()
-
-