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

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

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

import javax.annotation.processing.Generated;

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

  private final String nodeId;

  private final String var;

  private AutoValue_OutputReference(
      String nodeId,
      String var) {
    this.nodeId = nodeId;
    this.var = var;
  }

  @Override
  public String nodeId() {
    return nodeId;
  }

  @Override
  public String var() {
    return var;
  }

  @Override
  public String toString() {
    return "OutputReference{"
        + "nodeId=" + nodeId + ", "
        + "var=" + var
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof OutputReference) {
      OutputReference that = (OutputReference) o;
      return this.nodeId.equals(that.nodeId())
          && this.var.equals(that.var());
    }
    return false;
  }

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

  static final class Builder extends OutputReference.Builder {
    private String nodeId;
    private String var;
    Builder() {
    }
    @Override
    public OutputReference.Builder nodeId(String nodeId) {
      if (nodeId == null) {
        throw new NullPointerException("Null nodeId");
      }
      this.nodeId = nodeId;
      return this;
    }
    @Override
    public OutputReference.Builder var(String var) {
      if (var == null) {
        throw new NullPointerException("Null var");
      }
      this.var = var;
      return this;
    }
    @Override
    public OutputReference build() {
      if (this.nodeId == null
          || this.var == null) {
        StringBuilder missing = new StringBuilder();
        if (this.nodeId == null) {
          missing.append(" nodeId");
        }
        if (this.var == null) {
          missing.append(" var");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_OutputReference(
          this.nodeId,
          this.var);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy