Class NetFlowV9Journal.RawNetflowV9

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.graylog.plugins.netflow.v9.NetFlowV9Journal.RawNetflowV9
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, NetFlowV9Journal.RawNetflowV9OrBuilder
Enclosing class:
NetFlowV9Journal

public static final class NetFlowV9Journal.RawNetflowV9 extends com.google.protobuf.GeneratedMessageV3 implements NetFlowV9Journal.RawNetflowV9OrBuilder
Protobuf type org.graylog.plugins.netflow.v9.RawNetflowV9
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getTemplatesCount

      public int getTemplatesCount()
      Description copied from interface: NetFlowV9Journal.RawNetflowV9OrBuilder
       all applicable templates that are referenced by the packets
       
      map<uint32, bytes> templates = 1;
      Specified by:
      getTemplatesCount in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • containsTemplates

      public boolean containsTemplates(int key)
       all applicable templates that are referenced by the packets
       
      map<uint32, bytes> templates = 1;
      Specified by:
      containsTemplates in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getTemplates

      @Deprecated public Map<Integer,com.google.protobuf.ByteString> getTemplates()
      Deprecated.
      Use getTemplatesMap() instead.
      Specified by:
      getTemplates in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getTemplatesMap

      public Map<Integer,com.google.protobuf.ByteString> getTemplatesMap()
       all applicable templates that are referenced by the packets
       
      map<uint32, bytes> templates = 1;
      Specified by:
      getTemplatesMap in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getTemplatesOrDefault

      public com.google.protobuf.ByteString getTemplatesOrDefault(int key, com.google.protobuf.ByteString defaultValue)
       all applicable templates that are referenced by the packets
       
      map<uint32, bytes> templates = 1;
      Specified by:
      getTemplatesOrDefault in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getTemplatesOrThrow

      public com.google.protobuf.ByteString getTemplatesOrThrow(int key)
       all applicable templates that are referenced by the packets
       
      map<uint32, bytes> templates = 1;
      Specified by:
      getTemplatesOrThrow in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getOptionTemplateCount

      public int getOptionTemplateCount()
      Description copied from interface: NetFlowV9Journal.RawNetflowV9OrBuilder
       there is only one option template, but we need to know its template id, so a map is the easiest way to find it
       
      map<uint32, bytes> optionTemplate = 2;
      Specified by:
      getOptionTemplateCount in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • containsOptionTemplate

      public boolean containsOptionTemplate(int key)
       there is only one option template, but we need to know its template id, so a map is the easiest way to find it
       
      map<uint32, bytes> optionTemplate = 2;
      Specified by:
      containsOptionTemplate in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getOptionTemplate

      @Deprecated public Map<Integer,com.google.protobuf.ByteString> getOptionTemplate()
      Deprecated.
      Specified by:
      getOptionTemplate in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getOptionTemplateMap

      public Map<Integer,com.google.protobuf.ByteString> getOptionTemplateMap()
       there is only one option template, but we need to know its template id, so a map is the easiest way to find it
       
      map<uint32, bytes> optionTemplate = 2;
      Specified by:
      getOptionTemplateMap in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getOptionTemplateOrDefault

      public com.google.protobuf.ByteString getOptionTemplateOrDefault(int key, com.google.protobuf.ByteString defaultValue)
       there is only one option template, but we need to know its template id, so a map is the easiest way to find it
       
      map<uint32, bytes> optionTemplate = 2;
      Specified by:
      getOptionTemplateOrDefault in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getOptionTemplateOrThrow

      public com.google.protobuf.ByteString getOptionTemplateOrThrow(int key)
       there is only one option template, but we need to know its template id, so a map is the easiest way to find it
       
      map<uint32, bytes> optionTemplate = 2;
      Specified by:
      getOptionTemplateOrThrow in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getPacketsList

      public List<com.google.protobuf.ByteString> getPacketsList()
       the raw packets as received. it might contain templates as well, but even if it does the above fields will have that information, too
       in case we previously buffered flows, this may contain more than one flow. in situations when we have all templates already
       this will be a single packet sent by the exporter
       
      repeated bytes packets = 3;
      Specified by:
      getPacketsList in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getPacketsCount

      public int getPacketsCount()
       the raw packets as received. it might contain templates as well, but even if it does the above fields will have that information, too
       in case we previously buffered flows, this may contain more than one flow. in situations when we have all templates already
       this will be a single packet sent by the exporter
       
      repeated bytes packets = 3;
      Specified by:
      getPacketsCount in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • getPackets

      public com.google.protobuf.ByteString getPackets(int index)
       the raw packets as received. it might contain templates as well, but even if it does the above fields will have that information, too
       in case we previously buffered flows, this may contain more than one flow. in situations when we have all templates already
       this will be a single packet sent by the exporter
       
      repeated bytes packets = 3;
      Specified by:
      getPackets in interface NetFlowV9Journal.RawNetflowV9OrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static NetFlowV9Journal.RawNetflowV9 parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetFlowV9Journal.RawNetflowV9 parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetFlowV9Journal.RawNetflowV9 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetFlowV9Journal.RawNetflowV9 parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetFlowV9Journal.RawNetflowV9 parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NetFlowV9Journal.RawNetflowV9 parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NetFlowV9Journal.RawNetflowV9 parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NetFlowV9Journal.RawNetflowV9 parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NetFlowV9Journal.RawNetflowV9 parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NetFlowV9Journal.RawNetflowV9 parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public NetFlowV9Journal.RawNetflowV9.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static NetFlowV9Journal.RawNetflowV9.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected NetFlowV9Journal.RawNetflowV9.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static NetFlowV9Journal.RawNetflowV9 getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<NetFlowV9Journal.RawNetflowV9> parser()
    • getParserForType

      public com.google.protobuf.Parser<NetFlowV9Journal.RawNetflowV9> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public NetFlowV9Journal.RawNetflowV9 getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder