com.google.cloud.bigquery.AutoValue_IndexUnusedReason 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_IndexUnusedReason extends IndexUnusedReason {
@Nullable
private final String indexName;
@Nullable
private final String code;
@Nullable
private final String message;
@Nullable
private final TableId baseTableId;
private AutoValue_IndexUnusedReason(
@Nullable String indexName,
@Nullable String code,
@Nullable String message,
@Nullable TableId baseTableId) {
this.indexName = indexName;
this.code = code;
this.message = message;
this.baseTableId = baseTableId;
}
@Nullable
@Override
public String getIndexName() {
return indexName;
}
@Nullable
@Override
public String getCode() {
return code;
}
@Nullable
@Override
public String getMessage() {
return message;
}
@Nullable
@Override
public TableId getBaseTableId() {
return baseTableId;
}
@Override
public String toString() {
return "IndexUnusedReason{"
+ "indexName=" + indexName + ", "
+ "code=" + code + ", "
+ "message=" + message + ", "
+ "baseTableId=" + baseTableId
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof IndexUnusedReason) {
IndexUnusedReason that = (IndexUnusedReason) o;
return (this.indexName == null ? that.getIndexName() == null : this.indexName.equals(that.getIndexName()))
&& (this.code == null ? that.getCode() == null : this.code.equals(that.getCode()))
&& (this.message == null ? that.getMessage() == null : this.message.equals(that.getMessage()))
&& (this.baseTableId == null ? that.getBaseTableId() == null : this.baseTableId.equals(that.getBaseTableId()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (indexName == null) ? 0 : indexName.hashCode();
h$ *= 1000003;
h$ ^= (code == null) ? 0 : code.hashCode();
h$ *= 1000003;
h$ ^= (message == null) ? 0 : message.hashCode();
h$ *= 1000003;
h$ ^= (baseTableId == null) ? 0 : baseTableId.hashCode();
return h$;
}
@Override
public IndexUnusedReason.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends IndexUnusedReason.Builder {
private String indexName;
private String code;
private String message;
private TableId baseTableId;
Builder() {
}
private Builder(IndexUnusedReason source) {
this.indexName = source.getIndexName();
this.code = source.getCode();
this.message = source.getMessage();
this.baseTableId = source.getBaseTableId();
}
@Override
public IndexUnusedReason.Builder setIndexName(String indexName) {
this.indexName = indexName;
return this;
}
@Override
public IndexUnusedReason.Builder setCode(String code) {
this.code = code;
return this;
}
@Override
public IndexUnusedReason.Builder setMessage(String message) {
this.message = message;
return this;
}
@Override
public IndexUnusedReason.Builder setBaseTableId(TableId baseTableId) {
this.baseTableId = baseTableId;
return this;
}
@Override
public IndexUnusedReason build() {
return new AutoValue_IndexUnusedReason(
this.indexName,
this.code,
this.message,
this.baseTableId);
}
}
}