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()booleancontainsOptionTemplate(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 itbooleancontainsTemplates(int key) all applicable templates that are referenced by the packetsstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.Deprecated.Deprecated.intthere 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.ByteStringgetOptionTemplateOrDefault(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.ByteStringgetOptionTemplateOrThrow(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.ByteStringgetPackets(int index) the raw packets as received.intthe raw packets as received.List<com.google.protobuf.ByteString>the raw packets as received.Deprecated.intall applicable templates that are referenced by the packetsall applicable templates that are referenced by the packetscom.google.protobuf.ByteStringgetTemplatesOrDefault(int key, com.google.protobuf.ByteString defaultValue) all applicable templates that are referenced by the packetscom.google.protobuf.ByteStringgetTemplatesOrThrow(int key) all applicable templates that are referenced by the packetsprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
setField
public NetFlowV9Journal.RawNetflowV9.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
clearField
public NetFlowV9Journal.RawNetflowV9.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
clearOneof
public NetFlowV9Journal.RawNetflowV9.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
addRepeatedField
public NetFlowV9Journal.RawNetflowV9.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetFlowV9Journal.RawNetflowV9.Builder>- Throws:
IOException
-
getTemplatesCount
public int getTemplatesCount()Description copied from interface:NetFlowV9Journal.RawNetflowV9OrBuilderall applicable templates that are referenced by the packets
map<uint32, bytes> templates = 1;- Specified by:
getTemplatesCountin interfaceNetFlowV9Journal.RawNetflowV9OrBuilder
-
containsTemplates
public boolean containsTemplates(int key) all applicable templates that are referenced by the packets
map<uint32, bytes> templates = 1;- Specified by:
containsTemplatesin interfaceNetFlowV9Journal.RawNetflowV9OrBuilder
-
getTemplates
Deprecated.UsegetTemplatesMap()instead.- Specified by:
getTemplatesin interfaceNetFlowV9Journal.RawNetflowV9OrBuilder
-
getTemplatesMap
all applicable templates that are referenced by the packets
map<uint32, bytes> templates = 1;- Specified by:
getTemplatesMapin 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:
getTemplatesOrDefaultin 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:
getTemplatesOrThrowin 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.RawNetflowV9OrBuilderthere 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:
getOptionTemplateCountin 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:
containsOptionTemplatein interfaceNetFlowV9Journal.RawNetflowV9OrBuilder
-
getOptionTemplate
Deprecated.UsegetOptionTemplateMap()instead.- Specified by:
getOptionTemplatein 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:
getOptionTemplateMapin 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:
getOptionTemplateOrDefaultin 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:
getOptionTemplateOrThrowin 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:
getPacketsListin 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:
getPacketsCountin 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:
getPacketsin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-
mergeUnknownFields
public final NetFlowV9Journal.RawNetflowV9.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NetFlowV9Journal.RawNetflowV9.Builder>
-