Update compiler/README.md with nano codegen commandline

This commit is contained in:
Xiao Hang 2015-02-26 11:19:59 -08:00
parent 62fb1d2c8a
commit 6f0b21ee92
1 changed files with 5 additions and 0 deletions

View File

@ -31,3 +31,8 @@ To compile a proto file and generate Java interfaces out of the service definiti
$ protoc --plugin=protoc-gen-java_rpc=build/binaries/java_pluginExecutable/java_plugin \
--java_rpc_out="$OUTPUT_FILE" --proto_path="$DIR_OF_PROTO_FILE" "$PROTO_FILE"
```
To generate Java interfaces with protobuf nano:
```
$ protoc --plugin=protoc-gen-java_rpc=build/binaries/java_pluginExecutable/java_plugin \
--java_rpc_out=nano=true:"$OUTPUT_FILE" --proto_path="$DIR_OF_PROTO_FILE" "$PROTO_FILE"
```