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

com.google.cloud.bigquery.AutoValue_TableMetadataCacheUsage 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_TableMetadataCacheUsage extends TableMetadataCacheUsage {

  @Nullable
  private final String explanation;

  @Nullable
  private final TableId tableReference;

  @Nullable
  private final String tableType;

  @Nullable
  private final TableMetadataCacheUsage.UnusedReason unusedReason;

  private AutoValue_TableMetadataCacheUsage(
      @Nullable String explanation,
      @Nullable TableId tableReference,
      @Nullable String tableType,
      @Nullable TableMetadataCacheUsage.UnusedReason unusedReason) {
    this.explanation = explanation;
    this.tableReference = tableReference;
    this.tableType = tableType;
    this.unusedReason = unusedReason;
  }

  @Nullable
  @Override
  public String getExplanation() {
    return explanation;
  }

  @Nullable
  @Override
  public TableId getTableReference() {
    return tableReference;
  }

  @Nullable
  @Override
  public String getTableType() {
    return tableType;
  }

  @Nullable
  @Override
  public TableMetadataCacheUsage.UnusedReason getUnusedReason() {
    return unusedReason;
  }

  @Override
  public String toString() {
    return "TableMetadataCacheUsage{"
        + "explanation=" + explanation + ", "
        + "tableReference=" + tableReference + ", "
        + "tableType=" + tableType + ", "
        + "unusedReason=" + unusedReason
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof TableMetadataCacheUsage) {
      TableMetadataCacheUsage that = (TableMetadataCacheUsage) o;
      return (this.explanation == null ? that.getExplanation() == null : this.explanation.equals(that.getExplanation()))
          && (this.tableReference == null ? that.getTableReference() == null : this.tableReference.equals(that.getTableReference()))
          && (this.tableType == null ? that.getTableType() == null : this.tableType.equals(that.getTableType()))
          && (this.unusedReason == null ? that.getUnusedReason() == null : this.unusedReason.equals(that.getUnusedReason()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (explanation == null) ? 0 : explanation.hashCode();
    h$ *= 1000003;
    h$ ^= (tableReference == null) ? 0 : tableReference.hashCode();
    h$ *= 1000003;
    h$ ^= (tableType == null) ? 0 : tableType.hashCode();
    h$ *= 1000003;
    h$ ^= (unusedReason == null) ? 0 : unusedReason.hashCode();
    return h$;
  }

  private static final long serialVersionUID = 1L;

  @Override
  public TableMetadataCacheUsage.Builder toBuilder() {
    return new Builder(this);
  }

  static final class Builder extends TableMetadataCacheUsage.Builder {
    private String explanation;
    private TableId tableReference;
    private String tableType;
    private TableMetadataCacheUsage.UnusedReason unusedReason;
    Builder() {
    }
    private Builder(TableMetadataCacheUsage source) {
      this.explanation = source.getExplanation();
      this.tableReference = source.getTableReference();
      this.tableType = source.getTableType();
      this.unusedReason = source.getUnusedReason();
    }
    @Override
    public TableMetadataCacheUsage.Builder setExplanation(String explanation) {
      this.explanation = explanation;
      return this;
    }
    @Override
    public TableMetadataCacheUsage.Builder setTableReference(TableId tableReference) {
      this.tableReference = tableReference;
      return this;
    }
    @Override
    public TableMetadataCacheUsage.Builder setTableType(String tableType) {
      this.tableType = tableType;
      return this;
    }
    @Override
    public TableMetadataCacheUsage.Builder setUnusedReason(TableMetadataCacheUsage.UnusedReason unusedReason) {
      this.unusedReason = unusedReason;
      return this;
    }
    @Override
    public TableMetadataCacheUsage build() {
      return new AutoValue_TableMetadataCacheUsage(
          this.explanation,
          this.tableReference,
          this.tableType,
          this.unusedReason);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy