com.google.cloud.bigquery.AutoValue_Clustering Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-cloud-bigquery Show documentation
Show all versions of google-cloud-bigquery Show documentation
Java idiomatic client for Google Cloud BigQuery.
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);
}
}
}