write method

void write(
  1. TProtocol oprot
)
override

Writes the objects out to the oprot protocol.

Implementation

write(TProtocol oprot) {
  validate();

  oprot.writeStructBegin(_STRUCT_DESC);
  oprot.writeFieldBegin(_JOB_TYPE_FIELD_DESC);
  oprot.writeI32(this.job_type);
  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 (this.para != null) {
    oprot.writeFieldBegin(_PARA_FIELD_DESC);
    this.para?.write(oprot);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}