I have read that in proto3, they have removed the ability to know if a field is set or not. As a solution, I have read in several sites, you can embed your primitives into a wrapper message.
As you can see here, protobuf has some internal packages under wrappers.proto in order to do exactly what I need.
I could copy and paste that wrappers.proto file into my system, and import it from another file A.proto to use them.
However I wonder:
Would it be a good choice to use their internal wrappers?
If so, could I import directly from their jar instead of creating my own copy of the file?
(I tried to import using their jar directory, but did not work)
import "lib/protobuf-java-3.5.0.jar/com/protobuf/wrappers.proto"; --> fails
while:
import "resources/protoBeans/wrappers.proto"; --> my own copy --> works