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