Yeah, I would like to avoid using protoc if possible, but the reference pages to protobufs are a bit confusing to me, so figuring out how to manually parse has been an issue for me.
On Tuesday, June 11, 2019 at 12:17:03 PM UTC-4, Adam Cozzette wrote: > > Either way should work, you could either shell out to protoc at runtime or > do that beforehand. Alternatively you could avoid calling protoc at all but > just look at its implementation and do the same thing it does to parse the > .proto file. > > On Tue, Jun 11, 2019 at 9:07 AM Brett Smith <[email protected] > <javascript:>> wrote: > >> Is that something you can do during runtime or does protoc need to parse >> the file beforehand? >> >> On Tuesday, June 11, 2019 at 9:43:49 AM UTC-4, Brett Smith wrote: >>> >>> Hello all, I'm brand new to protobufs and I've been following the >>> AddressBook example given by Google ( >>> https://developers.google.com/protocol-buffers/docs/cpptutorial). I've >>> been able to read and write protobufs but I've been wondering if it is >>> possible to parse a proto file without compiling it beforehand and if you >>> are still able to access the elements of that file. If it is possible, >>> would someone be able to give me some assistance on how to do this? I have >>> attached the proto file that I have been working with for reference. >>> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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/2d38938e-0187-4b4e-9fec-09b50871f6d7%40googlegroups.com >> >> <https://groups.google.com/d/msgid/protobuf/2d38938e-0187-4b4e-9fec-09b50871f6d7%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/0dff2d70-b021-4931-b719-7593d275bce1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
