com.google.gerrit.server.notedb.AutoValue_ChangeNotesState Maven / Gradle / Ivy
package com.google.gerrit.server.notedb;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableListMultimap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ListMultimap;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.common.data.SubmitRecord;
import com.google.gerrit.reviewdb.client.Account;
import com.google.gerrit.reviewdb.client.Change;
import com.google.gerrit.reviewdb.client.ChangeMessage;
import com.google.gerrit.reviewdb.client.Comment;
import com.google.gerrit.reviewdb.client.PatchSet;
import com.google.gerrit.reviewdb.client.PatchSetApproval;
import com.google.gerrit.reviewdb.client.RevId;
import com.google.gerrit.server.ReviewerByEmailSet;
import com.google.gerrit.server.ReviewerSet;
import com.google.gerrit.server.ReviewerStatusUpdate;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.Generated;
import org.eclipse.jgit.lib.ObjectId;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ChangeNotesState extends ChangeNotesState {
private final ObjectId metaId;
private final Change.Id changeId;
private final ChangeNotesState.ChangeColumns columns;
private final ImmutableSet pastAssignees;
private final ImmutableSet hashtags;
private final ImmutableList> patchSets;
private final ImmutableList> approvals;
private final ReviewerSet reviewers;
private final ReviewerByEmailSet reviewersByEmail;
private final ReviewerSet pendingReviewers;
private final ReviewerByEmailSet pendingReviewersByEmail;
private final ImmutableList allPastReviewers;
private final ImmutableList reviewerUpdates;
private final ImmutableList submitRecords;
private final ImmutableList changeMessages;
private final ImmutableListMultimap publishedComments;
private AutoValue_ChangeNotesState(
@Nullable ObjectId metaId,
Change.Id changeId,
@Nullable ChangeNotesState.ChangeColumns columns,
ImmutableSet pastAssignees,
ImmutableSet hashtags,
ImmutableList> patchSets,
ImmutableList> approvals,
ReviewerSet reviewers,
ReviewerByEmailSet reviewersByEmail,
ReviewerSet pendingReviewers,
ReviewerByEmailSet pendingReviewersByEmail,
ImmutableList allPastReviewers,
ImmutableList reviewerUpdates,
ImmutableList submitRecords,
ImmutableList changeMessages,
ImmutableListMultimap publishedComments) {
this.metaId = metaId;
this.changeId = changeId;
this.columns = columns;
this.pastAssignees = pastAssignees;
this.hashtags = hashtags;
this.patchSets = patchSets;
this.approvals = approvals;
this.reviewers = reviewers;
this.reviewersByEmail = reviewersByEmail;
this.pendingReviewers = pendingReviewers;
this.pendingReviewersByEmail = pendingReviewersByEmail;
this.allPastReviewers = allPastReviewers;
this.reviewerUpdates = reviewerUpdates;
this.submitRecords = submitRecords;
this.changeMessages = changeMessages;
this.publishedComments = publishedComments;
}
@Nullable
@Override
ObjectId metaId() {
return metaId;
}
@Override
Change.Id changeId() {
return changeId;
}
@Nullable
@Override
ChangeNotesState.ChangeColumns columns() {
return columns;
}
@Override
ImmutableSet pastAssignees() {
return pastAssignees;
}
@Override
ImmutableSet hashtags() {
return hashtags;
}
@Override
ImmutableList> patchSets() {
return patchSets;
}
@Override
ImmutableList> approvals() {
return approvals;
}
@Override
ReviewerSet reviewers() {
return reviewers;
}
@Override
ReviewerByEmailSet reviewersByEmail() {
return reviewersByEmail;
}
@Override
ReviewerSet pendingReviewers() {
return pendingReviewers;
}
@Override
ReviewerByEmailSet pendingReviewersByEmail() {
return pendingReviewersByEmail;
}
@Override
ImmutableList allPastReviewers() {
return allPastReviewers;
}
@Override
ImmutableList reviewerUpdates() {
return reviewerUpdates;
}
@Override
ImmutableList submitRecords() {
return submitRecords;
}
@Override
ImmutableList changeMessages() {
return changeMessages;
}
@Override
ImmutableListMultimap publishedComments() {
return publishedComments;
}
@Override
public String toString() {
return "ChangeNotesState{"
+ "metaId=" + metaId + ", "
+ "changeId=" + changeId + ", "
+ "columns=" + columns + ", "
+ "pastAssignees=" + pastAssignees + ", "
+ "hashtags=" + hashtags + ", "
+ "patchSets=" + patchSets + ", "
+ "approvals=" + approvals + ", "
+ "reviewers=" + reviewers + ", "
+ "reviewersByEmail=" + reviewersByEmail + ", "
+ "pendingReviewers=" + pendingReviewers + ", "
+ "pendingReviewersByEmail=" + pendingReviewersByEmail + ", "
+ "allPastReviewers=" + allPastReviewers + ", "
+ "reviewerUpdates=" + reviewerUpdates + ", "
+ "submitRecords=" + submitRecords + ", "
+ "changeMessages=" + changeMessages + ", "
+ "publishedComments=" + publishedComments
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ChangeNotesState) {
ChangeNotesState that = (ChangeNotesState) o;
return (this.metaId == null ? that.metaId() == null : this.metaId.equals(that.metaId()))
&& this.changeId.equals(that.changeId())
&& (this.columns == null ? that.columns() == null : this.columns.equals(that.columns()))
&& this.pastAssignees.equals(that.pastAssignees())
&& this.hashtags.equals(that.hashtags())
&& this.patchSets.equals(that.patchSets())
&& this.approvals.equals(that.approvals())
&& this.reviewers.equals(that.reviewers())
&& this.reviewersByEmail.equals(that.reviewersByEmail())
&& this.pendingReviewers.equals(that.pendingReviewers())
&& this.pendingReviewersByEmail.equals(that.pendingReviewersByEmail())
&& this.allPastReviewers.equals(that.allPastReviewers())
&& this.reviewerUpdates.equals(that.reviewerUpdates())
&& this.submitRecords.equals(that.submitRecords())
&& this.changeMessages.equals(that.changeMessages())
&& this.publishedComments.equals(that.publishedComments());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (metaId == null) ? 0 : metaId.hashCode();
h$ *= 1000003;
h$ ^= changeId.hashCode();
h$ *= 1000003;
h$ ^= (columns == null) ? 0 : columns.hashCode();
h$ *= 1000003;
h$ ^= pastAssignees.hashCode();
h$ *= 1000003;
h$ ^= hashtags.hashCode();
h$ *= 1000003;
h$ ^= patchSets.hashCode();
h$ *= 1000003;
h$ ^= approvals.hashCode();
h$ *= 1000003;
h$ ^= reviewers.hashCode();
h$ *= 1000003;
h$ ^= reviewersByEmail.hashCode();
h$ *= 1000003;
h$ ^= pendingReviewers.hashCode();
h$ *= 1000003;
h$ ^= pendingReviewersByEmail.hashCode();
h$ *= 1000003;
h$ ^= allPastReviewers.hashCode();
h$ *= 1000003;
h$ ^= reviewerUpdates.hashCode();
h$ *= 1000003;
h$ ^= submitRecords.hashCode();
h$ *= 1000003;
h$ ^= changeMessages.hashCode();
h$ *= 1000003;
h$ ^= publishedComments.hashCode();
return h$;
}
static final class Builder extends ChangeNotesState.Builder {
private ObjectId metaId;
private Change.Id changeId;
private ChangeNotesState.ChangeColumns columns;
private ImmutableSet pastAssignees;
private ImmutableSet hashtags;
private ImmutableList> patchSets;
private ImmutableList> approvals;
private ReviewerSet reviewers;
private ReviewerByEmailSet reviewersByEmail;
private ReviewerSet pendingReviewers;
private ReviewerByEmailSet pendingReviewersByEmail;
private ImmutableList allPastReviewers;
private ImmutableList reviewerUpdates;
private ImmutableList submitRecords;
private ImmutableList changeMessages;
private ImmutableListMultimap publishedComments;
Builder() {
}
@Override
ChangeNotesState.Builder metaId(ObjectId metaId) {
this.metaId = metaId;
return this;
}
@Override
ChangeNotesState.Builder changeId(Change.Id changeId) {
if (changeId == null) {
throw new NullPointerException("Null changeId");
}
this.changeId = changeId;
return this;
}
@Override
ChangeNotesState.Builder columns(ChangeNotesState.ChangeColumns columns) {
this.columns = columns;
return this;
}
@Override
ChangeNotesState.Builder pastAssignees(Set pastAssignees) {
this.pastAssignees = ImmutableSet.copyOf(pastAssignees);
return this;
}
@Override
ChangeNotesState.Builder hashtags(Iterable hashtags) {
this.hashtags = ImmutableSet.copyOf(hashtags);
return this;
}
@Override
ChangeNotesState.Builder patchSets(Iterable> patchSets) {
this.patchSets = ImmutableList.copyOf(patchSets);
return this;
}
@Override
ChangeNotesState.Builder approvals(Iterable> approvals) {
this.approvals = ImmutableList.copyOf(approvals);
return this;
}
@Override
ChangeNotesState.Builder reviewers(ReviewerSet reviewers) {
if (reviewers == null) {
throw new NullPointerException("Null reviewers");
}
this.reviewers = reviewers;
return this;
}
@Override
ChangeNotesState.Builder reviewersByEmail(ReviewerByEmailSet reviewersByEmail) {
if (reviewersByEmail == null) {
throw new NullPointerException("Null reviewersByEmail");
}
this.reviewersByEmail = reviewersByEmail;
return this;
}
@Override
ChangeNotesState.Builder pendingReviewers(ReviewerSet pendingReviewers) {
if (pendingReviewers == null) {
throw new NullPointerException("Null pendingReviewers");
}
this.pendingReviewers = pendingReviewers;
return this;
}
@Override
ChangeNotesState.Builder pendingReviewersByEmail(ReviewerByEmailSet pendingReviewersByEmail) {
if (pendingReviewersByEmail == null) {
throw new NullPointerException("Null pendingReviewersByEmail");
}
this.pendingReviewersByEmail = pendingReviewersByEmail;
return this;
}
@Override
ChangeNotesState.Builder allPastReviewers(List allPastReviewers) {
this.allPastReviewers = ImmutableList.copyOf(allPastReviewers);
return this;
}
@Override
ChangeNotesState.Builder reviewerUpdates(List reviewerUpdates) {
this.reviewerUpdates = ImmutableList.copyOf(reviewerUpdates);
return this;
}
@Override
ChangeNotesState.Builder submitRecords(List submitRecords) {
this.submitRecords = ImmutableList.copyOf(submitRecords);
return this;
}
@Override
ChangeNotesState.Builder changeMessages(List changeMessages) {
this.changeMessages = ImmutableList.copyOf(changeMessages);
return this;
}
@Override
ChangeNotesState.Builder publishedComments(ListMultimap publishedComments) {
this.publishedComments = ImmutableListMultimap.copyOf(publishedComments);
return this;
}
@Override
ChangeNotesState build() {
String missing = "";
if (this.changeId == null) {
missing += " changeId";
}
if (this.pastAssignees == null) {
missing += " pastAssignees";
}
if (this.hashtags == null) {
missing += " hashtags";
}
if (this.patchSets == null) {
missing += " patchSets";
}
if (this.approvals == null) {
missing += " approvals";
}
if (this.reviewers == null) {
missing += " reviewers";
}
if (this.reviewersByEmail == null) {
missing += " reviewersByEmail";
}
if (this.pendingReviewers == null) {
missing += " pendingReviewers";
}
if (this.pendingReviewersByEmail == null) {
missing += " pendingReviewersByEmail";
}
if (this.allPastReviewers == null) {
missing += " allPastReviewers";
}
if (this.reviewerUpdates == null) {
missing += " reviewerUpdates";
}
if (this.submitRecords == null) {
missing += " submitRecords";
}
if (this.changeMessages == null) {
missing += " changeMessages";
}
if (this.publishedComments == null) {
missing += " publishedComments";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ChangeNotesState(
this.metaId,
this.changeId,
this.columns,
this.pastAssignees,
this.hashtags,
this.patchSets,
this.approvals,
this.reviewers,
this.reviewersByEmail,
this.pendingReviewers,
this.pendingReviewersByEmail,
this.allPastReviewers,
this.reviewerUpdates,
this.submitRecords,
this.changeMessages,
this.publishedComments);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy