Class ProtobufSchemaParser

  • All Implemented Interfaces:
    SchemaParser<io.apicurio.registry.utils.protobuf.schema.ProtobufSchema>

    public class ProtobufSchemaParser
    extends Object
    implements SchemaParser<io.apicurio.registry.utils.protobuf.schema.ProtobufSchema>
    Author:
    Fabian Martinez
    • Constructor Detail

      • ProtobufSchemaParser

        public ProtobufSchemaParser()
    • Method Detail

      • 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)