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

org.flyte.api.v1.AutoValue_Variable Maven / Gradle / Ivy

There is a newer version: 0.4.60
Show newest version
package org.flyte.api.v1;

import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

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

  private final LiteralType literalType;

  @Nullable
  private final String description;

  private AutoValue_Variable(
      LiteralType literalType,
      @Nullable String description) {
    this.literalType = literalType;
    this.description = description;
  }

  @Override
  public LiteralType literalType() {
    return literalType;
  }

  @Nullable
  @Override
  public String description() {
    return description;
  }

  @Override
  public String toString() {
    return "Variable{"
        + "literalType=" + literalType + ", "
        + "description=" + description
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Variable) {
      Variable that = (Variable) o;
      return this.literalType.equals(that.literalType())
          && (this.description == null ? that.description() == null : this.description.equals(that.description()));
    }
    return false;
  }

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

  static final class Builder extends Variable.Builder {
    private LiteralType literalType;
    private String description;
    Builder() {
    }
    @Override
    public Variable.Builder literalType(LiteralType literalType) {
      if (literalType == null) {
        throw new NullPointerException("Null literalType");
      }
      this.literalType = literalType;
      return this;
    }
    @Override
    public Variable.Builder description(String description) {
      this.description = description;
      return this;
    }
    @Override
    public Variable build() {
      if (this.literalType == null) {
        String missing = " literalType";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_Variable(
          this.literalType,
          this.description);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy