Class NetFlowV9Journal.RawNetflowV9.Builder

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

public static final class NetFlowV9Journal.RawNetflowV9.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder> implements NetFlowV9Journal.RawNetflowV9OrBuilder
Protobuf type org.graylog.plugins.netflow.v9.RawNetflowV9
  • Method Details

    • 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.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • setField

      public NetFlowV9Journal.RawNetflowV9.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • clearField

      public NetFlowV9Journal.RawNetflowV9.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • clearOneof

      public NetFlowV9Journal.RawNetflowV9.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • setRepeatedField

      public NetFlowV9Journal.RawNetflowV9.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • addRepeatedField

      public NetFlowV9Journal.RawNetflowV9.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • mergeFrom

      public NetFlowV9Journal.RawNetflowV9.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • mergeFrom

      public NetFlowV9Journal.RawNetflowV9.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
      Throws:
      IOException
    • 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
    • clearTemplates

      public NetFlowV9Journal.RawNetflowV9.Builder clearTemplates()
    • removeTemplates

      public NetFlowV9Journal.RawNetflowV9.Builder removeTemplates(int key)
       all applicable templates that are referenced by the packets
       
      map<uint32, bytes> templates = 1;
    • getMutableTemplates

      @Deprecated public Map<Integer,com.google.protobuf.ByteString> getMutableTemplates()
      Deprecated.
      Use alternate mutation accessors instead.
    • putTemplates

      public NetFlowV9Journal.RawNetflowV9.Builder putTemplates(int key, com.google.protobuf.ByteString value)
       all applicable templates that are referenced by the packets
       
      map<uint32, bytes> templates = 1;
    • putAllTemplates

      public NetFlowV9Journal.RawNetflowV9.Builder putAllTemplates(Map<Integer,com.google.protobuf.ByteString> values)
       all applicable templates that are referenced by the packets
       
      map<uint32, bytes> templates = 1;
    • 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
    • clearOptionTemplate

      public NetFlowV9Journal.RawNetflowV9.Builder clearOptionTemplate()
    • removeOptionTemplate

      public NetFlowV9Journal.RawNetflowV9.Builder removeOptionTemplate(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;
    • getMutableOptionTemplate

      @Deprecated public Map<Integer,com.google.protobuf.ByteString> getMutableOptionTemplate()
      Deprecated.
      Use alternate mutation accessors instead.
    • putOptionTemplate

      public NetFlowV9Journal.RawNetflowV9.Builder putOptionTemplate(int key, com.google.protobuf.ByteString value)
       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;
    • putAllOptionTemplate

      public NetFlowV9Journal.RawNetflowV9.Builder putAllOptionTemplate(Map<Integer,com.google.protobuf.ByteString> values)
       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;
    • 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
    • setPackets

      public NetFlowV9Journal.RawNetflowV9.Builder setPackets(int index, com.google.protobuf.ByteString value)
       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;
    • addPackets

      public NetFlowV9Journal.RawNetflowV9.Builder addPackets(com.google.protobuf.ByteString value)
       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;
    • addAllPackets

      public NetFlowV9Journal.RawNetflowV9.Builder addAllPackets(Iterable<? extends com.google.protobuf.ByteString> values)
       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;
    • clearPackets

       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;
    • setUnknownFields

      public final NetFlowV9Journal.RawNetflowV9.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
    • mergeUnknownFields

      public final NetFlowV9Journal.RawNetflowV9.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>