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

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

package com.google.cloud.bigquery;

import java.util.List;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_BigtableColumnFamily extends BigtableColumnFamily {

  private final String familyID;

  private final List columns;

  private final String encoding;

  private final Boolean onlyReadLatest;

  private final String type;

  private AutoValue_BigtableColumnFamily(
      String familyID,
      List columns,
      String encoding,
      Boolean onlyReadLatest,
      String type) {
    this.familyID = familyID;
    this.columns = columns;
    this.encoding = encoding;
    this.onlyReadLatest = onlyReadLatest;
    this.type = type;
  }

  @Override
  public String getFamilyID() {
    return familyID;
  }

  @Override
  public List getColumns() {
    return columns;
  }

  @Override
  public String getEncoding() {
    return encoding;
  }

  @Override
  public Boolean getOnlyReadLatest() {
    return onlyReadLatest;
  }

  @Override
  public String getType() {
    return type;
  }

  @Override
  public String toString() {
    return "BigtableColumnFamily{"
        + "familyID=" + familyID + ", "
        + "columns=" + columns + ", "
        + "encoding=" + encoding + ", "
        + "onlyReadLatest=" + onlyReadLatest + ", "
        + "type=" + type
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof BigtableColumnFamily) {
      BigtableColumnFamily that = (BigtableColumnFamily) o;
      return this.familyID.equals(that.getFamilyID())
          && this.columns.equals(that.getColumns())
          && this.encoding.equals(that.getEncoding())
          && this.onlyReadLatest.equals(that.getOnlyReadLatest())
          && this.type.equals(that.getType());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= familyID.hashCode();
    h$ *= 1000003;
    h$ ^= columns.hashCode();
    h$ *= 1000003;
    h$ ^= encoding.hashCode();
    h$ *= 1000003;
    h$ ^= onlyReadLatest.hashCode();
    h$ *= 1000003;
    h$ ^= type.hashCode();
    return h$;
  }

  private static final long serialVersionUID = 1L;

  static final class Builder extends BigtableColumnFamily.Builder {
    private String familyID;
    private List columns;
    private String encoding;
    private Boolean onlyReadLatest;
    private String type;
    Builder() {
    }
    @Override
    public BigtableColumnFamily.Builder setFamilyID(String familyID) {
      if (familyID == null) {
        throw new NullPointerException("Null familyID");
      }
      this.familyID = familyID;
      return this;
    }
    @Override
    public BigtableColumnFamily.Builder setColumns(List columns) {
      if (columns == null) {
        throw new NullPointerException("Null columns");
      }
      this.columns = columns;
      return this;
    }
    @Override
    public BigtableColumnFamily.Builder setEncoding(String encoding) {
      if (encoding == null) {
        throw new NullPointerException("Null encoding");
      }
      this.encoding = encoding;
      return this;
    }
    @Override
    public BigtableColumnFamily.Builder setOnlyReadLatest(Boolean onlyReadLatest) {
      if (onlyReadLatest == null) {
        throw new NullPointerException("Null onlyReadLatest");
      }
      this.onlyReadLatest = onlyReadLatest;
      return this;
    }
    @Override
    public BigtableColumnFamily.Builder setType(String type) {
      if (type == null) {
        throw new NullPointerException("Null type");
      }
      this.type = type;
      return this;
    }
    @Override
    public BigtableColumnFamily build() {
      if (this.familyID == null
          || this.columns == null
          || this.encoding == null
          || this.onlyReadLatest == null
          || this.type == null) {
        StringBuilder missing = new StringBuilder();
        if (this.familyID == null) {
          missing.append(" familyID");
        }
        if (this.columns == null) {
          missing.append(" columns");
        }
        if (this.encoding == null) {
          missing.append(" encoding");
        }
        if (this.onlyReadLatest == null) {
          missing.append(" onlyReadLatest");
        }
        if (this.type == null) {
          missing.append(" type");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_BigtableColumnFamily(
          this.familyID,
          this.columns,
          this.encoding,
          this.onlyReadLatest,
          this.type);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy