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.writeFieldStop();
  oprot.writeStructEnd();
}