protocolbuffers.github.io
protocolbuffers.github.io copied to clipboard
Java Wrapper class should be more obious
Compiler Invocation The protocol buffer compiler produces Java output when invoked with the --java_out= command-line flag. The parameter to the --java_out= option is the directory where you want the compiler to write your Java output. For each .proto file input, the compiler creates a wrapper .java file containing a Java class which represents the .proto file itself.
This paragraph seems to be about the location of the output files, but is also introduces the wrapper class. This is very important. Many real case scenarios are: my_proto.proto { message MyProto {} }
which will lead to my.package.MyProtoOuterClass.MyProto
classes
The Java package name is chosen as described under Packages, below.
Link doesn't lead anywhere