com.google.cloud.bigquery.AutoValue_ExecuteSelectResponse 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_ExecuteSelectResponse extends ExecuteSelectResponse {
@Nullable
private final BigQueryResult resultSet;
private final boolean isSuccessful;
@Nullable
private final BigQuerySQLException bigQuerySQLException;
private AutoValue_ExecuteSelectResponse(
@Nullable BigQueryResult resultSet,
boolean isSuccessful,
@Nullable BigQuerySQLException bigQuerySQLException) {
this.resultSet = resultSet;
this.isSuccessful = isSuccessful;
this.bigQuerySQLException = bigQuerySQLException;
}
@Nullable
@Override
public BigQueryResult getResultSet() {
return resultSet;
}
@Override
public boolean getIsSuccessful() {
return isSuccessful;
}
@Nullable
@Override
public BigQuerySQLException getBigQuerySQLException() {
return bigQuerySQLException;
}
@Override
public String toString() {
return "ExecuteSelectResponse{"
+ "resultSet=" + resultSet + ", "
+ "isSuccessful=" + isSuccessful + ", "
+ "bigQuerySQLException=" + bigQuerySQLException
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ExecuteSelectResponse) {
ExecuteSelectResponse that = (ExecuteSelectResponse) o;
return (this.resultSet == null ? that.getResultSet() == null : this.resultSet.equals(that.getResultSet()))
&& this.isSuccessful == that.getIsSuccessful()
&& (this.bigQuerySQLException == null ? that.getBigQuerySQLException() == null : this.bigQuerySQLException.equals(that.getBigQuerySQLException()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (resultSet == null) ? 0 : resultSet.hashCode();
h$ *= 1000003;
h$ ^= isSuccessful ? 1231 : 1237;
h$ *= 1000003;
h$ ^= (bigQuerySQLException == null) ? 0 : bigQuerySQLException.hashCode();
return h$;
}
static final class Builder extends ExecuteSelectResponse.Builder {
private BigQueryResult resultSet;
private boolean isSuccessful;
private BigQuerySQLException bigQuerySQLException;
private byte set$0;
Builder() {
}
@Override
public ExecuteSelectResponse.Builder setResultSet(BigQueryResult resultSet) {
this.resultSet = resultSet;
return this;
}
@Override
public ExecuteSelectResponse.Builder setIsSuccessful(boolean isSuccessful) {
this.isSuccessful = isSuccessful;
set$0 |= (byte) 1;
return this;
}
@Override
public ExecuteSelectResponse.Builder setBigQuerySQLException(BigQuerySQLException bigQuerySQLException) {
this.bigQuerySQLException = bigQuerySQLException;
return this;
}
@Override
public ExecuteSelectResponse build() {
if (set$0 != 1) {
String missing = " isSuccessful";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ExecuteSelectResponse(
this.resultSet,
this.isSuccessful,
this.bigQuerySQLException);
}
}
}