code: func GetBytesChaincodeActionPayload(cap *peer.ChaincodeActionPayload) ([]byte, error) {
  	capBytes, err := proto.Marshal(cap)
  	return capBytes, errors.Wrap(err, "error marshaling ChaincodeActionPayload")
  }
docs: // GetBytesChaincodeActionPayload get the bytes of ChaincodeActionPayload from
  // the message