Re: [protobuf] Compile protobuf to use Java primitive classes instead of well-known types

2018-01-05 Thread Renatas M
Hi Josh, thank you a lot for informative answer. 2018 m. sausis 4 d., ketvirtadienis 15:34:37 UTC, Josh Humphries rašė: > > What you're asking for is not currently do-able. There is an existing > request to add this functionality though: > https://github.com/google/protobuf/issues/2055 > > In

Re: [protobuf] Compile protobuf to use Java primitive classes instead of well-known types

2018-01-04 Thread Josh Humphries
What you're asking for is not currently do-able. There is an existing request to add this functionality though: https://github.com/google/protobuf/issues/2055 In the meantime, you can accomplish this using a custom plugin that is run in addition to the normal java code-gen. Plugins can generate

[protobuf] Compile protobuf to use Java primitive classes instead of well-known types

2018-01-04 Thread Renatas M
Lets say I have test.proto file: syntax = "proto3"; option java_package = "testing"; option java_outer_classname = "Test_v1"; import "google/protobuf/wrappers.proto"; message TestMessage { .google.protobuf.Int32Value integerField = 1; } If I