write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
oprot.writeFieldBegin(_MODULE_FIELD_DESC);
oprot.writeI32(this.module);
oprot.writeFieldEnd();
if (this.name != null) {
oprot.writeFieldBegin(_NAME_FIELD_DESC);
oprot.writeBinary(this.name);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(_MODE_FIELD_DESC);
oprot.writeI32(this.mode);
oprot.writeFieldEnd();
if (this.value != null) {
oprot.writeFieldBegin(_VALUE_FIELD_DESC);
this.value?.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}