com.google.cloud.bigquery.AutoValue_ReadClientConnectionConfiguration 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_ReadClientConnectionConfiguration extends ReadClientConnectionConfiguration {
@Nullable
private final Long totalToPageRowCountRatio;
@Nullable
private final Long minResultSize;
@Nullable
private final Long bufferSize;
private AutoValue_ReadClientConnectionConfiguration(
@Nullable Long totalToPageRowCountRatio,
@Nullable Long minResultSize,
@Nullable Long bufferSize) {
this.totalToPageRowCountRatio = totalToPageRowCountRatio;
this.minResultSize = minResultSize;
this.bufferSize = bufferSize;
}
@Nullable
@Override
public Long getTotalToPageRowCountRatio() {
return totalToPageRowCountRatio;
}
@Nullable
@Override
public Long getMinResultSize() {
return minResultSize;
}
@Nullable
@Override
public Long getBufferSize() {
return bufferSize;
}
@Override
public String toString() {
return "ReadClientConnectionConfiguration{"
+ "totalToPageRowCountRatio=" + totalToPageRowCountRatio + ", "
+ "minResultSize=" + minResultSize + ", "
+ "bufferSize=" + bufferSize
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ReadClientConnectionConfiguration) {
ReadClientConnectionConfiguration that = (ReadClientConnectionConfiguration) o;
return (this.totalToPageRowCountRatio == null ? that.getTotalToPageRowCountRatio() == null : this.totalToPageRowCountRatio.equals(that.getTotalToPageRowCountRatio()))
&& (this.minResultSize == null ? that.getMinResultSize() == null : this.minResultSize.equals(that.getMinResultSize()))
&& (this.bufferSize == null ? that.getBufferSize() == null : this.bufferSize.equals(that.getBufferSize()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (totalToPageRowCountRatio == null) ? 0 : totalToPageRowCountRatio.hashCode();
h$ *= 1000003;
h$ ^= (minResultSize == null) ? 0 : minResultSize.hashCode();
h$ *= 1000003;
h$ ^= (bufferSize == null) ? 0 : bufferSize.hashCode();
return h$;
}
@Override
public ReadClientConnectionConfiguration.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends ReadClientConnectionConfiguration.Builder {
private Long totalToPageRowCountRatio;
private Long minResultSize;
private Long bufferSize;
Builder() {
}
private Builder(ReadClientConnectionConfiguration source) {
this.totalToPageRowCountRatio = source.getTotalToPageRowCountRatio();
this.minResultSize = source.getMinResultSize();
this.bufferSize = source.getBufferSize();
}
@Override
public ReadClientConnectionConfiguration.Builder setTotalToPageRowCountRatio(Long totalToPageRowCountRatio) {
this.totalToPageRowCountRatio = totalToPageRowCountRatio;
return this;
}
@Override
public ReadClientConnectionConfiguration.Builder setMinResultSize(Long minResultSize) {
this.minResultSize = minResultSize;
return this;
}
@Override
public ReadClientConnectionConfiguration.Builder setBufferSize(Long bufferSize) {
this.bufferSize = bufferSize;
return this;
}
@Override
public ReadClientConnectionConfiguration build() {
return new AutoValue_ReadClientConnectionConfiguration(
this.totalToPageRowCountRatio,
this.minResultSize,
this.bufferSize);
}
}
}