com.google.cloud.bigquery.AutoValue_JobStatistics_QueryStatistics_ExportDataStats 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_JobStatistics_QueryStatistics_ExportDataStats extends JobStatistics.QueryStatistics.ExportDataStats {
@Nullable
private final Long fileCount;
@Nullable
private final Long rowCount;
private AutoValue_JobStatistics_QueryStatistics_ExportDataStats(
@Nullable Long fileCount,
@Nullable Long rowCount) {
this.fileCount = fileCount;
this.rowCount = rowCount;
}
@Nullable
@Override
public Long getFileCount() {
return fileCount;
}
@Nullable
@Override
public Long getRowCount() {
return rowCount;
}
@Override
public String toString() {
return "ExportDataStats{"
+ "fileCount=" + fileCount + ", "
+ "rowCount=" + rowCount
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof JobStatistics.QueryStatistics.ExportDataStats) {
JobStatistics.QueryStatistics.ExportDataStats that = (JobStatistics.QueryStatistics.ExportDataStats) o;
return (this.fileCount == null ? that.getFileCount() == null : this.fileCount.equals(that.getFileCount()))
&& (this.rowCount == null ? that.getRowCount() == null : this.rowCount.equals(that.getRowCount()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (fileCount == null) ? 0 : fileCount.hashCode();
h$ *= 1000003;
h$ ^= (rowCount == null) ? 0 : rowCount.hashCode();
return h$;
}
private static final long serialVersionUID = 1L;
@Override
public JobStatistics.QueryStatistics.ExportDataStats.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends JobStatistics.QueryStatistics.ExportDataStats.Builder {
private Long fileCount;
private Long rowCount;
Builder() {
}
private Builder(JobStatistics.QueryStatistics.ExportDataStats source) {
this.fileCount = source.getFileCount();
this.rowCount = source.getRowCount();
}
@Override
public JobStatistics.QueryStatistics.ExportDataStats.Builder setFileCount(Long fileCount) {
this.fileCount = fileCount;
return this;
}
@Override
public JobStatistics.QueryStatistics.ExportDataStats.Builder setRowCount(Long rowCount) {
this.rowCount = rowCount;
return this;
}
@Override
public JobStatistics.QueryStatistics.ExportDataStats build() {
return new AutoValue_JobStatistics_QueryStatistics_ExportDataStats(
this.fileCount,
this.rowCount);
}
}
}