Class ProtobufSchemaParser
- java.lang.Object
-
- io.apicurio.registry.serde.protobuf.ProtobufSchemaParser
-
- All Implemented Interfaces:
SchemaParser<ProtobufSchema>
public class ProtobufSchemaParser extends Object implements SchemaParser<ProtobufSchema>
- Author:
- Fabian Martinez
-
-
Constructor Summary
Constructors Constructor Description ProtobufSchemaParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.apicurio.registry.types.ArtifactType
artifactType()
ProtobufSchema
parseSchema(byte[] rawSchema)
byte[]
serializeSchema(com.squareup.wire.schema.internal.parser.ProtoFileElement protoFileElement)
com.squareup.wire.schema.internal.parser.ProtoFileElement
toProtoFileElement(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
This method converts the Descriptor to a ProtoFileElement that allows to get a textual representation .proto file
-
-
-
Method Detail
-
artifactType
public io.apicurio.registry.types.ArtifactType artifactType()
- Specified by:
artifactType
in interfaceSchemaParser<ProtobufSchema>
- See Also:
SchemaParser.artifactType()
-
parseSchema
public ProtobufSchema parseSchema(byte[] rawSchema)
- Specified by:
parseSchema
in interfaceSchemaParser<ProtobufSchema>
- See Also:
SchemaParser.parseSchema(byte[])
-
toProtoFileElement
public com.squareup.wire.schema.internal.parser.ProtoFileElement toProtoFileElement(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
This method converts the Descriptor to a ProtoFileElement that allows to get a textual representation .proto file- Parameters:
fileDescriptor
-- Returns:
- textual protobuf representation
-
serializeSchema
public byte[] serializeSchema(com.squareup.wire.schema.internal.parser.ProtoFileElement protoFileElement)
-
-