mirror of https://github.com/grpc/grpc-java.git
Add java_package proto option for portability
Some protoc Java environments have a package to put all proto namespaces under, since proto namespaces aren't aligned with Java packages.
This commit is contained in:
parent
c6c0a3bf69
commit
3af5add7b2
|
@ -1,6 +1,7 @@
|
|||
syntax = "proto2";
|
||||
|
||||
package io.grpc.examples;
|
||||
option java_package = "io.grpc.examples";
|
||||
option java_outer_classname = "Math";
|
||||
|
||||
message DivArgs {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
syntax = "proto2";
|
||||
|
||||
package io.grpc.examples;
|
||||
option java_package = "io.grpc.examples";
|
||||
|
||||
// Protocol type definitions
|
||||
message StockRequest {
|
||||
|
|
Loading…
Reference in New Issue