org.flyte.api.v1.AutoValue_Binding 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_Binding extends Binding {
private final String var_;
private final BindingData binding;
private AutoValue_Binding(
String var_,
BindingData binding) {
this.var_ = var_;
this.binding = binding;
}
@Override
public String var_() {
return var_;
}
@Override
public BindingData binding() {
return binding;
}
@Override
public String toString() {
return "Binding{"
+ "var_=" + var_ + ", "
+ "binding=" + binding
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Binding) {
Binding that = (Binding) o;
return this.var_.equals(that.var_())
&& this.binding.equals(that.binding());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= var_.hashCode();
h$ *= 1000003;
h$ ^= binding.hashCode();
return h$;
}
static final class Builder extends Binding.Builder {
private String var_;
private BindingData binding;
Builder() {
}
@Override
public Binding.Builder var_(String var_) {
if (var_ == null) {
throw new NullPointerException("Null var_");
}
this.var_ = var_;
return this;
}
@Override
public Binding.Builder binding(BindingData binding) {
if (binding == null) {
throw new NullPointerException("Null binding");
}
this.binding = binding;
return this;
}
@Override
public Binding build() {
if (this.var_ == null
|| this.binding == null) {
StringBuilder missing = new StringBuilder();
if (this.var_ == null) {
missing.append(" var_");
}
if (this.binding == null) {
missing.append(" binding");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_Binding(
this.var_,
this.binding);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy