Class ProtobufMessage
java.lang.Object
tools.jackson.dataformat.protobuf.schema.ProtobufMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ProtobufField[]Array that contains actual fields, in declaration order.protected ProtobufField[]Arrays of fields indexed by id (offset by_idOffset), if fields ids are in contiguous (enough) range.protected FieldLookupprotected ProtobufFieldprotected intprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProtobufMessagebogusMessage(String desc) field(int id) field(tools.jackson.core.SerializableString name) fields()intgetName()voidinit(ProtobufField first) Method called right after finishing actual construction of this message definition.
-
Field Details
-
_name
-
_fields
Array that contains actual fields, in declaration order. Note that while array is assigned in constructor, the contents may be lazily added within, but they must be completed beforeinit(ProtobufField)is called. -
_fieldsByName
-
_fieldsById
Arrays of fields indexed by id (offset by_idOffset), if fields ids are in contiguous (enough) range. -
_firstField
-
_idOffset
protected int _idOffset
-
-
Constructor Details
-
ProtobufMessage
-
-
Method Details
-
init
Method called right after finishing actual construction of this message definition. Needed because assignment to fields is dynamic, and setup is NOT complete when constructor exits. -
bogusMessage
-
firstField
-
firstIf
-
getFieldCount
public int getFieldCount() -
getName
-
field
-
field
-
field
-
fieldsAsString
-
fields
-