write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
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(_TYPE_FIELD_DESC);
oprot.writeI32(this.type);
oprot.writeFieldEnd();
if (this.paras != null) {
oprot.writeFieldBegin(_PARAS_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRING, this.paras?.length));
for (var elem43 in this.paras ?? []) {
oprot.writeString(elem43);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(_STATUS_FIELD_DESC);
oprot.writeI32(this.status);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_START_TIME_FIELD_DESC);
oprot.writeI64(this.start_time);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_STOP_TIME_FIELD_DESC);
oprot.writeI64(this.stop_time);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_CODE_FIELD_DESC);
oprot.writeI32(this.code);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}