com.google.zetasql.AutoValue_AllowedHintsAndOptions_AllowedOptionProperties Maven / Gradle / Ivy
package com.google.zetasql;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AllowedHintsAndOptions_AllowedOptionProperties extends AllowedHintsAndOptions.AllowedOptionProperties {
private final Type type;
private final ZetaSQLOptionsProto.AllowedHintsAndOptionsProto.OptionProto.ResolvingKind resolvingKind;
private AutoValue_AllowedHintsAndOptions_AllowedOptionProperties(
@Nullable Type type,
ZetaSQLOptionsProto.AllowedHintsAndOptionsProto.OptionProto.ResolvingKind resolvingKind) {
this.type = type;
this.resolvingKind = resolvingKind;
}
@Nullable
@Override
public Type type() {
return type;
}
@Override
public ZetaSQLOptionsProto.AllowedHintsAndOptionsProto.OptionProto.ResolvingKind resolvingKind() {
return resolvingKind;
}
@Override
public String toString() {
return "AllowedOptionProperties{"
+ "type=" + type + ", "
+ "resolvingKind=" + resolvingKind
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AllowedHintsAndOptions.AllowedOptionProperties) {
AllowedHintsAndOptions.AllowedOptionProperties that = (AllowedHintsAndOptions.AllowedOptionProperties) o;
return (this.type == null ? that.type() == null : this.type.equals(that.type()))
&& this.resolvingKind.equals(that.resolvingKind());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (type == null) ? 0 : type.hashCode();
h$ *= 1000003;
h$ ^= resolvingKind.hashCode();
return h$;
}
@Override
public AllowedHintsAndOptions.AllowedOptionProperties.Builder toBuilder() {
return new Builder(this);
}
static final class Builder implements AllowedHintsAndOptions.AllowedOptionProperties.Builder {
private Type type;
private ZetaSQLOptionsProto.AllowedHintsAndOptionsProto.OptionProto.ResolvingKind resolvingKind;
Builder() {
}
private Builder(AllowedHintsAndOptions.AllowedOptionProperties source) {
this.type = source.type();
this.resolvingKind = source.resolvingKind();
}
@Override
public AllowedHintsAndOptions.AllowedOptionProperties.Builder type(@Nullable Type type) {
this.type = type;
return this;
}
@Override
public AllowedHintsAndOptions.AllowedOptionProperties.Builder resolvingKind(ZetaSQLOptionsProto.AllowedHintsAndOptionsProto.OptionProto.ResolvingKind resolvingKind) {
if (resolvingKind == null) {
throw new NullPointerException("Null resolvingKind");
}
this.resolvingKind = resolvingKind;
return this;
}
@Override
public AllowedHintsAndOptions.AllowedOptionProperties build() {
String missing = "";
if (this.resolvingKind == null) {
missing += " resolvingKind";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_AllowedHintsAndOptions_AllowedOptionProperties(
this.type,
this.resolvingKind);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy