[protobuf] Unable to locate absl/log/absl_check.h while compiling using g++ a protoc-generated C++ file.

2023-08-07 Thread Aditya Gurajada
HI, folks -- - Platform: Linux Ubuntu 22.04.2 LTS - g++ : g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 - protoc: libprotoc 23.4 - protocol buffers: v23.4 I am very stuck in trying to use protoc to generate Python bindings using --python_out argument. I have also installed

[protobuf] Re: Protobuf parsing

2023-08-07 Thread Sumit Patil
if( eventType == "ADDED" || eventType == "MODIFIED" ) { WatchEvent watch; watch.set_type( eventType ); string object = responseJson["object"].dump(); watch.mutable_object()->set_raw(object); cout << "Message" << endl; cout << watch.DebugString() << endl; Pod pod;

[protobuf] Protobuf parsing

2023-08-07 Thread Sumit Patil
I am receiving a WatchEvent message and the value stored in this kubernetes proto is - 1. Type - for ex. event such as modified or added or deleted 2. Object - raw bytes of actual object. Can be any object. I want to convert those raw bytes to actual objects such as pod. Note that I