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);
  if (this.id != null) {
    oprot.writeFieldBegin(_ID_FIELD_DESC);
    oprot.writeBinary(this.id);
    oprot.writeFieldEnd();
  }
  if (this.command != null) {
    oprot.writeFieldBegin(_COMMAND_FIELD_DESC);
    oprot.writeBinary(this.command);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldBegin(_RESULT_FIELD_DESC);
  oprot.writeI32(this.result);
  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.writeFieldStop();
  oprot.writeStructEnd();
}