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

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

The 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;
    private byte set$0;
    Builder() {
    }
    private Builder(SubmitRuleOptions source) {
      this.recomputeOnClosedChanges = source.recomputeOnClosedChanges();
      set$0 = (byte) 1;
    }
    @Override
    public SubmitRuleOptions.Builder recomputeOnClosedChanges(boolean recomputeOnClosedChanges) {
      this.recomputeOnClosedChanges = recomputeOnClosedChanges;
      set$0 |= (byte) 1;
      return this;
    }
    @Override
    public SubmitRuleOptions build() {
      if (set$0 != 1) {
        String missing = " recomputeOnClosedChanges";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_SubmitRuleOptions(
          this.recomputeOnClosedChanges);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy