All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gerrit.server.notedb.AutoValue_ChangeNotesState Maven / Gradle / Ivy

There is a newer version: 3.10.0-rc5
Show newest version

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.ReviewerByEmailSet;
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 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 allChangeMessages;
  private final ImmutableListMultimap changeMessagesByPatchSet;
  private final ImmutableListMultimap publishedComments;
  private final Timestamp readOnlyUntil;
  private final Boolean isPrivate;
  private final Boolean isWorkInProgress;
  private final Boolean hasReviewStarted;
  private final Change.Id revertOf;

  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 allChangeMessages,
      ImmutableListMultimap changeMessagesByPatchSet,
      ImmutableListMultimap publishedComments,
      @Nullable Timestamp readOnlyUntil,
      @Nullable Boolean isPrivate,
      @Nullable Boolean isWorkInProgress,
      @Nullable Boolean hasReviewStarted,
      @Nullable Change.Id revertOf) {
    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 (reviewersByEmail == null) {
      throw new NullPointerException("Null reviewersByEmail");
    }
    this.reviewersByEmail = reviewersByEmail;
    if (pendingReviewers == null) {
      throw new NullPointerException("Null pendingReviewers");
    }
    this.pendingReviewers = pendingReviewers;
    if (pendingReviewersByEmail == null) {
      throw new NullPointerException("Null pendingReviewersByEmail");
    }
    this.pendingReviewersByEmail = pendingReviewersByEmail;
    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;
    this.isPrivate = isPrivate;
    this.isWorkInProgress = isWorkInProgress;
    this.hasReviewStarted = hasReviewStarted;
    this.revertOf = revertOf;
  }

  @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 allChangeMessages() {
    return allChangeMessages;
  }

  @Override
  ImmutableListMultimap changeMessagesByPatchSet() {
    return changeMessagesByPatchSet;
  }

  @Override
  ImmutableListMultimap publishedComments() {
    return publishedComments;
  }

  @Nullable
  @Override
  Timestamp readOnlyUntil() {
    return readOnlyUntil;
  }

  @Nullable
  @Override
  Boolean isPrivate() {
    return isPrivate;
  }

  @Nullable
  @Override
  Boolean isWorkInProgress() {
    return isWorkInProgress;
  }

  @Nullable
  @Override
  Boolean hasReviewStarted() {
    return hasReviewStarted;
  }

  @Nullable
  @Override
  Change.Id revertOf() {
    return revertOf;
  }

  @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 + ", "
        + "allChangeMessages=" + allChangeMessages + ", "
        + "changeMessagesByPatchSet=" + changeMessagesByPatchSet + ", "
        + "publishedComments=" + publishedComments + ", "
        + "readOnlyUntil=" + readOnlyUntil + ", "
        + "isPrivate=" + isPrivate + ", "
        + "isWorkInProgress=" + isWorkInProgress + ", "
        + "hasReviewStarted=" + hasReviewStarted + ", "
        + "revertOf=" + revertOf
        + "}";
  }

  @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.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()))
           && ((this.isPrivate == null) ? (that.isPrivate() == null) : this.isPrivate.equals(that.isPrivate()))
           && ((this.isWorkInProgress == null) ? (that.isWorkInProgress() == null) : this.isWorkInProgress.equals(that.isWorkInProgress()))
           && ((this.hasReviewStarted == null) ? (that.hasReviewStarted() == null) : this.hasReviewStarted.equals(that.hasReviewStarted()))
           && ((this.revertOf == null) ? (that.revertOf() == null) : this.revertOf.equals(that.revertOf()));
    }
    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.reviewersByEmail.hashCode();
    h *= 1000003;
    h ^= this.pendingReviewers.hashCode();
    h *= 1000003;
    h ^= this.pendingReviewersByEmail.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();
    h *= 1000003;
    h ^= (isPrivate == null) ? 0 : this.isPrivate.hashCode();
    h *= 1000003;
    h ^= (isWorkInProgress == null) ? 0 : this.isWorkInProgress.hashCode();
    h *= 1000003;
    h ^= (hasReviewStarted == null) ? 0 : this.hasReviewStarted.hashCode();
    h *= 1000003;
    h ^= (revertOf == null) ? 0 : this.revertOf.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy