Subversion Repositories SmartDukaan

Rev

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

Rev 1925 Rev 1968
Line 139... Line 139...
139
     * @param warehouseId
139
     * @param warehouseId
140
     */
140
     */
141
    public VendorItemPricing getItemPricing(long itemId, long warehouseId) throws InventoryServiceException, TException;
141
    public VendorItemPricing getItemPricing(long itemId, long warehouseId) throws InventoryServiceException, TException;
142
 
142
 
143
    /**
143
    /**
144
     * Store category object and retrieve it
144
     * All category related functions
145
     * 
145
     * 
146
     * @param object
146
     * @param category
147
     */
147
     */
148
    public boolean putCategoryObject(byte[] object) throws TException;
148
    public boolean addCategory(Category category) throws TException;
149
 
149
 
150
    public byte[] getCategoryObject() throws TException;
150
    public Category getCategory(long id) throws TException;
-
 
151
 
-
 
152
    public List<Category> getAllCategories() throws TException;
151
 
153
 
152
  }
154
  }
153
 
155
 
154
  public static class Client implements Iface {
156
  public static class Client implements Iface {
155
    public Client(TProtocol prot)
157
    public Client(TProtocol prot)
Line 1462... Line 1464...
1462
        throw result.cex;
1464
        throw result.cex;
1463
      }
1465
      }
1464
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1466
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1465
    }
1467
    }
1466
 
1468
 
1467
    public boolean putCategoryObject(byte[] object) throws TException
1469
    public boolean addCategory(Category category) throws TException
-
 
1470
    {
-
 
1471
      send_addCategory(category);
-
 
1472
      return recv_addCategory();
-
 
1473
    }
-
 
1474
 
-
 
1475
    public void send_addCategory(Category category) throws TException
-
 
1476
    {
-
 
1477
      oprot_.writeMessageBegin(new TMessage("addCategory", TMessageType.CALL, seqid_));
-
 
1478
      addCategory_args args = new addCategory_args();
-
 
1479
      args.category = category;
-
 
1480
      args.write(oprot_);
-
 
1481
      oprot_.writeMessageEnd();
-
 
1482
      oprot_.getTransport().flush();
-
 
1483
    }
-
 
1484
 
-
 
1485
    public boolean recv_addCategory() throws TException
-
 
1486
    {
-
 
1487
      TMessage msg = iprot_.readMessageBegin();
-
 
1488
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1489
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1490
        iprot_.readMessageEnd();
-
 
1491
        throw x;
-
 
1492
      }
-
 
1493
      addCategory_result result = new addCategory_result();
-
 
1494
      result.read(iprot_);
-
 
1495
      iprot_.readMessageEnd();
-
 
1496
      if (result.isSetSuccess()) {
-
 
1497
        return result.success;
-
 
1498
      }
-
 
1499
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
-
 
1500
    }
-
 
1501
 
-
 
1502
    public Category getCategory(long id) throws TException
1468
    {
1503
    {
1469
      send_putCategoryObject(object);
1504
      send_getCategory(id);
1470
      return recv_putCategoryObject();
1505
      return recv_getCategory();
1471
    }
1506
    }
1472
 
1507
 
1473
    public void send_putCategoryObject(byte[] object) throws TException
1508
    public void send_getCategory(long id) throws TException
1474
    {
1509
    {
1475
      oprot_.writeMessageBegin(new TMessage("putCategoryObject", TMessageType.CALL, seqid_));
1510
      oprot_.writeMessageBegin(new TMessage("getCategory", TMessageType.CALL, seqid_));
1476
      putCategoryObject_args args = new putCategoryObject_args();
1511
      getCategory_args args = new getCategory_args();
1477
      args.object = object;
1512
      args.id = id;
1478
      args.write(oprot_);
1513
      args.write(oprot_);
1479
      oprot_.writeMessageEnd();
1514
      oprot_.writeMessageEnd();
1480
      oprot_.getTransport().flush();
1515
      oprot_.getTransport().flush();
1481
    }
1516
    }
1482
 
1517
 
1483
    public boolean recv_putCategoryObject() throws TException
1518
    public Category recv_getCategory() throws TException
1484
    {
1519
    {
1485
      TMessage msg = iprot_.readMessageBegin();
1520
      TMessage msg = iprot_.readMessageBegin();
1486
      if (msg.type == TMessageType.EXCEPTION) {
1521
      if (msg.type == TMessageType.EXCEPTION) {
1487
        TApplicationException x = TApplicationException.read(iprot_);
1522
        TApplicationException x = TApplicationException.read(iprot_);
1488
        iprot_.readMessageEnd();
1523
        iprot_.readMessageEnd();
1489
        throw x;
1524
        throw x;
1490
      }
1525
      }
1491
      putCategoryObject_result result = new putCategoryObject_result();
1526
      getCategory_result result = new getCategory_result();
1492
      result.read(iprot_);
1527
      result.read(iprot_);
1493
      iprot_.readMessageEnd();
1528
      iprot_.readMessageEnd();
1494
      if (result.isSetSuccess()) {
1529
      if (result.isSetSuccess()) {
1495
        return result.success;
1530
        return result.success;
1496
      }
1531
      }
1497
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "putCategoryObject failed: unknown result");
1532
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1498
    }
1533
    }
1499
 
1534
 
1500
    public byte[] getCategoryObject() throws TException
1535
    public List<Category> getAllCategories() throws TException
1501
    {
1536
    {
1502
      send_getCategoryObject();
1537
      send_getAllCategories();
1503
      return recv_getCategoryObject();
1538
      return recv_getAllCategories();
1504
    }
1539
    }
1505
 
1540
 
1506
    public void send_getCategoryObject() throws TException
1541
    public void send_getAllCategories() throws TException
1507
    {
1542
    {
1508
      oprot_.writeMessageBegin(new TMessage("getCategoryObject", TMessageType.CALL, seqid_));
1543
      oprot_.writeMessageBegin(new TMessage("getAllCategories", TMessageType.CALL, seqid_));
1509
      getCategoryObject_args args = new getCategoryObject_args();
1544
      getAllCategories_args args = new getAllCategories_args();
1510
      args.write(oprot_);
1545
      args.write(oprot_);
1511
      oprot_.writeMessageEnd();
1546
      oprot_.writeMessageEnd();
1512
      oprot_.getTransport().flush();
1547
      oprot_.getTransport().flush();
1513
    }
1548
    }
1514
 
1549
 
1515
    public byte[] recv_getCategoryObject() throws TException
1550
    public List<Category> recv_getAllCategories() throws TException
1516
    {
1551
    {
1517
      TMessage msg = iprot_.readMessageBegin();
1552
      TMessage msg = iprot_.readMessageBegin();
1518
      if (msg.type == TMessageType.EXCEPTION) {
1553
      if (msg.type == TMessageType.EXCEPTION) {
1519
        TApplicationException x = TApplicationException.read(iprot_);
1554
        TApplicationException x = TApplicationException.read(iprot_);
1520
        iprot_.readMessageEnd();
1555
        iprot_.readMessageEnd();
1521
        throw x;
1556
        throw x;
1522
      }
1557
      }
1523
      getCategoryObject_result result = new getCategoryObject_result();
1558
      getAllCategories_result result = new getAllCategories_result();
1524
      result.read(iprot_);
1559
      result.read(iprot_);
1525
      iprot_.readMessageEnd();
1560
      iprot_.readMessageEnd();
1526
      if (result.isSetSuccess()) {
1561
      if (result.isSetSuccess()) {
1527
        return result.success;
1562
        return result.success;
1528
      }
1563
      }
1529
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getCategoryObject failed: unknown result");
1564
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1530
    }
1565
    }
1531
 
1566
 
1532
  }
1567
  }
1533
  public static class Processor implements TProcessor {
1568
  public static class Processor implements TProcessor {
1534
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1569
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
Line 1569... Line 1604...
1569
      processMap_.put("getLatestArrivals", new getLatestArrivals());
1604
      processMap_.put("getLatestArrivals", new getLatestArrivals());
1570
      processMap_.put("getLatestArrivalsCatalogIds", new getLatestArrivalsCatalogIds());
1605
      processMap_.put("getLatestArrivalsCatalogIds", new getLatestArrivalsCatalogIds());
1571
      processMap_.put("getLatestArrivalsCount", new getLatestArrivalsCount());
1606
      processMap_.put("getLatestArrivalsCount", new getLatestArrivalsCount());
1572
      processMap_.put("generateNewEntityID", new generateNewEntityID());
1607
      processMap_.put("generateNewEntityID", new generateNewEntityID());
1573
      processMap_.put("getItemPricing", new getItemPricing());
1608
      processMap_.put("getItemPricing", new getItemPricing());
1574
      processMap_.put("putCategoryObject", new putCategoryObject());
1609
      processMap_.put("addCategory", new addCategory());
1575
      processMap_.put("getCategoryObject", new getCategoryObject());
1610
      processMap_.put("getCategory", new getCategory());
-
 
1611
      processMap_.put("getAllCategories", new getAllCategories());
1576
    }
1612
    }
1577
 
1613
 
1578
    protected static interface ProcessFunction {
1614
    protected static interface ProcessFunction {
1579
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1615
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1580
    }
1616
    }
Line 2594... Line 2630...
2594
        oprot.getTransport().flush();
2630
        oprot.getTransport().flush();
2595
      }
2631
      }
2596
 
2632
 
2597
    }
2633
    }
2598
 
2634
 
2599
    private class putCategoryObject implements ProcessFunction {
2635
    private class addCategory implements ProcessFunction {
2600
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2636
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2601
      {
2637
      {
2602
        putCategoryObject_args args = new putCategoryObject_args();
2638
        addCategory_args args = new addCategory_args();
2603
        args.read(iprot);
2639
        args.read(iprot);
2604
        iprot.readMessageEnd();
2640
        iprot.readMessageEnd();
2605
        putCategoryObject_result result = new putCategoryObject_result();
2641
        addCategory_result result = new addCategory_result();
2606
        result.success = iface_.putCategoryObject(args.object);
2642
        result.success = iface_.addCategory(args.category);
2607
        result.setSuccessIsSet(true);
2643
        result.setSuccessIsSet(true);
-
 
2644
        oprot.writeMessageBegin(new TMessage("addCategory", TMessageType.REPLY, seqid));
-
 
2645
        result.write(oprot);
-
 
2646
        oprot.writeMessageEnd();
-
 
2647
        oprot.getTransport().flush();
-
 
2648
      }
-
 
2649
 
-
 
2650
    }
-
 
2651
 
-
 
2652
    private class getCategory implements ProcessFunction {
-
 
2653
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2654
      {
-
 
2655
        getCategory_args args = new getCategory_args();
-
 
2656
        args.read(iprot);
-
 
2657
        iprot.readMessageEnd();
-
 
2658
        getCategory_result result = new getCategory_result();
-
 
2659
        result.success = iface_.getCategory(args.id);
2608
        oprot.writeMessageBegin(new TMessage("putCategoryObject", TMessageType.REPLY, seqid));
2660
        oprot.writeMessageBegin(new TMessage("getCategory", TMessageType.REPLY, seqid));
2609
        result.write(oprot);
2661
        result.write(oprot);
2610
        oprot.writeMessageEnd();
2662
        oprot.writeMessageEnd();
2611
        oprot.getTransport().flush();
2663
        oprot.getTransport().flush();
2612
      }
2664
      }
2613
 
2665
 
2614
    }
2666
    }
2615
 
2667
 
2616
    private class getCategoryObject implements ProcessFunction {
2668
    private class getAllCategories implements ProcessFunction {
2617
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2669
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2618
      {
2670
      {
2619
        getCategoryObject_args args = new getCategoryObject_args();
2671
        getAllCategories_args args = new getAllCategories_args();
2620
        args.read(iprot);
2672
        args.read(iprot);
2621
        iprot.readMessageEnd();
2673
        iprot.readMessageEnd();
2622
        getCategoryObject_result result = new getCategoryObject_result();
2674
        getAllCategories_result result = new getAllCategories_result();
2623
        result.success = iface_.getCategoryObject();
2675
        result.success = iface_.getAllCategories();
2624
        oprot.writeMessageBegin(new TMessage("getCategoryObject", TMessageType.REPLY, seqid));
2676
        oprot.writeMessageBegin(new TMessage("getAllCategories", TMessageType.REPLY, seqid));
2625
        result.write(oprot);
2677
        result.write(oprot);
2626
        oprot.writeMessageEnd();
2678
        oprot.writeMessageEnd();
2627
        oprot.getTransport().flush();
2679
        oprot.getTransport().flush();
2628
      }
2680
      }
2629
 
2681
 
Line 5917... Line 5969...
5917
              }
5969
              }
5918
              break;
5970
              break;
5919
            case AVAILABILITY:
5971
            case AVAILABILITY:
5920
              if (field.type == TType.MAP) {
5972
              if (field.type == TType.MAP) {
5921
                {
5973
                {
5922
                  TMap _map10 = iprot.readMapBegin();
5974
                  TMap _map14 = iprot.readMapBegin();
5923
                  this.availability = new HashMap<String,Long>(2*_map10.size);
5975
                  this.availability = new HashMap<String,Long>(2*_map14.size);
5924
                  for (int _i11 = 0; _i11 < _map10.size; ++_i11)
5976
                  for (int _i15 = 0; _i15 < _map14.size; ++_i15)
5925
                  {
5977
                  {
5926
                    String _key12;
5978
                    String _key16;
5927
                    long _val13;
5979
                    long _val17;
5928
                    _key12 = iprot.readString();
5980
                    _key16 = iprot.readString();
5929
                    _val13 = iprot.readI64();
5981
                    _val17 = iprot.readI64();
5930
                    this.availability.put(_key12, _val13);
5982
                    this.availability.put(_key16, _val17);
5931
                  }
5983
                  }
5932
                  iprot.readMapEnd();
5984
                  iprot.readMapEnd();
5933
                }
5985
                }
5934
              } else { 
5986
              } else { 
5935
                TProtocolUtil.skip(iprot, field.type);
5987
                TProtocolUtil.skip(iprot, field.type);
Line 5957... Line 6009...
5957
      }
6009
      }
5958
      if (this.availability != null) {
6010
      if (this.availability != null) {
5959
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
6011
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
5960
        {
6012
        {
5961
          oprot.writeMapBegin(new TMap(TType.STRING, TType.I64, this.availability.size()));
6013
          oprot.writeMapBegin(new TMap(TType.STRING, TType.I64, this.availability.size()));
5962
          for (Map.Entry<String, Long> _iter14 : this.availability.entrySet())
6014
          for (Map.Entry<String, Long> _iter18 : this.availability.entrySet())
5963
          {
6015
          {
5964
            oprot.writeString(_iter14.getKey());
6016
            oprot.writeString(_iter18.getKey());
5965
            oprot.writeI64(_iter14.getValue());
6017
            oprot.writeI64(_iter18.getValue());
5966
          }
6018
          }
5967
          oprot.writeMapEnd();
6019
          oprot.writeMapEnd();
5968
        }
6020
        }
5969
        oprot.writeFieldEnd();
6021
        oprot.writeFieldEnd();
5970
      }
6022
      }
Line 10044... Line 10096...
10044
        } else {
10096
        } else {
10045
          switch (fieldId) {
10097
          switch (fieldId) {
10046
            case SUCCESS:
10098
            case SUCCESS:
10047
              if (field.type == TType.LIST) {
10099
              if (field.type == TType.LIST) {
10048
                {
10100
                {
10049
                  TList _list15 = iprot.readListBegin();
10101
                  TList _list19 = iprot.readListBegin();
10050
                  this.success = new ArrayList<Item>(_list15.size);
10102
                  this.success = new ArrayList<Item>(_list19.size);
10051
                  for (int _i16 = 0; _i16 < _list15.size; ++_i16)
10103
                  for (int _i20 = 0; _i20 < _list19.size; ++_i20)
10052
                  {
10104
                  {
10053
                    Item _elem17;
10105
                    Item _elem21;
10054
                    _elem17 = new Item();
10106
                    _elem21 = new Item();
10055
                    _elem17.read(iprot);
10107
                    _elem21.read(iprot);
10056
                    this.success.add(_elem17);
10108
                    this.success.add(_elem21);
10057
                  }
10109
                  }
10058
                  iprot.readListEnd();
10110
                  iprot.readListEnd();
10059
                }
10111
                }
10060
              } else { 
10112
              } else { 
10061
                TProtocolUtil.skip(iprot, field.type);
10113
                TProtocolUtil.skip(iprot, field.type);
Line 10082... Line 10134...
10082
 
10134
 
10083
      if (this.isSetSuccess()) {
10135
      if (this.isSetSuccess()) {
10084
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10136
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10085
        {
10137
        {
10086
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
10138
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
10087
          for (Item _iter18 : this.success)
10139
          for (Item _iter22 : this.success)
10088
          {
10140
          {
10089
            _iter18.write(oprot);
10141
            _iter22.write(oprot);
10090
          }
10142
          }
10091
          oprot.writeListEnd();
10143
          oprot.writeListEnd();
10092
        }
10144
        }
10093
        oprot.writeFieldEnd();
10145
        oprot.writeFieldEnd();
10094
      } else if (this.isSetCex()) {
10146
      } else if (this.isSetCex()) {
Line 10697... Line 10749...
10697
        } else {
10749
        } else {
10698
          switch (fieldId) {
10750
          switch (fieldId) {
10699
            case SUCCESS:
10751
            case SUCCESS:
10700
              if (field.type == TType.LIST) {
10752
              if (field.type == TType.LIST) {
10701
                {
10753
                {
10702
                  TList _list19 = iprot.readListBegin();
10754
                  TList _list23 = iprot.readListBegin();
10703
                  this.success = new ArrayList<Item>(_list19.size);
10755
                  this.success = new ArrayList<Item>(_list23.size);
10704
                  for (int _i20 = 0; _i20 < _list19.size; ++_i20)
10756
                  for (int _i24 = 0; _i24 < _list23.size; ++_i24)
10705
                  {
10757
                  {
10706
                    Item _elem21;
10758
                    Item _elem25;
10707
                    _elem21 = new Item();
10759
                    _elem25 = new Item();
10708
                    _elem21.read(iprot);
10760
                    _elem25.read(iprot);
10709
                    this.success.add(_elem21);
10761
                    this.success.add(_elem25);
10710
                  }
10762
                  }
10711
                  iprot.readListEnd();
10763
                  iprot.readListEnd();
10712
                }
10764
                }
10713
              } else { 
10765
              } else { 
10714
                TProtocolUtil.skip(iprot, field.type);
10766
                TProtocolUtil.skip(iprot, field.type);
Line 10735... Line 10787...
10735
 
10787
 
10736
      if (this.isSetSuccess()) {
10788
      if (this.isSetSuccess()) {
10737
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10789
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10738
        {
10790
        {
10739
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
10791
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
10740
          for (Item _iter22 : this.success)
10792
          for (Item _iter26 : this.success)
10741
          {
10793
          {
10742
            _iter22.write(oprot);
10794
            _iter26.write(oprot);
10743
          }
10795
          }
10744
          oprot.writeListEnd();
10796
          oprot.writeListEnd();
10745
        }
10797
        }
10746
        oprot.writeFieldEnd();
10798
        oprot.writeFieldEnd();
10747
      } else if (this.isSetCex()) {
10799
      } else if (this.isSetCex()) {
Line 11373... Line 11425...
11373
        } else {
11425
        } else {
11374
          switch (fieldId) {
11426
          switch (fieldId) {
11375
            case SUCCESS:
11427
            case SUCCESS:
11376
              if (field.type == TType.LIST) {
11428
              if (field.type == TType.LIST) {
11377
                {
11429
                {
11378
                  TList _list23 = iprot.readListBegin();
11430
                  TList _list27 = iprot.readListBegin();
11379
                  this.success = new ArrayList<Item>(_list23.size);
11431
                  this.success = new ArrayList<Item>(_list27.size);
11380
                  for (int _i24 = 0; _i24 < _list23.size; ++_i24)
11432
                  for (int _i28 = 0; _i28 < _list27.size; ++_i28)
11381
                  {
11433
                  {
11382
                    Item _elem25;
11434
                    Item _elem29;
11383
                    _elem25 = new Item();
11435
                    _elem29 = new Item();
11384
                    _elem25.read(iprot);
11436
                    _elem29.read(iprot);
11385
                    this.success.add(_elem25);
11437
                    this.success.add(_elem29);
11386
                  }
11438
                  }
11387
                  iprot.readListEnd();
11439
                  iprot.readListEnd();
11388
                }
11440
                }
11389
              } else { 
11441
              } else { 
11390
                TProtocolUtil.skip(iprot, field.type);
11442
                TProtocolUtil.skip(iprot, field.type);
Line 11411... Line 11463...
11411
 
11463
 
11412
      if (this.isSetSuccess()) {
11464
      if (this.isSetSuccess()) {
11413
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11465
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11414
        {
11466
        {
11415
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
11467
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
11416
          for (Item _iter26 : this.success)
11468
          for (Item _iter30 : this.success)
11417
          {
11469
          {
11418
            _iter26.write(oprot);
11470
            _iter30.write(oprot);
11419
          }
11471
          }
11420
          oprot.writeListEnd();
11472
          oprot.writeListEnd();
11421
        }
11473
        }
11422
        oprot.writeFieldEnd();
11474
        oprot.writeFieldEnd();
11423
      } else if (this.isSetCex()) {
11475
      } else if (this.isSetCex()) {
Line 14723... Line 14775...
14723
        } else {
14775
        } else {
14724
          switch (fieldId) {
14776
          switch (fieldId) {
14725
            case SUCCESS:
14777
            case SUCCESS:
14726
              if (field.type == TType.LIST) {
14778
              if (field.type == TType.LIST) {
14727
                {
14779
                {
14728
                  TList _list27 = iprot.readListBegin();
14780
                  TList _list31 = iprot.readListBegin();
14729
                  this.success = new ArrayList<Long>(_list27.size);
14781
                  this.success = new ArrayList<Long>(_list31.size);
14730
                  for (int _i28 = 0; _i28 < _list27.size; ++_i28)
14782
                  for (int _i32 = 0; _i32 < _list31.size; ++_i32)
14731
                  {
14783
                  {
14732
                    long _elem29;
14784
                    long _elem33;
14733
                    _elem29 = iprot.readI64();
14785
                    _elem33 = iprot.readI64();
14734
                    this.success.add(_elem29);
14786
                    this.success.add(_elem33);
14735
                  }
14787
                  }
14736
                  iprot.readListEnd();
14788
                  iprot.readListEnd();
14737
                }
14789
                }
14738
              } else { 
14790
              } else { 
14739
                TProtocolUtil.skip(iprot, field.type);
14791
                TProtocolUtil.skip(iprot, field.type);
Line 14760... Line 14812...
14760
 
14812
 
14761
      if (this.isSetSuccess()) {
14813
      if (this.isSetSuccess()) {
14762
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14814
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14763
        {
14815
        {
14764
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
14816
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
14765
          for (long _iter30 : this.success)
14817
          for (long _iter34 : this.success)
14766
          {
14818
          {
14767
            oprot.writeI64(_iter30);
14819
            oprot.writeI64(_iter34);
14768
          }
14820
          }
14769
          oprot.writeListEnd();
14821
          oprot.writeListEnd();
14770
        }
14822
        }
14771
        oprot.writeFieldEnd();
14823
        oprot.writeFieldEnd();
14772
      } else if (this.isSetIsex()) {
14824
      } else if (this.isSetIsex()) {
Line 15402... Line 15454...
15402
        } else {
15454
        } else {
15403
          switch (fieldId) {
15455
          switch (fieldId) {
15404
            case SUCCESS:
15456
            case SUCCESS:
15405
              if (field.type == TType.LIST) {
15457
              if (field.type == TType.LIST) {
15406
                {
15458
                {
15407
                  TList _list31 = iprot.readListBegin();
15459
                  TList _list35 = iprot.readListBegin();
15408
                  this.success = new ArrayList<Warehouse>(_list31.size);
15460
                  this.success = new ArrayList<Warehouse>(_list35.size);
15409
                  for (int _i32 = 0; _i32 < _list31.size; ++_i32)
15461
                  for (int _i36 = 0; _i36 < _list35.size; ++_i36)
15410
                  {
15462
                  {
15411
                    Warehouse _elem33;
15463
                    Warehouse _elem37;
15412
                    _elem33 = new Warehouse();
15464
                    _elem37 = new Warehouse();
15413
                    _elem33.read(iprot);
15465
                    _elem37.read(iprot);
15414
                    this.success.add(_elem33);
15466
                    this.success.add(_elem37);
15415
                  }
15467
                  }
15416
                  iprot.readListEnd();
15468
                  iprot.readListEnd();
15417
                }
15469
                }
15418
              } else { 
15470
              } else { 
15419
                TProtocolUtil.skip(iprot, field.type);
15471
                TProtocolUtil.skip(iprot, field.type);
Line 15440... Line 15492...
15440
 
15492
 
15441
      if (this.isSetSuccess()) {
15493
      if (this.isSetSuccess()) {
15442
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15494
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15443
        {
15495
        {
15444
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15496
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15445
          for (Warehouse _iter34 : this.success)
15497
          for (Warehouse _iter38 : this.success)
15446
          {
15498
          {
15447
            _iter34.write(oprot);
15499
            _iter38.write(oprot);
15448
          }
15500
          }
15449
          oprot.writeListEnd();
15501
          oprot.writeListEnd();
15450
        }
15502
        }
15451
        oprot.writeFieldEnd();
15503
        oprot.writeFieldEnd();
15452
      } else if (this.isSetCex()) {
15504
      } else if (this.isSetCex()) {
Line 16725... Line 16777...
16725
        } else {
16777
        } else {
16726
          switch (fieldId) {
16778
          switch (fieldId) {
16727
            case SUCCESS:
16779
            case SUCCESS:
16728
              if (field.type == TType.LIST) {
16780
              if (field.type == TType.LIST) {
16729
                {
16781
                {
16730
                  TList _list35 = iprot.readListBegin();
16782
                  TList _list39 = iprot.readListBegin();
16731
                  this.success = new ArrayList<Warehouse>(_list35.size);
16783
                  this.success = new ArrayList<Warehouse>(_list39.size);
16732
                  for (int _i36 = 0; _i36 < _list35.size; ++_i36)
16784
                  for (int _i40 = 0; _i40 < _list39.size; ++_i40)
16733
                  {
16785
                  {
16734
                    Warehouse _elem37;
16786
                    Warehouse _elem41;
16735
                    _elem37 = new Warehouse();
16787
                    _elem41 = new Warehouse();
16736
                    _elem37.read(iprot);
16788
                    _elem41.read(iprot);
16737
                    this.success.add(_elem37);
16789
                    this.success.add(_elem41);
16738
                  }
16790
                  }
16739
                  iprot.readListEnd();
16791
                  iprot.readListEnd();
16740
                }
16792
                }
16741
              } else { 
16793
              } else { 
16742
                TProtocolUtil.skip(iprot, field.type);
16794
                TProtocolUtil.skip(iprot, field.type);
Line 16763... Line 16815...
16763
 
16815
 
16764
      if (this.isSetSuccess()) {
16816
      if (this.isSetSuccess()) {
16765
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16817
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16766
        {
16818
        {
16767
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16819
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16768
          for (Warehouse _iter38 : this.success)
16820
          for (Warehouse _iter42 : this.success)
16769
          {
16821
          {
16770
            _iter38.write(oprot);
16822
            _iter42.write(oprot);
16771
          }
16823
          }
16772
          oprot.writeListEnd();
16824
          oprot.writeListEnd();
16773
        }
16825
        }
16774
        oprot.writeFieldEnd();
16826
        oprot.writeFieldEnd();
16775
      } else if (this.isSetCex()) {
16827
      } else if (this.isSetCex()) {
Line 17378... Line 17430...
17378
        } else {
17430
        } else {
17379
          switch (fieldId) {
17431
          switch (fieldId) {
17380
            case SUCCESS:
17432
            case SUCCESS:
17381
              if (field.type == TType.LIST) {
17433
              if (field.type == TType.LIST) {
17382
                {
17434
                {
17383
                  TList _list39 = iprot.readListBegin();
17435
                  TList _list43 = iprot.readListBegin();
17384
                  this.success = new ArrayList<Item>(_list39.size);
17436
                  this.success = new ArrayList<Item>(_list43.size);
17385
                  for (int _i40 = 0; _i40 < _list39.size; ++_i40)
17437
                  for (int _i44 = 0; _i44 < _list43.size; ++_i44)
17386
                  {
17438
                  {
17387
                    Item _elem41;
17439
                    Item _elem45;
17388
                    _elem41 = new Item();
17440
                    _elem45 = new Item();
17389
                    _elem41.read(iprot);
17441
                    _elem45.read(iprot);
17390
                    this.success.add(_elem41);
17442
                    this.success.add(_elem45);
17391
                  }
17443
                  }
17392
                  iprot.readListEnd();
17444
                  iprot.readListEnd();
17393
                }
17445
                }
17394
              } else { 
17446
              } else { 
17395
                TProtocolUtil.skip(iprot, field.type);
17447
                TProtocolUtil.skip(iprot, field.type);
Line 17416... Line 17468...
17416
 
17468
 
17417
      if (this.isSetSuccess()) {
17469
      if (this.isSetSuccess()) {
17418
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17470
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17419
        {
17471
        {
17420
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
17472
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
17421
          for (Item _iter42 : this.success)
17473
          for (Item _iter46 : this.success)
17422
          {
17474
          {
17423
            _iter42.write(oprot);
17475
            _iter46.write(oprot);
17424
          }
17476
          }
17425
          oprot.writeListEnd();
17477
          oprot.writeListEnd();
17426
        }
17478
        }
17427
        oprot.writeFieldEnd();
17479
        oprot.writeFieldEnd();
17428
      } else if (this.isSetCex()) {
17480
      } else if (this.isSetCex()) {
Line 19538... Line 19590...
19538
        } else {
19590
        } else {
19539
          switch (fieldId) {
19591
          switch (fieldId) {
19540
            case SUCCESS:
19592
            case SUCCESS:
19541
              if (field.type == TType.LIST) {
19593
              if (field.type == TType.LIST) {
19542
                {
19594
                {
19543
                  TList _list43 = iprot.readListBegin();
19595
                  TList _list47 = iprot.readListBegin();
19544
                  this.success = new ArrayList<Item>(_list43.size);
19596
                  this.success = new ArrayList<Item>(_list47.size);
19545
                  for (int _i44 = 0; _i44 < _list43.size; ++_i44)
19597
                  for (int _i48 = 0; _i48 < _list47.size; ++_i48)
19546
                  {
19598
                  {
19547
                    Item _elem45;
19599
                    Item _elem49;
19548
                    _elem45 = new Item();
19600
                    _elem49 = new Item();
19549
                    _elem45.read(iprot);
19601
                    _elem49.read(iprot);
19550
                    this.success.add(_elem45);
19602
                    this.success.add(_elem49);
19551
                  }
19603
                  }
19552
                  iprot.readListEnd();
19604
                  iprot.readListEnd();
19553
                }
19605
                }
19554
              } else { 
19606
              } else { 
19555
                TProtocolUtil.skip(iprot, field.type);
19607
                TProtocolUtil.skip(iprot, field.type);
Line 19576... Line 19628...
19576
 
19628
 
19577
      if (this.isSetSuccess()) {
19629
      if (this.isSetSuccess()) {
19578
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19630
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19579
        {
19631
        {
19580
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
19632
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
19581
          for (Item _iter46 : this.success)
19633
          for (Item _iter50 : this.success)
19582
          {
19634
          {
19583
            _iter46.write(oprot);
19635
            _iter50.write(oprot);
19584
          }
19636
          }
19585
          oprot.writeListEnd();
19637
          oprot.writeListEnd();
19586
        }
19638
        }
19587
        oprot.writeFieldEnd();
19639
        oprot.writeFieldEnd();
19588
      } else if (this.isSetIsex()) {
19640
      } else if (this.isSetIsex()) {
Line 20458... Line 20510...
20458
        } else {
20510
        } else {
20459
          switch (fieldId) {
20511
          switch (fieldId) {
20460
            case SUCCESS:
20512
            case SUCCESS:
20461
              if (field.type == TType.LIST) {
20513
              if (field.type == TType.LIST) {
20462
                {
20514
                {
20463
                  TList _list47 = iprot.readListBegin();
20515
                  TList _list51 = iprot.readListBegin();
20464
                  this.success = new ArrayList<Long>(_list47.size);
20516
                  this.success = new ArrayList<Long>(_list51.size);
20465
                  for (int _i48 = 0; _i48 < _list47.size; ++_i48)
20517
                  for (int _i52 = 0; _i52 < _list51.size; ++_i52)
20466
                  {
20518
                  {
20467
                    long _elem49;
20519
                    long _elem53;
20468
                    _elem49 = iprot.readI64();
20520
                    _elem53 = iprot.readI64();
20469
                    this.success.add(_elem49);
20521
                    this.success.add(_elem53);
20470
                  }
20522
                  }
20471
                  iprot.readListEnd();
20523
                  iprot.readListEnd();
20472
                }
20524
                }
20473
              } else { 
20525
              } else { 
20474
                TProtocolUtil.skip(iprot, field.type);
20526
                TProtocolUtil.skip(iprot, field.type);
Line 20495... Line 20547...
20495
 
20547
 
20496
      if (this.isSetSuccess()) {
20548
      if (this.isSetSuccess()) {
20497
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20549
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20498
        {
20550
        {
20499
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
20551
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
20500
          for (long _iter50 : this.success)
20552
          for (long _iter54 : this.success)
20501
          {
20553
          {
20502
            oprot.writeI64(_iter50);
20554
            oprot.writeI64(_iter54);
20503
          }
20555
          }
20504
          oprot.writeListEnd();
20556
          oprot.writeListEnd();
20505
        }
20557
        }
20506
        oprot.writeFieldEnd();
20558
        oprot.writeFieldEnd();
20507
      } else if (this.isSetCex()) {
20559
      } else if (this.isSetCex()) {
Line 21577... Line 21629...
21577
        } else {
21629
        } else {
21578
          switch (fieldId) {
21630
          switch (fieldId) {
21579
            case SUCCESS:
21631
            case SUCCESS:
21580
              if (field.type == TType.LIST) {
21632
              if (field.type == TType.LIST) {
21581
                {
21633
                {
21582
                  TList _list51 = iprot.readListBegin();
21634
                  TList _list55 = iprot.readListBegin();
21583
                  this.success = new ArrayList<Item>(_list51.size);
21635
                  this.success = new ArrayList<Item>(_list55.size);
21584
                  for (int _i52 = 0; _i52 < _list51.size; ++_i52)
21636
                  for (int _i56 = 0; _i56 < _list55.size; ++_i56)
21585
                  {
21637
                  {
21586
                    Item _elem53;
21638
                    Item _elem57;
21587
                    _elem53 = new Item();
21639
                    _elem57 = new Item();
21588
                    _elem53.read(iprot);
21640
                    _elem57.read(iprot);
21589
                    this.success.add(_elem53);
21641
                    this.success.add(_elem57);
21590
                  }
21642
                  }
21591
                  iprot.readListEnd();
21643
                  iprot.readListEnd();
21592
                }
21644
                }
21593
              } else { 
21645
              } else { 
21594
                TProtocolUtil.skip(iprot, field.type);
21646
                TProtocolUtil.skip(iprot, field.type);
Line 21615... Line 21667...
21615
 
21667
 
21616
      if (this.isSetSuccess()) {
21668
      if (this.isSetSuccess()) {
21617
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21669
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21618
        {
21670
        {
21619
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21671
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21620
          for (Item _iter54 : this.success)
21672
          for (Item _iter58 : this.success)
21621
          {
21673
          {
21622
            _iter54.write(oprot);
21674
            _iter58.write(oprot);
21623
          }
21675
          }
21624
          oprot.writeListEnd();
21676
          oprot.writeListEnd();
21625
        }
21677
        }
21626
        oprot.writeFieldEnd();
21678
        oprot.writeFieldEnd();
21627
      } else if (this.isSetIsex()) {
21679
      } else if (this.isSetIsex()) {
Line 22497... Line 22549...
22497
        } else {
22549
        } else {
22498
          switch (fieldId) {
22550
          switch (fieldId) {
22499
            case SUCCESS:
22551
            case SUCCESS:
22500
              if (field.type == TType.LIST) {
22552
              if (field.type == TType.LIST) {
22501
                {
22553
                {
22502
                  TList _list55 = iprot.readListBegin();
22554
                  TList _list59 = iprot.readListBegin();
22503
                  this.success = new ArrayList<Long>(_list55.size);
22555
                  this.success = new ArrayList<Long>(_list59.size);
22504
                  for (int _i56 = 0; _i56 < _list55.size; ++_i56)
22556
                  for (int _i60 = 0; _i60 < _list59.size; ++_i60)
22505
                  {
22557
                  {
22506
                    long _elem57;
22558
                    long _elem61;
22507
                    _elem57 = iprot.readI64();
22559
                    _elem61 = iprot.readI64();
22508
                    this.success.add(_elem57);
22560
                    this.success.add(_elem61);
22509
                  }
22561
                  }
22510
                  iprot.readListEnd();
22562
                  iprot.readListEnd();
22511
                }
22563
                }
22512
              } else { 
22564
              } else { 
22513
                TProtocolUtil.skip(iprot, field.type);
22565
                TProtocolUtil.skip(iprot, field.type);
Line 22534... Line 22586...
22534
 
22586
 
22535
      if (this.isSetSuccess()) {
22587
      if (this.isSetSuccess()) {
22536
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22588
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22537
        {
22589
        {
22538
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
22590
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
22539
          for (long _iter58 : this.success)
22591
          for (long _iter62 : this.success)
22540
          {
22592
          {
22541
            oprot.writeI64(_iter58);
22593
            oprot.writeI64(_iter62);
22542
          }
22594
          }
22543
          oprot.writeListEnd();
22595
          oprot.writeListEnd();
22544
        }
22596
        }
22545
        oprot.writeFieldEnd();
22597
        oprot.writeFieldEnd();
22546
      } else if (this.isSetCex()) {
22598
      } else if (this.isSetCex()) {
Line 23616... Line 23668...
23616
        } else {
23668
        } else {
23617
          switch (fieldId) {
23669
          switch (fieldId) {
23618
            case SUCCESS:
23670
            case SUCCESS:
23619
              if (field.type == TType.LIST) {
23671
              if (field.type == TType.LIST) {
23620
                {
23672
                {
23621
                  TList _list59 = iprot.readListBegin();
23673
                  TList _list63 = iprot.readListBegin();
23622
                  this.success = new ArrayList<Item>(_list59.size);
23674
                  this.success = new ArrayList<Item>(_list63.size);
23623
                  for (int _i60 = 0; _i60 < _list59.size; ++_i60)
23675
                  for (int _i64 = 0; _i64 < _list63.size; ++_i64)
23624
                  {
23676
                  {
23625
                    Item _elem61;
23677
                    Item _elem65;
23626
                    _elem61 = new Item();
23678
                    _elem65 = new Item();
23627
                    _elem61.read(iprot);
23679
                    _elem65.read(iprot);
23628
                    this.success.add(_elem61);
23680
                    this.success.add(_elem65);
23629
                  }
23681
                  }
23630
                  iprot.readListEnd();
23682
                  iprot.readListEnd();
23631
                }
23683
                }
23632
              } else { 
23684
              } else { 
23633
                TProtocolUtil.skip(iprot, field.type);
23685
                TProtocolUtil.skip(iprot, field.type);
Line 23654... Line 23706...
23654
 
23706
 
23655
      if (this.isSetSuccess()) {
23707
      if (this.isSetSuccess()) {
23656
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23708
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23657
        {
23709
        {
23658
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
23710
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
23659
          for (Item _iter62 : this.success)
23711
          for (Item _iter66 : this.success)
23660
          {
23712
          {
23661
            _iter62.write(oprot);
23713
            _iter66.write(oprot);
23662
          }
23714
          }
23663
          oprot.writeListEnd();
23715
          oprot.writeListEnd();
23664
        }
23716
        }
23665
        oprot.writeFieldEnd();
23717
        oprot.writeFieldEnd();
23666
      } else if (this.isSetIsex()) {
23718
      } else if (this.isSetIsex()) {
Line 24536... Line 24588...
24536
        } else {
24588
        } else {
24537
          switch (fieldId) {
24589
          switch (fieldId) {
24538
            case SUCCESS:
24590
            case SUCCESS:
24539
              if (field.type == TType.LIST) {
24591
              if (field.type == TType.LIST) {
24540
                {
24592
                {
24541
                  TList _list63 = iprot.readListBegin();
24593
                  TList _list67 = iprot.readListBegin();
24542
                  this.success = new ArrayList<Long>(_list63.size);
24594
                  this.success = new ArrayList<Long>(_list67.size);
24543
                  for (int _i64 = 0; _i64 < _list63.size; ++_i64)
24595
                  for (int _i68 = 0; _i68 < _list67.size; ++_i68)
24544
                  {
24596
                  {
24545
                    long _elem65;
24597
                    long _elem69;
24546
                    _elem65 = iprot.readI64();
24598
                    _elem69 = iprot.readI64();
24547
                    this.success.add(_elem65);
24599
                    this.success.add(_elem69);
24548
                  }
24600
                  }
24549
                  iprot.readListEnd();
24601
                  iprot.readListEnd();
24550
                }
24602
                }
24551
              } else { 
24603
              } else { 
24552
                TProtocolUtil.skip(iprot, field.type);
24604
                TProtocolUtil.skip(iprot, field.type);
Line 24573... Line 24625...
24573
 
24625
 
24574
      if (this.isSetSuccess()) {
24626
      if (this.isSetSuccess()) {
24575
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24627
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24576
        {
24628
        {
24577
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
24629
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
24578
          for (long _iter66 : this.success)
24630
          for (long _iter70 : this.success)
24579
          {
24631
          {
24580
            oprot.writeI64(_iter66);
24632
            oprot.writeI64(_iter70);
24581
          }
24633
          }
24582
          oprot.writeListEnd();
24634
          oprot.writeListEnd();
24583
        }
24635
        }
24584
        oprot.writeFieldEnd();
24636
        oprot.writeFieldEnd();
24585
      } else if (this.isSetCex()) {
24637
      } else if (this.isSetCex()) {
Line 26364... Line 26416...
26364
      // check for required fields
26416
      // check for required fields
26365
    }
26417
    }
26366
 
26418
 
26367
  }
26419
  }
26368
 
26420
 
26369
  public static class putCategoryObject_args implements TBase<putCategoryObject_args._Fields>, java.io.Serializable, Cloneable, Comparable<putCategoryObject_args>   {
26421
  public static class addCategory_args implements TBase<addCategory_args._Fields>, java.io.Serializable, Cloneable, Comparable<addCategory_args>   {
26370
    private static final TStruct STRUCT_DESC = new TStruct("putCategoryObject_args");
26422
    private static final TStruct STRUCT_DESC = new TStruct("addCategory_args");
26371
 
26423
 
26372
    private static final TField OBJECT_FIELD_DESC = new TField("object", TType.STRING, (short)1);
26424
    private static final TField CATEGORY_FIELD_DESC = new TField("category", TType.STRUCT, (short)1);
26373
 
26425
 
26374
    private byte[] object;
26426
    private Category category;
26375
 
26427
 
26376
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26428
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26377
    public enum _Fields implements TFieldIdEnum {
26429
    public enum _Fields implements TFieldIdEnum {
26378
      OBJECT((short)1, "object");
26430
      CATEGORY((short)1, "category");
26379
 
26431
 
26380
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
26432
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
26381
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26433
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26382
 
26434
 
26383
      static {
26435
      static {
Line 26429... Line 26481...
26429
    }
26481
    }
26430
 
26482
 
26431
    // isset id assignments
26483
    // isset id assignments
26432
 
26484
 
26433
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
26485
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
26434
      put(_Fields.OBJECT, new FieldMetaData("object", TFieldRequirementType.DEFAULT, 
26486
      put(_Fields.CATEGORY, new FieldMetaData("category", TFieldRequirementType.DEFAULT, 
26435
          new FieldValueMetaData(TType.STRING)));
26487
          new StructMetaData(TType.STRUCT, Category.class)));
26436
    }});
26488
    }});
26437
 
26489
 
26438
    static {
26490
    static {
26439
      FieldMetaData.addStructMetaDataMap(putCategoryObject_args.class, metaDataMap);
26491
      FieldMetaData.addStructMetaDataMap(addCategory_args.class, metaDataMap);
26440
    }
26492
    }
26441
 
26493
 
26442
    public putCategoryObject_args() {
26494
    public addCategory_args() {
26443
    }
26495
    }
26444
 
26496
 
26445
    public putCategoryObject_args(
26497
    public addCategory_args(
26446
      byte[] object)
26498
      Category category)
26447
    {
26499
    {
26448
      this();
26500
      this();
26449
      this.object = object;
26501
      this.category = category;
26450
    }
26502
    }
26451
 
26503
 
26452
    /**
26504
    /**
26453
     * Performs a deep copy on <i>other</i>.
26505
     * Performs a deep copy on <i>other</i>.
26454
     */
26506
     */
26455
    public putCategoryObject_args(putCategoryObject_args other) {
26507
    public addCategory_args(addCategory_args other) {
26456
      if (other.isSetObject()) {
26508
      if (other.isSetCategory()) {
26457
        this.object = new byte[other.object.length];
26509
        this.category = new Category(other.category);
26458
        System.arraycopy(other.object, 0, object, 0, other.object.length);
-
 
26459
      }
26510
      }
26460
    }
26511
    }
26461
 
26512
 
26462
    public putCategoryObject_args deepCopy() {
26513
    public addCategory_args deepCopy() {
26463
      return new putCategoryObject_args(this);
26514
      return new addCategory_args(this);
26464
    }
26515
    }
26465
 
26516
 
26466
    @Deprecated
26517
    @Deprecated
26467
    public putCategoryObject_args clone() {
26518
    public addCategory_args clone() {
26468
      return new putCategoryObject_args(this);
26519
      return new addCategory_args(this);
26469
    }
26520
    }
26470
 
26521
 
26471
    public byte[] getObject() {
26522
    public Category getCategory() {
26472
      return this.object;
26523
      return this.category;
26473
    }
26524
    }
26474
 
26525
 
26475
    public putCategoryObject_args setObject(byte[] object) {
26526
    public addCategory_args setCategory(Category category) {
26476
      this.object = object;
26527
      this.category = category;
26477
      return this;
26528
      return this;
26478
    }
26529
    }
26479
 
26530
 
26480
    public void unsetObject() {
26531
    public void unsetCategory() {
26481
      this.object = null;
26532
      this.category = null;
26482
    }
26533
    }
26483
 
26534
 
26484
    /** Returns true if field object is set (has been asigned a value) and false otherwise */
26535
    /** Returns true if field category is set (has been asigned a value) and false otherwise */
26485
    public boolean isSetObject() {
26536
    public boolean isSetCategory() {
26486
      return this.object != null;
26537
      return this.category != null;
26487
    }
26538
    }
26488
 
26539
 
26489
    public void setObjectIsSet(boolean value) {
26540
    public void setCategoryIsSet(boolean value) {
26490
      if (!value) {
26541
      if (!value) {
26491
        this.object = null;
26542
        this.category = null;
26492
      }
26543
      }
26493
    }
26544
    }
26494
 
26545
 
26495
    public void setFieldValue(_Fields field, Object value) {
26546
    public void setFieldValue(_Fields field, Object value) {
26496
      switch (field) {
26547
      switch (field) {
26497
      case OBJECT:
26548
      case CATEGORY:
26498
        if (value == null) {
26549
        if (value == null) {
26499
          unsetObject();
26550
          unsetCategory();
26500
        } else {
26551
        } else {
26501
          setObject((byte[])value);
26552
          setCategory((Category)value);
26502
        }
26553
        }
26503
        break;
26554
        break;
26504
 
26555
 
26505
      }
26556
      }
26506
    }
26557
    }
Line 26509... Line 26560...
26509
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
26560
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
26510
    }
26561
    }
26511
 
26562
 
26512
    public Object getFieldValue(_Fields field) {
26563
    public Object getFieldValue(_Fields field) {
26513
      switch (field) {
26564
      switch (field) {
26514
      case OBJECT:
26565
      case CATEGORY:
26515
        return getObject();
26566
        return getCategory();
26516
 
26567
 
26517
      }
26568
      }
26518
      throw new IllegalStateException();
26569
      throw new IllegalStateException();
26519
    }
26570
    }
26520
 
26571
 
Line 26523... Line 26574...
26523
    }
26574
    }
26524
 
26575
 
26525
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
26576
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
26526
    public boolean isSet(_Fields field) {
26577
    public boolean isSet(_Fields field) {
26527
      switch (field) {
26578
      switch (field) {
26528
      case OBJECT:
26579
      case CATEGORY:
26529
        return isSetObject();
26580
        return isSetCategory();
26530
      }
26581
      }
26531
      throw new IllegalStateException();
26582
      throw new IllegalStateException();
26532
    }
26583
    }
26533
 
26584
 
26534
    public boolean isSet(int fieldID) {
26585
    public boolean isSet(int fieldID) {
Line 26537... Line 26588...
26537
 
26588
 
26538
    @Override
26589
    @Override
26539
    public boolean equals(Object that) {
26590
    public boolean equals(Object that) {
26540
      if (that == null)
26591
      if (that == null)
26541
        return false;
26592
        return false;
26542
      if (that instanceof putCategoryObject_args)
26593
      if (that instanceof addCategory_args)
26543
        return this.equals((putCategoryObject_args)that);
26594
        return this.equals((addCategory_args)that);
26544
      return false;
26595
      return false;
26545
    }
26596
    }
26546
 
26597
 
26547
    public boolean equals(putCategoryObject_args that) {
26598
    public boolean equals(addCategory_args that) {
26548
      if (that == null)
26599
      if (that == null)
26549
        return false;
26600
        return false;
26550
 
26601
 
26551
      boolean this_present_object = true && this.isSetObject();
26602
      boolean this_present_category = true && this.isSetCategory();
26552
      boolean that_present_object = true && that.isSetObject();
26603
      boolean that_present_category = true && that.isSetCategory();
26553
      if (this_present_object || that_present_object) {
26604
      if (this_present_category || that_present_category) {
26554
        if (!(this_present_object && that_present_object))
26605
        if (!(this_present_category && that_present_category))
26555
          return false;
26606
          return false;
26556
        if (!java.util.Arrays.equals(this.object, that.object))
26607
        if (!this.category.equals(that.category))
26557
          return false;
26608
          return false;
26558
      }
26609
      }
26559
 
26610
 
26560
      return true;
26611
      return true;
26561
    }
26612
    }
Line 26563... Line 26614...
26563
    @Override
26614
    @Override
26564
    public int hashCode() {
26615
    public int hashCode() {
26565
      return 0;
26616
      return 0;
26566
    }
26617
    }
26567
 
26618
 
26568
    public int compareTo(putCategoryObject_args other) {
26619
    public int compareTo(addCategory_args other) {
26569
      if (!getClass().equals(other.getClass())) {
26620
      if (!getClass().equals(other.getClass())) {
26570
        return getClass().getName().compareTo(other.getClass().getName());
26621
        return getClass().getName().compareTo(other.getClass().getName());
26571
      }
26622
      }
26572
 
26623
 
26573
      int lastComparison = 0;
26624
      int lastComparison = 0;
26574
      putCategoryObject_args typedOther = (putCategoryObject_args)other;
26625
      addCategory_args typedOther = (addCategory_args)other;
26575
 
26626
 
26576
      lastComparison = Boolean.valueOf(isSetObject()).compareTo(isSetObject());
26627
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(isSetCategory());
26577
      if (lastComparison != 0) {
26628
      if (lastComparison != 0) {
26578
        return lastComparison;
26629
        return lastComparison;
26579
      }
26630
      }
26580
      lastComparison = TBaseHelper.compareTo(object, typedOther.object);
26631
      lastComparison = TBaseHelper.compareTo(category, typedOther.category);
26581
      if (lastComparison != 0) {
26632
      if (lastComparison != 0) {
26582
        return lastComparison;
26633
        return lastComparison;
26583
      }
26634
      }
26584
      return 0;
26635
      return 0;
26585
    }
26636
    }
Line 26596... Line 26647...
26596
        _Fields fieldId = _Fields.findByThriftId(field.id);
26647
        _Fields fieldId = _Fields.findByThriftId(field.id);
26597
        if (fieldId == null) {
26648
        if (fieldId == null) {
26598
          TProtocolUtil.skip(iprot, field.type);
26649
          TProtocolUtil.skip(iprot, field.type);
26599
        } else {
26650
        } else {
26600
          switch (fieldId) {
26651
          switch (fieldId) {
26601
            case OBJECT:
26652
            case CATEGORY:
26602
              if (field.type == TType.STRING) {
26653
              if (field.type == TType.STRUCT) {
-
 
26654
                this.category = new Category();
26603
                this.object = iprot.readBinary();
26655
                this.category.read(iprot);
26604
              } else { 
26656
              } else { 
26605
                TProtocolUtil.skip(iprot, field.type);
26657
                TProtocolUtil.skip(iprot, field.type);
26606
              }
26658
              }
26607
              break;
26659
              break;
26608
          }
26660
          }
Line 26615... Line 26667...
26615
 
26667
 
26616
    public void write(TProtocol oprot) throws TException {
26668
    public void write(TProtocol oprot) throws TException {
26617
      validate();
26669
      validate();
26618
 
26670
 
26619
      oprot.writeStructBegin(STRUCT_DESC);
26671
      oprot.writeStructBegin(STRUCT_DESC);
26620
      if (this.object != null) {
26672
      if (this.category != null) {
26621
        oprot.writeFieldBegin(OBJECT_FIELD_DESC);
26673
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
26622
        oprot.writeBinary(this.object);
26674
        this.category.write(oprot);
26623
        oprot.writeFieldEnd();
26675
        oprot.writeFieldEnd();
26624
      }
26676
      }
26625
      oprot.writeFieldStop();
26677
      oprot.writeFieldStop();
26626
      oprot.writeStructEnd();
26678
      oprot.writeStructEnd();
26627
    }
26679
    }
26628
 
26680
 
26629
    @Override
26681
    @Override
26630
    public String toString() {
26682
    public String toString() {
26631
      StringBuilder sb = new StringBuilder("putCategoryObject_args(");
26683
      StringBuilder sb = new StringBuilder("addCategory_args(");
26632
      boolean first = true;
26684
      boolean first = true;
26633
 
26685
 
26634
      sb.append("object:");
26686
      sb.append("category:");
26635
      if (this.object == null) {
26687
      if (this.category == null) {
26636
        sb.append("null");
26688
        sb.append("null");
26637
      } else {
26689
      } else {
26638
          int __object_size = Math.min(this.object.length, 128);
-
 
26639
          for (int i = 0; i < __object_size; i++) {
-
 
26640
            if (i != 0) sb.append(" ");
26690
        sb.append(this.category);
26641
            sb.append(Integer.toHexString(this.object[i]).length() > 1 ? Integer.toHexString(this.object[i]).substring(Integer.toHexString(this.object[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.object[i]).toUpperCase());
-
 
26642
          }
-
 
26643
          if (this.object.length > 128) sb.append(" ...");
-
 
26644
      }
26691
      }
26645
      first = false;
26692
      first = false;
26646
      sb.append(")");
26693
      sb.append(")");
26647
      return sb.toString();
26694
      return sb.toString();
26648
    }
26695
    }
Line 26651... Line 26698...
26651
      // check for required fields
26698
      // check for required fields
26652
    }
26699
    }
26653
 
26700
 
26654
  }
26701
  }
26655
 
26702
 
26656
  public static class putCategoryObject_result implements TBase<putCategoryObject_result._Fields>, java.io.Serializable, Cloneable, Comparable<putCategoryObject_result>   {
26703
  public static class addCategory_result implements TBase<addCategory_result._Fields>, java.io.Serializable, Cloneable, Comparable<addCategory_result>   {
26657
    private static final TStruct STRUCT_DESC = new TStruct("putCategoryObject_result");
26704
    private static final TStruct STRUCT_DESC = new TStruct("addCategory_result");
26658
 
26705
 
26659
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
26706
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
26660
 
26707
 
26661
    private boolean success;
26708
    private boolean success;
26662
 
26709
 
Line 26723... Line 26770...
26723
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
26770
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
26724
          new FieldValueMetaData(TType.BOOL)));
26771
          new FieldValueMetaData(TType.BOOL)));
26725
    }});
26772
    }});
26726
 
26773
 
26727
    static {
26774
    static {
26728
      FieldMetaData.addStructMetaDataMap(putCategoryObject_result.class, metaDataMap);
26775
      FieldMetaData.addStructMetaDataMap(addCategory_result.class, metaDataMap);
26729
    }
26776
    }
26730
 
26777
 
26731
    public putCategoryObject_result() {
26778
    public addCategory_result() {
26732
    }
26779
    }
26733
 
26780
 
26734
    public putCategoryObject_result(
26781
    public addCategory_result(
26735
      boolean success)
26782
      boolean success)
26736
    {
26783
    {
26737
      this();
26784
      this();
26738
      this.success = success;
26785
      this.success = success;
26739
      setSuccessIsSet(true);
26786
      setSuccessIsSet(true);
26740
    }
26787
    }
26741
 
26788
 
26742
    /**
26789
    /**
26743
     * Performs a deep copy on <i>other</i>.
26790
     * Performs a deep copy on <i>other</i>.
26744
     */
26791
     */
26745
    public putCategoryObject_result(putCategoryObject_result other) {
26792
    public addCategory_result(addCategory_result other) {
26746
      __isset_bit_vector.clear();
26793
      __isset_bit_vector.clear();
26747
      __isset_bit_vector.or(other.__isset_bit_vector);
26794
      __isset_bit_vector.or(other.__isset_bit_vector);
26748
      this.success = other.success;
26795
      this.success = other.success;
26749
    }
26796
    }
26750
 
26797
 
26751
    public putCategoryObject_result deepCopy() {
26798
    public addCategory_result deepCopy() {
26752
      return new putCategoryObject_result(this);
26799
      return new addCategory_result(this);
26753
    }
26800
    }
26754
 
26801
 
26755
    @Deprecated
26802
    @Deprecated
26756
    public putCategoryObject_result clone() {
26803
    public addCategory_result clone() {
26757
      return new putCategoryObject_result(this);
26804
      return new addCategory_result(this);
26758
    }
26805
    }
26759
 
26806
 
26760
    public boolean isSuccess() {
26807
    public boolean isSuccess() {
26761
      return this.success;
26808
      return this.success;
26762
    }
26809
    }
26763
 
26810
 
26764
    public putCategoryObject_result setSuccess(boolean success) {
26811
    public addCategory_result setSuccess(boolean success) {
26765
      this.success = success;
26812
      this.success = success;
26766
      setSuccessIsSet(true);
26813
      setSuccessIsSet(true);
26767
      return this;
26814
      return this;
26768
    }
26815
    }
26769
 
26816
 
Line 26825... Line 26872...
26825
 
26872
 
26826
    @Override
26873
    @Override
26827
    public boolean equals(Object that) {
26874
    public boolean equals(Object that) {
26828
      if (that == null)
26875
      if (that == null)
26829
        return false;
26876
        return false;
26830
      if (that instanceof putCategoryObject_result)
26877
      if (that instanceof addCategory_result)
26831
        return this.equals((putCategoryObject_result)that);
26878
        return this.equals((addCategory_result)that);
26832
      return false;
26879
      return false;
26833
    }
26880
    }
26834
 
26881
 
26835
    public boolean equals(putCategoryObject_result that) {
26882
    public boolean equals(addCategory_result that) {
26836
      if (that == null)
26883
      if (that == null)
26837
        return false;
26884
        return false;
26838
 
26885
 
26839
      boolean this_present_success = true;
26886
      boolean this_present_success = true;
26840
      boolean that_present_success = true;
26887
      boolean that_present_success = true;
Line 26851... Line 26898...
26851
    @Override
26898
    @Override
26852
    public int hashCode() {
26899
    public int hashCode() {
26853
      return 0;
26900
      return 0;
26854
    }
26901
    }
26855
 
26902
 
26856
    public int compareTo(putCategoryObject_result other) {
26903
    public int compareTo(addCategory_result other) {
26857
      if (!getClass().equals(other.getClass())) {
26904
      if (!getClass().equals(other.getClass())) {
26858
        return getClass().getName().compareTo(other.getClass().getName());
26905
        return getClass().getName().compareTo(other.getClass().getName());
26859
      }
26906
      }
26860
 
26907
 
26861
      int lastComparison = 0;
26908
      int lastComparison = 0;
26862
      putCategoryObject_result typedOther = (putCategoryObject_result)other;
26909
      addCategory_result typedOther = (addCategory_result)other;
26863
 
26910
 
26864
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
26911
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
26865
      if (lastComparison != 0) {
26912
      if (lastComparison != 0) {
26866
        return lastComparison;
26913
        return lastComparison;
26867
      }
26914
      }
Line 26914... Line 26961...
26914
      oprot.writeStructEnd();
26961
      oprot.writeStructEnd();
26915
    }
26962
    }
26916
 
26963
 
26917
    @Override
26964
    @Override
26918
    public String toString() {
26965
    public String toString() {
26919
      StringBuilder sb = new StringBuilder("putCategoryObject_result(");
26966
      StringBuilder sb = new StringBuilder("addCategory_result(");
26920
      boolean first = true;
26967
      boolean first = true;
26921
 
26968
 
26922
      sb.append("success:");
26969
      sb.append("success:");
26923
      sb.append(this.success);
26970
      sb.append(this.success);
26924
      first = false;
26971
      first = false;
Line 26930... Line 26977...
26930
      // check for required fields
26977
      // check for required fields
26931
    }
26978
    }
26932
 
26979
 
26933
  }
26980
  }
26934
 
26981
 
26935
  public static class getCategoryObject_args implements TBase<getCategoryObject_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCategoryObject_args>   {
26982
  public static class getCategory_args implements TBase<getCategory_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCategory_args>   {
26936
    private static final TStruct STRUCT_DESC = new TStruct("getCategoryObject_args");
26983
    private static final TStruct STRUCT_DESC = new TStruct("getCategory_args");
26937
 
26984
 
-
 
26985
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
26938
 
26986
 
-
 
26987
    private long id;
26939
 
26988
 
26940
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26989
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26941
    public enum _Fields implements TFieldIdEnum {
26990
    public enum _Fields implements TFieldIdEnum {
26942
;
-
 
-
 
26991
      ID((short)1, "id");
26943
 
26992
 
26944
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
26993
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
26945
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26994
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26946
 
26995
 
26947
      static {
26996
      static {
Line 26989... Line 27038...
26989
 
27038
 
26990
      public String getFieldName() {
27039
      public String getFieldName() {
26991
        return _fieldName;
27040
        return _fieldName;
26992
      }
27041
      }
26993
    }
27042
    }
-
 
27043
 
-
 
27044
    // isset id assignments
-
 
27045
    private static final int __ID_ISSET_ID = 0;
-
 
27046
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
27047
 
26994
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
27048
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27049
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
27050
          new FieldValueMetaData(TType.I64)));
26995
    }});
27051
    }});
26996
 
27052
 
26997
    static {
27053
    static {
26998
      FieldMetaData.addStructMetaDataMap(getCategoryObject_args.class, metaDataMap);
27054
      FieldMetaData.addStructMetaDataMap(getCategory_args.class, metaDataMap);
26999
    }
27055
    }
27000
 
27056
 
27001
    public getCategoryObject_args() {
27057
    public getCategory_args() {
-
 
27058
    }
-
 
27059
 
-
 
27060
    public getCategory_args(
-
 
27061
      long id)
-
 
27062
    {
-
 
27063
      this();
-
 
27064
      this.id = id;
-
 
27065
      setIdIsSet(true);
27002
    }
27066
    }
27003
 
27067
 
27004
    /**
27068
    /**
27005
     * Performs a deep copy on <i>other</i>.
27069
     * Performs a deep copy on <i>other</i>.
27006
     */
27070
     */
27007
    public getCategoryObject_args(getCategoryObject_args other) {
27071
    public getCategory_args(getCategory_args other) {
-
 
27072
      __isset_bit_vector.clear();
-
 
27073
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
27074
      this.id = other.id;
27008
    }
27075
    }
27009
 
27076
 
27010
    public getCategoryObject_args deepCopy() {
27077
    public getCategory_args deepCopy() {
27011
      return new getCategoryObject_args(this);
27078
      return new getCategory_args(this);
27012
    }
27079
    }
27013
 
27080
 
27014
    @Deprecated
27081
    @Deprecated
27015
    public getCategoryObject_args clone() {
27082
    public getCategory_args clone() {
27016
      return new getCategoryObject_args(this);
27083
      return new getCategory_args(this);
-
 
27084
    }
-
 
27085
 
-
 
27086
    public long getId() {
-
 
27087
      return this.id;
-
 
27088
    }
-
 
27089
 
-
 
27090
    public getCategory_args setId(long id) {
-
 
27091
      this.id = id;
-
 
27092
      setIdIsSet(true);
-
 
27093
      return this;
-
 
27094
    }
-
 
27095
 
-
 
27096
    public void unsetId() {
-
 
27097
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
27098
    }
-
 
27099
 
-
 
27100
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
-
 
27101
    public boolean isSetId() {
-
 
27102
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
27103
    }
-
 
27104
 
-
 
27105
    public void setIdIsSet(boolean value) {
-
 
27106
      __isset_bit_vector.set(__ID_ISSET_ID, value);
27017
    }
27107
    }
27018
 
27108
 
27019
    public void setFieldValue(_Fields field, Object value) {
27109
    public void setFieldValue(_Fields field, Object value) {
27020
      switch (field) {
27110
      switch (field) {
-
 
27111
      case ID:
-
 
27112
        if (value == null) {
-
 
27113
          unsetId();
-
 
27114
        } else {
-
 
27115
          setId((Long)value);
-
 
27116
        }
-
 
27117
        break;
-
 
27118
 
27021
      }
27119
      }
27022
    }
27120
    }
27023
 
27121
 
27024
    public void setFieldValue(int fieldID, Object value) {
27122
    public void setFieldValue(int fieldID, Object value) {
27025
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
27123
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
27026
    }
27124
    }
27027
 
27125
 
27028
    public Object getFieldValue(_Fields field) {
27126
    public Object getFieldValue(_Fields field) {
27029
      switch (field) {
27127
      switch (field) {
-
 
27128
      case ID:
-
 
27129
        return new Long(getId());
-
 
27130
 
27030
      }
27131
      }
27031
      throw new IllegalStateException();
27132
      throw new IllegalStateException();
27032
    }
27133
    }
27033
 
27134
 
27034
    public Object getFieldValue(int fieldId) {
27135
    public Object getFieldValue(int fieldId) {
Line 27036... Line 27137...
27036
    }
27137
    }
27037
 
27138
 
27038
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
27139
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
27039
    public boolean isSet(_Fields field) {
27140
    public boolean isSet(_Fields field) {
27040
      switch (field) {
27141
      switch (field) {
-
 
27142
      case ID:
-
 
27143
        return isSetId();
27041
      }
27144
      }
27042
      throw new IllegalStateException();
27145
      throw new IllegalStateException();
27043
    }
27146
    }
27044
 
27147
 
27045
    public boolean isSet(int fieldID) {
27148
    public boolean isSet(int fieldID) {
Line 27048... Line 27151...
27048
 
27151
 
27049
    @Override
27152
    @Override
27050
    public boolean equals(Object that) {
27153
    public boolean equals(Object that) {
27051
      if (that == null)
27154
      if (that == null)
27052
        return false;
27155
        return false;
27053
      if (that instanceof getCategoryObject_args)
27156
      if (that instanceof getCategory_args)
27054
        return this.equals((getCategoryObject_args)that);
27157
        return this.equals((getCategory_args)that);
27055
      return false;
27158
      return false;
27056
    }
27159
    }
27057
 
27160
 
27058
    public boolean equals(getCategoryObject_args that) {
27161
    public boolean equals(getCategory_args that) {
27059
      if (that == null)
27162
      if (that == null)
27060
        return false;
27163
        return false;
27061
 
27164
 
-
 
27165
      boolean this_present_id = true;
-
 
27166
      boolean that_present_id = true;
-
 
27167
      if (this_present_id || that_present_id) {
-
 
27168
        if (!(this_present_id && that_present_id))
-
 
27169
          return false;
-
 
27170
        if (this.id != that.id)
-
 
27171
          return false;
-
 
27172
      }
-
 
27173
 
27062
      return true;
27174
      return true;
27063
    }
27175
    }
27064
 
27176
 
27065
    @Override
27177
    @Override
27066
    public int hashCode() {
27178
    public int hashCode() {
27067
      return 0;
27179
      return 0;
27068
    }
27180
    }
27069
 
27181
 
27070
    public int compareTo(getCategoryObject_args other) {
27182
    public int compareTo(getCategory_args other) {
27071
      if (!getClass().equals(other.getClass())) {
27183
      if (!getClass().equals(other.getClass())) {
27072
        return getClass().getName().compareTo(other.getClass().getName());
27184
        return getClass().getName().compareTo(other.getClass().getName());
27073
      }
27185
      }
27074
 
27186
 
27075
      int lastComparison = 0;
27187
      int lastComparison = 0;
27076
      getCategoryObject_args typedOther = (getCategoryObject_args)other;
27188
      getCategory_args typedOther = (getCategory_args)other;
27077
 
27189
 
-
 
27190
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
-
 
27191
      if (lastComparison != 0) {
-
 
27192
        return lastComparison;
-
 
27193
      }
-
 
27194
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
-
 
27195
      if (lastComparison != 0) {
-
 
27196
        return lastComparison;
-
 
27197
      }
27078
      return 0;
27198
      return 0;
27079
    }
27199
    }
27080
 
27200
 
27081
    public void read(TProtocol iprot) throws TException {
27201
    public void read(TProtocol iprot) throws TException {
27082
      TField field;
27202
      TField field;
Line 27090... Line 27210...
27090
        _Fields fieldId = _Fields.findByThriftId(field.id);
27210
        _Fields fieldId = _Fields.findByThriftId(field.id);
27091
        if (fieldId == null) {
27211
        if (fieldId == null) {
27092
          TProtocolUtil.skip(iprot, field.type);
27212
          TProtocolUtil.skip(iprot, field.type);
27093
        } else {
27213
        } else {
27094
          switch (fieldId) {
27214
          switch (fieldId) {
-
 
27215
            case ID:
-
 
27216
              if (field.type == TType.I64) {
-
 
27217
                this.id = iprot.readI64();
-
 
27218
                setIdIsSet(true);
-
 
27219
              } else { 
-
 
27220
                TProtocolUtil.skip(iprot, field.type);
-
 
27221
              }
-
 
27222
              break;
27095
          }
27223
          }
27096
          iprot.readFieldEnd();
27224
          iprot.readFieldEnd();
27097
        }
27225
        }
27098
      }
27226
      }
27099
      iprot.readStructEnd();
27227
      iprot.readStructEnd();
Line 27102... Line 27230...
27102
 
27230
 
27103
    public void write(TProtocol oprot) throws TException {
27231
    public void write(TProtocol oprot) throws TException {
27104
      validate();
27232
      validate();
27105
 
27233
 
27106
      oprot.writeStructBegin(STRUCT_DESC);
27234
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27235
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
27236
      oprot.writeI64(this.id);
-
 
27237
      oprot.writeFieldEnd();
27107
      oprot.writeFieldStop();
27238
      oprot.writeFieldStop();
27108
      oprot.writeStructEnd();
27239
      oprot.writeStructEnd();
27109
    }
27240
    }
27110
 
27241
 
27111
    @Override
27242
    @Override
27112
    public String toString() {
27243
    public String toString() {
27113
      StringBuilder sb = new StringBuilder("getCategoryObject_args(");
27244
      StringBuilder sb = new StringBuilder("getCategory_args(");
27114
      boolean first = true;
27245
      boolean first = true;
27115
 
27246
 
-
 
27247
      sb.append("id:");
-
 
27248
      sb.append(this.id);
-
 
27249
      first = false;
27116
      sb.append(")");
27250
      sb.append(")");
27117
      return sb.toString();
27251
      return sb.toString();
27118
    }
27252
    }
27119
 
27253
 
27120
    public void validate() throws TException {
27254
    public void validate() throws TException {
27121
      // check for required fields
27255
      // check for required fields
27122
    }
27256
    }
27123
 
27257
 
27124
  }
27258
  }
27125
 
27259
 
27126
  public static class getCategoryObject_result implements TBase<getCategoryObject_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCategoryObject_result>   {
27260
  public static class getCategory_result implements TBase<getCategory_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCategory_result>   {
27127
    private static final TStruct STRUCT_DESC = new TStruct("getCategoryObject_result");
27261
    private static final TStruct STRUCT_DESC = new TStruct("getCategory_result");
27128
 
27262
 
27129
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
27263
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
27130
 
27264
 
27131
    private byte[] success;
27265
    private Category success;
27132
 
27266
 
27133
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27267
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27134
    public enum _Fields implements TFieldIdEnum {
27268
    public enum _Fields implements TFieldIdEnum {
27135
      SUCCESS((short)0, "success");
27269
      SUCCESS((short)0, "success");
27136
 
27270
 
Line 27187... Line 27321...
27187
 
27321
 
27188
    // isset id assignments
27322
    // isset id assignments
27189
 
27323
 
27190
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
27324
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
27191
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
27325
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
27192
          new FieldValueMetaData(TType.STRING)));
27326
          new StructMetaData(TType.STRUCT, Category.class)));
27193
    }});
27327
    }});
27194
 
27328
 
27195
    static {
27329
    static {
27196
      FieldMetaData.addStructMetaDataMap(getCategoryObject_result.class, metaDataMap);
27330
      FieldMetaData.addStructMetaDataMap(getCategory_result.class, metaDataMap);
27197
    }
27331
    }
27198
 
27332
 
27199
    public getCategoryObject_result() {
27333
    public getCategory_result() {
27200
    }
27334
    }
27201
 
27335
 
27202
    public getCategoryObject_result(
27336
    public getCategory_result(
27203
      byte[] success)
27337
      Category success)
27204
    {
27338
    {
27205
      this();
27339
      this();
27206
      this.success = success;
27340
      this.success = success;
27207
    }
27341
    }
27208
 
27342
 
27209
    /**
27343
    /**
27210
     * Performs a deep copy on <i>other</i>.
27344
     * Performs a deep copy on <i>other</i>.
27211
     */
27345
     */
27212
    public getCategoryObject_result(getCategoryObject_result other) {
27346
    public getCategory_result(getCategory_result other) {
27213
      if (other.isSetSuccess()) {
27347
      if (other.isSetSuccess()) {
27214
        this.success = new byte[other.success.length];
27348
        this.success = new Category(other.success);
27215
        System.arraycopy(other.success, 0, success, 0, other.success.length);
-
 
27216
      }
27349
      }
27217
    }
27350
    }
27218
 
27351
 
27219
    public getCategoryObject_result deepCopy() {
27352
    public getCategory_result deepCopy() {
27220
      return new getCategoryObject_result(this);
27353
      return new getCategory_result(this);
27221
    }
27354
    }
27222
 
27355
 
27223
    @Deprecated
27356
    @Deprecated
27224
    public getCategoryObject_result clone() {
27357
    public getCategory_result clone() {
27225
      return new getCategoryObject_result(this);
27358
      return new getCategory_result(this);
27226
    }
27359
    }
27227
 
27360
 
27228
    public byte[] getSuccess() {
27361
    public Category getSuccess() {
27229
      return this.success;
27362
      return this.success;
27230
    }
27363
    }
27231
 
27364
 
27232
    public getCategoryObject_result setSuccess(byte[] success) {
27365
    public getCategory_result setSuccess(Category success) {
27233
      this.success = success;
27366
      this.success = success;
27234
      return this;
27367
      return this;
27235
    }
27368
    }
27236
 
27369
 
27237
    public void unsetSuccess() {
27370
    public void unsetSuccess() {
Line 27253... Line 27386...
27253
      switch (field) {
27386
      switch (field) {
27254
      case SUCCESS:
27387
      case SUCCESS:
27255
        if (value == null) {
27388
        if (value == null) {
27256
          unsetSuccess();
27389
          unsetSuccess();
27257
        } else {
27390
        } else {
27258
          setSuccess((byte[])value);
27391
          setSuccess((Category)value);
27259
        }
27392
        }
27260
        break;
27393
        break;
27261
 
27394
 
27262
      }
27395
      }
27263
    }
27396
    }
Line 27294... Line 27427...
27294
 
27427
 
27295
    @Override
27428
    @Override
27296
    public boolean equals(Object that) {
27429
    public boolean equals(Object that) {
27297
      if (that == null)
27430
      if (that == null)
27298
        return false;
27431
        return false;
27299
      if (that instanceof getCategoryObject_result)
27432
      if (that instanceof getCategory_result)
27300
        return this.equals((getCategoryObject_result)that);
27433
        return this.equals((getCategory_result)that);
27301
      return false;
27434
      return false;
27302
    }
27435
    }
27303
 
27436
 
27304
    public boolean equals(getCategoryObject_result that) {
27437
    public boolean equals(getCategory_result that) {
27305
      if (that == null)
27438
      if (that == null)
27306
        return false;
27439
        return false;
27307
 
27440
 
27308
      boolean this_present_success = true && this.isSetSuccess();
27441
      boolean this_present_success = true && this.isSetSuccess();
27309
      boolean that_present_success = true && that.isSetSuccess();
27442
      boolean that_present_success = true && that.isSetSuccess();
27310
      if (this_present_success || that_present_success) {
27443
      if (this_present_success || that_present_success) {
27311
        if (!(this_present_success && that_present_success))
27444
        if (!(this_present_success && that_present_success))
27312
          return false;
27445
          return false;
27313
        if (!java.util.Arrays.equals(this.success, that.success))
27446
        if (!this.success.equals(that.success))
27314
          return false;
27447
          return false;
27315
      }
27448
      }
27316
 
27449
 
27317
      return true;
27450
      return true;
27318
    }
27451
    }
Line 27320... Line 27453...
27320
    @Override
27453
    @Override
27321
    public int hashCode() {
27454
    public int hashCode() {
27322
      return 0;
27455
      return 0;
27323
    }
27456
    }
27324
 
27457
 
27325
    public int compareTo(getCategoryObject_result other) {
27458
    public int compareTo(getCategory_result other) {
27326
      if (!getClass().equals(other.getClass())) {
27459
      if (!getClass().equals(other.getClass())) {
27327
        return getClass().getName().compareTo(other.getClass().getName());
27460
        return getClass().getName().compareTo(other.getClass().getName());
27328
      }
27461
      }
27329
 
27462
 
27330
      int lastComparison = 0;
27463
      int lastComparison = 0;
27331
      getCategoryObject_result typedOther = (getCategoryObject_result)other;
27464
      getCategory_result typedOther = (getCategory_result)other;
27332
 
27465
 
27333
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
27466
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
27334
      if (lastComparison != 0) {
27467
      if (lastComparison != 0) {
27335
        return lastComparison;
27468
        return lastComparison;
27336
      }
27469
      }
Line 27354... Line 27487...
27354
        if (fieldId == null) {
27487
        if (fieldId == null) {
27355
          TProtocolUtil.skip(iprot, field.type);
27488
          TProtocolUtil.skip(iprot, field.type);
27356
        } else {
27489
        } else {
27357
          switch (fieldId) {
27490
          switch (fieldId) {
27358
            case SUCCESS:
27491
            case SUCCESS:
27359
              if (field.type == TType.STRING) {
27492
              if (field.type == TType.STRUCT) {
27360
                this.success = iprot.readBinary();
27493
                this.success = new Category();
-
 
27494
                this.success.read(iprot);
27361
              } else { 
27495
              } else { 
27362
                TProtocolUtil.skip(iprot, field.type);
27496
                TProtocolUtil.skip(iprot, field.type);
27363
              }
27497
              }
27364
              break;
27498
              break;
27365
          }
27499
          }
Line 27373... Line 27507...
27373
    public void write(TProtocol oprot) throws TException {
27507
    public void write(TProtocol oprot) throws TException {
27374
      oprot.writeStructBegin(STRUCT_DESC);
27508
      oprot.writeStructBegin(STRUCT_DESC);
27375
 
27509
 
27376
      if (this.isSetSuccess()) {
27510
      if (this.isSetSuccess()) {
27377
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27511
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27378
        oprot.writeBinary(this.success);
27512
        this.success.write(oprot);
27379
        oprot.writeFieldEnd();
27513
        oprot.writeFieldEnd();
27380
      }
27514
      }
27381
      oprot.writeFieldStop();
27515
      oprot.writeFieldStop();
27382
      oprot.writeStructEnd();
27516
      oprot.writeStructEnd();
27383
    }
27517
    }
27384
 
27518
 
27385
    @Override
27519
    @Override
27386
    public String toString() {
27520
    public String toString() {
27387
      StringBuilder sb = new StringBuilder("getCategoryObject_result(");
27521
      StringBuilder sb = new StringBuilder("getCategory_result(");
27388
      boolean first = true;
27522
      boolean first = true;
27389
 
27523
 
27390
      sb.append("success:");
27524
      sb.append("success:");
27391
      if (this.success == null) {
27525
      if (this.success == null) {
27392
        sb.append("null");
27526
        sb.append("null");
27393
      } else {
27527
      } else {
-
 
27528
        sb.append(this.success);
-
 
27529
      }
-
 
27530
      first = false;
-
 
27531
      sb.append(")");
-
 
27532
      return sb.toString();
-
 
27533
    }
-
 
27534
 
-
 
27535
    public void validate() throws TException {
-
 
27536
      // check for required fields
-
 
27537
    }
-
 
27538
 
-
 
27539
  }
-
 
27540
 
-
 
27541
  public static class getAllCategories_args implements TBase<getAllCategories_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllCategories_args>   {
-
 
27542
    private static final TStruct STRUCT_DESC = new TStruct("getAllCategories_args");
-
 
27543
 
-
 
27544
 
-
 
27545
 
-
 
27546
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27547
    public enum _Fields implements TFieldIdEnum {
-
 
27548
;
-
 
27549
 
-
 
27550
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
27551
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27552
 
-
 
27553
      static {
-
 
27554
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27555
          byId.put((int)field._thriftId, field);
-
 
27556
          byName.put(field.getFieldName(), field);
-
 
27557
        }
-
 
27558
      }
-
 
27559
 
-
 
27560
      /**
-
 
27561
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27562
       */
-
 
27563
      public static _Fields findByThriftId(int fieldId) {
-
 
27564
        return byId.get(fieldId);
-
 
27565
      }
-
 
27566
 
-
 
27567
      /**
-
 
27568
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27569
       * if it is not found.
-
 
27570
       */
-
 
27571
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27572
        _Fields fields = findByThriftId(fieldId);
-
 
27573
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27574
        return fields;
-
 
27575
      }
-
 
27576
 
-
 
27577
      /**
-
 
27578
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27579
       */
-
 
27580
      public static _Fields findByName(String name) {
-
 
27581
        return byName.get(name);
-
 
27582
      }
-
 
27583
 
-
 
27584
      private final short _thriftId;
-
 
27585
      private final String _fieldName;
-
 
27586
 
-
 
27587
      _Fields(short thriftId, String fieldName) {
-
 
27588
        _thriftId = thriftId;
-
 
27589
        _fieldName = fieldName;
-
 
27590
      }
-
 
27591
 
-
 
27592
      public short getThriftFieldId() {
-
 
27593
        return _thriftId;
-
 
27594
      }
-
 
27595
 
-
 
27596
      public String getFieldName() {
-
 
27597
        return _fieldName;
-
 
27598
      }
-
 
27599
    }
-
 
27600
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27601
    }});
-
 
27602
 
-
 
27603
    static {
-
 
27604
      FieldMetaData.addStructMetaDataMap(getAllCategories_args.class, metaDataMap);
-
 
27605
    }
-
 
27606
 
-
 
27607
    public getAllCategories_args() {
-
 
27608
    }
-
 
27609
 
-
 
27610
    /**
-
 
27611
     * Performs a deep copy on <i>other</i>.
-
 
27612
     */
-
 
27613
    public getAllCategories_args(getAllCategories_args other) {
-
 
27614
    }
-
 
27615
 
-
 
27616
    public getAllCategories_args deepCopy() {
-
 
27617
      return new getAllCategories_args(this);
-
 
27618
    }
-
 
27619
 
-
 
27620
    @Deprecated
-
 
27621
    public getAllCategories_args clone() {
-
 
27622
      return new getAllCategories_args(this);
-
 
27623
    }
-
 
27624
 
-
 
27625
    public void setFieldValue(_Fields field, Object value) {
-
 
27626
      switch (field) {
-
 
27627
      }
-
 
27628
    }
-
 
27629
 
-
 
27630
    public void setFieldValue(int fieldID, Object value) {
-
 
27631
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27632
    }
-
 
27633
 
-
 
27634
    public Object getFieldValue(_Fields field) {
-
 
27635
      switch (field) {
-
 
27636
      }
-
 
27637
      throw new IllegalStateException();
-
 
27638
    }
-
 
27639
 
-
 
27640
    public Object getFieldValue(int fieldId) {
-
 
27641
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
27642
    }
-
 
27643
 
-
 
27644
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27645
    public boolean isSet(_Fields field) {
-
 
27646
      switch (field) {
-
 
27647
      }
-
 
27648
      throw new IllegalStateException();
-
 
27649
    }
-
 
27650
 
-
 
27651
    public boolean isSet(int fieldID) {
-
 
27652
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
27653
    }
-
 
27654
 
-
 
27655
    @Override
-
 
27656
    public boolean equals(Object that) {
-
 
27657
      if (that == null)
-
 
27658
        return false;
-
 
27659
      if (that instanceof getAllCategories_args)
-
 
27660
        return this.equals((getAllCategories_args)that);
-
 
27661
      return false;
-
 
27662
    }
-
 
27663
 
-
 
27664
    public boolean equals(getAllCategories_args that) {
-
 
27665
      if (that == null)
-
 
27666
        return false;
-
 
27667
 
-
 
27668
      return true;
-
 
27669
    }
-
 
27670
 
-
 
27671
    @Override
-
 
27672
    public int hashCode() {
-
 
27673
      return 0;
-
 
27674
    }
-
 
27675
 
-
 
27676
    public int compareTo(getAllCategories_args other) {
-
 
27677
      if (!getClass().equals(other.getClass())) {
-
 
27678
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27679
      }
-
 
27680
 
-
 
27681
      int lastComparison = 0;
-
 
27682
      getAllCategories_args typedOther = (getAllCategories_args)other;
-
 
27683
 
-
 
27684
      return 0;
-
 
27685
    }
-
 
27686
 
-
 
27687
    public void read(TProtocol iprot) throws TException {
-
 
27688
      TField field;
-
 
27689
      iprot.readStructBegin();
-
 
27690
      while (true)
-
 
27691
      {
-
 
27692
        field = iprot.readFieldBegin();
-
 
27693
        if (field.type == TType.STOP) { 
-
 
27694
          break;
-
 
27695
        }
-
 
27696
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27697
        if (fieldId == null) {
-
 
27698
          TProtocolUtil.skip(iprot, field.type);
-
 
27699
        } else {
-
 
27700
          switch (fieldId) {
-
 
27701
          }
-
 
27702
          iprot.readFieldEnd();
-
 
27703
        }
-
 
27704
      }
-
 
27705
      iprot.readStructEnd();
-
 
27706
      validate();
-
 
27707
    }
-
 
27708
 
-
 
27709
    public void write(TProtocol oprot) throws TException {
-
 
27710
      validate();
-
 
27711
 
-
 
27712
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27713
      oprot.writeFieldStop();
-
 
27714
      oprot.writeStructEnd();
-
 
27715
    }
-
 
27716
 
-
 
27717
    @Override
-
 
27718
    public String toString() {
-
 
27719
      StringBuilder sb = new StringBuilder("getAllCategories_args(");
-
 
27720
      boolean first = true;
-
 
27721
 
-
 
27722
      sb.append(")");
-
 
27723
      return sb.toString();
-
 
27724
    }
-
 
27725
 
-
 
27726
    public void validate() throws TException {
-
 
27727
      // check for required fields
-
 
27728
    }
-
 
27729
 
-
 
27730
  }
-
 
27731
 
-
 
27732
  public static class getAllCategories_result implements TBase<getAllCategories_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllCategories_result>   {
-
 
27733
    private static final TStruct STRUCT_DESC = new TStruct("getAllCategories_result");
-
 
27734
 
-
 
27735
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
27736
 
-
 
27737
    private List<Category> success;
-
 
27738
 
-
 
27739
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27740
    public enum _Fields implements TFieldIdEnum {
-
 
27741
      SUCCESS((short)0, "success");
-
 
27742
 
-
 
27743
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
27744
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27745
 
-
 
27746
      static {
-
 
27747
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27748
          byId.put((int)field._thriftId, field);
-
 
27749
          byName.put(field.getFieldName(), field);
-
 
27750
        }
-
 
27751
      }
-
 
27752
 
-
 
27753
      /**
-
 
27754
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27755
       */
-
 
27756
      public static _Fields findByThriftId(int fieldId) {
-
 
27757
        return byId.get(fieldId);
-
 
27758
      }
-
 
27759
 
-
 
27760
      /**
-
 
27761
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27762
       * if it is not found.
-
 
27763
       */
-
 
27764
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27765
        _Fields fields = findByThriftId(fieldId);
-
 
27766
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27767
        return fields;
-
 
27768
      }
-
 
27769
 
-
 
27770
      /**
-
 
27771
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27772
       */
-
 
27773
      public static _Fields findByName(String name) {
-
 
27774
        return byName.get(name);
-
 
27775
      }
-
 
27776
 
-
 
27777
      private final short _thriftId;
-
 
27778
      private final String _fieldName;
-
 
27779
 
-
 
27780
      _Fields(short thriftId, String fieldName) {
-
 
27781
        _thriftId = thriftId;
-
 
27782
        _fieldName = fieldName;
-
 
27783
      }
-
 
27784
 
-
 
27785
      public short getThriftFieldId() {
-
 
27786
        return _thriftId;
-
 
27787
      }
-
 
27788
 
-
 
27789
      public String getFieldName() {
-
 
27790
        return _fieldName;
-
 
27791
      }
-
 
27792
    }
-
 
27793
 
-
 
27794
    // isset id assignments
-
 
27795
 
-
 
27796
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27797
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
27798
          new ListMetaData(TType.LIST, 
-
 
27799
              new StructMetaData(TType.STRUCT, Category.class))));
-
 
27800
    }});
-
 
27801
 
-
 
27802
    static {
-
 
27803
      FieldMetaData.addStructMetaDataMap(getAllCategories_result.class, metaDataMap);
-
 
27804
    }
-
 
27805
 
-
 
27806
    public getAllCategories_result() {
-
 
27807
    }
-
 
27808
 
-
 
27809
    public getAllCategories_result(
-
 
27810
      List<Category> success)
-
 
27811
    {
-
 
27812
      this();
-
 
27813
      this.success = success;
-
 
27814
    }
-
 
27815
 
-
 
27816
    /**
-
 
27817
     * Performs a deep copy on <i>other</i>.
-
 
27818
     */
-
 
27819
    public getAllCategories_result(getAllCategories_result other) {
-
 
27820
      if (other.isSetSuccess()) {
-
 
27821
        List<Category> __this__success = new ArrayList<Category>();
-
 
27822
        for (Category other_element : other.success) {
-
 
27823
          __this__success.add(new Category(other_element));
-
 
27824
        }
-
 
27825
        this.success = __this__success;
-
 
27826
      }
-
 
27827
    }
-
 
27828
 
-
 
27829
    public getAllCategories_result deepCopy() {
-
 
27830
      return new getAllCategories_result(this);
-
 
27831
    }
-
 
27832
 
-
 
27833
    @Deprecated
-
 
27834
    public getAllCategories_result clone() {
-
 
27835
      return new getAllCategories_result(this);
-
 
27836
    }
-
 
27837
 
-
 
27838
    public int getSuccessSize() {
-
 
27839
      return (this.success == null) ? 0 : this.success.size();
-
 
27840
    }
-
 
27841
 
-
 
27842
    public java.util.Iterator<Category> getSuccessIterator() {
27394
          int __success_size = Math.min(this.success.length, 128);
27843
      return (this.success == null) ? null : this.success.iterator();
-
 
27844
    }
-
 
27845
 
-
 
27846
    public void addToSuccess(Category elem) {
-
 
27847
      if (this.success == null) {
-
 
27848
        this.success = new ArrayList<Category>();
-
 
27849
      }
-
 
27850
      this.success.add(elem);
-
 
27851
    }
-
 
27852
 
-
 
27853
    public List<Category> getSuccess() {
-
 
27854
      return this.success;
-
 
27855
    }
-
 
27856
 
-
 
27857
    public getAllCategories_result setSuccess(List<Category> success) {
-
 
27858
      this.success = success;
-
 
27859
      return this;
-
 
27860
    }
-
 
27861
 
-
 
27862
    public void unsetSuccess() {
-
 
27863
      this.success = null;
-
 
27864
    }
-
 
27865
 
-
 
27866
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
27867
    public boolean isSetSuccess() {
-
 
27868
      return this.success != null;
-
 
27869
    }
-
 
27870
 
-
 
27871
    public void setSuccessIsSet(boolean value) {
-
 
27872
      if (!value) {
-
 
27873
        this.success = null;
-
 
27874
      }
-
 
27875
    }
-
 
27876
 
-
 
27877
    public void setFieldValue(_Fields field, Object value) {
-
 
27878
      switch (field) {
-
 
27879
      case SUCCESS:
-
 
27880
        if (value == null) {
-
 
27881
          unsetSuccess();
-
 
27882
        } else {
-
 
27883
          setSuccess((List<Category>)value);
-
 
27884
        }
-
 
27885
        break;
-
 
27886
 
-
 
27887
      }
-
 
27888
    }
-
 
27889
 
-
 
27890
    public void setFieldValue(int fieldID, Object value) {
-
 
27891
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27892
    }
-
 
27893
 
-
 
27894
    public Object getFieldValue(_Fields field) {
-
 
27895
      switch (field) {
-
 
27896
      case SUCCESS:
-
 
27897
        return getSuccess();
-
 
27898
 
-
 
27899
      }
-
 
27900
      throw new IllegalStateException();
-
 
27901
    }
-
 
27902
 
-
 
27903
    public Object getFieldValue(int fieldId) {
-
 
27904
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
27905
    }
-
 
27906
 
-
 
27907
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27908
    public boolean isSet(_Fields field) {
-
 
27909
      switch (field) {
-
 
27910
      case SUCCESS:
-
 
27911
        return isSetSuccess();
-
 
27912
      }
-
 
27913
      throw new IllegalStateException();
-
 
27914
    }
-
 
27915
 
-
 
27916
    public boolean isSet(int fieldID) {
-
 
27917
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
27918
    }
-
 
27919
 
-
 
27920
    @Override
-
 
27921
    public boolean equals(Object that) {
-
 
27922
      if (that == null)
-
 
27923
        return false;
-
 
27924
      if (that instanceof getAllCategories_result)
-
 
27925
        return this.equals((getAllCategories_result)that);
-
 
27926
      return false;
-
 
27927
    }
-
 
27928
 
-
 
27929
    public boolean equals(getAllCategories_result that) {
-
 
27930
      if (that == null)
-
 
27931
        return false;
-
 
27932
 
-
 
27933
      boolean this_present_success = true && this.isSetSuccess();
-
 
27934
      boolean that_present_success = true && that.isSetSuccess();
-
 
27935
      if (this_present_success || that_present_success) {
-
 
27936
        if (!(this_present_success && that_present_success))
-
 
27937
          return false;
-
 
27938
        if (!this.success.equals(that.success))
-
 
27939
          return false;
-
 
27940
      }
-
 
27941
 
-
 
27942
      return true;
-
 
27943
    }
-
 
27944
 
-
 
27945
    @Override
-
 
27946
    public int hashCode() {
-
 
27947
      return 0;
-
 
27948
    }
-
 
27949
 
-
 
27950
    public int compareTo(getAllCategories_result other) {
-
 
27951
      if (!getClass().equals(other.getClass())) {
-
 
27952
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27953
      }
-
 
27954
 
-
 
27955
      int lastComparison = 0;
-
 
27956
      getAllCategories_result typedOther = (getAllCategories_result)other;
-
 
27957
 
-
 
27958
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
27959
      if (lastComparison != 0) {
-
 
27960
        return lastComparison;
-
 
27961
      }
-
 
27962
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
27963
      if (lastComparison != 0) {
-
 
27964
        return lastComparison;
-
 
27965
      }
-
 
27966
      return 0;
-
 
27967
    }
-
 
27968
 
-
 
27969
    public void read(TProtocol iprot) throws TException {
-
 
27970
      TField field;
-
 
27971
      iprot.readStructBegin();
-
 
27972
      while (true)
-
 
27973
      {
-
 
27974
        field = iprot.readFieldBegin();
-
 
27975
        if (field.type == TType.STOP) { 
-
 
27976
          break;
-
 
27977
        }
-
 
27978
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27979
        if (fieldId == null) {
-
 
27980
          TProtocolUtil.skip(iprot, field.type);
-
 
27981
        } else {
-
 
27982
          switch (fieldId) {
-
 
27983
            case SUCCESS:
-
 
27984
              if (field.type == TType.LIST) {
-
 
27985
                {
-
 
27986
                  TList _list71 = iprot.readListBegin();
-
 
27987
                  this.success = new ArrayList<Category>(_list71.size);
27395
          for (int i = 0; i < __success_size; i++) {
27988
                  for (int _i72 = 0; _i72 < _list71.size; ++_i72)
-
 
27989
                  {
-
 
27990
                    Category _elem73;
-
 
27991
                    _elem73 = new Category();
27396
            if (i != 0) sb.append(" ");
27992
                    _elem73.read(iprot);
-
 
27993
                    this.success.add(_elem73);
-
 
27994
                  }
-
 
27995
                  iprot.readListEnd();
-
 
27996
                }
-
 
27997
              } else { 
27397
            sb.append(Integer.toHexString(this.success[i]).length() > 1 ? Integer.toHexString(this.success[i]).substring(Integer.toHexString(this.success[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.success[i]).toUpperCase());
27998
                TProtocolUtil.skip(iprot, field.type);
-
 
27999
              }
-
 
28000
              break;
27398
          }
28001
          }
-
 
28002
          iprot.readFieldEnd();
-
 
28003
        }
-
 
28004
      }
-
 
28005
      iprot.readStructEnd();
-
 
28006
      validate();
-
 
28007
    }
-
 
28008
 
-
 
28009
    public void write(TProtocol oprot) throws TException {
-
 
28010
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28011
 
-
 
28012
      if (this.isSetSuccess()) {
-
 
28013
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
28014
        {
-
 
28015
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
28016
          for (Category _iter74 : this.success)
-
 
28017
          {
-
 
28018
            _iter74.write(oprot);
-
 
28019
          }
-
 
28020
          oprot.writeListEnd();
-
 
28021
        }
-
 
28022
        oprot.writeFieldEnd();
-
 
28023
      }
-
 
28024
      oprot.writeFieldStop();
-
 
28025
      oprot.writeStructEnd();
-
 
28026
    }
-
 
28027
 
-
 
28028
    @Override
-
 
28029
    public String toString() {
-
 
28030
      StringBuilder sb = new StringBuilder("getAllCategories_result(");
-
 
28031
      boolean first = true;
-
 
28032
 
-
 
28033
      sb.append("success:");
27399
          if (this.success.length > 128) sb.append(" ...");
28034
      if (this.success == null) {
-
 
28035
        sb.append("null");
-
 
28036
      } else {
-
 
28037
        sb.append(this.success);
27400
      }
28038
      }
27401
      first = false;
28039
      first = false;
27402
      sb.append(")");
28040
      sb.append(")");
27403
      return sb.toString();
28041
      return sb.toString();
27404
    }
28042
    }