protocolbuffers.github.io icon indicating copy to clipboard operation
protocolbuffers.github.io copied to clipboard

Java Wrapper class should be more obious

Open VirusDEAD opened this issue 1 year ago • 1 comments

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

VirusDEAD avatar Jan 25 '24 10:01 VirusDEAD

Thanks for the feedback. I'll see what I can do to make this more clear.

Logofile avatar Jan 26 '24 21:01 Logofile

Docs were updated in this PR.

Logofile avatar Aug 16 '24 18:08 Logofile