![JAR search and dependency download from the Maven repository](/logo.png)
com.google.cloud.bigquery.AutoValue_ViewDefinition 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_ViewDefinition extends ViewDefinition {
private final TableDefinition.Type type;
@Nullable
private final Schema schema;
@Nullable
private final String query;
@Nullable
private final ImmutableList userDefinedFunctionsImmut;
@Nullable
private final Boolean useLegacySql;
private AutoValue_ViewDefinition(
TableDefinition.Type type,
@Nullable Schema schema,
@Nullable String query,
@Nullable ImmutableList userDefinedFunctionsImmut,
@Nullable Boolean useLegacySql) {
this.type = type;
this.schema = schema;
this.query = query;
this.userDefinedFunctionsImmut = userDefinedFunctionsImmut;
this.useLegacySql = useLegacySql;
}
@Override
public TableDefinition.Type getType() {
return type;
}
@Nullable
@Override
public Schema getSchema() {
return schema;
}
@Nullable
@Override
public String getQuery() {
return query;
}
@Nullable
@Override
ImmutableList getUserDefinedFunctionsImmut() {
return userDefinedFunctionsImmut;
}
@Nullable
@Override
Boolean getUseLegacySql() {
return useLegacySql;
}
@Override
public String toString() {
return "ViewDefinition{"
+ "type=" + type + ", "
+ "schema=" + schema + ", "
+ "query=" + query + ", "
+ "userDefinedFunctionsImmut=" + userDefinedFunctionsImmut + ", "
+ "useLegacySql=" + useLegacySql
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ViewDefinition) {
ViewDefinition that = (ViewDefinition) o;
return this.type.equals(that.getType())
&& (this.schema == null ? that.getSchema() == null : this.schema.equals(that.getSchema()))
&& (this.query == null ? that.getQuery() == null : this.query.equals(that.getQuery()))
&& (this.userDefinedFunctionsImmut == null ? that.getUserDefinedFunctionsImmut() == null : this.userDefinedFunctionsImmut.equals(that.getUserDefinedFunctionsImmut()))
&& (this.useLegacySql == null ? that.getUseLegacySql() == null : this.useLegacySql.equals(that.getUseLegacySql()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= (schema == null) ? 0 : schema.hashCode();
h$ *= 1000003;
h$ ^= (query == null) ? 0 : query.hashCode();
h$ *= 1000003;
h$ ^= (userDefinedFunctionsImmut == null) ? 0 : userDefinedFunctionsImmut.hashCode();
h$ *= 1000003;
h$ ^= (useLegacySql == null) ? 0 : useLegacySql.hashCode();
return h$;
}
private static final long serialVersionUID = -8789311196910794545L;
@Override
public ViewDefinition.Builder toBuilder() {
return new AutoValue_ViewDefinition.Builder(this);
}
static final class Builder extends ViewDefinition.Builder {
private TableDefinition.Type type;
private Schema schema;
private String query;
private ImmutableList userDefinedFunctionsImmut;
private Boolean useLegacySql;
Builder() {
}
Builder(ViewDefinition source) {
this.type = source.getType();
this.schema = source.getSchema();
this.query = source.getQuery();
this.userDefinedFunctionsImmut = source.getUserDefinedFunctionsImmut();
this.useLegacySql = source.getUseLegacySql();
}
@Override
public ViewDefinition.Builder setType(TableDefinition.Type type) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
return this;
}
@Override
public ViewDefinition.Builder setSchema(Schema schema) {
this.schema = schema;
return this;
}
@Override
public ViewDefinition.Builder setQuery(String query) {
this.query = query;
return this;
}
@Override
ViewDefinition.Builder setUserDefinedFunctionsImmut(ImmutableList userDefinedFunctionsImmut) {
this.userDefinedFunctionsImmut = userDefinedFunctionsImmut;
return this;
}
@Override
public ViewDefinition.Builder setUseLegacySql(Boolean useLegacySql) {
this.useLegacySql = useLegacySql;
return this;
}
@Override
public ViewDefinition build() {
if (this.type == null) {
String missing = " type";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ViewDefinition(
this.type,
this.schema,
this.query,
this.userDefinedFunctionsImmut,
this.useLegacySql);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy