In particular I'm trying to successfully return a payment object to the bitcoin client, this line of code:
required bytes serialized_payment_details = 4;
in the PaymentRequest message of .proto is required but I don't know how to generate the serialised payment details. Can someone tell me how to do it?