mirror of https://github.com/grpc/grpc-java.git
Update compiler/README.md with nano codegen commandline
This commit is contained in:
parent
62fb1d2c8a
commit
6f0b21ee92
|
@ -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"
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue