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(_HOUR_FIELD_DESC);
  oprot.writeByte(this.hour);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_MINUTE_FIELD_DESC);
  oprot.writeByte(this.minute);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_SEC_FIELD_DESC);
  oprot.writeByte(this.sec);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_MICROSEC_FIELD_DESC);
  oprot.writeI32(this.microsec);
  oprot.writeFieldEnd();
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}