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 ProtobufMessage |
ProtobufParser._currentMessage
The innermost Object type ("message" in proto lingo) we are handling.
|
protected ProtobufMessage |
ProtobufGenerator._currMessage
Type of protobuf message that is currently being output: usually
matches write context, but for arrays may indicate "parent" of array.
|
protected ProtobufMessage |
ProtobufWriteContext._message
Definition of the closest Object that this context relates to;
either object for the field (for Message/Object types), or its
parent (for Array types)
|
protected ProtobufMessage |
ProtobufReadContext._messageType
Type of current context.
|
protected static ProtobufMessage |
ProtobufGenerator.UNKNOWN_MESSAGE
This is used as a placeholder for case where we don't have an actual message
to use, but know (from context) that one is expected.
|
Modifier and Type | Method and Description |
---|---|
ProtobufMessage |
ProtobufWriteContext.getMessageType() |
ProtobufMessage |
ProtobufReadContext.getMessageType() |
Modifier and Type | Method and Description |
---|---|
ProtobufWriteContext |
ProtobufWriteContext.createChildObjectContext(ProtobufMessage type) |
ProtobufReadContext |
ProtobufReadContext.createChildObjectContext(ProtobufMessage messageType,
ProtobufField f,
int endOffset) |
static ProtobufWriteContext |
ProtobufWriteContext.createRootContext(ProtobufMessage msg) |
protected void |
ProtobufReadContext.reset(ProtobufMessage messageType,
int type,
int endOffset) |
void |
ProtobufReadContext.setMessageType(ProtobufMessage mt) |
Constructor and Description |
---|
ProtobufReadContext(ProtobufReadContext parent,
ProtobufMessage messageType,
int type,
int endOffset) |
ProtobufWriteContext(int type,
ProtobufWriteContext parent,
ProtobufMessage msg) |
Modifier and Type | Field and Description |
---|---|
protected ProtobufMessage |
ProtobufSchema._rootType |
protected ProtobufMessage |
ProtobufField.messageType
For main type of
FieldType.MESSAGE , reference to actual
message type definition. |
Modifier and Type | Method and Description |
---|---|
protected ProtobufMessage |
TypeResolver._resolve(com.squareup.protoparser.MessageElement rawType) |
static ProtobufMessage |
ProtobufMessage.bogusMessage(String desc) |
ProtobufMessage |
ProtobufField.getMessageType() |
ProtobufMessage |
ProtobufSchema.getRootType()
Accessor for getting the default
ProtobufMessage type that
is usually the root type for this schema. |
static ProtobufMessage |
TypeResolver.resolve(Collection<com.squareup.protoparser.TypeElement> nativeTypes,
com.squareup.protoparser.MessageElement rawType)
Main entry method for public API, for resolving specific root-level type and other
types it depends on.
|
protected ProtobufMessage |
TypeResolver.resolve(TypeResolver parent,
com.squareup.protoparser.MessageElement rawType) |
Modifier and Type | Method and Description |
---|---|
protected void |
TypeResolver.addResolvedMessageType(String name,
ProtobufMessage toResolve) |
void |
ProtobufField.assignMessageType(ProtobufMessage msgType) |
Constructor and Description |
---|
ProtobufField(com.squareup.protoparser.FieldElement nativeField,
FieldType type,
ProtobufMessage msg,
ProtobufEnum et) |
ProtobufField(com.squareup.protoparser.FieldElement nativeField,
ProtobufMessage msg) |
ProtobufSchema(NativeProtobufSchema src,
ProtobufMessage rootType) |
Copyright © 2021 FasterXML. All rights reserved.