Package | Description |
---|---|
com.fasterxml.jackson.dataformat.protobuf | |
com.fasterxml.jackson.dataformat.protobuf.schema |
Contains functionality for generating internal Protobuf schema instances
from external protoc resources.
|
Modifier and Type | Field and Description |
---|---|
protected ProtobufField |
ProtobufParser._currentField |
protected ProtobufField |
ProtobufGenerator._currField
Field to be output next; set when
JsonToken.FIELD_NAME is written,
cleared once value has been written |
protected ProtobufField |
ProtobufWriteContext._field
Field within either current object (for Object context); or, parent
field (for Array)
|
protected ProtobufField |
ProtobufReadContext._field
For array contexts: field that defines type of array values.
|
protected static ProtobufField |
ProtobufGenerator.UNKNOWN_FIELD
This instance is used as a placeholder for cases where we do not know
actual field and want to simply skip over any values that caller tries
to write for it.
|
Modifier and Type | Method and Description |
---|---|
ProtobufField |
ProtobufWriteContext.getField() |
ProtobufField |
ProtobufReadContext.getField() |
Modifier and Type | Method and Description |
---|---|
ProtobufReadContext |
ProtobufReadContext.createChildArrayContext(ProtobufField f) |
ProtobufReadContext |
ProtobufReadContext.createChildArrayContext(ProtobufField f,
int endOffset) |
ProtobufReadContext |
ProtobufReadContext.createChildObjectContext(ProtobufMessage messageType,
ProtobufField f,
int endOffset) |
void |
ProtobufWriteContext.setField(ProtobufField f) |
Modifier and Type | Field and Description |
---|---|
protected ProtobufField[] |
ProtobufMessage._fields
Array that contains actual fields, in declaration order.
|
protected ProtobufField[] |
ProtobufMessage._fieldsById
Arrays of fields indexed by id (offset by
_idOffset ), if
fields ids are in contiguous (enough) range. |
protected ProtobufField |
ProtobufMessage._firstField |
ProtobufField |
ProtobufField.next
Link to next field within message definition; used for efficient traversal.
|
Modifier and Type | Method and Description |
---|---|
ProtobufField |
ProtobufMessage.field(int id) |
ProtobufField |
ProtobufMessage.field(com.fasterxml.jackson.core.SerializableString name) |
ProtobufField |
ProtobufMessage.field(String name) |
abstract ProtobufField |
FieldLookup.findField(String key) |
ProtobufField |
ProtobufMessage.firstField() |
ProtobufField |
ProtobufMessage.firstIf(String name) |
ProtobufField |
ProtobufField.nextIf(String nameToMatch) |
ProtobufField |
ProtobufField.nextOrThisIf(int idToMatch) |
static ProtobufField |
ProtobufField.unknownField() |
Modifier and Type | Method and Description |
---|---|
Iterable<ProtobufField> |
ProtobufMessage.fields() |
Modifier and Type | Method and Description |
---|---|
void |
ProtobufField.assignNext(ProtobufField n) |
int |
ProtobufField.compareTo(ProtobufField other) |
static FieldLookup |
FieldLookup.construct(ProtobufField[] fields) |
void |
ProtobufMessage.init(ProtobufField first)
Method called right after finishing actual construction of this
message definition.
|
Constructor and Description |
---|
ProtobufMessage(String name,
ProtobufField[] fields) |
Copyright © 2017 FasterXML. All rights reserved.