All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.bigquery.AutoValue_JobStatistics_QueryStatistics_ExportDataStats Maven / Gradle / Ivy

There is a newer version: 2.44.0
Show newest version
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);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy