write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.key != null) {
oprot.writeFieldBegin(_KEY_FIELD_DESC);
oprot.writeBinary(this.key);
oprot.writeFieldEnd();
}
if (this.value != null) {
oprot.writeFieldBegin(_VALUE_FIELD_DESC);
oprot.writeBinary(this.value);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}