org.flyte.api.v1.AutoValue_Parameter 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.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Parameter extends Parameter {
private final Variable var;
@Nullable
private final Literal defaultValue;
AutoValue_Parameter(
Variable var,
@Nullable Literal defaultValue) {
if (var == null) {
throw new NullPointerException("Null var");
}
this.var = var;
this.defaultValue = defaultValue;
}
@Override
public Variable var() {
return var;
}
@Nullable
@Override
public Literal defaultValue() {
return defaultValue;
}
@Override
public String toString() {
return "Parameter{"
+ "var=" + var + ", "
+ "defaultValue=" + defaultValue
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Parameter) {
Parameter that = (Parameter) o;
return this.var.equals(that.var())
&& (this.defaultValue == null ? that.defaultValue() == null : this.defaultValue.equals(that.defaultValue()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= var.hashCode();
h$ *= 1000003;
h$ ^= (defaultValue == null) ? 0 : defaultValue.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy