Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get a proto file to reference a message defined in another proto?

I am working with a gRPC service project that was generated by Visual Studio. I have two proto files located in the same "Protos" directory. I have one proto the has an import for the other proto file. It appears to find the file but I am not able to reference any of the messages from the other. When I do I get a "blahblah" is not defined error. I have taken some screenshots of the situation. Any help would be very much appreciated!

enter image description here

enter image description here

enter image description here

enter image description here

like image 467
user3383579 Avatar asked Oct 22 '25 16:10

user3383579


1 Answers

They are in different package spaces; try thing.ThingRequest, or .thing.ThingRequest (the leading . means "absolute", like a uri starting with /)

like image 124
Marc Gravell Avatar answered Oct 24 '25 06:10

Marc Gravell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!