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.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.ReviewerSet;
import com.google.gerrit.server.ReviewerStatusUpdate;
import java.sql.Timestamp;
import java.util.Map;
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 ImmutableList allPastReviewers;
private final ImmutableList reviewerUpdates;
private final ImmutableList submitRecords;
private final ImmutableList allChangeMessages;
private final ImmutableListMultimap changeMessagesByPatchSet;
private final ImmutableListMultimap publishedComments;
private final Timestamp readOnlyUntil;
AutoValue_ChangeNotesState(
@Nullable ObjectId metaId,
Change.Id changeId,
@Nullable ChangeNotesState.ChangeColumns columns,
ImmutableSet pastAssignees,
ImmutableSet hashtags,
ImmutableList> patchSets,
ImmutableList> approvals,
ReviewerSet reviewers,
ImmutableList allPastReviewers,
ImmutableList reviewerUpdates,
ImmutableList submitRecords,
ImmutableList allChangeMessages,
ImmutableListMultimap changeMessagesByPatchSet,
ImmutableListMultimap publishedComments,
@Nullable Timestamp readOnlyUntil) {
this.metaId = metaId;
if (changeId == null) {
throw new NullPointerException("Null changeId");
}
this.changeId = changeId;
this.columns = columns;
if (pastAssignees == null) {
throw new NullPointerException("Null pastAssignees");
}
this.pastAssignees = pastAssignees;
if (hashtags == null) {
throw new NullPointerException("Null hashtags");
}
this.hashtags = hashtags;
if (patchSets == null) {
throw new NullPointerException("Null patchSets");
}
this.patchSets = patchSets;
if (approvals == null) {
throw new NullPointerException("Null approvals");
}
this.approvals = approvals;
if (reviewers == null) {
throw new NullPointerException("Null reviewers");
}
this.reviewers = reviewers;
if (allPastReviewers == null) {
throw new NullPointerException("Null allPastReviewers");
}
this.allPastReviewers = allPastReviewers;
if (reviewerUpdates == null) {
throw new NullPointerException("Null reviewerUpdates");
}
this.reviewerUpdates = reviewerUpdates;
if (submitRecords == null) {
throw new NullPointerException("Null submitRecords");
}
this.submitRecords = submitRecords;
if (allChangeMessages == null) {
throw new NullPointerException("Null allChangeMessages");
}
this.allChangeMessages = allChangeMessages;
if (changeMessagesByPatchSet == null) {
throw new NullPointerException("Null changeMessagesByPatchSet");
}
this.changeMessagesByPatchSet = changeMessagesByPatchSet;
if (publishedComments == null) {
throw new NullPointerException("Null publishedComments");
}
this.publishedComments = publishedComments;
this.readOnlyUntil = readOnlyUntil;
}
@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
ImmutableList allPastReviewers() {
return allPastReviewers;
}
@Override
ImmutableList reviewerUpdates() {
return reviewerUpdates;
}
@Override
ImmutableList submitRecords() {
return submitRecords;
}
@Override
ImmutableList allChangeMessages() {
return allChangeMessages;
}
@Override
ImmutableListMultimap changeMessagesByPatchSet() {
return changeMessagesByPatchSet;
}
@Override
ImmutableListMultimap publishedComments() {
return publishedComments;
}
@Nullable
@Override
Timestamp readOnlyUntil() {
return readOnlyUntil;
}
@Override
public String toString() {
return "ChangeNotesState{"
+ "metaId=" + metaId + ", "
+ "changeId=" + changeId + ", "
+ "columns=" + columns + ", "
+ "pastAssignees=" + pastAssignees + ", "
+ "hashtags=" + hashtags + ", "
+ "patchSets=" + patchSets + ", "
+ "approvals=" + approvals + ", "
+ "reviewers=" + reviewers + ", "
+ "allPastReviewers=" + allPastReviewers + ", "
+ "reviewerUpdates=" + reviewerUpdates + ", "
+ "submitRecords=" + submitRecords + ", "
+ "allChangeMessages=" + allChangeMessages + ", "
+ "changeMessagesByPatchSet=" + changeMessagesByPatchSet + ", "
+ "publishedComments=" + publishedComments + ", "
+ "readOnlyUntil=" + readOnlyUntil
+ "}";
}
@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.allPastReviewers.equals(that.allPastReviewers()))
&& (this.reviewerUpdates.equals(that.reviewerUpdates()))
&& (this.submitRecords.equals(that.submitRecords()))
&& (this.allChangeMessages.equals(that.allChangeMessages()))
&& (this.changeMessagesByPatchSet.equals(that.changeMessagesByPatchSet()))
&& (this.publishedComments.equals(that.publishedComments()))
&& ((this.readOnlyUntil == null) ? (that.readOnlyUntil() == null) : this.readOnlyUntil.equals(that.readOnlyUntil()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (metaId == null) ? 0 : this.metaId.hashCode();
h *= 1000003;
h ^= this.changeId.hashCode();
h *= 1000003;
h ^= (columns == null) ? 0 : this.columns.hashCode();
h *= 1000003;
h ^= this.pastAssignees.hashCode();
h *= 1000003;
h ^= this.hashtags.hashCode();
h *= 1000003;
h ^= this.patchSets.hashCode();
h *= 1000003;
h ^= this.approvals.hashCode();
h *= 1000003;
h ^= this.reviewers.hashCode();
h *= 1000003;
h ^= this.allPastReviewers.hashCode();
h *= 1000003;
h ^= this.reviewerUpdates.hashCode();
h *= 1000003;
h ^= this.submitRecords.hashCode();
h *= 1000003;
h ^= this.allChangeMessages.hashCode();
h *= 1000003;
h ^= this.changeMessagesByPatchSet.hashCode();
h *= 1000003;
h ^= this.publishedComments.hashCode();
h *= 1000003;
h ^= (readOnlyUntil == null) ? 0 : this.readOnlyUntil.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy