how to use protos in grpc/src/proto

68 views
Skip to first unread message

Viktor Khristenko

unread,
Dec 7, 2021, 3:52:11 AM12/7/21
to grpc.io
Hello

Before emailing here, I tried to ask the same question on SO:

I'm mainly interested in how to use grpc/src/proto files? They do not come as part of the binary packages, afaik. Also building from source, I do not see how they get exported... except for in-source builds...

I basically want to integrate channelz, health check interfaces into my systems. i'm using c++ mainly.

any suggestions would be greatly appreciated!
thanks a lot!

VK

Christian Rivasseau

unread,
Dec 7, 2021, 4:18:38 AM12/7/21
to Viktor Khristenko, grpc.io
Hello Viktor,

Whether there are packages or not for GRPC protos depends on the language. For C++ I've had to
generate them myself into our own source tree.

Check out the GRPC source $somewhere and then something like that
/usr/local/bin/protoc --proto_path=$somewhere/src/proto --grpc_out=. --cpp_out=.
    --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` grpc/health/v1/health.proto

etc etc

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/156a2f95-3f93-4d7d-ab98-953fd63ee9aan%40googlegroups.com.


--



The influencer marketing platform for lifestyle brands
CHRISTIAN RIVASSEAU
CTO
+33 6 67 35 26 74
lefty.io LinkedIn

Viktor Khristenko

unread,
Dec 7, 2021, 4:30:29 AM12/7/21
to Christian Rivasseau, grpc.io
sounds good! 

thank u!

VK
Reply all
Reply to author
Forward
0 new messages