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

com.google.cloud.firestore.AutoValue_ExplainOptions Maven / Gradle / Ivy

There is a newer version: 3.29.1
Show newest version
package com.google.cloud.firestore;

import javax.annotation.Generated;

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

  private final boolean analyze;

  private AutoValue_ExplainOptions(
      boolean analyze) {
    this.analyze = analyze;
  }

  @Override
  public boolean getAnalyze() {
    return analyze;
  }

  @Override
  public String toString() {
    return "ExplainOptions{"
        + "analyze=" + analyze
        + "}";
  }

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

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

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

  static final class Builder extends ExplainOptions.Builder {
    private boolean analyze;
    private byte set$0;
    Builder() {
    }
    Builder(ExplainOptions source) {
      this.analyze = source.getAnalyze();
      set$0 = (byte) 1;
    }
    @Override
    public ExplainOptions.Builder setAnalyze(boolean analyze) {
      this.analyze = analyze;
      set$0 |= (byte) 1;
      return this;
    }
    @Override
    public ExplainOptions build() {
      if (set$0 != 1) {
        String missing = " analyze";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_ExplainOptions(
          this.analyze);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy