com.google.cloud.bigquery.AutoValue_PrimaryKey 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 java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PrimaryKey extends PrimaryKey {
@Nullable
private final List columns;
private AutoValue_PrimaryKey(
@Nullable List columns) {
this.columns = columns;
}
@Nullable
@Override
public List getColumns() {
return columns;
}
@Override
public String toString() {
return "PrimaryKey{"
+ "columns=" + columns
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PrimaryKey) {
PrimaryKey that = (PrimaryKey) o;
return (this.columns == null ? that.getColumns() == null : this.columns.equals(that.getColumns()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (columns == null) ? 0 : columns.hashCode();
return h$;
}
@Override
public PrimaryKey.Builder toBuilder() {
return new AutoValue_PrimaryKey.Builder(this);
}
static final class Builder extends PrimaryKey.Builder {
private List columns;
Builder() {
}
Builder(PrimaryKey source) {
this.columns = source.getColumns();
}
@Override
public PrimaryKey.Builder setColumns(List columns) {
this.columns = columns;
return this;
}
@Override
public PrimaryKey build() {
return new AutoValue_PrimaryKey(
this.columns);
}
}
}