write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.from_host != null) {
oprot.writeFieldBegin(_FROM_HOST_FIELD_DESC);
this.from_host?.write(oprot);
oprot.writeFieldEnd();
}
if (this.to_host != null) {
oprot.writeFieldBegin(_TO_HOST_FIELD_DESC);
this.to_host?.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}