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

com.google.cloud.bigquery.AutoValue_Range 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_Range extends Range {

  @Nullable
  private final String startInner;

  @Nullable
  private final String endInner;

  @Nullable
  private final FieldElementType type;

  private AutoValue_Range(
      @Nullable String startInner,
      @Nullable String endInner,
      @Nullable FieldElementType type) {
    this.startInner = startInner;
    this.endInner = endInner;
    this.type = type;
  }

  @Nullable
  @Override
  String getStartInner() {
    return startInner;
  }

  @Nullable
  @Override
  String getEndInner() {
    return endInner;
  }

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

  @Override
  public String toString() {
    return "Range{"
        + "startInner=" + startInner + ", "
        + "endInner=" + endInner + ", "
        + "type=" + type
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Range) {
      Range that = (Range) o;
      return (this.startInner == null ? that.getStartInner() == null : this.startInner.equals(that.getStartInner()))
          && (this.endInner == null ? that.getEndInner() == null : this.endInner.equals(that.getEndInner()))
          && (this.type == null ? that.getType() == null : this.type.equals(that.getType()));
    }
    return false;
  }

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

  private static final long serialVersionUID = 1L;

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

  static final class Builder extends Range.Builder {
    private String startInner;
    private String endInner;
    private FieldElementType type;
    Builder() {
    }
    private Builder(Range source) {
      this.startInner = source.getStartInner();
      this.endInner = source.getEndInner();
      this.type = source.getType();
    }
    @Override
    Range.Builder setStartInner(String startInner) {
      this.startInner = startInner;
      return this;
    }
    @Override
    Range.Builder setEndInner(String endInner) {
      this.endInner = endInner;
      return this;
    }
    @Override
    public Range.Builder setType(FieldElementType type) {
      this.type = type;
      return this;
    }
    @Override
    public Range build() {
      return new AutoValue_Range(
          this.startInner,
          this.endInner,
          this.type);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy