org.flyte.api.v1.AutoValue_IfElseBlock 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 javax.annotation.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IfElseBlock extends IfElseBlock {
private final IfBlock case_;
private final List other;
@Nullable
private final Node elseNode;
@Nullable
private final NodeError error;
private AutoValue_IfElseBlock(
IfBlock case_,
List other,
@Nullable Node elseNode,
@Nullable NodeError error) {
this.case_ = case_;
this.other = other;
this.elseNode = elseNode;
this.error = error;
}
@Override
public IfBlock case_() {
return case_;
}
@Override
public List other() {
return other;
}
@Nullable
@Override
public Node elseNode() {
return elseNode;
}
@Nullable
@Override
public NodeError error() {
return error;
}
@Override
public String toString() {
return "IfElseBlock{"
+ "case_=" + case_ + ", "
+ "other=" + other + ", "
+ "elseNode=" + elseNode + ", "
+ "error=" + error
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof IfElseBlock) {
IfElseBlock that = (IfElseBlock) o;
return this.case_.equals(that.case_())
&& this.other.equals(that.other())
&& (this.elseNode == null ? that.elseNode() == null : this.elseNode.equals(that.elseNode()))
&& (this.error == null ? that.error() == null : this.error.equals(that.error()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= case_.hashCode();
h$ *= 1000003;
h$ ^= other.hashCode();
h$ *= 1000003;
h$ ^= (elseNode == null) ? 0 : elseNode.hashCode();
h$ *= 1000003;
h$ ^= (error == null) ? 0 : error.hashCode();
return h$;
}
@Override
public IfElseBlock.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends IfElseBlock.Builder {
private IfBlock case_;
private List other;
private Node elseNode;
private NodeError error;
Builder() {
}
private Builder(IfElseBlock source) {
this.case_ = source.case_();
this.other = source.other();
this.elseNode = source.elseNode();
this.error = source.error();
}
@Override
public IfElseBlock.Builder case_(IfBlock case_) {
if (case_ == null) {
throw new NullPointerException("Null case_");
}
this.case_ = case_;
return this;
}
@Override
public IfElseBlock.Builder other(List other) {
if (other == null) {
throw new NullPointerException("Null other");
}
this.other = other;
return this;
}
@Override
public IfElseBlock.Builder elseNode(Node elseNode) {
this.elseNode = elseNode;
return this;
}
@Override
public IfElseBlock.Builder error(NodeError error) {
this.error = error;
return this;
}
@Override
public IfElseBlock build() {
if (this.case_ == null
|| this.other == null) {
StringBuilder missing = new StringBuilder();
if (this.case_ == null) {
missing.append(" case_");
}
if (this.other == null) {
missing.append(" other");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_IfElseBlock(
this.case_,
this.other,
this.elseNode,
this.error);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy