Subversion Repositories SmartDukaan

Rev

Rev 5553 | Rev 5676 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5553 Rev 5593
Line 820... Line 820...
820
 
820
 
821
    public List<Order> getReceivePendingOrders(long storeId) throws org.apache.thrift.TException;
821
    public List<Order> getReceivePendingOrders(long storeId) throws org.apache.thrift.TException;
822
 
822
 
823
    public List<Order> getReceivedAtStoreOrders(long storeId) throws org.apache.thrift.TException;
823
    public List<Order> getReceivedAtStoreOrders(long storeId) throws org.apache.thrift.TException;
824
 
824
 
-
 
825
    /**
-
 
826
     * Accepts appropriate order for an item in a given billingWarehouse. Usually
-
 
827
     * invoked while scanning IN of items.
-
 
828
     * 
-
 
829
     * @param itemId
-
 
830
     * @param quantity
-
 
831
     * @param fulfilmentWarehouseId
-
 
832
     * @param billingWarehouseId
-
 
833
     */
-
 
834
    public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException;
-
 
835
 
825
  }
836
  }
826
 
837
 
827
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
838
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
828
 
839
 
829
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
840
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1064... Line 1075...
1064
 
1075
 
1065
    public void getReceivePendingOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReceivePendingOrders_call> resultHandler) throws org.apache.thrift.TException;
1076
    public void getReceivePendingOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReceivePendingOrders_call> resultHandler) throws org.apache.thrift.TException;
1066
 
1077
 
1067
    public void getReceivedAtStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReceivedAtStoreOrders_call> resultHandler) throws org.apache.thrift.TException;
1078
    public void getReceivedAtStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReceivedAtStoreOrders_call> resultHandler) throws org.apache.thrift.TException;
1068
 
1079
 
-
 
1080
    public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrderForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
1081
 
1069
  }
1082
  }
1070
 
1083
 
1071
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1084
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1072
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1085
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1073
      public Factory() {}
1086
      public Factory() {}
Line 4137... Line 4150...
4137
        return result.success;
4150
        return result.success;
4138
      }
4151
      }
4139
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReceivedAtStoreOrders failed: unknown result");
4152
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReceivedAtStoreOrders failed: unknown result");
4140
    }
4153
    }
4141
 
4154
 
-
 
4155
    public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
-
 
4156
    {
-
 
4157
      send_acceptOrderForItem(itemId, quantity, fulfilmentWarehouseId, billingWarehouseId);
-
 
4158
      recv_acceptOrderForItem();
-
 
4159
    }
-
 
4160
 
-
 
4161
    public void send_acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
-
 
4162
    {
-
 
4163
      acceptOrderForItem_args args = new acceptOrderForItem_args();
-
 
4164
      args.setItemId(itemId);
-
 
4165
      args.setQuantity(quantity);
-
 
4166
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
-
 
4167
      args.setBillingWarehouseId(billingWarehouseId);
-
 
4168
      sendBase("acceptOrderForItem", args);
-
 
4169
    }
-
 
4170
 
-
 
4171
    public void recv_acceptOrderForItem() throws org.apache.thrift.TException
-
 
4172
    {
-
 
4173
      acceptOrderForItem_result result = new acceptOrderForItem_result();
-
 
4174
      receiveBase(result, "acceptOrderForItem");
-
 
4175
      return;
-
 
4176
    }
-
 
4177
 
4142
  }
4178
  }
4143
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4179
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4144
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4180
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4145
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4181
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4146
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4182
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 8355... Line 8391...
8355
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8391
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8356
        return (new Client(prot)).recv_getReceivedAtStoreOrders();
8392
        return (new Client(prot)).recv_getReceivedAtStoreOrders();
8357
      }
8393
      }
8358
    }
8394
    }
8359
 
8395
 
-
 
8396
    public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<acceptOrderForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
8397
      checkReady();
-
 
8398
      acceptOrderForItem_call method_call = new acceptOrderForItem_call(itemId, quantity, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
8399
      this.___currentMethod = method_call;
-
 
8400
      ___manager.call(method_call);
-
 
8401
    }
-
 
8402
 
-
 
8403
    public static class acceptOrderForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8404
      private long itemId;
-
 
8405
      private long quantity;
-
 
8406
      private long fulfilmentWarehouseId;
-
 
8407
      private long billingWarehouseId;
-
 
8408
      public acceptOrderForItem_call(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<acceptOrderForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
8409
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8410
        this.itemId = itemId;
-
 
8411
        this.quantity = quantity;
-
 
8412
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
-
 
8413
        this.billingWarehouseId = billingWarehouseId;
-
 
8414
      }
-
 
8415
 
-
 
8416
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8417
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("acceptOrderForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8418
        acceptOrderForItem_args args = new acceptOrderForItem_args();
-
 
8419
        args.setItemId(itemId);
-
 
8420
        args.setQuantity(quantity);
-
 
8421
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
-
 
8422
        args.setBillingWarehouseId(billingWarehouseId);
-
 
8423
        args.write(prot);
-
 
8424
        prot.writeMessageEnd();
-
 
8425
      }
-
 
8426
 
-
 
8427
      public void getResult() throws org.apache.thrift.TException {
-
 
8428
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8429
          throw new IllegalStateException("Method call not finished!");
-
 
8430
        }
-
 
8431
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8432
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8433
        (new Client(prot)).recv_acceptOrderForItem();
-
 
8434
      }
-
 
8435
    }
-
 
8436
 
8360
  }
8437
  }
8361
 
8438
 
8362
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8439
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8363
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8440
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8364
    public Processor(I iface) {
8441
    public Processor(I iface) {
Line 8488... Line 8565...
8488
      processMap.put("getAllVerificationAgents", new getAllVerificationAgents());
8565
      processMap.put("getAllVerificationAgents", new getAllVerificationAgents());
8489
      processMap.put("getAllAttributesForOrderId", new getAllAttributesForOrderId());
8566
      processMap.put("getAllAttributesForOrderId", new getAllAttributesForOrderId());
8490
      processMap.put("setOrderAttributeForTransaction", new setOrderAttributeForTransaction());
8567
      processMap.put("setOrderAttributeForTransaction", new setOrderAttributeForTransaction());
8491
      processMap.put("getReceivePendingOrders", new getReceivePendingOrders());
8568
      processMap.put("getReceivePendingOrders", new getReceivePendingOrders());
8492
      processMap.put("getReceivedAtStoreOrders", new getReceivedAtStoreOrders());
8569
      processMap.put("getReceivedAtStoreOrders", new getReceivedAtStoreOrders());
-
 
8570
      processMap.put("acceptOrderForItem", new acceptOrderForItem());
8493
      return processMap;
8571
      return processMap;
8494
    }
8572
    }
8495
 
8573
 
8496
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
8574
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
8497
      public createTransaction() {
8575
      public createTransaction() {
Line 10800... Line 10878...
10800
        result.success = iface.getReceivedAtStoreOrders(args.storeId);
10878
        result.success = iface.getReceivedAtStoreOrders(args.storeId);
10801
        return result;
10879
        return result;
10802
      }
10880
      }
10803
    }
10881
    }
10804
 
10882
 
-
 
10883
    private static class acceptOrderForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrderForItem_args> {
-
 
10884
      public acceptOrderForItem() {
-
 
10885
        super("acceptOrderForItem");
-
 
10886
      }
-
 
10887
 
-
 
10888
      protected acceptOrderForItem_args getEmptyArgsInstance() {
-
 
10889
        return new acceptOrderForItem_args();
-
 
10890
      }
-
 
10891
 
-
 
10892
      protected acceptOrderForItem_result getResult(I iface, acceptOrderForItem_args args) throws org.apache.thrift.TException {
-
 
10893
        acceptOrderForItem_result result = new acceptOrderForItem_result();
-
 
10894
        iface.acceptOrderForItem(args.itemId, args.quantity, args.fulfilmentWarehouseId, args.billingWarehouseId);
-
 
10895
        return result;
-
 
10896
      }
-
 
10897
    }
-
 
10898
 
10805
  }
10899
  }
10806
 
10900
 
10807
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
10901
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
10808
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
10902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
10809
 
10903
 
Line 99094... Line 99188...
99094
      sb.append(")");
99188
      sb.append(")");
99095
      return sb.toString();
99189
      return sb.toString();
99096
    }
99190
    }
99097
 
99191
 
99098
    public void validate() throws org.apache.thrift.TException {
99192
    public void validate() throws org.apache.thrift.TException {
-
 
99193
      // check for required fields
-
 
99194
    }
-
 
99195
 
-
 
99196
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
99197
      try {
-
 
99198
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
99199
      } catch (org.apache.thrift.TException te) {
-
 
99200
        throw new java.io.IOException(te);
-
 
99201
      }
-
 
99202
    }
-
 
99203
 
-
 
99204
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
99205
      try {
-
 
99206
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
99207
      } catch (org.apache.thrift.TException te) {
-
 
99208
        throw new java.io.IOException(te);
-
 
99209
      }
-
 
99210
    }
-
 
99211
 
-
 
99212
  }
-
 
99213
 
-
 
99214
  public static class acceptOrderForItem_args implements org.apache.thrift.TBase<acceptOrderForItem_args, acceptOrderForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
99215
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrderForItem_args");
-
 
99216
 
-
 
99217
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
99218
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
99219
    private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
99220
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
99221
 
-
 
99222
    private long itemId; // required
-
 
99223
    private long quantity; // required
-
 
99224
    private long fulfilmentWarehouseId; // required
-
 
99225
    private long billingWarehouseId; // required
-
 
99226
 
-
 
99227
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
99228
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
99229
      ITEM_ID((short)1, "itemId"),
-
 
99230
      QUANTITY((short)2, "quantity"),
-
 
99231
      FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId"),
-
 
99232
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId");
-
 
99233
 
-
 
99234
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
99235
 
-
 
99236
      static {
-
 
99237
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
99238
          byName.put(field.getFieldName(), field);
-
 
99239
        }
-
 
99240
      }
-
 
99241
 
-
 
99242
      /**
-
 
99243
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
99244
       */
-
 
99245
      public static _Fields findByThriftId(int fieldId) {
-
 
99246
        switch(fieldId) {
-
 
99247
          case 1: // ITEM_ID
-
 
99248
            return ITEM_ID;
-
 
99249
          case 2: // QUANTITY
-
 
99250
            return QUANTITY;
-
 
99251
          case 3: // FULFILMENT_WAREHOUSE_ID
-
 
99252
            return FULFILMENT_WAREHOUSE_ID;
-
 
99253
          case 4: // BILLING_WAREHOUSE_ID
-
 
99254
            return BILLING_WAREHOUSE_ID;
-
 
99255
          default:
-
 
99256
            return null;
-
 
99257
        }
-
 
99258
      }
-
 
99259
 
-
 
99260
      /**
-
 
99261
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
99262
       * if it is not found.
-
 
99263
       */
-
 
99264
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
99265
        _Fields fields = findByThriftId(fieldId);
-
 
99266
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
99267
        return fields;
-
 
99268
      }
-
 
99269
 
-
 
99270
      /**
-
 
99271
       * Find the _Fields constant that matches name, or null if its not found.
-
 
99272
       */
-
 
99273
      public static _Fields findByName(String name) {
-
 
99274
        return byName.get(name);
-
 
99275
      }
-
 
99276
 
-
 
99277
      private final short _thriftId;
-
 
99278
      private final String _fieldName;
-
 
99279
 
-
 
99280
      _Fields(short thriftId, String fieldName) {
-
 
99281
        _thriftId = thriftId;
-
 
99282
        _fieldName = fieldName;
-
 
99283
      }
-
 
99284
 
-
 
99285
      public short getThriftFieldId() {
-
 
99286
        return _thriftId;
-
 
99287
      }
-
 
99288
 
-
 
99289
      public String getFieldName() {
-
 
99290
        return _fieldName;
-
 
99291
      }
-
 
99292
    }
-
 
99293
 
-
 
99294
    // isset id assignments
-
 
99295
    private static final int __ITEMID_ISSET_ID = 0;
-
 
99296
    private static final int __QUANTITY_ISSET_ID = 1;
-
 
99297
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
-
 
99298
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
-
 
99299
    private BitSet __isset_bit_vector = new BitSet(4);
-
 
99300
 
-
 
99301
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
99302
    static {
-
 
99303
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
99304
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
99305
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
99306
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
99307
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
99308
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
99309
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
99310
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
99311
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
99312
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
99313
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrderForItem_args.class, metaDataMap);
-
 
99314
    }
-
 
99315
 
-
 
99316
    public acceptOrderForItem_args() {
-
 
99317
    }
-
 
99318
 
-
 
99319
    public acceptOrderForItem_args(
-
 
99320
      long itemId,
-
 
99321
      long quantity,
-
 
99322
      long fulfilmentWarehouseId,
-
 
99323
      long billingWarehouseId)
-
 
99324
    {
-
 
99325
      this();
-
 
99326
      this.itemId = itemId;
-
 
99327
      setItemIdIsSet(true);
-
 
99328
      this.quantity = quantity;
-
 
99329
      setQuantityIsSet(true);
-
 
99330
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
-
 
99331
      setFulfilmentWarehouseIdIsSet(true);
-
 
99332
      this.billingWarehouseId = billingWarehouseId;
-
 
99333
      setBillingWarehouseIdIsSet(true);
-
 
99334
    }
-
 
99335
 
-
 
99336
    /**
-
 
99337
     * Performs a deep copy on <i>other</i>.
-
 
99338
     */
-
 
99339
    public acceptOrderForItem_args(acceptOrderForItem_args other) {
-
 
99340
      __isset_bit_vector.clear();
-
 
99341
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
99342
      this.itemId = other.itemId;
-
 
99343
      this.quantity = other.quantity;
-
 
99344
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
-
 
99345
      this.billingWarehouseId = other.billingWarehouseId;
-
 
99346
    }
-
 
99347
 
-
 
99348
    public acceptOrderForItem_args deepCopy() {
-
 
99349
      return new acceptOrderForItem_args(this);
-
 
99350
    }
-
 
99351
 
-
 
99352
    @Override
-
 
99353
    public void clear() {
-
 
99354
      setItemIdIsSet(false);
-
 
99355
      this.itemId = 0;
-
 
99356
      setQuantityIsSet(false);
-
 
99357
      this.quantity = 0;
-
 
99358
      setFulfilmentWarehouseIdIsSet(false);
-
 
99359
      this.fulfilmentWarehouseId = 0;
-
 
99360
      setBillingWarehouseIdIsSet(false);
-
 
99361
      this.billingWarehouseId = 0;
-
 
99362
    }
-
 
99363
 
-
 
99364
    public long getItemId() {
-
 
99365
      return this.itemId;
-
 
99366
    }
-
 
99367
 
-
 
99368
    public void setItemId(long itemId) {
-
 
99369
      this.itemId = itemId;
-
 
99370
      setItemIdIsSet(true);
-
 
99371
    }
-
 
99372
 
-
 
99373
    public void unsetItemId() {
-
 
99374
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
99375
    }
-
 
99376
 
-
 
99377
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
99378
    public boolean isSetItemId() {
-
 
99379
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
99380
    }
-
 
99381
 
-
 
99382
    public void setItemIdIsSet(boolean value) {
-
 
99383
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
99384
    }
-
 
99385
 
-
 
99386
    public long getQuantity() {
-
 
99387
      return this.quantity;
-
 
99388
    }
-
 
99389
 
-
 
99390
    public void setQuantity(long quantity) {
-
 
99391
      this.quantity = quantity;
-
 
99392
      setQuantityIsSet(true);
-
 
99393
    }
-
 
99394
 
-
 
99395
    public void unsetQuantity() {
-
 
99396
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
99397
    }
-
 
99398
 
-
 
99399
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
99400
    public boolean isSetQuantity() {
-
 
99401
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
99402
    }
-
 
99403
 
-
 
99404
    public void setQuantityIsSet(boolean value) {
-
 
99405
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
99406
    }
-
 
99407
 
-
 
99408
    public long getFulfilmentWarehouseId() {
-
 
99409
      return this.fulfilmentWarehouseId;
-
 
99410
    }
-
 
99411
 
-
 
99412
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
-
 
99413
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
-
 
99414
      setFulfilmentWarehouseIdIsSet(true);
-
 
99415
    }
-
 
99416
 
-
 
99417
    public void unsetFulfilmentWarehouseId() {
-
 
99418
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
-
 
99419
    }
-
 
99420
 
-
 
99421
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
-
 
99422
    public boolean isSetFulfilmentWarehouseId() {
-
 
99423
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
-
 
99424
    }
-
 
99425
 
-
 
99426
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
-
 
99427
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
-
 
99428
    }
-
 
99429
 
-
 
99430
    public long getBillingWarehouseId() {
-
 
99431
      return this.billingWarehouseId;
-
 
99432
    }
-
 
99433
 
-
 
99434
    public void setBillingWarehouseId(long billingWarehouseId) {
-
 
99435
      this.billingWarehouseId = billingWarehouseId;
-
 
99436
      setBillingWarehouseIdIsSet(true);
-
 
99437
    }
-
 
99438
 
-
 
99439
    public void unsetBillingWarehouseId() {
-
 
99440
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
99441
    }
-
 
99442
 
-
 
99443
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
-
 
99444
    public boolean isSetBillingWarehouseId() {
-
 
99445
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
99446
    }
-
 
99447
 
-
 
99448
    public void setBillingWarehouseIdIsSet(boolean value) {
-
 
99449
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
-
 
99450
    }
-
 
99451
 
-
 
99452
    public void setFieldValue(_Fields field, Object value) {
-
 
99453
      switch (field) {
-
 
99454
      case ITEM_ID:
-
 
99455
        if (value == null) {
-
 
99456
          unsetItemId();
-
 
99457
        } else {
-
 
99458
          setItemId((Long)value);
-
 
99459
        }
-
 
99460
        break;
-
 
99461
 
-
 
99462
      case QUANTITY:
-
 
99463
        if (value == null) {
-
 
99464
          unsetQuantity();
-
 
99465
        } else {
-
 
99466
          setQuantity((Long)value);
-
 
99467
        }
-
 
99468
        break;
-
 
99469
 
-
 
99470
      case FULFILMENT_WAREHOUSE_ID:
-
 
99471
        if (value == null) {
-
 
99472
          unsetFulfilmentWarehouseId();
-
 
99473
        } else {
-
 
99474
          setFulfilmentWarehouseId((Long)value);
-
 
99475
        }
-
 
99476
        break;
-
 
99477
 
-
 
99478
      case BILLING_WAREHOUSE_ID:
-
 
99479
        if (value == null) {
-
 
99480
          unsetBillingWarehouseId();
-
 
99481
        } else {
-
 
99482
          setBillingWarehouseId((Long)value);
-
 
99483
        }
-
 
99484
        break;
-
 
99485
 
-
 
99486
      }
-
 
99487
    }
-
 
99488
 
-
 
99489
    public Object getFieldValue(_Fields field) {
-
 
99490
      switch (field) {
-
 
99491
      case ITEM_ID:
-
 
99492
        return Long.valueOf(getItemId());
-
 
99493
 
-
 
99494
      case QUANTITY:
-
 
99495
        return Long.valueOf(getQuantity());
-
 
99496
 
-
 
99497
      case FULFILMENT_WAREHOUSE_ID:
-
 
99498
        return Long.valueOf(getFulfilmentWarehouseId());
-
 
99499
 
-
 
99500
      case BILLING_WAREHOUSE_ID:
-
 
99501
        return Long.valueOf(getBillingWarehouseId());
-
 
99502
 
-
 
99503
      }
-
 
99504
      throw new IllegalStateException();
-
 
99505
    }
-
 
99506
 
-
 
99507
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
99508
    public boolean isSet(_Fields field) {
-
 
99509
      if (field == null) {
-
 
99510
        throw new IllegalArgumentException();
-
 
99511
      }
-
 
99512
 
-
 
99513
      switch (field) {
-
 
99514
      case ITEM_ID:
-
 
99515
        return isSetItemId();
-
 
99516
      case QUANTITY:
-
 
99517
        return isSetQuantity();
-
 
99518
      case FULFILMENT_WAREHOUSE_ID:
-
 
99519
        return isSetFulfilmentWarehouseId();
-
 
99520
      case BILLING_WAREHOUSE_ID:
-
 
99521
        return isSetBillingWarehouseId();
-
 
99522
      }
-
 
99523
      throw new IllegalStateException();
-
 
99524
    }
-
 
99525
 
-
 
99526
    @Override
-
 
99527
    public boolean equals(Object that) {
-
 
99528
      if (that == null)
-
 
99529
        return false;
-
 
99530
      if (that instanceof acceptOrderForItem_args)
-
 
99531
        return this.equals((acceptOrderForItem_args)that);
-
 
99532
      return false;
-
 
99533
    }
-
 
99534
 
-
 
99535
    public boolean equals(acceptOrderForItem_args that) {
-
 
99536
      if (that == null)
-
 
99537
        return false;
-
 
99538
 
-
 
99539
      boolean this_present_itemId = true;
-
 
99540
      boolean that_present_itemId = true;
-
 
99541
      if (this_present_itemId || that_present_itemId) {
-
 
99542
        if (!(this_present_itemId && that_present_itemId))
-
 
99543
          return false;
-
 
99544
        if (this.itemId != that.itemId)
-
 
99545
          return false;
-
 
99546
      }
-
 
99547
 
-
 
99548
      boolean this_present_quantity = true;
-
 
99549
      boolean that_present_quantity = true;
-
 
99550
      if (this_present_quantity || that_present_quantity) {
-
 
99551
        if (!(this_present_quantity && that_present_quantity))
-
 
99552
          return false;
-
 
99553
        if (this.quantity != that.quantity)
-
 
99554
          return false;
-
 
99555
      }
-
 
99556
 
-
 
99557
      boolean this_present_fulfilmentWarehouseId = true;
-
 
99558
      boolean that_present_fulfilmentWarehouseId = true;
-
 
99559
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
-
 
99560
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
-
 
99561
          return false;
-
 
99562
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
-
 
99563
          return false;
-
 
99564
      }
-
 
99565
 
-
 
99566
      boolean this_present_billingWarehouseId = true;
-
 
99567
      boolean that_present_billingWarehouseId = true;
-
 
99568
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
-
 
99569
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
-
 
99570
          return false;
-
 
99571
        if (this.billingWarehouseId != that.billingWarehouseId)
-
 
99572
          return false;
-
 
99573
      }
-
 
99574
 
-
 
99575
      return true;
-
 
99576
    }
-
 
99577
 
-
 
99578
    @Override
-
 
99579
    public int hashCode() {
-
 
99580
      return 0;
-
 
99581
    }
-
 
99582
 
-
 
99583
    public int compareTo(acceptOrderForItem_args other) {
-
 
99584
      if (!getClass().equals(other.getClass())) {
-
 
99585
        return getClass().getName().compareTo(other.getClass().getName());
-
 
99586
      }
-
 
99587
 
-
 
99588
      int lastComparison = 0;
-
 
99589
      acceptOrderForItem_args typedOther = (acceptOrderForItem_args)other;
-
 
99590
 
-
 
99591
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
99592
      if (lastComparison != 0) {
-
 
99593
        return lastComparison;
-
 
99594
      }
-
 
99595
      if (isSetItemId()) {
-
 
99596
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
99597
        if (lastComparison != 0) {
-
 
99598
          return lastComparison;
-
 
99599
        }
-
 
99600
      }
-
 
99601
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
-
 
99602
      if (lastComparison != 0) {
-
 
99603
        return lastComparison;
-
 
99604
      }
-
 
99605
      if (isSetQuantity()) {
-
 
99606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
-
 
99607
        if (lastComparison != 0) {
-
 
99608
          return lastComparison;
-
 
99609
        }
-
 
99610
      }
-
 
99611
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
-
 
99612
      if (lastComparison != 0) {
-
 
99613
        return lastComparison;
-
 
99614
      }
-
 
99615
      if (isSetFulfilmentWarehouseId()) {
-
 
99616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
-
 
99617
        if (lastComparison != 0) {
-
 
99618
          return lastComparison;
-
 
99619
        }
-
 
99620
      }
-
 
99621
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
-
 
99622
      if (lastComparison != 0) {
-
 
99623
        return lastComparison;
-
 
99624
      }
-
 
99625
      if (isSetBillingWarehouseId()) {
-
 
99626
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
-
 
99627
        if (lastComparison != 0) {
-
 
99628
          return lastComparison;
-
 
99629
        }
-
 
99630
      }
-
 
99631
      return 0;
-
 
99632
    }
-
 
99633
 
-
 
99634
    public _Fields fieldForId(int fieldId) {
-
 
99635
      return _Fields.findByThriftId(fieldId);
-
 
99636
    }
-
 
99637
 
-
 
99638
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
99639
      org.apache.thrift.protocol.TField field;
-
 
99640
      iprot.readStructBegin();
-
 
99641
      while (true)
-
 
99642
      {
-
 
99643
        field = iprot.readFieldBegin();
-
 
99644
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
99645
          break;
-
 
99646
        }
-
 
99647
        switch (field.id) {
-
 
99648
          case 1: // ITEM_ID
-
 
99649
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
99650
              this.itemId = iprot.readI64();
-
 
99651
              setItemIdIsSet(true);
-
 
99652
            } else { 
-
 
99653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
99654
            }
-
 
99655
            break;
-
 
99656
          case 2: // QUANTITY
-
 
99657
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
99658
              this.quantity = iprot.readI64();
-
 
99659
              setQuantityIsSet(true);
-
 
99660
            } else { 
-
 
99661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
99662
            }
-
 
99663
            break;
-
 
99664
          case 3: // FULFILMENT_WAREHOUSE_ID
-
 
99665
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
99666
              this.fulfilmentWarehouseId = iprot.readI64();
-
 
99667
              setFulfilmentWarehouseIdIsSet(true);
-
 
99668
            } else { 
-
 
99669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
99670
            }
-
 
99671
            break;
-
 
99672
          case 4: // BILLING_WAREHOUSE_ID
-
 
99673
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
99674
              this.billingWarehouseId = iprot.readI64();
-
 
99675
              setBillingWarehouseIdIsSet(true);
-
 
99676
            } else { 
-
 
99677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
99678
            }
-
 
99679
            break;
-
 
99680
          default:
-
 
99681
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
99682
        }
-
 
99683
        iprot.readFieldEnd();
-
 
99684
      }
-
 
99685
      iprot.readStructEnd();
-
 
99686
      validate();
-
 
99687
    }
-
 
99688
 
-
 
99689
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
99690
      validate();
-
 
99691
 
-
 
99692
      oprot.writeStructBegin(STRUCT_DESC);
-
 
99693
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
99694
      oprot.writeI64(this.itemId);
-
 
99695
      oprot.writeFieldEnd();
-
 
99696
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
99697
      oprot.writeI64(this.quantity);
-
 
99698
      oprot.writeFieldEnd();
-
 
99699
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
-
 
99700
      oprot.writeI64(this.fulfilmentWarehouseId);
-
 
99701
      oprot.writeFieldEnd();
-
 
99702
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
-
 
99703
      oprot.writeI64(this.billingWarehouseId);
-
 
99704
      oprot.writeFieldEnd();
-
 
99705
      oprot.writeFieldStop();
-
 
99706
      oprot.writeStructEnd();
-
 
99707
    }
-
 
99708
 
-
 
99709
    @Override
-
 
99710
    public String toString() {
-
 
99711
      StringBuilder sb = new StringBuilder("acceptOrderForItem_args(");
-
 
99712
      boolean first = true;
-
 
99713
 
-
 
99714
      sb.append("itemId:");
-
 
99715
      sb.append(this.itemId);
-
 
99716
      first = false;
-
 
99717
      if (!first) sb.append(", ");
-
 
99718
      sb.append("quantity:");
-
 
99719
      sb.append(this.quantity);
-
 
99720
      first = false;
-
 
99721
      if (!first) sb.append(", ");
-
 
99722
      sb.append("fulfilmentWarehouseId:");
-
 
99723
      sb.append(this.fulfilmentWarehouseId);
-
 
99724
      first = false;
-
 
99725
      if (!first) sb.append(", ");
-
 
99726
      sb.append("billingWarehouseId:");
-
 
99727
      sb.append(this.billingWarehouseId);
-
 
99728
      first = false;
-
 
99729
      sb.append(")");
-
 
99730
      return sb.toString();
-
 
99731
    }
-
 
99732
 
-
 
99733
    public void validate() throws org.apache.thrift.TException {
-
 
99734
      // check for required fields
-
 
99735
    }
-
 
99736
 
-
 
99737
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
99738
      try {
-
 
99739
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
99740
      } catch (org.apache.thrift.TException te) {
-
 
99741
        throw new java.io.IOException(te);
-
 
99742
      }
-
 
99743
    }
-
 
99744
 
-
 
99745
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
99746
      try {
-
 
99747
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
99748
      } catch (org.apache.thrift.TException te) {
-
 
99749
        throw new java.io.IOException(te);
-
 
99750
      }
-
 
99751
    }
-
 
99752
 
-
 
99753
  }
-
 
99754
 
-
 
99755
  public static class acceptOrderForItem_result implements org.apache.thrift.TBase<acceptOrderForItem_result, acceptOrderForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
99756
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrderForItem_result");
-
 
99757
 
-
 
99758
 
-
 
99759
 
-
 
99760
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
99761
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
99762
;
-
 
99763
 
-
 
99764
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
99765
 
-
 
99766
      static {
-
 
99767
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
99768
          byName.put(field.getFieldName(), field);
-
 
99769
        }
-
 
99770
      }
-
 
99771
 
-
 
99772
      /**
-
 
99773
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
99774
       */
-
 
99775
      public static _Fields findByThriftId(int fieldId) {
-
 
99776
        switch(fieldId) {
-
 
99777
          default:
-
 
99778
            return null;
-
 
99779
        }
-
 
99780
      }
-
 
99781
 
-
 
99782
      /**
-
 
99783
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
99784
       * if it is not found.
-
 
99785
       */
-
 
99786
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
99787
        _Fields fields = findByThriftId(fieldId);
-
 
99788
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
99789
        return fields;
-
 
99790
      }
-
 
99791
 
-
 
99792
      /**
-
 
99793
       * Find the _Fields constant that matches name, or null if its not found.
-
 
99794
       */
-
 
99795
      public static _Fields findByName(String name) {
-
 
99796
        return byName.get(name);
-
 
99797
      }
-
 
99798
 
-
 
99799
      private final short _thriftId;
-
 
99800
      private final String _fieldName;
-
 
99801
 
-
 
99802
      _Fields(short thriftId, String fieldName) {
-
 
99803
        _thriftId = thriftId;
-
 
99804
        _fieldName = fieldName;
-
 
99805
      }
-
 
99806
 
-
 
99807
      public short getThriftFieldId() {
-
 
99808
        return _thriftId;
-
 
99809
      }
-
 
99810
 
-
 
99811
      public String getFieldName() {
-
 
99812
        return _fieldName;
-
 
99813
      }
-
 
99814
    }
-
 
99815
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
99816
    static {
-
 
99817
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
99818
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
99819
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrderForItem_result.class, metaDataMap);
-
 
99820
    }
-
 
99821
 
-
 
99822
    public acceptOrderForItem_result() {
-
 
99823
    }
-
 
99824
 
-
 
99825
    /**
-
 
99826
     * Performs a deep copy on <i>other</i>.
-
 
99827
     */
-
 
99828
    public acceptOrderForItem_result(acceptOrderForItem_result other) {
-
 
99829
    }
-
 
99830
 
-
 
99831
    public acceptOrderForItem_result deepCopy() {
-
 
99832
      return new acceptOrderForItem_result(this);
-
 
99833
    }
-
 
99834
 
-
 
99835
    @Override
-
 
99836
    public void clear() {
-
 
99837
    }
-
 
99838
 
-
 
99839
    public void setFieldValue(_Fields field, Object value) {
-
 
99840
      switch (field) {
-
 
99841
      }
-
 
99842
    }
-
 
99843
 
-
 
99844
    public Object getFieldValue(_Fields field) {
-
 
99845
      switch (field) {
-
 
99846
      }
-
 
99847
      throw new IllegalStateException();
-
 
99848
    }
-
 
99849
 
-
 
99850
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
99851
    public boolean isSet(_Fields field) {
-
 
99852
      if (field == null) {
-
 
99853
        throw new IllegalArgumentException();
-
 
99854
      }
-
 
99855
 
-
 
99856
      switch (field) {
-
 
99857
      }
-
 
99858
      throw new IllegalStateException();
-
 
99859
    }
-
 
99860
 
-
 
99861
    @Override
-
 
99862
    public boolean equals(Object that) {
-
 
99863
      if (that == null)
-
 
99864
        return false;
-
 
99865
      if (that instanceof acceptOrderForItem_result)
-
 
99866
        return this.equals((acceptOrderForItem_result)that);
-
 
99867
      return false;
-
 
99868
    }
-
 
99869
 
-
 
99870
    public boolean equals(acceptOrderForItem_result that) {
-
 
99871
      if (that == null)
-
 
99872
        return false;
-
 
99873
 
-
 
99874
      return true;
-
 
99875
    }
-
 
99876
 
-
 
99877
    @Override
-
 
99878
    public int hashCode() {
-
 
99879
      return 0;
-
 
99880
    }
-
 
99881
 
-
 
99882
    public int compareTo(acceptOrderForItem_result other) {
-
 
99883
      if (!getClass().equals(other.getClass())) {
-
 
99884
        return getClass().getName().compareTo(other.getClass().getName());
-
 
99885
      }
-
 
99886
 
-
 
99887
      int lastComparison = 0;
-
 
99888
      acceptOrderForItem_result typedOther = (acceptOrderForItem_result)other;
-
 
99889
 
-
 
99890
      return 0;
-
 
99891
    }
-
 
99892
 
-
 
99893
    public _Fields fieldForId(int fieldId) {
-
 
99894
      return _Fields.findByThriftId(fieldId);
-
 
99895
    }
-
 
99896
 
-
 
99897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
99898
      org.apache.thrift.protocol.TField field;
-
 
99899
      iprot.readStructBegin();
-
 
99900
      while (true)
-
 
99901
      {
-
 
99902
        field = iprot.readFieldBegin();
-
 
99903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
99904
          break;
-
 
99905
        }
-
 
99906
        switch (field.id) {
-
 
99907
          default:
-
 
99908
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
99909
        }
-
 
99910
        iprot.readFieldEnd();
-
 
99911
      }
-
 
99912
      iprot.readStructEnd();
-
 
99913
      validate();
-
 
99914
    }
-
 
99915
 
-
 
99916
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
99917
      oprot.writeStructBegin(STRUCT_DESC);
-
 
99918
 
-
 
99919
      oprot.writeFieldStop();
-
 
99920
      oprot.writeStructEnd();
-
 
99921
    }
-
 
99922
 
-
 
99923
    @Override
-
 
99924
    public String toString() {
-
 
99925
      StringBuilder sb = new StringBuilder("acceptOrderForItem_result(");
-
 
99926
      boolean first = true;
-
 
99927
 
-
 
99928
      sb.append(")");
-
 
99929
      return sb.toString();
-
 
99930
    }
-
 
99931
 
-
 
99932
    public void validate() throws org.apache.thrift.TException {
99099
      // check for required fields
99933
      // check for required fields
99100
    }
99934
    }
99101
 
99935
 
99102
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
99936
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
99103
      try {
99937
      try {