Class ChangeInfo
java.lang.Object
com.google.gerrit.extensions.common.ChangeInfo
Representation of a change used in the API. Internally
ChangeData
and Change
are used.
Many fields are actually nullable.
-
Field Summary
Modifier and TypeFieldDescriptionThe attention set for this change.Whether the change contains conflicts. -
Constructor Summary
ConstructorDescriptionChangeInfo
(ChangeMessageInfo... messages) ChangeInfo
(Map<String, RevisionInfo> revisions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCreated
(Instant when) void
setSubmitted
(Instant when, AccountInfo who) void
setUpdated
(Instant when)
-
Field Details
-
id
-
tripletId
-
project
-
branch
-
topic
-
attentionSet
The attention set for this change. Keyed by account ID. We don't useAccount.Id
to avoid a circular dependency. -
removedFromAttentionSet
-
customKeyedValues
-
hashtags
-
changeId
-
subject
-
status
-
created
-
updated
-
submitted
-
submitter
-
starred
-
stars
-
reviewed
-
submitType
-
mergeable
-
submittable
-
insertions
-
deletions
-
totalCommentCount
-
unresolvedCommentCount
-
isPrivate
-
workInProgress
-
hasReviewStarted
-
revertOf
-
submissionId
-
cherryPickOfChange
-
cherryPickOfPatchSet
-
metaRevId
-
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:
ApplyPatch
,CreateChange
,CreateMergePatchSet
,CherryPick
,CherryPickCommit
,Rebase
-
_number
-
virtualIdNumber
-
owner
-
actions
-
labels
-
permittedLabels
-
removableLabels
-
removableReviewers
-
reviewers
-
pendingReviewers
-
reviewerUpdates
-
messages
-
currentRevisionNumber
-
currentRevision
-
revisions
-
_moreChanges
-
problems
-
plugins
-
trackingIds
-
requirements
-
submitRecords
-
submitRequirements
-
-
Constructor Details
-
ChangeInfo
public ChangeInfo() -
ChangeInfo
-
ChangeInfo
-
-
Method Details
-
getCreated
-
setCreated
-
getUpdated
-
setUpdated
-
getSubmitted
-
setSubmitted
-
getCurrentRevision
-