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.11.0-rc3
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.common.collect.ListMultimap;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.entities.Account;
import com.google.gerrit.entities.AttentionSetUpdate;
import com.google.gerrit.entities.Change;
import com.google.gerrit.entities.ChangeMessage;
import com.google.gerrit.entities.HumanComment;
import com.google.gerrit.entities.PatchSet;
import com.google.gerrit.entities.PatchSetApproval;
import com.google.gerrit.entities.SubmitRecord;
import com.google.gerrit.entities.SubmitRequirementResult;
import com.google.gerrit.server.AssigneeStatusUpdate;
import com.google.gerrit.server.ReviewerByEmailSet;
import com.google.gerrit.server.ReviewerSet;
import com.google.gerrit.server.ReviewerStatusUpdate;
import java.time.Instant;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.processing.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 hashtags;

  private final String serverId;

  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 ImmutableSet attentionSet;

  private final ImmutableList allAttentionSetUpdates;

  private final ImmutableList assigneeUpdates;

  private final ImmutableList submitRecords;

  private final ImmutableList changeMessages;

  private final ImmutableListMultimap publishedComments;

  private final ImmutableList submitRequirementsResult;

  private final int updateCount;

  private final Instant mergedOn;

  private AutoValue_ChangeNotesState(
      @Nullable ObjectId metaId,
      Change.Id changeId,
      @Nullable ChangeNotesState.ChangeColumns columns,
      ImmutableSet hashtags,
      @Nullable String serverId,
      ImmutableList> patchSets,
      ImmutableList> approvals,
      ReviewerSet reviewers,
      ReviewerByEmailSet reviewersByEmail,
      ReviewerSet pendingReviewers,
      ReviewerByEmailSet pendingReviewersByEmail,
      ImmutableList allPastReviewers,
      ImmutableList reviewerUpdates,
      ImmutableSet attentionSet,
      ImmutableList allAttentionSetUpdates,
      ImmutableList assigneeUpdates,
      ImmutableList submitRecords,
      ImmutableList changeMessages,
      ImmutableListMultimap publishedComments,
      ImmutableList submitRequirementsResult,
      int updateCount,
      @Nullable Instant mergedOn) {
    this.metaId = metaId;
    this.changeId = changeId;
    this.columns = columns;
    this.hashtags = hashtags;
    this.serverId = serverId;
    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.attentionSet = attentionSet;
    this.allAttentionSetUpdates = allAttentionSetUpdates;
    this.assigneeUpdates = assigneeUpdates;
    this.submitRecords = submitRecords;
    this.changeMessages = changeMessages;
    this.publishedComments = publishedComments;
    this.submitRequirementsResult = submitRequirementsResult;
    this.updateCount = updateCount;
    this.mergedOn = mergedOn;
  }

  @Nullable
  @Override
  ObjectId metaId() {
    return metaId;
  }

  @Override
  Change.Id changeId() {
    return changeId;
  }

  @Nullable
  @Override
  ChangeNotesState.ChangeColumns columns() {
    return columns;
  }

  @Override
  ImmutableSet hashtags() {
    return hashtags;
  }

  @Nullable
  @Override
  String serverId() {
    return serverId;
  }

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

  @Override
  ImmutableList allAttentionSetUpdates() {
    return allAttentionSetUpdates;
  }

  @Override
  ImmutableList assigneeUpdates() {
    return assigneeUpdates;
  }

  @Override
  ImmutableList submitRecords() {
    return submitRecords;
  }

  @Override
  ImmutableList changeMessages() {
    return changeMessages;
  }

  @Override
  ImmutableListMultimap publishedComments() {
    return publishedComments;
  }

  @Override
  ImmutableList submitRequirementsResult() {
    return submitRequirementsResult;
  }

  @Override
  int updateCount() {
    return updateCount;
  }

  @Nullable
  @Override
  Instant mergedOn() {
    return mergedOn;
  }

  @Override
  public String toString() {
    return "ChangeNotesState{"
        + "metaId=" + metaId + ", "
        + "changeId=" + changeId + ", "
        + "columns=" + columns + ", "
        + "hashtags=" + hashtags + ", "
        + "serverId=" + serverId + ", "
        + "patchSets=" + patchSets + ", "
        + "approvals=" + approvals + ", "
        + "reviewers=" + reviewers + ", "
        + "reviewersByEmail=" + reviewersByEmail + ", "
        + "pendingReviewers=" + pendingReviewers + ", "
        + "pendingReviewersByEmail=" + pendingReviewersByEmail + ", "
        + "allPastReviewers=" + allPastReviewers + ", "
        + "reviewerUpdates=" + reviewerUpdates + ", "
        + "attentionSet=" + attentionSet + ", "
        + "allAttentionSetUpdates=" + allAttentionSetUpdates + ", "
        + "assigneeUpdates=" + assigneeUpdates + ", "
        + "submitRecords=" + submitRecords + ", "
        + "changeMessages=" + changeMessages + ", "
        + "publishedComments=" + publishedComments + ", "
        + "submitRequirementsResult=" + submitRequirementsResult + ", "
        + "updateCount=" + updateCount + ", "
        + "mergedOn=" + mergedOn
        + "}";
  }

  @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.hashtags.equals(that.hashtags())
          && (this.serverId == null ? that.serverId() == null : this.serverId.equals(that.serverId()))
          && 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.attentionSet.equals(that.attentionSet())
          && this.allAttentionSetUpdates.equals(that.allAttentionSetUpdates())
          && this.assigneeUpdates.equals(that.assigneeUpdates())
          && this.submitRecords.equals(that.submitRecords())
          && this.changeMessages.equals(that.changeMessages())
          && this.publishedComments.equals(that.publishedComments())
          && this.submitRequirementsResult.equals(that.submitRequirementsResult())
          && this.updateCount == that.updateCount()
          && (this.mergedOn == null ? that.mergedOn() == null : this.mergedOn.equals(that.mergedOn()));
    }
    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$ ^= hashtags.hashCode();
    h$ *= 1000003;
    h$ ^= (serverId == null) ? 0 : serverId.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$ ^= attentionSet.hashCode();
    h$ *= 1000003;
    h$ ^= allAttentionSetUpdates.hashCode();
    h$ *= 1000003;
    h$ ^= assigneeUpdates.hashCode();
    h$ *= 1000003;
    h$ ^= submitRecords.hashCode();
    h$ *= 1000003;
    h$ ^= changeMessages.hashCode();
    h$ *= 1000003;
    h$ ^= publishedComments.hashCode();
    h$ *= 1000003;
    h$ ^= submitRequirementsResult.hashCode();
    h$ *= 1000003;
    h$ ^= updateCount;
    h$ *= 1000003;
    h$ ^= (mergedOn == null) ? 0 : mergedOn.hashCode();
    return h$;
  }

  static final class Builder extends ChangeNotesState.Builder {
    private ObjectId metaId;
    private Change.Id changeId;
    private ChangeNotesState.ChangeColumns columns;
    private ImmutableSet hashtags;
    private String serverId;
    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 ImmutableSet attentionSet;
    private ImmutableList allAttentionSetUpdates;
    private ImmutableList assigneeUpdates;
    private ImmutableList submitRecords;
    private ImmutableList changeMessages;
    private ImmutableListMultimap publishedComments;
    private ImmutableList submitRequirementsResult;
    private Integer updateCount;
    private Instant mergedOn;
    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 hashtags(Iterable hashtags) {
      this.hashtags = ImmutableSet.copyOf(hashtags);
      return this;
    }
    @Override
    ChangeNotesState.Builder serverId(String serverId) {
      this.serverId = serverId;
      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 attentionSet(Set attentionSet) {
      this.attentionSet = ImmutableSet.copyOf(attentionSet);
      return this;
    }
    @Override
    ChangeNotesState.Builder allAttentionSetUpdates(List allAttentionSetUpdates) {
      this.allAttentionSetUpdates = ImmutableList.copyOf(allAttentionSetUpdates);
      return this;
    }
    @Override
    ChangeNotesState.Builder assigneeUpdates(List assigneeUpdates) {
      this.assigneeUpdates = ImmutableList.copyOf(assigneeUpdates);
      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.Builder submitRequirementsResult(List submitRequirementsResult) {
      this.submitRequirementsResult = ImmutableList.copyOf(submitRequirementsResult);
      return this;
    }
    @Override
    ChangeNotesState.Builder updateCount(int updateCount) {
      this.updateCount = updateCount;
      return this;
    }
    @Override
    ChangeNotesState.Builder mergedOn(Instant mergedOn) {
      this.mergedOn = mergedOn;
      return this;
    }
    @Override
    ChangeNotesState build() {
      String missing = "";
      if (this.changeId == null) {
        missing += " changeId";
      }
      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.attentionSet == null) {
        missing += " attentionSet";
      }
      if (this.allAttentionSetUpdates == null) {
        missing += " allAttentionSetUpdates";
      }
      if (this.assigneeUpdates == null) {
        missing += " assigneeUpdates";
      }
      if (this.submitRecords == null) {
        missing += " submitRecords";
      }
      if (this.changeMessages == null) {
        missing += " changeMessages";
      }
      if (this.publishedComments == null) {
        missing += " publishedComments";
      }
      if (this.submitRequirementsResult == null) {
        missing += " submitRequirementsResult";
      }
      if (this.updateCount == null) {
        missing += " updateCount";
      }
      if (!missing.isEmpty()) {
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_ChangeNotesState(
          this.metaId,
          this.changeId,
          this.columns,
          this.hashtags,
          this.serverId,
          this.patchSets,
          this.approvals,
          this.reviewers,
          this.reviewersByEmail,
          this.pendingReviewers,
          this.pendingReviewersByEmail,
          this.allPastReviewers,
          this.reviewerUpdates,
          this.attentionSet,
          this.allAttentionSetUpdates,
          this.assigneeUpdates,
          this.submitRecords,
          this.changeMessages,
          this.publishedComments,
          this.submitRequirementsResult,
          this.updateCount,
          this.mergedOn);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy