write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
oprot.writeFieldBegin(_CODE_FIELD_DESC);
oprot.writeI32(this.code);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_SPACE_ID_FIELD_DESC);
oprot.writeI32(this.space_id);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_JOB_ID_FIELD_DESC);
oprot.writeI32(this.job_id);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_TASK_ID_FIELD_DESC);
oprot.writeI32(this.task_id);
oprot.writeFieldEnd();
if (isSetStats()) {
if (this.stats != null) {
oprot.writeFieldBegin(_STATS_FIELD_DESC);
this.stats?.write(oprot);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}