Subversion Repositories SmartDukaan

Rev

Rev 22365 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22365 Rev 22452
Line 392... Line 392...
392
 
392
 
393
    public Map<Long,String> getCounterName(List<Long> userIds) throws org.apache.thrift.TException;
393
    public Map<Long,String> getCounterName(List<Long> userIds) throws org.apache.thrift.TException;
394
 
394
 
395
    public boolean setWalletAmountInCart(long cartId, double wallet_amount) throws org.apache.thrift.TException;
395
    public boolean setWalletAmountInCart(long cartId, double wallet_amount) throws org.apache.thrift.TException;
396
 
396
 
-
 
397
    public boolean addItemPricingToCart(long cartId, List<ItemPriceQuantity> itemPriceQuantityList) throws org.apache.thrift.TException;
-
 
398
 
397
  }
399
  }
398
 
400
 
399
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
401
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
400
 
402
 
401
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
403
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 588... Line 590...
588
 
590
 
589
    public void getCounterName(List<Long> userIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCounterName_call> resultHandler) throws org.apache.thrift.TException;
591
    public void getCounterName(List<Long> userIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCounterName_call> resultHandler) throws org.apache.thrift.TException;
590
 
592
 
591
    public void setWalletAmountInCart(long cartId, double wallet_amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setWalletAmountInCart_call> resultHandler) throws org.apache.thrift.TException;
593
    public void setWalletAmountInCart(long cartId, double wallet_amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setWalletAmountInCart_call> resultHandler) throws org.apache.thrift.TException;
592
 
594
 
-
 
595
    public void addItemPricingToCart(long cartId, List<ItemPriceQuantity> itemPriceQuantityList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemPricingToCart_call> resultHandler) throws org.apache.thrift.TException;
-
 
596
 
593
  }
597
  }
594
 
598
 
595
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
599
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
596
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
600
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
597
      public Factory() {}
601
      public Factory() {}
Line 3036... Line 3040...
3036
        return result.success;
3040
        return result.success;
3037
      }
3041
      }
3038
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setWalletAmountInCart failed: unknown result");
3042
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setWalletAmountInCart failed: unknown result");
3039
    }
3043
    }
3040
 
3044
 
-
 
3045
    public boolean addItemPricingToCart(long cartId, List<ItemPriceQuantity> itemPriceQuantityList) throws org.apache.thrift.TException
-
 
3046
    {
-
 
3047
      send_addItemPricingToCart(cartId, itemPriceQuantityList);
-
 
3048
      return recv_addItemPricingToCart();
-
 
3049
    }
-
 
3050
 
-
 
3051
    public void send_addItemPricingToCart(long cartId, List<ItemPriceQuantity> itemPriceQuantityList) throws org.apache.thrift.TException
-
 
3052
    {
-
 
3053
      addItemPricingToCart_args args = new addItemPricingToCart_args();
-
 
3054
      args.setCartId(cartId);
-
 
3055
      args.setItemPriceQuantityList(itemPriceQuantityList);
-
 
3056
      sendBase("addItemPricingToCart", args);
-
 
3057
    }
-
 
3058
 
-
 
3059
    public boolean recv_addItemPricingToCart() throws org.apache.thrift.TException
-
 
3060
    {
-
 
3061
      addItemPricingToCart_result result = new addItemPricingToCart_result();
-
 
3062
      receiveBase(result, "addItemPricingToCart");
-
 
3063
      if (result.isSetSuccess()) {
-
 
3064
        return result.success;
-
 
3065
      }
-
 
3066
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addItemPricingToCart failed: unknown result");
-
 
3067
    }
-
 
3068
 
3041
  }
3069
  }
3042
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3070
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3043
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3071
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3044
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3072
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3045
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3073
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 6353... Line 6381...
6353
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6381
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6354
        return (new Client(prot)).recv_setWalletAmountInCart();
6382
        return (new Client(prot)).recv_setWalletAmountInCart();
6355
      }
6383
      }
6356
    }
6384
    }
6357
 
6385
 
-
 
6386
    public void addItemPricingToCart(long cartId, List<ItemPriceQuantity> itemPriceQuantityList, org.apache.thrift.async.AsyncMethodCallback<addItemPricingToCart_call> resultHandler) throws org.apache.thrift.TException {
-
 
6387
      checkReady();
-
 
6388
      addItemPricingToCart_call method_call = new addItemPricingToCart_call(cartId, itemPriceQuantityList, resultHandler, this, ___protocolFactory, ___transport);
-
 
6389
      this.___currentMethod = method_call;
-
 
6390
      ___manager.call(method_call);
-
 
6391
    }
-
 
6392
 
-
 
6393
    public static class addItemPricingToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6394
      private long cartId;
-
 
6395
      private List<ItemPriceQuantity> itemPriceQuantityList;
-
 
6396
      public addItemPricingToCart_call(long cartId, List<ItemPriceQuantity> itemPriceQuantityList, org.apache.thrift.async.AsyncMethodCallback<addItemPricingToCart_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 {
-
 
6397
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6398
        this.cartId = cartId;
-
 
6399
        this.itemPriceQuantityList = itemPriceQuantityList;
-
 
6400
      }
-
 
6401
 
-
 
6402
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6403
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addItemPricingToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6404
        addItemPricingToCart_args args = new addItemPricingToCart_args();
-
 
6405
        args.setCartId(cartId);
-
 
6406
        args.setItemPriceQuantityList(itemPriceQuantityList);
-
 
6407
        args.write(prot);
-
 
6408
        prot.writeMessageEnd();
-
 
6409
      }
-
 
6410
 
-
 
6411
      public boolean getResult() throws org.apache.thrift.TException {
-
 
6412
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6413
          throw new IllegalStateException("Method call not finished!");
-
 
6414
        }
-
 
6415
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6416
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6417
        return (new Client(prot)).recv_addItemPricingToCart();
-
 
6418
      }
-
 
6419
    }
-
 
6420
 
6358
  }
6421
  }
6359
 
6422
 
6360
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6423
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6361
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6424
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6362
    public Processor(I iface) {
6425
    public Processor(I iface) {
Line 6462... Line 6525...
6462
      processMap.put("isTaxInvoiceEnabledUser", new isTaxInvoiceEnabledUser());
6525
      processMap.put("isTaxInvoiceEnabledUser", new isTaxInvoiceEnabledUser());
6463
      processMap.put("taxInvoiceAvailable", new taxInvoiceAvailable());
6526
      processMap.put("taxInvoiceAvailable", new taxInvoiceAvailable());
6464
      processMap.put("getCartByValue", new getCartByValue());
6527
      processMap.put("getCartByValue", new getCartByValue());
6465
      processMap.put("getCounterName", new getCounterName());
6528
      processMap.put("getCounterName", new getCounterName());
6466
      processMap.put("setWalletAmountInCart", new setWalletAmountInCart());
6529
      processMap.put("setWalletAmountInCart", new setWalletAmountInCart());
-
 
6530
      processMap.put("addItemPricingToCart", new addItemPricingToCart());
6467
      return processMap;
6531
      return processMap;
6468
    }
6532
    }
6469
 
6533
 
6470
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
6534
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
6471
      public createAnonymousUser() {
6535
      public createAnonymousUser() {
Line 8283... Line 8347...
8283
        result.setSuccessIsSet(true);
8347
        result.setSuccessIsSet(true);
8284
        return result;
8348
        return result;
8285
      }
8349
      }
8286
    }
8350
    }
8287
 
8351
 
-
 
8352
    private static class addItemPricingToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItemPricingToCart_args> {
-
 
8353
      public addItemPricingToCart() {
-
 
8354
        super("addItemPricingToCart");
-
 
8355
      }
-
 
8356
 
-
 
8357
      protected addItemPricingToCart_args getEmptyArgsInstance() {
-
 
8358
        return new addItemPricingToCart_args();
-
 
8359
      }
-
 
8360
 
-
 
8361
      protected addItemPricingToCart_result getResult(I iface, addItemPricingToCart_args args) throws org.apache.thrift.TException {
-
 
8362
        addItemPricingToCart_result result = new addItemPricingToCart_result();
-
 
8363
        result.success = iface.addItemPricingToCart(args.cartId, args.itemPriceQuantityList);
-
 
8364
        result.setSuccessIsSet(true);
-
 
8365
        return result;
-
 
8366
      }
-
 
8367
    }
-
 
8368
 
8288
  }
8369
  }
8289
 
8370
 
8290
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
8371
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
8291
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
8372
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
8292
 
8373
 
Line 47984... Line 48065...
47984
      }
48065
      }
47985
    }
48066
    }
47986
 
48067
 
47987
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48068
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47988
      try {
48069
      try {
47989
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
47990
        __isset_bit_vector = new BitSet(1);
-
 
47991
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48070
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47992
      } catch (org.apache.thrift.TException te) {
48071
      } catch (org.apache.thrift.TException te) {
47993
        throw new java.io.IOException(te);
48072
        throw new java.io.IOException(te);
47994
      }
48073
      }
47995
    }
48074
    }
Line 48867... Line 48946...
48867
      }
48946
      }
48868
    }
48947
    }
48869
 
48948
 
48870
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48949
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48871
      try {
48950
      try {
48872
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
48873
        __isset_bit_vector = new BitSet(1);
-
 
48874
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48951
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48875
      } catch (org.apache.thrift.TException te) {
48952
      } catch (org.apache.thrift.TException te) {
48876
        throw new java.io.IOException(te);
48953
        throw new java.io.IOException(te);
48877
      }
48954
      }
48878
    }
48955
    }
Line 49662... Line 49739...
49662
      }
49739
      }
49663
    }
49740
    }
49664
 
49741
 
49665
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49666
      try {
49743
      try {
49667
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
49668
        __isset_bit_vector = new BitSet(1);
-
 
49669
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49744
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49670
      } catch (org.apache.thrift.TException te) {
49745
      } catch (org.apache.thrift.TException te) {
49671
        throw new java.io.IOException(te);
49746
        throw new java.io.IOException(te);
49672
      }
49747
      }
49673
    }
49748
    }
Line 55180... Line 55255...
55180
      }
55255
      }
55181
    }
55256
    }
55182
 
55257
 
55183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55258
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55184
      try {
55259
      try {
55185
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
55186
        __isset_bit_vector = new BitSet(1);
-
 
55187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55260
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55188
      } catch (org.apache.thrift.TException te) {
55261
      } catch (org.apache.thrift.TException te) {
55189
        throw new java.io.IOException(te);
55262
        throw new java.io.IOException(te);
55190
      }
55263
      }
55191
    }
55264
    }
Line 58190... Line 58263...
58190
      }
58263
      }
58191
    }
58264
    }
58192
 
58265
 
58193
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58266
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58194
      try {
58267
      try {
58195
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
58196
        __isset_bit_vector = new BitSet(1);
-
 
58197
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58268
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58198
      } catch (org.apache.thrift.TException te) {
58269
      } catch (org.apache.thrift.TException te) {
58199
        throw new java.io.IOException(te);
58270
        throw new java.io.IOException(te);
58200
      }
58271
      }
58201
    }
58272
    }
Line 59733... Line 59804...
59733
      }
59804
      }
59734
    }
59805
    }
59735
 
59806
 
59736
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59807
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59737
      try {
59808
      try {
59738
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
59739
        __isset_bit_vector = new BitSet(1);
-
 
59740
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59809
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59741
      } catch (org.apache.thrift.TException te) {
59810
      } catch (org.apache.thrift.TException te) {
59742
        throw new java.io.IOException(te);
59811
        throw new java.io.IOException(te);
59743
      }
59812
      }
59744
    }
59813
    }
Line 61083... Line 61152...
61083
      }
61152
      }
61084
    }
61153
    }
61085
 
61154
 
61086
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61155
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61087
      try {
61156
      try {
61088
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
61089
        __isset_bit_vector = new BitSet(1);
-
 
61090
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61157
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61091
      } catch (org.apache.thrift.TException te) {
61158
      } catch (org.apache.thrift.TException te) {
61092
        throw new java.io.IOException(te);
61159
        throw new java.io.IOException(te);
61093
      }
61160
      }
61094
    }
61161
    }
Line 76365... Line 76432...
76365
      boolean first = true;
76432
      boolean first = true;
76366
 
76433
 
76367
      sb.append("success:");
76434
      sb.append("success:");
76368
      sb.append(this.success);
76435
      sb.append(this.success);
76369
      first = false;
76436
      first = false;
-
 
76437
      sb.append(")");
-
 
76438
      return sb.toString();
-
 
76439
    }
-
 
76440
 
-
 
76441
    public void validate() throws org.apache.thrift.TException {
-
 
76442
      // check for required fields
-
 
76443
    }
-
 
76444
 
-
 
76445
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
76446
      try {
-
 
76447
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
76448
      } catch (org.apache.thrift.TException te) {
-
 
76449
        throw new java.io.IOException(te);
-
 
76450
      }
-
 
76451
    }
-
 
76452
 
-
 
76453
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
76454
      try {
-
 
76455
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
76456
      } catch (org.apache.thrift.TException te) {
-
 
76457
        throw new java.io.IOException(te);
-
 
76458
      }
-
 
76459
    }
-
 
76460
 
-
 
76461
  }
-
 
76462
 
-
 
76463
  public static class addItemPricingToCart_args implements org.apache.thrift.TBase<addItemPricingToCart_args, addItemPricingToCart_args._Fields>, java.io.Serializable, Cloneable   {
-
 
76464
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemPricingToCart_args");
-
 
76465
 
-
 
76466
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
76467
    private static final org.apache.thrift.protocol.TField ITEM_PRICE_QUANTITY_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("itemPriceQuantityList", org.apache.thrift.protocol.TType.LIST, (short)2);
-
 
76468
 
-
 
76469
    private long cartId; // required
-
 
76470
    private List<ItemPriceQuantity> itemPriceQuantityList; // required
-
 
76471
 
-
 
76472
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
76473
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
76474
      CART_ID((short)1, "cartId"),
-
 
76475
      ITEM_PRICE_QUANTITY_LIST((short)2, "itemPriceQuantityList");
-
 
76476
 
-
 
76477
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
76478
 
-
 
76479
      static {
-
 
76480
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
76481
          byName.put(field.getFieldName(), field);
-
 
76482
        }
-
 
76483
      }
-
 
76484
 
-
 
76485
      /**
-
 
76486
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
76487
       */
-
 
76488
      public static _Fields findByThriftId(int fieldId) {
-
 
76489
        switch(fieldId) {
-
 
76490
          case 1: // CART_ID
-
 
76491
            return CART_ID;
-
 
76492
          case 2: // ITEM_PRICE_QUANTITY_LIST
-
 
76493
            return ITEM_PRICE_QUANTITY_LIST;
-
 
76494
          default:
-
 
76495
            return null;
-
 
76496
        }
-
 
76497
      }
-
 
76498
 
-
 
76499
      /**
-
 
76500
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
76501
       * if it is not found.
-
 
76502
       */
-
 
76503
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
76504
        _Fields fields = findByThriftId(fieldId);
-
 
76505
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
76506
        return fields;
-
 
76507
      }
-
 
76508
 
-
 
76509
      /**
-
 
76510
       * Find the _Fields constant that matches name, or null if its not found.
-
 
76511
       */
