public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("PrivilegeGrantInfo");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Privilege != null && __isset.privilege) {
field.Name = "privilege";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Privilege);
oprot.WriteFieldEnd();
}
if (__isset.createTime) {
field.Name = "createTime";
field.Type = TType.I32;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteI32(CreateTime);
oprot.WriteFieldEnd();
}
if (Grantor != null && __isset.grantor) {
field.Name = "grantor";
field.Type = TType.String;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteString(Grantor);
oprot.WriteFieldEnd();
}
if (__isset.grantorType) {
field.Name = "grantorType";
field.Type = TType.I32;
field.ID = 4;
oprot.WriteFieldBegin(field);
oprot.WriteI32((int)GrantorType);
oprot.WriteFieldEnd();
}
if (__isset.grantOption) {
field.Name = "grantOption";
field.Type = TType.Bool;
field.ID = 5;
oprot.WriteFieldBegin(field);
oprot.WriteBool(GrantOption);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}