public void Write(TProtocol oprot) {
TStruct struc = new TStruct("emailNote_result");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (this.__isset.userException) {
if (UserException != null) {
field.Name = "UserException";
field.Type = TType.Struct;
field.ID = 1;
oprot.WriteFieldBegin(field);
UserException.Write(oprot);
oprot.WriteFieldEnd();
}
} else if (this.__isset.notFoundException) {
if (NotFoundException != null) {
field.Name = "NotFoundException";
field.Type = TType.Struct;
field.ID = 2;
oprot.WriteFieldBegin(field);
NotFoundException.Write(oprot);
oprot.WriteFieldEnd();
}
} else if (this.__isset.systemException) {
if (SystemException != null) {
field.Name = "SystemException";
field.Type = TType.Struct;
field.ID = 3;
oprot.WriteFieldBegin(field);
SystemException.Write(oprot);
oprot.WriteFieldEnd();
}
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}