[protocolbuffers] serialize / deserialize extension values