public void Write(TProtocol oprot) {
TStruct struc = new TStruct("execute_cql3_query_result");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (this.__isset.success) {
if (Success != null) {
field.Name = "Success";
field.Type = TType.Struct;
field.ID = 0;
oprot.WriteFieldBegin(field);
Success.Write(oprot);
oprot.WriteFieldEnd();
}
} else if (this.__isset.ire) {
if (Ire != null) {
field.Name = "Ire";
field.Type = TType.Struct;
field.ID = 1;
oprot.WriteFieldBegin(field);
Ire.Write(oprot);
oprot.WriteFieldEnd();
}
} else if (this.__isset.ue) {
if (Ue != null) {
field.Name = "Ue";
field.Type = TType.Struct;
field.ID = 2;
oprot.WriteFieldBegin(field);
Ue.Write(oprot);
oprot.WriteFieldEnd();
}
} else if (this.__isset.te) {
if (Te != null) {
field.Name = "Te";
field.Type = TType.Struct;
field.ID = 3;
oprot.WriteFieldBegin(field);
Te.Write(oprot);
oprot.WriteFieldEnd();
}
} else if (this.__isset.sde) {
if (Sde != null) {
field.Name = "Sde";
field.Type = TType.Struct;
field.ID = 4;
oprot.WriteFieldBegin(field);
Sde.Write(oprot);
oprot.WriteFieldEnd();
}
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}