java.lang.Object
tools.jackson.dataformat.protobuf.schema.ProtobufMessage

public class ProtobufMessage extends Object
  • Field Details

    • _name

      protected final String _name
    • _fields

      protected final ProtobufField[] _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 before init(ProtobufField) is called.
    • _fieldsByName

      protected FieldLookup _fieldsByName
    • _fieldsById

      protected ProtobufField[] _fieldsById
      Arrays of fields indexed by id (offset by _idOffset), if fields ids are in contiguous (enough) range.
    • _firstField

      protected ProtobufField _firstField
    • _idOffset

      protected int _idOffset
  • Constructor Details

  • Method Details

    • init

      public void init(ProtobufField first)
      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

      public static ProtobufMessage bogusMessage(String desc)
    • firstField

      public ProtobufField firstField()
    • firstIf

      public ProtobufField firstIf(String name)
    • getFieldCount

      public int getFieldCount()
    • getName

      public String getName()
    • field

      public ProtobufField field(String name)
    • field

      public ProtobufField field(int id)
    • field

      public ProtobufField field(tools.jackson.core.SerializableString name)
    • fieldsAsString

      public String fieldsAsString()
    • fields

      public Iterable<ProtobufField> fields()