org.graylog.plugins.netflow.v9.AutoValue_NetFlowV9FieldType Maven / Gradle / Ivy
package org.graylog.plugins.netflow.v9;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NetFlowV9FieldType extends NetFlowV9FieldType {
private final int id;
private final NetFlowV9FieldType.ValueType valueType;
private final String name;
AutoValue_NetFlowV9FieldType(
int id,
NetFlowV9FieldType.ValueType valueType,
String name) {
this.id = id;
if (valueType == null) {
throw new NullPointerException("Null valueType");
}
this.valueType = valueType;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
}
@JsonProperty("id")
@Override
public int id() {
return id;
}
@JsonProperty("value_type")
@Override
public NetFlowV9FieldType.ValueType valueType() {
return valueType;
}
@JsonProperty("name")
@Override
public String name() {
return name;
}
@Override
public String toString() {
return "NetFlowV9FieldType{"
+ "id=" + id + ", "
+ "valueType=" + valueType + ", "
+ "name=" + name
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NetFlowV9FieldType) {
NetFlowV9FieldType that = (NetFlowV9FieldType) o;
return this.id == that.id()
&& this.valueType.equals(that.valueType())
&& this.name.equals(that.name());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id;
h$ *= 1000003;
h$ ^= valueType.hashCode();
h$ *= 1000003;
h$ ^= name.hashCode();
return h$;
}
}