Re: [protobuf] Firestore document reference & protobuf

2021-05-26 Thread 'Adam Cozzette' via Protocol Buffers
We're not really affiliated with the Firestore project so I'm afraid we don't have the expertise to answer your question. You might want to try this mailing list instead: https://groups.google.com/g/firebase-talk On Wed, May 26, 2021 at 9:47 AM Gil Salomon wrote: > Firestore currently have docum

[protobuf] Firestore document reference & protobuf

2021-05-26 Thread Gil Salomon
Firestore currently have document reference which is a lot like DB foreign key. However I was wondering how does it play with protobuf? can I add a reference to a message stored in a firestore document inside a protobuf message and upload it to firestore so it will show there as reference? I sea

Re: [protobuf] Programmatically work with .proto file

2021-05-26 Thread 'Adam Cozzette' via Protocol Buffers
You can parse the .proto file into a serialized FileDescriptorSet like this: protoc --include_source_info --descriptor_set_out=descriptors.pb The --include_source_info flag will cause the descriptors to include more information about the original .proto file, including the locations of declaratio

[protobuf] Programmatically work with .proto file

2021-05-26 Thread Timo L.
Hey, I have to write a proxy that translates message flows from a custom message format to protobuf. There is quite a lot messages to be converted and hence I want to create a proto file generator, preferably in Python (Others possible as well). With generator I do not mean the protoc compiler, b