Class NativeProtobufSchema
java.lang.Object
tools.jackson.dataformat.protobuf.schema.NativeProtobufSchema
Helper class used for wrapping a "raw" protobuf schema (as read by
"protoparser" library); and used
as input for creating specific
ProtobufSchema to use for
reading/writing protobuf encoded content-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected final Stringprotected final Collection<com.squareup.protoparser.TypeElement> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNativeProtobufSchema(com.squareup.protoparser.ProtoFile input) protectedNativeProtobufSchema(String name, Collection<com.squareup.protoparser.TypeElement> types) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.squareup.protoparser.MessageElementprotected com.squareup.protoparser.MessageElement_messageType(String name) static NativeProtobufSchemaconstruct(com.squareup.protoparser.ProtoFile input) static NativeProtobufSchemaconstruct(String name, Collection<com.squareup.protoparser.TypeElement> types) Factory method for constructing Jackson-digestible schema using the first Message type defined in the underlying native protobuf schema.Factory method for constructing Jackson-digestible schema using specified Message type from native protobuf schema.booleanhasMessageType(String messageTypeName) Method for checking whether specified message type is defined by the native schematoString()
-
Field Details
-
_name
-
_nativeTypes
-
_messageNames
-
-
Constructor Details
-
NativeProtobufSchema
protected NativeProtobufSchema(com.squareup.protoparser.ProtoFile input) -
NativeProtobufSchema
-
-
Method Details
-
construct
-
construct
public static NativeProtobufSchema construct(String name, Collection<com.squareup.protoparser.TypeElement> types) -
hasMessageType
Method for checking whether specified message type is defined by the native schema -
forType
Factory method for constructing Jackson-digestible schema using specified Message type from native protobuf schema. -
forFirstType
Factory method for constructing Jackson-digestible schema using the first Message type defined in the underlying native protobuf schema. -
getMessageNames
-
toString
-
toString
-
_firstMessageType
protected com.squareup.protoparser.MessageElement _firstMessageType() -
_messageType
-