赞
踩
$ apt-get install protobuf-compiler
$
$ protoc--help
Usage: protoc [OPTION] PROTO_FILES
Parse PROTO_FILESandgenerate output based on the options given:-IPATH, --proto_path=PATH Specify the directory in which to search forimports. May be specified multiple times;
directories will be searchedin order. If notgiven, the current working directoryisused.--version Show version info andexit.-h, --help Show this text andexit.--encode=MESSAGE_TYPE Read a text-format message of the given typefrom standard input and write it inbinary
to standard output. The message type must
be definedin PROTO_FILES ortheir imports.--decode=MESSAGE_TYPE Read a binary message of the given type fromstandard inputand write it intext format
to standard output. The message type must
be definedin PROTO_FILES ortheir imports.--decode_raw Read an arbitrary protocol message fromstandard inputand w
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。