com.google.cloud.bigquery.AutoValue_ExternalDatasetReference 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_ExternalDatasetReference extends ExternalDatasetReference {
@Nullable
private final String connection;
@Nullable
private final String externalSource;
private AutoValue_ExternalDatasetReference(
@Nullable String connection,
@Nullable String externalSource) {
this.connection = connection;
this.externalSource = externalSource;
}
@Nullable
@Override
public String getConnection() {
return connection;
}
@Nullable
@Override
public String getExternalSource() {
return externalSource;
}
@Override
public String toString() {
return "ExternalDatasetReference{"
+ "connection=" + connection + ", "
+ "externalSource=" + externalSource
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ExternalDatasetReference) {
ExternalDatasetReference that = (ExternalDatasetReference) o;
return (this.connection == null ? that.getConnection() == null : this.connection.equals(that.getConnection()))
&& (this.externalSource == null ? that.getExternalSource() == null : this.externalSource.equals(that.getExternalSource()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (connection == null) ? 0 : connection.hashCode();
h$ *= 1000003;
h$ ^= (externalSource == null) ? 0 : externalSource.hashCode();
return h$;
}
@Override
public ExternalDatasetReference.Builder toBuilder() {
return new AutoValue_ExternalDatasetReference.Builder(this);
}
static final class Builder extends ExternalDatasetReference.Builder {
private String connection;
private String externalSource;
Builder() {
}
Builder(ExternalDatasetReference source) {
this.connection = source.getConnection();
this.externalSource = source.getExternalSource();
}
@Override
public ExternalDatasetReference.Builder setConnection(String connection) {
this.connection = connection;
return this;
}
@Override
public ExternalDatasetReference.Builder setExternalSource(String externalSource) {
this.externalSource = externalSource;
return this;
}
@Override
public ExternalDatasetReference build() {
return new AutoValue_ExternalDatasetReference(
this.connection,
this.externalSource);
}
}
}