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

org.graylog.plugins.netflow.v5.AutoValue_NetFlowV5Header Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.netflow.v5;

import javax.annotation.Generated;

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

  private final int version;

  private final int count;

  private final long sysUptime;

  private final long unixSecs;

  private final long unixNsecs;

  private final long flowSequence;

  private final int engineType;

  private final int engineId;

  private final int samplingMode;

  private final int samplingInterval;

  AutoValue_NetFlowV5Header(
      int version,
      int count,
      long sysUptime,
      long unixSecs,
      long unixNsecs,
      long flowSequence,
      int engineType,
      int engineId,
      int samplingMode,
      int samplingInterval) {
    this.version = version;
    this.count = count;
    this.sysUptime = sysUptime;
    this.unixSecs = unixSecs;
    this.unixNsecs = unixNsecs;
    this.flowSequence = flowSequence;
    this.engineType = engineType;
    this.engineId = engineId;
    this.samplingMode = samplingMode;
    this.samplingInterval = samplingInterval;
  }

  @Override
  public int version() {
    return version;
  }

  @Override
  public int count() {
    return count;
  }

  @Override
  public long sysUptime() {
    return sysUptime;
  }

  @Override
  public long unixSecs() {
    return unixSecs;
  }

  @Override
  public long unixNsecs() {
    return unixNsecs;
  }

  @Override
  public long flowSequence() {
    return flowSequence;
  }

  @Override
  public int engineType() {
    return engineType;
  }

  @Override
  public int engineId() {
    return engineId;
  }

  @Override
  public int samplingMode() {
    return samplingMode;
  }

  @Override
  public int samplingInterval() {
    return samplingInterval;
  }

  @Override
  public String toString() {
    return "NetFlowV5Header{"
        + "version=" + version + ", "
        + "count=" + count + ", "
        + "sysUptime=" + sysUptime + ", "
        + "unixSecs=" + unixSecs + ", "
        + "unixNsecs=" + unixNsecs + ", "
        + "flowSequence=" + flowSequence + ", "
        + "engineType=" + engineType + ", "
        + "engineId=" + engineId + ", "
        + "samplingMode=" + samplingMode + ", "
        + "samplingInterval=" + samplingInterval
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof NetFlowV5Header) {
      NetFlowV5Header that = (NetFlowV5Header) o;
      return this.version == that.version()
          && this.count == that.count()
          && this.sysUptime == that.sysUptime()
          && this.unixSecs == that.unixSecs()
          && this.unixNsecs == that.unixNsecs()
          && this.flowSequence == that.flowSequence()
          && this.engineType == that.engineType()
          && this.engineId == that.engineId()
          && this.samplingMode == that.samplingMode()
          && this.samplingInterval == that.samplingInterval();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= version;
    h$ *= 1000003;
    h$ ^= count;
    h$ *= 1000003;
    h$ ^= (int) ((sysUptime >>> 32) ^ sysUptime);
    h$ *= 1000003;
    h$ ^= (int) ((unixSecs >>> 32) ^ unixSecs);
    h$ *= 1000003;
    h$ ^= (int) ((unixNsecs >>> 32) ^ unixNsecs);
    h$ *= 1000003;
    h$ ^= (int) ((flowSequence >>> 32) ^ flowSequence);
    h$ *= 1000003;
    h$ ^= engineType;
    h$ *= 1000003;
    h$ ^= engineId;
    h$ *= 1000003;
    h$ ^= samplingMode;
    h$ *= 1000003;
    h$ ^= samplingInterval;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy