org.flyte.jflyte.utils.AutoValue_WorkflowSpec Maven / Gradle / Ivy
package org.flyte.jflyte.utils;
import java.util.Map;
import javax.annotation.processing.Generated;
import org.flyte.api.v1.WorkflowIdentifier;
import org.flyte.api.v1.WorkflowTemplate;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_WorkflowSpec extends WorkflowSpec {
private final WorkflowTemplate workflowTemplate;
private final Map subWorkflows;
private AutoValue_WorkflowSpec(
WorkflowTemplate workflowTemplate,
Map subWorkflows) {
this.workflowTemplate = workflowTemplate;
this.subWorkflows = subWorkflows;
}
@Override
public WorkflowTemplate workflowTemplate() {
return workflowTemplate;
}
@Override
public Map subWorkflows() {
return subWorkflows;
}
@Override
public String toString() {
return "WorkflowSpec{"
+ "workflowTemplate=" + workflowTemplate + ", "
+ "subWorkflows=" + subWorkflows
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof WorkflowSpec) {
WorkflowSpec that = (WorkflowSpec) o;
return this.workflowTemplate.equals(that.workflowTemplate())
&& this.subWorkflows.equals(that.subWorkflows());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= workflowTemplate.hashCode();
h$ *= 1000003;
h$ ^= subWorkflows.hashCode();
return h$;
}
static final class Builder extends WorkflowSpec.Builder {
private WorkflowTemplate workflowTemplate;
private Map subWorkflows;
Builder() {
}
@Override
WorkflowSpec.Builder workflowTemplate(WorkflowTemplate workflowTemplate) {
if (workflowTemplate == null) {
throw new NullPointerException("Null workflowTemplate");
}
this.workflowTemplate = workflowTemplate;
return this;
}
@Override
WorkflowSpec.Builder subWorkflows(Map subWorkflows) {
if (subWorkflows == null) {
throw new NullPointerException("Null subWorkflows");
}
this.subWorkflows = subWorkflows;
return this;
}
@Override
WorkflowSpec build() {
if (this.workflowTemplate == null
|| this.subWorkflows == null) {
StringBuilder missing = new StringBuilder();
if (this.workflowTemplate == null) {
missing.append(" workflowTemplate");
}
if (this.subWorkflows == null) {
missing.append(" subWorkflows");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_WorkflowSpec(
this.workflowTemplate,
this.subWorkflows);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy