[protobuf] Re: Protobuf parsing

2023-08-07 Thread Sumit Patil
endl; cout << watch.DebugString() << endl; Pod pod; JsonStringToMessage( watch.object().raw(), ); cout << "Pod" << endl; cout << pod.DebugString() << endl; } On Monday, 7 August, 2023 at 2:14:29 pm UTC+5:30 Sumit Patil wrote: > > I am receivin

[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

[protobuf] Re: Using google proto as a on wire data format

2023-02-26 Thread Sumit Patil
Note - lang = CPP On Sunday, 26 February, 2023 at 10:38:40 pm UTC+5:30 Sumit Patil wrote: > Hii everyone, > I am trying to use google proto to transfer data from client to server and > vice versa. > I am not getting, how I can implement such thing. > I am thinking of these st

[protobuf] Using google proto as a on wire data format

2023-02-26 Thread Sumit Patil
Hii everyone, I am trying to use google proto to transfer data from client to server and vice versa. I am not getting, how I can implement such thing. I am thinking of these steps: * Client 1. Set proto message's fields 2. Serialize to byte array 3. encrypt 4. Send from client * Server 1.