write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.result != null) {
oprot.writeFieldBegin(_RESULT_FIELD_DESC);
this.result?.write(oprot);
oprot.writeFieldEnd();
}
if (isSetStats()) {
if (this.stats != null) {
oprot.writeFieldBegin(_STATS_FIELD_DESC);
this.stats?.write(oprot);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}