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

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

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

import java.util.List;
import javax.annotation.processing.Generated;

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

  private final List nodes;

  private final WorkflowMetadata metadata;

  private final TypedInterface interface_;

  private final List outputs;

  private AutoValue_WorkflowTemplate(
      List nodes,
      WorkflowMetadata metadata,
      TypedInterface interface_,
      List outputs) {
    this.nodes = nodes;
    this.metadata = metadata;
    this.interface_ = interface_;
    this.outputs = outputs;
  }

  @Override
  public List nodes() {
    return nodes;
  }

  @Override
  public WorkflowMetadata metadata() {
    return metadata;
  }

  @Override
  public TypedInterface interface_() {
    return interface_;
  }

  @Override
  public List outputs() {
    return outputs;
  }

  @Override
  public String toString() {
    return "WorkflowTemplate{"
        + "nodes=" + nodes + ", "
        + "metadata=" + metadata + ", "
        + "interface_=" + interface_ + ", "
        + "outputs=" + outputs
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof WorkflowTemplate) {
      WorkflowTemplate that = (WorkflowTemplate) o;
      return this.nodes.equals(that.nodes())
          && this.metadata.equals(that.metadata())
          && this.interface_.equals(that.interface_())
          && this.outputs.equals(that.outputs());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= nodes.hashCode();
    h$ *= 1000003;
    h$ ^= metadata.hashCode();
    h$ *= 1000003;
    h$ ^= interface_.hashCode();
    h$ *= 1000003;
    h$ ^= outputs.hashCode();
    return h$;
  }

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

  static final class Builder extends WorkflowTemplate.Builder {
    private List nodes;
    private WorkflowMetadata metadata;
    private TypedInterface interface_;
    private List outputs;
    Builder() {
    }
    private Builder(WorkflowTemplate source) {
      this.nodes = source.nodes();
      this.metadata = source.metadata();
      this.interface_ = source.interface_();
      this.outputs = source.outputs();
    }
    @Override
    public WorkflowTemplate.Builder nodes(List nodes) {
      if (nodes == null) {
        throw new NullPointerException("Null nodes");
      }
      this.nodes = nodes;
      return this;
    }
    @Override
    public WorkflowTemplate.Builder metadata(WorkflowMetadata metadata) {
      if (metadata == null) {
        throw new NullPointerException("Null metadata");
      }
      this.metadata = metadata;
      return this;
    }
    @Override
    public WorkflowTemplate.Builder interface_(TypedInterface interface_) {
      if (interface_ == null) {
        throw new NullPointerException("Null interface_");
      }
      this.interface_ = interface_;
      return this;
    }
    @Override
    public WorkflowTemplate.Builder outputs(List outputs) {
      if (outputs == null) {
        throw new NullPointerException("Null outputs");
      }
      this.outputs = outputs;
      return this;
    }
    @Override
    public WorkflowTemplate build() {
      if (this.nodes == null
          || this.metadata == null
          || this.interface_ == null
          || this.outputs == null) {
        StringBuilder missing = new StringBuilder();
        if (this.nodes == null) {
          missing.append(" nodes");
        }
        if (this.metadata == null) {
          missing.append(" metadata");
        }
        if (this.interface_ == null) {
          missing.append(" interface_");
        }
        if (this.outputs == null) {
          missing.append(" outputs");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_WorkflowTemplate(
          this.nodes,
          this.metadata,
          this.interface_,
          this.outputs);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy