We ended up making Java lite a separate implementation, and it's controlled by a protoc flag rather than a .proto file option (that option is now ignored for Java). See here <https://github.com/protocolbuffers/protobuf/blob/master/java/lite.md> for some more details on how to use Java lite.
On Thu, Jul 4, 2019 at 4:03 AM Harald Pehl <[email protected]> wrote: > Is it possible to generate Java source code for proto3 w/o reflection > usage. That is the generated code must not depend on reflection. I see > there's the optimize_for > option. But setting it to LITE_RUNTIME did not have any effect. > > Are there other ways to control whether reflection is used for generated > Java code? > > Thanks > Harald > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/protobuf. > To view this discussion on the web visit > https://groups.google.com/d/msgid/protobuf/4d99c2d6-3764-41f4-8fc1-b91da3f65f35%40googlegroups.com > <https://groups.google.com/d/msgid/protobuf/4d99c2d6-3764-41f4-8fc1-b91da3f65f35%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/CADqAXr6f02o4BQo%2BaDHq7bOsJ_o_zAbxqY%3DQrbtpgbC9eQQn5A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
