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(_YEAR_FIELD_DESC);
  oprot.writeI16(this.year);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_MONTH_FIELD_DESC);
  oprot.writeByte(this.month);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_DAY_FIELD_DESC);
  oprot.writeByte(this.day);
  oprot.writeFieldEnd();
  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();
}