On Sat, Oct 21, 2017 at 4:39 PM, Antonia Elsen <[email protected]> wrote:
> What is the proper way to include well-known types in proto files? > I'm hoping to use FieldMasks and Any among others. > So far I haven't had any luck. > I've tried importing the proto files and using the namespace in the type > name; > > ex: > import "include/google/protobuf/field_mask.proto" > ... > google.protobuf.FieldMask field_mask = 1; > > > with no success. > Should importing the well-known type be necessary, or are they included > with the protoc compiler? > You can follow the example proto in protobuf repo: https://github.com/google/protobuf/blob/master/examples/addressbook.proto#L13 Follow this readme file to build the example: https://github.com/google/protobuf/tree/master/examples > > -- > 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. > 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. For more options, visit https://groups.google.com/d/optout.
