public void write(TProtocol oprot) throws TException {
            validate();

            oprot.writeStructBegin(STRUCT_DESC);
            if (this.key != null) {
                oprot.writeFieldBegin(KEY_FIELD_DESC);
                oprot.writeString(this.key);
                oprot.writeFieldEnd();
            }
            oprot.writeFieldStop();
            oprot.writeStructEnd();
        }