oprot.writeBitSet(optionals, 7);
if (struct.isSetRoleName()) {
oprot.writeString(struct.roleName);
}
if (struct.isSetPrincipalName()) {
oprot.writeString(struct.principalName);
}
if (struct.isSetPrincipalType()) {
oprot.writeI32(struct.principalType.getValue());
}
if (struct.isSetGrantOption()) {