-
 
76512
      public static _Fields findByName(String name) {
-
 
76513
        return byName.get(name);
-
 
76514
      }
-
 
76515
 
-
 
76516
      private final short _thriftId;
-
 
76517
      private final String _fieldName;
-
 
76518
 
-
 
76519
      _Fields(short thriftId, String fieldName) {
-
 
76520
        _thriftId = thriftId;
-
 
76521
        _fieldName = fieldName;
-
 
76522
      }
-
 
76523
 
-
 
76524
      public short getThriftFieldId() {
-
 
76525
        return _thriftId;
-
 
76526
      }
-
 
76527
 
-
 
76528
      public String getFieldName() {
-
 
76529
        return _fieldName;
-
 
76530
      }
-
 
76531
    }
-
 
76532
 
-
 
76533
    // isset id assignments
-
 
76534
    private static final int __CARTID_ISSET_ID = 0;
-
 
76535
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
76536
 
-
 
76537
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
76538
    static {
-
 
76539
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
76540
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
76541
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
76542
      tmpMap.put(_Fields.ITEM_PRICE_QUANTITY_LIST, new org.apache.thrift.meta_data.FieldMetaData("itemPriceQuantityList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
76543
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
76544
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemPriceQuantity.class))));
-
 
76545
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
76546
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemPricingToCart_args.class, metaDataMap);
-
 
76547
    }
-
 
76548
 
-
 
76549
    public addItemPricingToCart_args() {
-
 
76550
    }
-
 
76551
 
-
 
76552
    public addItemPricingToCart_args(
-
 
76553
      long cartId,
-
 
76554
      List<ItemPriceQuantity> itemPriceQuantityList)
-
 
76555
    {
-
 
76556
      this();
-
 
76557
      this.cartId = cartId;
-
 
76558
      setCartIdIsSet(true);
-
 
76559
      this.itemPriceQuantityList = itemPriceQuantityList;
-
 
76560
    }
-
 
76561
 
-
 
76562
    /**
-
 
76563
     * Performs a deep copy on <i>other</i>.
-
 
76564
     */
-
 
76565
    public addItemPricingToCart_args(addItemPricingToCart_args other) {
-
 
76566
      __isset_bit_vector.clear();
-
 
76567
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
76568
      this.cartId = other.cartId;
-
 
76569
      if (other.isSetItemPriceQuantityList()) {
-
 
76570
        List<ItemPriceQuantity> __this__itemPriceQuantityList = new ArrayList<ItemPriceQuantity>();
-
 
76571
        for (ItemPriceQuantity other_element : other.itemPriceQuantityList) {
-
 
76572
          __this__itemPriceQuantityList.add(new ItemPriceQuantity(other_element));
-
 
76573
        }
-
 
76574
        this.itemPriceQuantityList = __this__itemPriceQuantityList;
-
 
76575
      }
-
 
76576
    }
-
 
76577
 
-
 
76578
    public addItemPricingToCart_args deepCopy() {
-
 
76579
      return new addItemPricingToCart_args(this);
-
 
76580
    }
-
 
76581
 
-
 
76582
    @Override
-
 
76583
    public void clear() {
-
 
76584
      setCartIdIsSet(false);
-
 
76585
      this.cartId = 0;
-
 
76586
      this.itemPriceQuantityList = null;
-
 
76587
    }
-
 
76588
 
-
 
76589
    public long getCartId() {
-
 
76590
      return this.cartId;
-
 
76591
    }
-
 
76592
 
-
 
76593
    public void setCartId(long cartId) {
-
 
76594
      this.cartId = cartId;
-
 
76595
      setCartIdIsSet(true);
-
 
76596
    }
-
 
76597
 
-
 
76598
    public void unsetCartId() {
-
 
76599
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
76600
    }
-
 
76601
 
-
 
76602
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
76603
    public boolean isSetCartId() {
-
 
76604
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
76605
    }
-
 
76606
 
-
 
76607
    public void setCartIdIsSet(boolean value) {
-
 
76608
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
76609
    }
-
 
76610
 
-
 
76611
    public int getItemPriceQuantityListSize() {
-
 
76612
      return (this.itemPriceQuantityList == null) ? 0 : this.itemPriceQuantityList.size();
-
 
76613
    }
-
 
76614
 
-
 
76615
    public java.util.Iterator<ItemPriceQuantity> getItemPriceQuantityListIterator() {
-
 
76616
      return (this.itemPriceQuantityList == null) ? null : this.itemPriceQuantityList.iterator();
-
 
76617
    }
-
 
76618
 
-
 
76619
    public void addToItemPriceQuantityList(ItemPriceQuantity elem) {
-
 
76620
      if (this.itemPriceQuantityList == null) {
-
 
76621
        this.itemPriceQuantityList = new ArrayList<ItemPriceQuantity>();
-
 
76622
      }
-
 
76623
      this.itemPriceQuantityList.add(elem);
-
 
76624
    }
-
 
76625
 
-
 
76626
    public List<ItemPriceQuantity> getItemPriceQuantityList() {
-
 
76627
      return this.itemPriceQuantityList;
-
 
76628
    }
-
 
76629
 
-
 
76630
    public void setItemPriceQuantityList(List<ItemPriceQuantity> itemPriceQuantityList) {
-
 
76631
      this.itemPriceQuantityList = itemPriceQuantityList;
-
 
76632
    }
-
 
76633
 
-
 
76634
    public void unsetItemPriceQuantityList() {
-
 
76635
      this.itemPriceQuantityList = null;
-
 
76636
    }
-
 
76637
 
-
 
76638
    /** Returns true if field itemPriceQuantityList is set (has been assigned a value) and false otherwise */
-
 
76639
    public boolean isSetItemPriceQuantityList() {
-
 
76640
      return this.itemPriceQuantityList != null;
-
 
76641
    }
-
 
76642
 
-
 
76643
    public void setItemPriceQuantityListIsSet(boolean value) {
-
 
76644
      if (!value) {
-
 
76645
        this.itemPriceQuantityList = null;
-
 
76646
      }
-
 
76647
    }
-
 
76648
 
-
 
76649
    public void setFieldValue(_Fields field, Object value) {
-
 
76650
      switch (field) {
-
 
76651
      case CART_ID:
-
 
76652
        if (value == null) {
-
 
76653
          unsetCartId();
-
 
76654
        } else {
-
 
76655
          setCartId((Long)value);
-
 
76656
        }
-
 
76657
        break;
-
 
76658
 
-
 
76659
      case ITEM_PRICE_QUANTITY_LIST:
-
 
76660
        if (value == null) {
-
 
76661
          unsetItemPriceQuantityList();
-
 
76662
        } else {
-
 
76663
          setItemPriceQuantityList((List<ItemPriceQuantity>)value);
-
 
76664
        }
-
 
76665
        break;
-
 
76666
 
-
 
76667
      }
-
 
76668
    }
-
 
76669
 
-
 
76670
    public Object getFieldValue(_Fields field) {
-
 
76671
      switch (field) {
-
 
76672
      case CART_ID:
-
 
76673
        return Long.valueOf(getCartId());
-
 
76674
 
-
 
76675
      case ITEM_PRICE_QUANTITY_LIST:
-
 
76676
        return getItemPriceQuantityList();
-
 
76677
 
-
 
76678
      }
-
 
76679
      throw new IllegalStateException();
-
 
76680
    }
-
 
76681
 
-
 
76682
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
76683
    public boolean isSet(_Fields field) {
-
 
76684
      if (field == null) {
-
 
76685
        throw new IllegalArgumentException();
-
 
76686
      }
-
 
76687
 
-
 
76688
      switch (field) {
-
 
76689
      case CART_ID:
-
 
76690
        return isSetCartId();
-
 
76691
      case ITEM_PRICE_QUANTITY_LIST:
-
 
76692
        return isSetItemPriceQuantityList();
-
 
76693
      }
-
 
76694
      throw new IllegalStateException();
-
 
76695
    }
-
 
76696
 
-
 
76697
    @Override
-
 
76698
    public boolean equals(Object that) {
-
 
76699
      if (that == null)
-
 
76700
        return false;
-
 
76701
      if (that instanceof addItemPricingToCart_args)
-
 
76702
        return this.equals((addItemPricingToCart_args)that);
-
 
76703
      return false;
-
 
76704
    }
-
 
76705
 
-
 
76706
    public boolean equals(addItemPricingToCart_args that) {
-
 
76707
      if (that == null)
-
 
76708
        return false;
-
 
76709
 
-
 
76710
      boolean this_present_cartId = true;
-
 
76711
      boolean that_present_cartId = true;
-
 
76712
      if (this_present_cartId || that_present_cartId) {
-
 
76713
        if (!(this_present_cartId && that_present_cartId))
-
 
76714
          return false;
-
 
76715
        if (this.cartId != that.cartId)
-
 
76716
          return false;
-
 
76717
      }
-
 
76718
 
-
 
76719
      boolean this_present_itemPriceQuantityList = true && this.isSetItemPriceQuantityList();
-
 
76720
      boolean that_present_itemPriceQuantityList = true && that.isSetItemPriceQuantityList();
-
 
76721
      if (this_present_itemPriceQuantityList || that_present_itemPriceQuantityList) {
-
 
76722
        if (!(this_present_itemPriceQuantityList && that_present_itemPriceQuantityList))
-
 
76723
          return false;
-
 
76724
        if (!this.itemPriceQuantityList.equals(that.itemPriceQuantityList))
-
 
76725
          return false;
-
 
76726
      }
-
 
76727
 
-
 
76728
      return true;
-
 
76729
    }
-
 
76730
 
-
 
76731
    @Override
-
 
76732
    public int hashCode() {
-
 
76733
      return 0;
-
 
76734
    }
-
 
76735
 
-
 
76736
    public int compareTo(addItemPricingToCart_args other) {
-
 
76737
      if (!getClass().equals(other.getClass())) {
-
 
76738
        return getClass().getName().compareTo(other.getClass().getName());
-
 
76739
      }
-
 
76740
 
-
 
76741
      int lastComparison = 0;
-
 
76742
      addItemPricingToCart_args typedOther = (addItemPricingToCart_args)other;
-
 
76743
 
-
 
76744
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
76745
      if (lastComparison != 0) {
-
 
76746
        return lastComparison;
-
 
76747
      }
-
 
76748
      if (isSetCartId()) {
-
 
76749
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
76750
        if (lastComparison != 0) {
-
 
76751
          return lastComparison;
-
 
76752
        }
-
 
76753
      }
-
 
76754
      lastComparison = Boolean.valueOf(isSetItemPriceQuantityList()).compareTo(typedOther.isSetItemPriceQuantityList());
-
 
76755
      if (lastComparison != 0) {
-
 
76756
        return lastComparison;
-
 
76757
      }
-
 
76758
      if (isSetItemPriceQuantityList()) {
-
 
76759
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemPriceQuantityList, typedOther.itemPriceQuantityList);
-
 
76760
        if (lastComparison != 0) {
-
 
76761
          return lastComparison;
-
 
76762
        }
-
 
76763
      }
-
 
76764
      return 0;
-
 
76765
    }
-
 
76766
 
-
 
76767
    public _Fields fieldForId(int fieldId) {
-
 
76768
      return _Fields.findByThriftId(fieldId);
-
 
76769
    }
-
 
76770
 
-
 
76771
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
76772
      org.apache.thrift.protocol.TField field;
-
 
76773
      iprot.readStructBegin();
-
 
76774
      while (true)
-
 
76775
      {
-
 
76776
        field = iprot.readFieldBegin();
-
 
76777
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
76778
          break;
-
 
76779
        }
-
 
76780
        switch (field.id) {
-
 
76781
          case 1: // CART_ID
-
 
76782
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
76783
              this.cartId = iprot.readI64();
-
 
76784
              setCartIdIsSet(true);
-
 
76785
            } else { 
-
 
76786
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76787
            }
-
 
76788
            break;
-
 
76789
          case 2: // ITEM_PRICE_QUANTITY_LIST
-
 
76790
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
76791
              {
-
 
76792
                org.apache.thrift.protocol.TList _list167 = iprot.readListBegin();
-
 
76793
                this.itemPriceQuantityList = new ArrayList<ItemPriceQuantity>(_list167.size);
-
 
76794
                for (int _i168 = 0; _i168 < _list167.size; ++_i168)
-
 
76795
                {
-
 
76796
                  ItemPriceQuantity _elem169; // required
-
 
76797
                  _elem169 = new ItemPriceQuantity();
-
 
76798
                  _elem169.read(iprot);
-
 
76799
                  this.itemPriceQuantityList.add(_elem169);
-
 
76800
                }
-
 
76801
                iprot.readListEnd();
-
 
76802
              }
-
 
76803
            } else { 
-
 
76804
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76805
            }
-
 
76806
            break;
-
 
76807
          default:
-
 
76808
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76809
        }
-
 
76810
        iprot.readFieldEnd();
-
 
76811
      }
-
 
76812
      iprot.readStructEnd();
-
 
76813
      validate();
-
 
76814
    }
-
 
76815
 
-
 
76816
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
76817
      validate();
-
 
76818
 
-
 
76819
      oprot.writeStructBegin(STRUCT_DESC);
-
 
76820
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
76821
      oprot.writeI64(this.cartId);
-
 
76822
      oprot.writeFieldEnd();
-
 
76823
      if (this.itemPriceQuantityList != null) {
-
 
76824
        oprot.writeFieldBegin(ITEM_PRICE_QUANTITY_LIST_FIELD_DESC);
-
 
76825
        {
-
 
76826
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.itemPriceQuantityList.size()));
-
 
76827
          for (ItemPriceQuantity _iter170 : this.itemPriceQuantityList)
-
 
76828
          {
-
 
76829
            _iter170.write(oprot);
-
 
76830
          }
-
 
76831
          oprot.writeListEnd();
-
 
76832
        }
-
 
76833
        oprot.writeFieldEnd();
-
 
76834
      }
-
 
76835
      oprot.writeFieldStop();
-
 
76836
      oprot.writeStructEnd();
-
 
76837
    }
-
 
76838
 
-
 
76839
    @Override
-
 
76840
    public String toString() {
-
 
76841
      StringBuilder sb = new StringBuilder("addItemPricingToCart_args(");
-
 
76842
      boolean first = true;
-
 
76843
 
-
 
76844
      sb.append("cartId:");
-
 
76845
      sb.append(this.cartId);
-
 
76846
      first = false;
-
 
76847
      if (!first) sb.append(", ");
-
 
76848
      sb.append("itemPriceQuantityList:");
-
 
76849
      if (this.itemPriceQuantityList == null) {
-
 
76850
        sb.append("null");
-
 
76851
      } else {
-
 
76852
        sb.append(this.itemPriceQuantityList);
-
 
76853
      }
-
 
76854
      first = false;
-
 
76855
      sb.append(")");
-
 
76856
      return sb.toString();
-
 
76857
    }
-
 
76858
 
-
 
76859
    public void validate() throws org.apache.thrift.TException {
-
 
76860
      // check for required fields
-
 
76861
    }
-
 
76862
 
-
 
76863
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
76864
      try {
-
 
76865
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
76866
      } catch (org.apache.thrift.TException te) {
-
 
76867
        throw new java.io.IOException(te);
-
 
76868
      }
-
 
76869
    }
-
 
76870
 
-
 
76871
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
76872
      try {
-
 
76873
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
76874
        __isset_bit_vector = new BitSet(1);
-
 
76875
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
76876
      } catch (org.apache.thrift.TException te) {
-
 
76877
        throw new java.io.IOException(te);
-
 
76878
      }
-
 
76879
    }
-
 
76880
 
-
 
76881
  }
-
 
76882
 
-
 
76883
  public static class addItemPricingToCart_result implements org.apache.thrift.TBase<addItemPricingToCart_result, addItemPricingToCart_result._Fields>, java.io.Serializable, Cloneable   {
-
 
76884
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemPricingToCart_result");
-
 
76885
 
-
 
76886
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
76887
 
-
 
76888
    private boolean success; // required
-
 
76889
 
-
 
76890
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
76891
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
76892
      SUCCESS((short)0, "success");
-
 
76893
 
-
 
76894
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
76895
 
-
 
76896
      static {
-
 
76897
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
76898
          byName.put(field.getFieldName(), field);
-
 
76899
        }
-
 
76900
      }
-
 
76901
 
-
 
76902
      /**
-
 
76903
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
76904
       */
-
 
76905
      public static _Fields findByThriftId(int fieldId) {
-
 
76906
        switch(fieldId) {
-
 
76907
          case 0: // SUCCESS
-
 
76908
            return SUCCESS;
-
 
76909
          default:
-
 
76910
            return null;
-
 
76911
        }
-
 
76912
      }
-
 
76913
 
-
 
76914
      /**
-
 
76915
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
76916
       * if it is not found.
-
 
76917
       */
-
 
76918
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
76919
        _Fields fields = findByThriftId(fieldId);
-
 
76920
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
76921
        return fields;
-
 
76922
      }
-
 
76923
 
-
 
76924
      /**
-
 
76925
       * Find the _Fields constant that matches name, or null if its not found.
-
 
76926
       */
-
 
76927
      public static _Fields findByName(String name) {
-
 
76928
        return byName.get(name);
-
 
76929
      }
-
 
76930
 
-
 
76931
      private final short _thriftId;
-
 
76932
      private final String _fieldName;
-
 
76933
 
-
 
76934
      _Fields(short thriftId, String fieldName) {
-
 
76935
        _thriftId = thriftId;
-
 
76936
        _fieldName = fieldName;
-
 
76937
      }
-
 
76938
 
-
 
76939
      public short getThriftFieldId() {
-
 
76940
        return _thriftId;
-
 
76941
      }
-
 
76942
 
-
 
76943
      public String getFieldName() {
-
 
76944
        return _fieldName;
-
 
76945
      }
-
 
76946
    }
-
 
76947
 
-
 
76948
    // isset id assignments
-
 
76949
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
76950
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
76951
 
-
 
76952
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
76953
    static {
-
 
76954
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
76955
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
76956
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
76957
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
76958
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemPricingToCart_result.class, metaDataMap);
-
 
76959
    }
-
 
76960
 
-
 
76961
    public addItemPricingToCart_result() {
-
 
76962
    }
-
 
76963
 
-
 
76964
    public addItemPricingToCart_result(
-
 
76965
      boolean success)
-
 
76966
    {
-
 
76967
      this();
-
 
76968
      this.success = success;
-
 
76969
      setSuccessIsSet(true);
-
 
76970
    }
-
 
76971
 
-
 
76972
    /**
-
 
76973
     * Performs a deep copy on <i>other</i>.
-
 
76974
     */
-
 
76975
    public addItemPricingToCart_result(addItemPricingToCart_result other) {
-
 
76976
      __isset_bit_vector.clear();
-
 
76977
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
76978
      this.success = other.success;
-
 
76979
    }
-
 
76980
 
-
 
76981
    public addItemPricingToCart_result deepCopy() {
-
 
76982
      return new addItemPricingToCart_result(this);
-
 
76983
    }
-
 
76984
 
-
 
76985
    @Override
-
 
76986
    public void clear() {
-
 
76987
      setSuccessIsSet(false);
-
 
76988
      this.success = false;
-
 
76989
    }
-
 
76990
 
-
 
76991
    public boolean isSuccess() {
-
 
76992
      return this.success;
-
 
76993
    }
-
 
76994
 
-
 
76995
    public void setSuccess(boolean success) {
-
 
76996
      this.success = success;
-
 
76997
      setSuccessIsSet(true);
-
 
76998
    }
-
 
76999
 
-
 
77000
    public void unsetSuccess() {
-
 
77001
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
77002
    }
-
 
77003
 
-
 
77004
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
77005
    public boolean isSetSuccess() {
-
 
77006
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
77007
    }
-
 
77008
 
-
 
77009
    public void setSuccessIsSet(boolean value) {
-
 
77010
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
77011
    }
-
 
77012
 
-
 
77013
    public void setFieldValue(_Fields field, Object value) {
-
 
77014
      switch (field) {
-
 
77015
      case SUCCESS:
-
 
77016
        if (value == null) {
-
 
77017
          unsetSuccess();
-
 
77018
        } else {
-
 
77019
          setSuccess((Boolean)value);
-
 
77020
        }
-
 
77021
        break;
-
 
77022
 
-
 
77023
      }
-
 
77024
    }
-
 
77025
 
-
 
77026
    public Object getFieldValue(_Fields field) {
-
 
77027
      switch (field) {
-
 
77028
      case SUCCESS:
-
 
77029
        return Boolean.valueOf(isSuccess());
-
 
77030
 
-
 
77031
      }
-
 
77032
      throw new IllegalStateException();
-
 
77033
    }
-
 
77034
 
-
 
77035
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
77036
    public boolean isSet(_Fields field) {
-
 
77037
      if (field == null) {
-
 
77038
        throw new IllegalArgumentException();
-
 
77039
      }
-
 
77040
 
-
 
77041
      switch (field) {
-
 
77042
      case SUCCESS:
-
 
77043
        return isSetSuccess();
-
 
77044
      }
-
 
77045
      throw new IllegalStateException();
-
 
77046
    }
-
 
77047
 
-
 
77048
    @Override
-
 
77049
    public boolean equals(Object that) {
-
 
77050
      if (that == null)
-
 
77051
        return false;
-
 
77052
      if (that instanceof addItemPricingToCart_result)
-
 
77053
        return this.equals((addItemPricingToCart_result)that);
-
 
77054
      return false;
-
 
77055
    }
-
 
77056
 
-
 
77057
    public boolean equals(addItemPricingToCart_result that) {
-
 
77058
      if (that == null)
-
 
77059
        return false;
-
 
77060
 
-
 
77061
      boolean this_present_success = true;
-
 
77062
      boolean that_present_success = true;
-
 
77063
      if (this_present_success || that_present_success) {
-
 
77064
        if (!(this_present_success && that_present_success))
-
 
77065
          return false;
-
 
77066
        if (this.success != that.success)
-
 
77067
          return false;
-
 
77068
      }
-
 
77069
 
-
 
77070
      return true;
-
 
77071
    }
-
 
77072
 
-
 
77073
    @Override
-
 
77074
    public int hashCode() {
-
 
77075
      return 0;
-
 
77076
    }
-
 
77077
 
-
 
77078
    public int compareTo(addItemPricingToCart_result other) {
-
 
77079
      if (!getClass().equals(other.getClass())) {
-
 
77080
        return getClass().getName().compareTo(other.getClass().getName());
-
 
77081
      }
-
 
77082
 
-
 
77083
      int lastComparison = 0;
-
 
77084
      addItemPricingToCart_result typedOther = (addItemPricingToCart_result)other;
-
 
77085
 
-
 
77086
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
77087
      if (lastComparison != 0) {
-
 
77088
        return lastComparison;
-
 
77089
      }
-
 
77090
      if (isSetSuccess()) {
-
 
77091
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
77092
        if (lastComparison != 0) {
-
 
77093
          return lastComparison;
-
 
77094
        }
-
 
77095
      }
-
 
77096
      return 0;
-
 
77097
    }
-
 
77098
 
-
 
77099
    public _Fields fieldForId(int fieldId) {
-
 
77100
      return _Fields.findByThriftId(fieldId);
-
 
77101
    }
-
 
77102
 
-
 
77103
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
77104
      org.apache.thrift.protocol.TField field;
-
 
77105
      iprot.readStructBegin();
-
 
77106
      while (true)
-
 
77107
      {
-
 
77108
        field = iprot.readFieldBegin();
-
 
77109
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
77110
          break;
-
 
77111
        }
-
 
77112
        switch (field.id) {
-
 
77113
          case 0: // SUCCESS
-
 
77114
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
77115
              this.success = iprot.readBool();
-
 
77116
              setSuccessIsSet(true);
-
 
77117
            } else { 
-
 
77118
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
77119
            }
-
 
77120
            break;
-
 
77121
          default:
-
 
77122
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
77123
        }
-
 
77124
        iprot.readFieldEnd();
-
 
77125
      }
-
 
77126
      iprot.readStructEnd();
-
 
77127
      validate();
-
 
77128
    }
-
 
77129
 
-
 
77130
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
77131
      oprot.writeStructBegin(STRUCT_DESC);
-
 
77132
 
-
 
77133
      if (this.isSetSuccess()) {
-
 
77134
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
77135
        oprot.writeBool(this.success);
-
 
77136
        oprot.writeFieldEnd();
-
 
77137
      }
-
 
77138
      oprot.writeFieldStop();
-
 
77139
      oprot.writeStructEnd();
-
 
77140
    }
-
 
77141
 
-
 
77142
    @Override
-
 
77143
    public String toString() {
-
 
77144
      StringBuilder sb = new StringBuilder("addItemPricingToCart_result(");
-
 
77145
      boolean first = true;
-
 
77146
 
-
 
77147
      sb.append("success:");
-
 
77148
      sb.append(this.success);
-
 
77149
      first = false;
76370
      sb.append(")");
77150
      sb.append(")");
76371
      return sb.toString();
77151
      return sb.toString();
76372
    }
77152
    }
76373
 
77153
 
76374
    public void validate() throws org.apache.thrift.TException {
77154
    public void validate() throws org.apache.thrift.TException {