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

com.google.gerrit.server.change.AutoValue_AddReviewersOp_Result Maven / Gradle / Ivy

There is a newer version: 3.11.0-rc3
Show newest version
package com.google.gerrit.server.change;

import com.google.common.collect.ImmutableList;
import com.google.gerrit.entities.Account;
import com.google.gerrit.entities.Address;
import com.google.gerrit.entities.PatchSetApproval;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AddReviewersOp_Result extends AddReviewersOp.Result {

  private final ImmutableList addedReviewers;

  private final ImmutableList
addedReviewersByEmail; private final ImmutableList addedCCs; private final ImmutableList
addedCCsByEmail; private AutoValue_AddReviewersOp_Result( ImmutableList addedReviewers, ImmutableList
addedReviewersByEmail, ImmutableList addedCCs, ImmutableList
addedCCsByEmail) { this.addedReviewers = addedReviewers; this.addedReviewersByEmail = addedReviewersByEmail; this.addedCCs = addedCCs; this.addedCCsByEmail = addedCCsByEmail; } @Override public ImmutableList addedReviewers() { return addedReviewers; } @Override public ImmutableList
addedReviewersByEmail() { return addedReviewersByEmail; } @Override public ImmutableList addedCCs() { return addedCCs; } @Override public ImmutableList
addedCCsByEmail() { return addedCCsByEmail; } @Override public String toString() { return "Result{" + "addedReviewers=" + addedReviewers + ", " + "addedReviewersByEmail=" + addedReviewersByEmail + ", " + "addedCCs=" + addedCCs + ", " + "addedCCsByEmail=" + addedCCsByEmail + "}"; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof AddReviewersOp.Result) { AddReviewersOp.Result that = (AddReviewersOp.Result) o; return this.addedReviewers.equals(that.addedReviewers()) && this.addedReviewersByEmail.equals(that.addedReviewersByEmail()) && this.addedCCs.equals(that.addedCCs()) && this.addedCCsByEmail.equals(that.addedCCsByEmail()); } return false; } @Override public int hashCode() { int h$ = 1; h$ *= 1000003; h$ ^= addedReviewers.hashCode(); h$ *= 1000003; h$ ^= addedReviewersByEmail.hashCode(); h$ *= 1000003; h$ ^= addedCCs.hashCode(); h$ *= 1000003; h$ ^= addedCCsByEmail.hashCode(); return h$; } static final class Builder extends AddReviewersOp.Result.Builder { private ImmutableList addedReviewers; private ImmutableList
addedReviewersByEmail; private ImmutableList addedCCs; private ImmutableList
addedCCsByEmail; Builder() { } @Override AddReviewersOp.Result.Builder setAddedReviewers(Iterable addedReviewers) { this.addedReviewers = ImmutableList.copyOf(addedReviewers); return this; } @Override AddReviewersOp.Result.Builder setAddedReviewersByEmail(Iterable
addedReviewersByEmail) { this.addedReviewersByEmail = ImmutableList.copyOf(addedReviewersByEmail); return this; } @Override AddReviewersOp.Result.Builder setAddedCCs(Iterable addedCCs) { this.addedCCs = ImmutableList.copyOf(addedCCs); return this; } @Override AddReviewersOp.Result.Builder setAddedCCsByEmail(Iterable
addedCCsByEmail) { this.addedCCsByEmail = ImmutableList.copyOf(addedCCsByEmail); return this; } @Override AddReviewersOp.Result build() { String missing = ""; if (this.addedReviewers == null) { missing += " addedReviewers"; } if (this.addedReviewersByEmail == null) { missing += " addedReviewersByEmail"; } if (this.addedCCs == null) { missing += " addedCCs"; } if (this.addedCCsByEmail == null) { missing += " addedCCsByEmail"; } if (!missing.isEmpty()) { throw new IllegalStateException("Missing required properties:" + missing); } return new AutoValue_AddReviewersOp_Result( this.addedReviewers, this.addedReviewersByEmail, this.addedCCs, this.addedCCsByEmail); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy