Top Fields Constructors Methods
com.fasterxml.jackson.dataformat.protobuf.schema

public Class ProtobufMessage

extends Object
Class Inheritance
Imports
java.util.*, com.fasterxml.jackson.core.SerializableString

Field Summary

Modifier and TypeField and Description
protected final ProtobufField[]
_fields

Array that contains actual fields, in declaration order.

protected ProtobufField[]
_fieldsById

Arrays of fields indexed by id (offset by _idOffset), if fields ids are in contiguous (enough) range.

protected FieldLookup
protected ProtobufField
protected int
protected final String
private static final int
private static final ProtobufField[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ProtobufMessage
public ProtobufField
field(String name)

public ProtobufField
field(int id)

public ProtobufField
public Iterable<ProtobufField>
public String
public ProtobufField
public ProtobufField
public int
public String
public void
init(ProtobufField first)

Method called right after finishing actual construction of this message definition.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_fieldsback to summary
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.

_fieldsByIdback to summary
protected ProtobufField[] _fieldsById

Arrays of fields indexed by id (offset by _idOffset), if fields ids are in contiguous (enough) range.

_fieldsByNameback to summary
protected FieldLookup _fieldsByName
_firstFieldback to summary
protected ProtobufField _firstField
_idOffsetback to summary
protected int _idOffset
_nameback to summary
protected final String _name
MAX_FIELD_INDEX_SIZEback to summary
private static final int MAX_FIELD_INDEX_SIZE
NO_FIELDSback to summary
private static final ProtobufField[] NO_FIELDS

Constructor Detail

ProtobufMessageback to summary
public ProtobufMessage(String name, ProtobufField[] fields)

Method Detail

bogusMessageback to summary
public static ProtobufMessage bogusMessage(String desc)
fieldback to summary
public ProtobufField field(String name)
fieldback to summary
public ProtobufField field(int id)
fieldback to summary
public ProtobufField field(SerializableString name)
fieldsback to summary
public Iterable<ProtobufField> fields()
fieldsAsStringback to summary
public String fieldsAsString()
firstFieldback to summary
public ProtobufField firstField()
firstIfback to summary
public ProtobufField firstIf(String name)
getFieldCountback to summary
public int getFieldCount()
getNameback to summary
public String getName()
initback to summary
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.