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

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

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

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

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

  private final List fields;

  private AutoValue_StandardSQLStructType(
      List fields) {
    this.fields = fields;
  }

  @Override
  public List getFields() {
    return fields;
  }

  @Override
  public String toString() {
    return "StandardSQLStructType{"
        + "fields=" + fields
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof StandardSQLStructType) {
      StandardSQLStructType that = (StandardSQLStructType) o;
      return this.fields.equals(that.getFields());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= fields.hashCode();
    return h$;
  }

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

  static final class Builder extends StandardSQLStructType.Builder {
    private List fields;
    Builder() {
    }
    private Builder(StandardSQLStructType source) {
      this.fields = source.getFields();
    }
    @Override
    public StandardSQLStructType.Builder setFields(List fields) {
      if (fields == null) {
        throw new NullPointerException("Null fields");
      }
      this.fields = fields;
      return this;
    }
    @Override
    public StandardSQLStructType build() {
      if (this.fields == null) {
        String missing = " fields";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_StandardSQLStructType(
          this.fields);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy