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

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

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

import com.google.common.collect.ImmutableList;
import javax.annotation.Generated;
import javax.annotation.Nullable;

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

  @Nullable
  private final ImmutableList fieldsImmut;

  private AutoValue_Clustering(
      @Nullable ImmutableList fieldsImmut) {
    this.fieldsImmut = fieldsImmut;
  }

  @Nullable
  @Override
  ImmutableList getFieldsImmut() {
    return fieldsImmut;
  }

  @Override
  public String toString() {
    return "Clustering{"
        + "fieldsImmut=" + fieldsImmut
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Clustering) {
      Clustering that = (Clustering) o;
      return (this.fieldsImmut == null ? that.getFieldsImmut() == null : this.fieldsImmut.equals(that.getFieldsImmut()));
    }
    return false;
  }

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

  private static final long serialVersionUID = 1L;

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

  static final class Builder extends Clustering.Builder {
    private ImmutableList fieldsImmut;
    Builder() {
    }
    Builder(Clustering source) {
      this.fieldsImmut = source.getFieldsImmut();
    }
    @Override
    Clustering.Builder setFieldsImmut(ImmutableList fieldsImmut) {
      this.fieldsImmut = fieldsImmut;
      return this;
    }
    @Override
    public Clustering build() {
      return new AutoValue_Clustering(
          this.fieldsImmut);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy