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

org.flyte.api.v1.AutoValue_TaskNode 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_TaskNode extends TaskNode {

  private final PartialTaskIdentifier referenceId;

  private AutoValue_TaskNode(
      PartialTaskIdentifier referenceId) {
    this.referenceId = referenceId;
  }

  @Override
  public PartialTaskIdentifier referenceId() {
    return referenceId;
  }

  @Override
  public String toString() {
    return "TaskNode{"
        + "referenceId=" + referenceId
        + "}";
  }

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

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

  static final class Builder extends TaskNode.Builder {
    private PartialTaskIdentifier referenceId;
    Builder() {
    }
    @Override
    public TaskNode.Builder referenceId(PartialTaskIdentifier referenceId) {
      if (referenceId == null) {
        throw new NullPointerException("Null referenceId");
      }
      this.referenceId = referenceId;
      return this;
    }
    @Override
    public TaskNode build() {
      if (this.referenceId == null) {
        String missing = " referenceId";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_TaskNode(
          this.referenceId);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy