compile

fun compile(filename: String, proto: String): String

编译proto文件为desc文件

Return

String, desc文件的路径

Parameters

filename

文件名,示例:Student

proto

proto文件内容,示例:"syntax = \"proto3\";\n\nmessage Student {\n\tstring id = 1;\n\tstring name = 2;\n}"