write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (isSetJob_id()) {
oprot.writeFieldBegin(_JOB_ID_FIELD_DESC);
oprot.writeI32(this.job_id);
oprot.writeFieldEnd();
}
if (isSetJob_desc()) {
if (this.job_desc != null) {
oprot.writeFieldBegin(_JOB_DESC_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.job_desc?.length));
for (var elem50 in this.job_desc ?? []) {
elem50.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (isSetTask_desc()) {
if (this.task_desc != null) {
oprot.writeFieldBegin(_TASK_DESC_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.task_desc?.length));
for (var elem51 in this.task_desc ?? []) {
elem51.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (isSetRecovered_job_num()) {
oprot.writeFieldBegin(_RECOVERED_JOB_NUM_FIELD_DESC);
oprot.writeI32(this.recovered_job_num);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}