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

com.google.gerrit.server.project.AutoValue_SubmitRuleOptions Maven / Gradle / Ivy

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

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SubmitRuleOptions extends SubmitRuleOptions {

  private final boolean recomputeOnClosedChanges;

  private AutoValue_SubmitRuleOptions(
      boolean recomputeOnClosedChanges) {
    this.recomputeOnClosedChanges = recomputeOnClosedChanges;
  }

  @Override
  public boolean recomputeOnClosedChanges() {
    return recomputeOnClosedChanges;
  }

  @Override
  public String toString() {
    return "SubmitRuleOptions{"
        + "recomputeOnClosedChanges=" + recomputeOnClosedChanges
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SubmitRuleOptions) {
      SubmitRuleOptions that = (SubmitRuleOptions) o;
      return this.recomputeOnClosedChanges == that.recomputeOnClosedChanges();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= recomputeOnClosedChanges ? 1231 : 1237;
    return h$;
  }

  @Override
  public SubmitRuleOptions.Builder toBuilder() {
    return new Builder(this);
  }

  static final class Builder extends SubmitRuleOptions.Builder {
    private Boolean recomputeOnClosedChanges;
    Builder() {
    }
    private Builder(SubmitRuleOptions source) {
      this.recomputeOnClosedChanges = source.recomputeOnClosedChanges();
    }
    @Override
    public SubmitRuleOptions.Builder recomputeOnClosedChanges(boolean recomputeOnClosedChanges) {
      this.recomputeOnClosedChanges = recomputeOnClosedChanges;
      return this;
    }
    @Override
    public SubmitRuleOptions build() {
      String missing = "";
      if (this.recomputeOnClosedChanges == null) {
        missing += " recomputeOnClosedChanges";
      }
      if (!missing.isEmpty()) {
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_SubmitRuleOptions(
          this.recomputeOnClosedChanges);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy