Package org.graylog.plugins.netflow.v9
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 Summary
Modifier and TypeMethodDescriptionaddAllPackets
(Iterable<? extends com.google.protobuf.ByteString> values) the raw packets as received.addPackets
(com.google.protobuf.ByteString value) the raw packets as received.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) the raw packets as received.clone()
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 itboolean
containsTemplates
(int key) all applicable templates that are referenced by the packetsstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Deprecated.Deprecated.Deprecated.int
there is only one option template, but we need to know its template id, so a map is the easiest way to find itthere is only one option template, but we need to know its template id, so a map is the easiest way to find itcom.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 itcom.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 itcom.google.protobuf.ByteString
getPackets
(int index) the raw packets as received.int
the raw packets as received.List<com.google.protobuf.ByteString>
the raw packets as received.Deprecated.int
all applicable templates that are referenced by the packetsall applicable templates that are referenced by the packetscom.google.protobuf.ByteString
getTemplatesOrDefault
(int key, com.google.protobuf.ByteString defaultValue) all applicable templates that are referenced by the packetscom.google.protobuf.ByteString
getTemplatesOrThrow
(int key) all applicable templates that are referenced by the packetsprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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 itputAllTemplates
(Map<Integer, com.google.protobuf.ByteString> values) all applicable templates that are referenced by the packetsputOptionTemplate
(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 itputTemplates
(int key, com.google.protobuf.ByteString value) all applicable templates that are referenced by the packetsremoveOptionTemplate
(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 itremoveTemplates
(int key) all applicable templates that are referenced by the packetssetPackets
(int index, com.google.protobuf.ByteString value) the raw packets as received.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
clearField
public NetFlowV9Journal.RawNetflowV9.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
clearOneof
public NetFlowV9Journal.RawNetflowV9.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceNetFlowV9Journal.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 interfaceNetFlowV9Journal.RawNetflowV9OrBuilder
-
getTemplates
Deprecated.UsegetTemplatesMap()
instead.- Specified by:
getTemplates
in interfaceNetFlowV9Journal.RawNetflowV9OrBuilder
-
getTemplatesMap
all applicable templates that are referenced by the packets
map<uint32, bytes> templates = 1;
- Specified by:
getTemplatesMap
in interfaceNetFlowV9Journal.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 interfaceNetFlowV9Journal.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 interfaceNetFlowV9Journal.RawNetflowV9OrBuilder
-
clearTemplates
-
removeTemplates
all applicable templates that are referenced by the packets
map<uint32, bytes> templates = 1;
-
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 interfaceNetFlowV9Journal.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 interfaceNetFlowV9Journal.RawNetflowV9OrBuilder
-
getOptionTemplate
Deprecated.UsegetOptionTemplateMap()
instead.- Specified by:
getOptionTemplate
in interfaceNetFlowV9Journal.RawNetflowV9OrBuilder
-
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 interfaceNetFlowV9Journal.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 interfaceNetFlowV9Journal.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 interfaceNetFlowV9Journal.RawNetflowV9OrBuilder
-
clearOptionTemplate
-
removeOptionTemplate
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.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
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 interfaceNetFlowV9Journal.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 interfaceNetFlowV9Journal.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 interfaceNetFlowV9Journal.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
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
mergeUnknownFields
public final NetFlowV9Journal.RawNetflowV9.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-