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

com.google.cloud.bigquery.AutoValue_BigtableColumn 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_BigtableColumn extends BigtableColumn {

  @Nullable
  private final String qualifierEncoded;

  @Nullable
  private final String fieldName;

  @Nullable
  private final Boolean onlyReadLatest;

  @Nullable
  private final String encoding;

  @Nullable
  private final String type;

  private AutoValue_BigtableColumn(
      @Nullable String qualifierEncoded,
      @Nullable String fieldName,
      @Nullable Boolean onlyReadLatest,
      @Nullable String encoding,
      @Nullable String type) {
    this.qualifierEncoded = qualifierEncoded;
    this.fieldName = fieldName;
    this.onlyReadLatest = onlyReadLatest;
    this.encoding = encoding;
    this.type = type;
  }

  @Nullable
  @Override
  public String getQualifierEncoded() {
    return qualifierEncoded;
  }

  @Nullable
  @Override
  public String getFieldName() {
    return fieldName;
  }

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

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

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

  @Override
  public String toString() {
    return "BigtableColumn{"
        + "qualifierEncoded=" + qualifierEncoded + ", "
        + "fieldName=" + fieldName + ", "
        + "onlyReadLatest=" + onlyReadLatest + ", "
        + "encoding=" + encoding + ", "
        + "type=" + type
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof BigtableColumn) {
      BigtableColumn that = (BigtableColumn) o;
      return (this.qualifierEncoded == null ? that.getQualifierEncoded() == null : this.qualifierEncoded.equals(that.getQualifierEncoded()))
          && (this.fieldName == null ? that.getFieldName() == null : this.fieldName.equals(that.getFieldName()))
          && (this.onlyReadLatest == null ? that.getOnlyReadLatest() == null : this.onlyReadLatest.equals(that.getOnlyReadLatest()))
          && (this.encoding == null ? that.getEncoding() == null : this.encoding.equals(that.getEncoding()))
          && (this.type == null ? that.getType() == null : this.type.equals(that.getType()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (qualifierEncoded == null) ? 0 : qualifierEncoded.hashCode();
    h$ *= 1000003;
    h$ ^= (fieldName == null) ? 0 : fieldName.hashCode();
    h$ *= 1000003;
    h$ ^= (onlyReadLatest == null) ? 0 : onlyReadLatest.hashCode();
    h$ *= 1000003;
    h$ ^= (encoding == null) ? 0 : encoding.hashCode();
    h$ *= 1000003;
    h$ ^= (type == null) ? 0 : type.hashCode();
    return h$;
  }

  private static final long serialVersionUID = 1L;

  static final class Builder extends BigtableColumn.Builder {
    private String qualifierEncoded;
    private String fieldName;
    private Boolean onlyReadLatest;
    private String encoding;
    private String type;
    Builder() {
    }
    @Override
    public BigtableColumn.Builder setQualifierEncoded(String qualifierEncoded) {
      this.qualifierEncoded = qualifierEncoded;
      return this;
    }
    @Override
    public BigtableColumn.Builder setFieldName(String fieldName) {
      this.fieldName = fieldName;
      return this;
    }
    @Override
    public BigtableColumn.Builder setOnlyReadLatest(Boolean onlyReadLatest) {
      this.onlyReadLatest = onlyReadLatest;
      return this;
    }
    @Override
    public BigtableColumn.Builder setEncoding(String encoding) {
      this.encoding = encoding;
      return this;
    }
    @Override
    public BigtableColumn.Builder setType(String type) {
      this.type = type;
      return this;
    }
    @Override
    public BigtableColumn build() {
      return new AutoValue_BigtableColumn(
          this.qualifierEncoded,
          this.fieldName,
          this.onlyReadLatest,
          this.encoding,
          this.type);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy