com.google.zetasql.AutoValue_AllowedHintsAndOptions_AllowedOptionProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zetasql-client Show documentation
Show all versions of zetasql-client Show documentation
Analyzer Framework for SQL
The newest version!
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 final boolean allowAlterArray;
private AutoValue_AllowedHintsAndOptions_AllowedOptionProperties(
@Nullable Type type,
ZetaSQLOptionsProto.AllowedHintsAndOptionsProto.OptionProto.ResolvingKind resolvingKind,
boolean allowAlterArray) {
this.type = type;
this.resolvingKind = resolvingKind;
this.allowAlterArray = allowAlterArray;
}
@Nullable
@Override
public Type type() {
return type;
}
@Override
public ZetaSQLOptionsProto.AllowedHintsAndOptionsProto.OptionProto.ResolvingKind resolvingKind() {
return resolvingKind;
}
@Override
public boolean allowAlterArray() {
return allowAlterArray;
}
@Override
public String toString() {
return "AllowedOptionProperties{"
+ "type=" + type + ", "
+ "resolvingKind=" + resolvingKind + ", "
+ "allowAlterArray=" + allowAlterArray
+ "}";
}
@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())
&& this.allowAlterArray == that.allowAlterArray();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (type == null) ? 0 : type.hashCode();
h$ *= 1000003;
h$ ^= resolvingKind.hashCode();
h$ *= 1000003;
h$ ^= allowAlterArray ? 1231 : 1237;
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;
private Boolean allowAlterArray;
Builder() {
}
private Builder(AllowedHintsAndOptions.AllowedOptionProperties source) {
this.type = source.type();
this.resolvingKind = source.resolvingKind();
this.allowAlterArray = source.allowAlterArray();
}
@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.Builder allowAlterArray(boolean allowAlterArray) {
this.allowAlterArray = allowAlterArray;
return this;
}
@Override
public AllowedHintsAndOptions.AllowedOptionProperties build() {
String missing = "";
if (this.resolvingKind == null) {
missing += " resolvingKind";
}
if (this.allowAlterArray == null) {
missing += " allowAlterArray";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_AllowedHintsAndOptions_AllowedOptionProperties(
this.type,
this.resolvingKind,
this.allowAlterArray);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy