com.google.cloud.bigquery.AutoValue_SearchStats 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 java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SearchStats extends SearchStats {
@Nullable
private final String indexUsageMode;
@Nullable
private final List indexUnusedReasons;
private AutoValue_SearchStats(
@Nullable String indexUsageMode,
@Nullable List indexUnusedReasons) {
this.indexUsageMode = indexUsageMode;
this.indexUnusedReasons = indexUnusedReasons;
}
@Nullable
@Override
public String getIndexUsageMode() {
return indexUsageMode;
}
@Nullable
@Override
public List getIndexUnusedReasons() {
return indexUnusedReasons;
}
@Override
public String toString() {
return "SearchStats{"
+ "indexUsageMode=" + indexUsageMode + ", "
+ "indexUnusedReasons=" + indexUnusedReasons
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SearchStats) {
SearchStats that = (SearchStats) o;
return (this.indexUsageMode == null ? that.getIndexUsageMode() == null : this.indexUsageMode.equals(that.getIndexUsageMode()))
&& (this.indexUnusedReasons == null ? that.getIndexUnusedReasons() == null : this.indexUnusedReasons.equals(that.getIndexUnusedReasons()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (indexUsageMode == null) ? 0 : indexUsageMode.hashCode();
h$ *= 1000003;
h$ ^= (indexUnusedReasons == null) ? 0 : indexUnusedReasons.hashCode();
return h$;
}
@Override
public SearchStats.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends SearchStats.Builder {
private String indexUsageMode;
private List indexUnusedReasons;
Builder() {
}
private Builder(SearchStats source) {
this.indexUsageMode = source.getIndexUsageMode();
this.indexUnusedReasons = source.getIndexUnusedReasons();
}
@Override
public SearchStats.Builder setIndexUsageMode(String indexUsageMode) {
this.indexUsageMode = indexUsageMode;
return this;
}
@Override
public SearchStats.Builder setIndexUnusedReasons(List indexUnusedReasons) {
this.indexUnusedReasons = indexUnusedReasons;
return this;
}
@Override
public SearchStats build() {
return new AutoValue_SearchStats(
this.indexUsageMode,
this.indexUnusedReasons);
}
}
}