write method
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);
this.id?.write(oprot);
oprot.writeFieldEnd();
}
if (this.name != null) {
oprot.writeFieldBegin(_NAME_FIELD_DESC);
oprot.writeBinary(this.name);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}