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

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

There is a newer version: 2.44.0
Show newest version
package com.google.cloud.bigquery;

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

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

  @Nullable
  private final List columns;

  private AutoValue_PrimaryKey(
      @Nullable List columns) {
    this.columns = columns;
  }

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

  @Override
  public String toString() {
    return "PrimaryKey{"
        + "columns=" + columns
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PrimaryKey) {
      PrimaryKey that = (PrimaryKey) o;
      return (this.columns == null ? that.getColumns() == null : this.columns.equals(that.getColumns()));
    }
    return false;
  }

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

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

  static final class Builder extends PrimaryKey.Builder {
    private List columns;
    Builder() {
    }
    Builder(PrimaryKey source) {
      this.columns = source.getColumns();
    }
    @Override
    public PrimaryKey.Builder setColumns(List columns) {
      this.columns = columns;
      return this;
    }
    @Override
    public PrimaryKey build() {
      return new AutoValue_PrimaryKey(
          this.columns);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy