How to fill p4info for Set forwarding request

Hello ,
I am using cpp implementation , can you please help me

  1. for GetForwardingPipelineConfigRequest , p4info is what we get as response . So how to fetch the response (config.v1.P4Info p4info).
  2. Similarly for SetForwardingPipelineConfigRequest , p4info is passed as request . so how to send this as a request.
  3. I was thinking of to print this p4info , but i was not able to print it . What can be the correct way to print p4info