Class ProtobufSchemaParser

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