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

com.google.cloud.bigquery.AutoValue_SearchStats Maven / Gradle / Ivy

There is a newer version: 2.44.0
Show newest version
package com.google.cloud.bigquery;

import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;

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

  @Nullable
  private final String indexUsageMode;

  @Nullable
  private final List indexUnusedReasons;

  private AutoValue_SearchStats(
      @Nullable String indexUsageMode,
      @Nullable List indexUnusedReasons) {
    this.indexUsageMode = indexUsageMode;
    this.indexUnusedReasons = indexUnusedReasons;
  }

  @Nullable
  @Override
  public String getIndexUsageMode() {
    return indexUsageMode;
  }

  @Nullable
  @Override
  public List getIndexUnusedReasons() {
    return indexUnusedReasons;
  }

  @Override
  public String toString() {
    return "SearchStats{"
        + "indexUsageMode=" + indexUsageMode + ", "
        + "indexUnusedReasons=" + indexUnusedReasons
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SearchStats) {
      SearchStats that = (SearchStats) o;
      return (this.indexUsageMode == null ? that.getIndexUsageMode() == null : this.indexUsageMode.equals(that.getIndexUsageMode()))
          && (this.indexUnusedReasons == null ? that.getIndexUnusedReasons() == null : this.indexUnusedReasons.equals(that.getIndexUnusedReasons()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (indexUsageMode == null) ? 0 : indexUsageMode.hashCode();
    h$ *= 1000003;
    h$ ^= (indexUnusedReasons == null) ? 0 : indexUnusedReasons.hashCode();
    return h$;
  }

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

  static final class Builder extends SearchStats.Builder {
    private String indexUsageMode;
    private List indexUnusedReasons;
    Builder() {
    }
    private Builder(SearchStats source) {
      this.indexUsageMode = source.getIndexUsageMode();
      this.indexUnusedReasons = source.getIndexUnusedReasons();
    }
    @Override
    public SearchStats.Builder setIndexUsageMode(String indexUsageMode) {
      this.indexUsageMode = indexUsageMode;
      return this;
    }
    @Override
    public SearchStats.Builder setIndexUnusedReasons(List indexUnusedReasons) {
      this.indexUnusedReasons = indexUnusedReasons;
      return this;
    }
    @Override
    public SearchStats build() {
      return new AutoValue_SearchStats(
          this.indexUsageMode,
          this.indexUnusedReasons);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy