@Override
 public void clear() {
   setResponseCodeIsSet(false);
   this.responseCode = 0;
   setTransactionIDIsSet(false);
   this.transactionID = 0;
   this.description = null;
 }
 public T_QueryOrderResponse(int responseCode, long transactionID, String description) {
   this();
   this.responseCode = responseCode;
   setResponseCodeIsSet(true);
   this.transactionID = transactionID;
   setTransactionIDIsSet(true);
   this.description = description;
 }
  public void read(TProtocol iprot) throws TException {
    TField field;
    iprot.readStructBegin();
    while (true) {
      field = iprot.readFieldBegin();
      if (field.type == TType.STOP) {
        break;
      }
      switch (field.id) {
        case 1: // RESPONSE_CODE
          if (field.type == TType.I32) {
            this.responseCode = iprot.readI32();
            setResponseCodeIsSet(true);
          } else {
            TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 2: // TRANSACTION_ID
          if (field.type == TType.I64) {
            this.transactionID = iprot.readI64();
            setTransactionIDIsSet(true);
          } else {
            TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 3: // DESCRIPTION
          if (field.type == TType.STRING) {
            this.description = iprot.readString();
          } else {
            TProtocolUtil.skip(iprot, field.type);
          }
          break;
        default:
          TProtocolUtil.skip(iprot, field.type);
      }
      iprot.readFieldEnd();
    }
    iprot.readStructEnd();

    // check for required fields of primitive type, which can't be checked in the validate method
    validate();
  }
 public T_QueryOrderResponse setResponseCode(int responseCode) {
   this.responseCode = responseCode;
   setResponseCodeIsSet(true);
   return this;
 }