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

org.flyte.api.v1.AutoValue_WorkflowNode 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_WorkflowNode extends WorkflowNode {

  private final WorkflowNode.Reference reference;

  private AutoValue_WorkflowNode(
      WorkflowNode.Reference reference) {
    this.reference = reference;
  }

  @Override
  public WorkflowNode.Reference reference() {
    return reference;
  }

  @Override
  public String toString() {
    return "WorkflowNode{"
        + "reference=" + reference
        + "}";
  }

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

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

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

  static final class Builder extends WorkflowNode.Builder {
    private WorkflowNode.Reference reference;
    Builder() {
    }
    private Builder(WorkflowNode source) {
      this.reference = source.reference();
    }
    @Override
    public WorkflowNode.Builder reference(WorkflowNode.Reference reference) {
      if (reference == null) {
        throw new NullPointerException("Null reference");
      }
      this.reference = reference;
      return this;
    }
    @Override
    public WorkflowNode build() {
      if (this.reference == null) {
        String missing = " reference";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_WorkflowNode(
          this.reference);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy