org.flyte.api.v1.AutoValue_DynamicJobSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flytekit-api Show documentation
Show all versions of flytekit-api Show documentation
Java friendly representation of flyteidl protos.
package org.flyte.api.v1;
import java.util.List;
import java.util.Map;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DynamicJobSpec extends DynamicJobSpec {
private final List nodes;
private final List outputs;
private final Map subWorkflows;
private final Map tasks;
private AutoValue_DynamicJobSpec(
List nodes,
List outputs,
Map subWorkflows,
Map tasks) {
this.nodes = nodes;
this.outputs = outputs;
this.subWorkflows = subWorkflows;
this.tasks = tasks;
}
@Override
public List nodes() {
return nodes;
}
@Override
public List outputs() {
return outputs;
}
@Override
public Map subWorkflows() {
return subWorkflows;
}
@Override
public Map tasks() {
return tasks;
}
@Override
public String toString() {
return "DynamicJobSpec{"
+ "nodes=" + nodes + ", "
+ "outputs=" + outputs + ", "
+ "subWorkflows=" + subWorkflows + ", "
+ "tasks=" + tasks
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DynamicJobSpec) {
DynamicJobSpec that = (DynamicJobSpec) o;
return this.nodes.equals(that.nodes())
&& this.outputs.equals(that.outputs())
&& this.subWorkflows.equals(that.subWorkflows())
&& this.tasks.equals(that.tasks());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= nodes.hashCode();
h$ *= 1000003;
h$ ^= outputs.hashCode();
h$ *= 1000003;
h$ ^= subWorkflows.hashCode();
h$ *= 1000003;
h$ ^= tasks.hashCode();
return h$;
}
@Override
public DynamicJobSpec.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends DynamicJobSpec.Builder {
private List nodes;
private List outputs;
private Map subWorkflows;
private Map tasks;
Builder() {
}
private Builder(DynamicJobSpec source) {
this.nodes = source.nodes();
this.outputs = source.outputs();
this.subWorkflows = source.subWorkflows();
this.tasks = source.tasks();
}
@Override
public DynamicJobSpec.Builder nodes(List nodes) {
if (nodes == null) {
throw new NullPointerException("Null nodes");
}
this.nodes = nodes;
return this;
}
@Override
public DynamicJobSpec.Builder outputs(List outputs) {
if (outputs == null) {
throw new NullPointerException("Null outputs");
}
this.outputs = outputs;
return this;
}
@Override
public DynamicJobSpec.Builder subWorkflows(Map subWorkflows) {
if (subWorkflows == null) {
throw new NullPointerException("Null subWorkflows");
}
this.subWorkflows = subWorkflows;
return this;
}
@Override
public DynamicJobSpec.Builder tasks(Map tasks) {
if (tasks == null) {
throw new NullPointerException("Null tasks");
}
this.tasks = tasks;
return this;
}
@Override
public DynamicJobSpec build() {
if (this.nodes == null
|| this.outputs == null
|| this.subWorkflows == null
|| this.tasks == null) {
StringBuilder missing = new StringBuilder();
if (this.nodes == null) {
missing.append(" nodes");
}
if (this.outputs == null) {
missing.append(" outputs");
}
if (this.subWorkflows == null) {
missing.append(" subWorkflows");
}
if (this.tasks == null) {
missing.append(" tasks");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_DynamicJobSpec(
this.nodes,
this.outputs,
this.subWorkflows,
this.tasks);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy