if (struct.isSetAttributes()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetUsername()) {
oprot.writeString(struct.username);
}
if (struct.isSetAttributes()) {
{
oprot.writeI32(struct.attributes.size());
for (Map.Entry<String, String> _iter5 : struct.attributes.entrySet())