public class NativeProtobufSchema extends Object
ProtobufSchema
to use for
reading/writing protobuf encoded contentModifier and Type | Field and Description |
---|---|
protected String[] |
_messageNames |
protected String |
_name |
protected Collection<com.squareup.protoparser.TypeElement> |
_nativeTypes |
Modifier | Constructor and Description |
---|---|
protected |
NativeProtobufSchema(com.squareup.protoparser.ProtoFile input) |
protected |
NativeProtobufSchema(String name,
Collection<com.squareup.protoparser.TypeElement> types) |
Modifier and Type | Method and Description |
---|---|
protected com.squareup.protoparser.MessageElement |
_firstMessageType() |
protected com.squareup.protoparser.MessageElement |
_messageType(String name) |
static NativeProtobufSchema |
construct(com.squareup.protoparser.ProtoFile input) |
static NativeProtobufSchema |
construct(String name,
Collection<com.squareup.protoparser.TypeElement> types) |
ProtobufSchema |
forFirstType()
Factory method for constructing Jackson-digestible schema using the first
Message type defined in the underlying native protobuf schema.
|
ProtobufSchema |
forType(String messageTypeName)
Factory method for constructing Jackson-digestible schema using specified Message type
from native protobuf schema.
|
List<String> |
getMessageNames() |
boolean |
hasMessageType(String messageTypeName)
Method for checking whether specified message type is defined by
the native schema
|
String |
toString() |
String |
toString(String name) |
protected final String _name
protected final Collection<com.squareup.protoparser.TypeElement> _nativeTypes
protected volatile String[] _messageNames
protected NativeProtobufSchema(com.squareup.protoparser.ProtoFile input)
protected NativeProtobufSchema(String name, Collection<com.squareup.protoparser.TypeElement> types)
public static NativeProtobufSchema construct(com.squareup.protoparser.ProtoFile input)
public static NativeProtobufSchema construct(String name, Collection<com.squareup.protoparser.TypeElement> types)
public boolean hasMessageType(String messageTypeName)
public ProtobufSchema forType(String messageTypeName)
public ProtobufSchema forFirstType()
protected com.squareup.protoparser.MessageElement _firstMessageType()
protected com.squareup.protoparser.MessageElement _messageType(String name)
Copyright © 2020 FasterXML. All rights reserved.