| Modifier and Type | Field 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 |
| protected FieldLookup | |
| protected ProtobufField | |
| protected int | |
| protected final String | |
| private static final int | |
| private static final ProtobufField[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ProtobufMessage | |
| public ProtobufField | |
| public ProtobufField | |
| public ProtobufField | |
| public Iterable | |
| 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. |
| _fields | back 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 | |
| _fieldsById | back to summary |
|---|---|
| protected ProtobufField[] _fieldsById Arrays of fields indexed by id (offset by | |
| _fieldsByName | back to summary |
|---|---|
| protected FieldLookup _fieldsByName | |
| _firstField | back to summary |
|---|---|
| protected ProtobufField _firstField | |
| _idOffset | back to summary |
|---|---|
| protected int _idOffset | |
| _name | back to summary |
|---|---|
| protected final String _name | |
| MAX_FIELD_INDEX_SIZE | back to summary |
|---|---|
| private static final int MAX_FIELD_INDEX_SIZE | |
| NO_FIELDS | back to summary |
|---|---|
| private static final ProtobufField[] NO_FIELDS | |
| ProtobufMessage | back to summary |
|---|---|
| public ProtobufMessage(String name, ProtobufField[] fields) | |
| bogusMessage | back to summary |
|---|---|
| public static ProtobufMessage bogusMessage(String desc) | |
| field | back to summary |
|---|---|
| public ProtobufField field(String name) | |
| field | back to summary |
|---|---|
| public ProtobufField field(int id) | |
| field | back to summary |
|---|---|
| public ProtobufField field(SerializableString name) | |
| fields | back to summary |
|---|---|
| public Iterable | |
| fieldsAsString | back to summary |
|---|---|
| public String fieldsAsString() | |
| firstField | back to summary |
|---|---|
| public ProtobufField firstField() | |
| firstIf | back to summary |
|---|---|
| public ProtobufField firstIf(String name) | |
| getFieldCount | back to summary |
|---|---|
| public int getFieldCount() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| init | back 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. | |