Protocol-version specific collection decode/encode