In my C++ grpc server, I'm trying to pack another proto (e.t. deviceStatus) 
into the Status proto but I cannot find 'Any' in the c++ API, nor any 
examples about how to do this in C++

This is how I do it in Java...
com.google.rpc.Status build = com.google.rpc.Status.newBuilder() 
.setCode(grpcErrorCode.getNumber()) .setMessage(dex.getMessage()) 
.addDetails(Any.pack(deviceStatus)) .build(); 

Thanks for any pointers...

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/11a263cf-69da-44d5-b8f2-7f0e3f7fc79an%40googlegroups.com.

Reply via email to