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:
Eric Anderson 2015-02-23 10:09:47 -08:00
parent c6c0a3bf69
commit 3af5add7b2
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
syntax = "proto2";
package io.grpc.examples;
option java_package = "io.grpc.examples";
option java_outer_classname = "Math";
message DivArgs {

View File

@ -1,6 +1,7 @@
syntax = "proto2";
package io.grpc.examples;
option java_package = "io.grpc.examples";
// Protocol type definitions
message StockRequest {