org.graylog.plugins.pipelineprocessor.ast.AutoValue_Stage Maven / Gradle / Ivy
package org.graylog.plugins.pipelineprocessor.ast;
import java.util.List;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Stage extends Stage {
private final int stage;
private final Stage.Match match;
private final List ruleReferences;
private AutoValue_Stage(
int stage,
Stage.Match match,
List ruleReferences) {
this.stage = stage;
this.match = match;
this.ruleReferences = ruleReferences;
}
@Override
public int stage() {
return stage;
}
@Override
public Stage.Match match() {
return match;
}
@Override
public List ruleReferences() {
return ruleReferences;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Stage) {
Stage that = (Stage) o;
return this.stage == that.stage()
&& this.match.equals(that.match())
&& this.ruleReferences.equals(that.ruleReferences());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= stage;
h$ *= 1000003;
h$ ^= match.hashCode();
h$ *= 1000003;
h$ ^= ruleReferences.hashCode();
return h$;
}
@Override
public Stage.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends Stage.Builder {
private Integer stage;
private Stage.Match match;
private List ruleReferences;
Builder() {
}
private Builder(Stage source) {
this.stage = source.stage();
this.match = source.match();
this.ruleReferences = source.ruleReferences();
}
@Override
public Stage.Builder stage(int stage) {
this.stage = stage;
return this;
}
@Override
public Stage.Builder match(Stage.Match match) {
if (match == null) {
throw new NullPointerException("Null match");
}
this.match = match;
return this;
}
@Override
public Stage.Builder ruleReferences(List ruleReferences) {
if (ruleReferences == null) {
throw new NullPointerException("Null ruleReferences");
}
this.ruleReferences = ruleReferences;
return this;
}
@Override
public Stage build() {
String missing = "";
if (this.stage == null) {
missing += " stage";
}
if (this.match == null) {
missing += " match";
}
if (this.ruleReferences == null) {
missing += " ruleReferences";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_Stage(
this.stage,
this.match,
this.ruleReferences);
}
}
}