write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.dir != null) {
oprot.writeFieldBegin(_DIR_FIELD_DESC);
this.dir?.write(oprot);
oprot.writeFieldEnd();
}
if (this.addr != null) {
oprot.writeFieldBegin(_ADDR_FIELD_DESC);
this.addr?.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(_ROLE_FIELD_DESC);
oprot.writeI32(this.role);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}