com.google.cloud.bigquery.AutoValue_ColumnReference 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 javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ColumnReference extends ColumnReference {
@Nullable
private final String referencedColumn;
@Nullable
private final String referencingColumn;
private AutoValue_ColumnReference(
@Nullable String referencedColumn,
@Nullable String referencingColumn) {
this.referencedColumn = referencedColumn;
this.referencingColumn = referencingColumn;
}
@Nullable
@Override
public String getReferencedColumn() {
return referencedColumn;
}
@Nullable
@Override
public String getReferencingColumn() {
return referencingColumn;
}
@Override
public String toString() {
return "ColumnReference{"
+ "referencedColumn=" + referencedColumn + ", "
+ "referencingColumn=" + referencingColumn
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ColumnReference) {
ColumnReference that = (ColumnReference) o;
return (this.referencedColumn == null ? that.getReferencedColumn() == null : this.referencedColumn.equals(that.getReferencedColumn()))
&& (this.referencingColumn == null ? that.getReferencingColumn() == null : this.referencingColumn.equals(that.getReferencingColumn()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (referencedColumn == null) ? 0 : referencedColumn.hashCode();
h$ *= 1000003;
h$ ^= (referencingColumn == null) ? 0 : referencingColumn.hashCode();
return h$;
}
@Override
public ColumnReference.Builder toBuilder() {
return new AutoValue_ColumnReference.Builder(this);
}
static final class Builder extends ColumnReference.Builder {
private String referencedColumn;
private String referencingColumn;
Builder() {
}
Builder(ColumnReference source) {
this.referencedColumn = source.getReferencedColumn();
this.referencingColumn = source.getReferencingColumn();
}
@Override
public ColumnReference.Builder setReferencedColumn(String referencedColumn) {
this.referencedColumn = referencedColumn;
return this;
}
@Override
public ColumnReference.Builder setReferencingColumn(String referencingColumn) {
this.referencingColumn = referencingColumn;
return this;
}
@Override
public ColumnReference build() {
return new AutoValue_ColumnReference(
this.referencedColumn,
this.referencingColumn);
}
}
}