All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog.plugins.netflow.v9.AutoValue_NetFlowV9Template Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog.plugins.netflow.v9;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NetFlowV9Template extends NetFlowV9Template {

  private final int templateId;

  private final int fieldCount;

  private final ImmutableList definitions;

  AutoValue_NetFlowV9Template(
      int templateId,
      int fieldCount,
      ImmutableList definitions) {
    this.templateId = templateId;
    this.fieldCount = fieldCount;
    if (definitions == null) {
      throw new NullPointerException("Null definitions");
    }
    this.definitions = definitions;
  }

  @JsonProperty("template_id")
  @Override
  public int templateId() {
    return templateId;
  }

  @JsonProperty("field_count")
  @Override
  public int fieldCount() {
    return fieldCount;
  }

  @JsonProperty("definitions")
  @Override
  public ImmutableList definitions() {
    return definitions;
  }

  @Override
  public String toString() {
    return "NetFlowV9Template{"
        + "templateId=" + templateId + ", "
        + "fieldCount=" + fieldCount + ", "
        + "definitions=" + definitions
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof NetFlowV9Template) {
      NetFlowV9Template that = (NetFlowV9Template) o;
      return this.templateId == that.templateId()
          && this.fieldCount == that.fieldCount()
          && this.definitions.equals(that.definitions());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= templateId;
    h$ *= 1000003;
    h$ ^= fieldCount;
    h$ *= 1000003;
    h$ ^= definitions.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy