I am using protobuf java, with following .proto
// service1.proto
option java_package = "package";
option java_outer_classname = "Proto1";
message M {
... // some definition
}
and
// service2.proto
option java_package = "package";
option java_outer_classname = "Proto2";
message M {
... // some different definition
}
while compile, error is thrown in service2.proto
saying that "M" is already defined in service1.proto
But from package and generated code they should be package.Proto1.M
and package.Proto2.M
, is this conflict?