/** Returns serialized for a given protocol. */ public int serializedSize(BinaryProtocol protocol) { return protocol.stringSize(name) + 4; }