
dev.cel.common.ast.AutoValue_CelExpr_CelCreateMap Maven / Gradle / Ivy
package dev.cel.common.ast;
import com.google.common.collect.ImmutableList;
import org.jspecify.nullness.Nullable;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_CelExpr_CelCreateMap extends CelExpr.CelCreateMap {
private final ImmutableList entries;
private AutoValue_CelExpr_CelCreateMap(
ImmutableList entries) {
this.entries = entries;
}
@Override
public ImmutableList entries() {
return entries;
}
@Override
public String toString() {
return "CelCreateMap{"
+ "entries=" + entries
+ "}";
}
@Override
public boolean equals(@Nullable Object o) {
if (o == this) {
return true;
}
if (o instanceof CelExpr.CelCreateMap) {
CelExpr.CelCreateMap that = (CelExpr.CelCreateMap) o;
return this.entries.equals(that.entries());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= entries.hashCode();
return h$;
}
@Override
CelExpr.CelCreateMap.Builder autoToBuilder() {
return new Builder(this);
}
static final class Builder extends CelExpr.CelCreateMap.Builder {
private @Nullable ImmutableList entries;
Builder() {
}
private Builder(CelExpr.CelCreateMap source) {
this.entries = source.entries();
}
@Override
CelExpr.CelCreateMap.Builder setEntries(ImmutableList entries) {
if (entries == null) {
throw new NullPointerException("Null entries");
}
this.entries = entries;
return this;
}
@Override
ImmutableList entries() {
if (this.entries == null) {
throw new IllegalStateException("Property \"entries\" has not been set");
}
return entries;
}
@Override
CelExpr.CelCreateMap autoBuild() {
if (this.entries == null) {
String missing = " entries";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_CelExpr_CelCreateMap(
this.entries);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy