Subversion Repositories SmartDukaan

Rev

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

Rev 764 Rev 771
Line 133... Line 133...
133
     * @param cartId
133
     * @param cartId
134
     * @param items
134
     * @param items
135
     */
135
     */
136
    public boolean resetCart(long cartId, Map<Long,Double> items) throws ShoppingCartException, TException;
136
    public boolean resetCart(long cartId, Map<Long,Double> items) throws ShoppingCartException, TException;
137
 
137
 
138
    public void addWidget(Widget widget) throws WidgetException, TException;
-
 
139
 
-
 
140
    public void addItemToWidget(long widget_id, List<Long> items) throws WidgetException, TException;
-
 
141
 
-
 
142
    public void deleteItemFromWidget(long widget_id, long item_id) throws WidgetException, TException;
-
 
143
 
138
    /**
144
    public void updateWidget(long widgetId, boolean enable) throws WidgetException, TException;
139
     * Widgets
145
 
140
     * 
146
    public void updateWidgetItem(long widgetId, boolean enable) throws WidgetException, TException;
141
     * @param userId
147
 
-
 
148
    public Widget getWidget(WidgetType type, long userId, boolean onlyEnabled) throws WidgetException, TException;
-
 
149
 
142
     */
150
    public Widget getMyResearch(long user_id) throws WidgetException, TException;
143
    public Widget getMyResearch(long userId) throws WidgetException, TException;
151
 
-
 
152
    public boolean updateMyResearch(long user_id, long item_id) throws WidgetException, TException;
-
 
153
 
144
 
154
    public void deleteItemFromMyResearch(long user_id, long item_id) throws WidgetException, TException;
145
    public boolean updateMyResearch(long userId, long itemId) throws WidgetException, TException;
155
 
146
 
156
    public void updateRatings(long item_id, RatingType type, double rating, long user_id) throws TException;
147
    public void deleteItemFromMyResearch(long userId, long itemId) throws WidgetException, TException;
157
 
148
 
158
    public RatingsWidget getRatings(long item_id, long user_id) throws WidgetException, TException;
149
    public void updateBrowseHistory(long userId, long itemId) throws TException;
159
 
150
 
160
    public void updateBrowseHistory(long user_id, long item_id, boolean isSessionId) throws TException;
151
    public Widget getBrowseHistory(long userId) throws WidgetException, TException;
161
 
152
 
162
    public Widget getBrowseHistory(long userId, boolean isSessionId) throws WidgetException, TException;
153
    public void mergeBrowseHistory(long fromUserId, long toUserId) throws TException;
163
 
154
 
164
  }
155
  }
165
 
156
 
166
  public static class Client implements Iface {
157
  public static class Client implements Iface {
167
    public Client(TProtocol prot)
158
    public Client(TProtocol prot)
Line 1440... Line 1431...
1440
        throw result.scex;
1431
        throw result.scex;
1441
      }
1432
      }
1442
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
1433
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
1443
    }
1434
    }
1444
 
1435
 
1445
    public void addWidget(Widget widget) throws WidgetException, TException
-
 
1446
    {
-
 
1447
      send_addWidget(widget);
-
 
1448
      recv_addWidget();
-
 
1449
    }
-
 
1450
 
-
 
1451
    public void send_addWidget(Widget widget) throws TException
-
 
1452
    {
-
 
1453
      oprot_.writeMessageBegin(new TMessage("addWidget", TMessageType.CALL, seqid_));
-
 
1454
      addWidget_args args = new addWidget_args();
-
 
1455
      args.widget = widget;
-
 
1456
      args.write(oprot_);
-
 
1457
      oprot_.writeMessageEnd();
-
 
1458
      oprot_.getTransport().flush();
-
 
1459
    }
-
 
1460
 
-
 
1461
    public void recv_addWidget() throws WidgetException, TException
-
 
1462
    {
-
 
1463
      TMessage msg = iprot_.readMessageBegin();
-
 
1464
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1465
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1466
        iprot_.readMessageEnd();
-
 
1467
        throw x;
-
 
1468
      }
-
 
1469
      addWidget_result result = new addWidget_result();
-
 
1470
      result.read(iprot_);
-
 
1471
      iprot_.readMessageEnd();
-
 
1472
      if (result.scx != null) {
-
 
1473
        throw result.scx;
-
 
1474
      }
-
 
1475
      return;
-
 
1476
    }
-
 
1477
 
-
 
1478
    public void addItemToWidget(long widget_id, List<Long> items) throws WidgetException, TException
-
 
1479
    {
-
 
1480
      send_addItemToWidget(widget_id, items);
-
 
1481
      recv_addItemToWidget();
-
 
1482
    }
-
 
1483
 
-
 
1484
    public void send_addItemToWidget(long widget_id, List<Long> items) throws TException
-
 
1485
    {
-
 
1486
      oprot_.writeMessageBegin(new TMessage("addItemToWidget", TMessageType.CALL, seqid_));
-
 
1487
      addItemToWidget_args args = new addItemToWidget_args();
-
 
1488
      args.widget_id = widget_id;
-
 
1489
      args.items = items;
-
 
1490
      args.write(oprot_);
-
 
1491
      oprot_.writeMessageEnd();
-
 
1492
      oprot_.getTransport().flush();
-
 
1493
    }
-
 
1494
 
-
 
1495
    public void recv_addItemToWidget() throws WidgetException, TException
-
 
1496
    {
-
 
1497
      TMessage msg = iprot_.readMessageBegin();
-
 
1498
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1499
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1500
        iprot_.readMessageEnd();
-
 
1501
        throw x;
-
 
1502
      }
-
 
1503
      addItemToWidget_result result = new addItemToWidget_result();
-
 
1504
      result.read(iprot_);
-
 
1505
      iprot_.readMessageEnd();
-
 
1506
      if (result.scx != null) {
-
 
1507
        throw result.scx;
-
 
1508
      }
-
 
1509
      return;
-
 
1510
    }
-
 
1511
 
-
 
1512
    public void deleteItemFromWidget(long widget_id, long item_id) throws WidgetException, TException
-
 
1513
    {
-
 
1514
      send_deleteItemFromWidget(widget_id, item_id);
-
 
1515
      recv_deleteItemFromWidget();
-
 
1516
    }
-
 
1517
 
-
 
1518
    public void send_deleteItemFromWidget(long widget_id, long item_id) throws TException
-
 
1519
    {
-
 
1520
      oprot_.writeMessageBegin(new TMessage("deleteItemFromWidget", TMessageType.CALL, seqid_));
-
 
1521
      deleteItemFromWidget_args args = new deleteItemFromWidget_args();
-
 
1522
      args.widget_id = widget_id;
-
 
1523
      args.item_id = item_id;
-
 
1524
      args.write(oprot_);
-
 
1525
      oprot_.writeMessageEnd();
-
 
1526
      oprot_.getTransport().flush();
-
 
1527
    }
-
 
1528
 
-
 
1529
    public void recv_deleteItemFromWidget() throws WidgetException, TException
1436
    public Widget getMyResearch(long userId) throws WidgetException, TException
1530
    {
-
 
1531
      TMessage msg = iprot_.readMessageBegin();
-
 
1532
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1533
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1534
        iprot_.readMessageEnd();
-
 
1535
        throw x;
-
 
1536
      }
-
 
1537
      deleteItemFromWidget_result result = new deleteItemFromWidget_result();
-
 
1538
      result.read(iprot_);
-
 
1539
      iprot_.readMessageEnd();
-
 
1540
      if (result.scx != null) {
-
 
1541
        throw result.scx;
-
 
1542
      }
-
 
1543
      return;
-
 
1544
    }
-
 
1545
 
-
 
1546
    public void updateWidget(long widgetId, boolean enable) throws WidgetException, TException
-
 
1547
    {
-
 
1548
      send_updateWidget(widgetId, enable);
-
 
1549
      recv_updateWidget();
-
 
1550
    }
-
 
1551
 
-
 
1552
    public void send_updateWidget(long widgetId, boolean enable) throws TException
-
 
1553
    {
-
 
1554
      oprot_.writeMessageBegin(new TMessage("updateWidget", TMessageType.CALL, seqid_));
-
 
1555
      updateWidget_args args = new updateWidget_args();
-
 
1556
      args.widgetId = widgetId;
-
 
1557
      args.enable = enable;
-
 
1558
      args.write(oprot_);
-
 
1559
      oprot_.writeMessageEnd();
-
 
1560
      oprot_.getTransport().flush();
-
 
1561
    }
-
 
1562
 
-
 
1563
    public void recv_updateWidget() throws WidgetException, TException
-
 
1564
    {
-
 
1565
      TMessage msg = iprot_.readMessageBegin();
-
 
1566
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1567
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1568
        iprot_.readMessageEnd();
-
 
1569
        throw x;
-
 
1570
      }
-
 
1571
      updateWidget_result result = new updateWidget_result();
-
 
1572
      result.read(iprot_);
-
 
1573
      iprot_.readMessageEnd();
-
 
1574
      if (result.scx != null) {
-
 
1575
        throw result.scx;
-
 
1576
      }
-
 
1577
      return;
-
 
1578
    }
-
 
1579
 
-
 
1580
    public void updateWidgetItem(long widgetId, boolean enable) throws WidgetException, TException
-
 
1581
    {
-
 
1582
      send_updateWidgetItem(widgetId, enable);
-
 
1583
      recv_updateWidgetItem();
-
 
1584
    }
-
 
1585
 
-
 
1586
    public void send_updateWidgetItem(long widgetId, boolean enable) throws TException
-
 
1587
    {
-
 
1588
      oprot_.writeMessageBegin(new TMessage("updateWidgetItem", TMessageType.CALL, seqid_));
-
 
1589
      updateWidgetItem_args args = new updateWidgetItem_args();
-
 
1590
      args.widgetId = widgetId;
-
 
1591
      args.enable = enable;
-
 
1592
      args.write(oprot_);
-
 
1593
      oprot_.writeMessageEnd();
-
 
1594
      oprot_.getTransport().flush();
-
 
1595
    }
-
 
1596
 
-
 
1597
    public void recv_updateWidgetItem() throws WidgetException, TException
-
 
1598
    {
-
 
1599
      TMessage msg = iprot_.readMessageBegin();
-
 
1600
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1601
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1602
        iprot_.readMessageEnd();
-
 
1603
        throw x;
-
 
1604
      }
-
 
1605
      updateWidgetItem_result result = new updateWidgetItem_result();
-
 
1606
      result.read(iprot_);
-
 
1607
      iprot_.readMessageEnd();
-
 
1608
      if (result.scx != null) {
-
 
1609
        throw result.scx;
-
 
1610
      }
-
 
1611
      return;
-
 
1612
    }
-
 
1613
 
-
 
1614
    public Widget getWidget(WidgetType type, long userId, boolean onlyEnabled) throws WidgetException, TException
-
 
1615
    {
-
 
1616
      send_getWidget(type, userId, onlyEnabled);
-
 
1617
      return recv_getWidget();
-
 
1618
    }
-
 
1619
 
-
 
1620
    public void send_getWidget(WidgetType type, long userId, boolean onlyEnabled) throws TException
-
 
1621
    {
1437
    {
1622
      oprot_.writeMessageBegin(new TMessage("getWidget", TMessageType.CALL, seqid_));
-
 
1623
      getWidget_args args = new getWidget_args();
-
 
1624
      args.type = type;
-
 
1625
      args.userId = userId;
-
 
1626
      args.onlyEnabled = onlyEnabled;
-
 
1627
      args.write(oprot_);
-
 
1628
      oprot_.writeMessageEnd();
-
 
1629
      oprot_.getTransport().flush();
-
 
1630
    }
-
 
1631
 
-
 
1632
    public Widget recv_getWidget() throws WidgetException, TException
-
 
1633
    {
-
 
1634
      TMessage msg = iprot_.readMessageBegin();
-
 
1635
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1636
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1637
        iprot_.readMessageEnd();
-
 
1638
        throw x;
-
 
1639
      }
-
 
1640
      getWidget_result result = new getWidget_result();
-
 
1641
      result.read(iprot_);
-
 
1642
      iprot_.readMessageEnd();
-
 
1643
      if (result.isSetSuccess()) {
-
 
1644
        return result.success;
-
 
1645
      }
-
 
1646
      if (result.scx != null) {
-
 
1647
        throw result.scx;
-
 
1648
      }
-
 
1649
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getWidget failed: unknown result");
-
 
1650
    }
-
 
1651
 
-
 
1652
    public Widget getMyResearch(long user_id) throws WidgetException, TException
-
 
1653
    {
-
 
1654
      send_getMyResearch(user_id);
1438
      send_getMyResearch(userId);
1655
      return recv_getMyResearch();
1439
      return recv_getMyResearch();
1656
    }
1440
    }
1657
 
1441
 
1658
    public void send_getMyResearch(long user_id) throws TException
1442
    public void send_getMyResearch(long userId) throws TException
1659
    {
1443
    {
1660
      oprot_.writeMessageBegin(new TMessage("getMyResearch", TMessageType.CALL, seqid_));
1444
      oprot_.writeMessageBegin(new TMessage("getMyResearch", TMessageType.CALL, seqid_));
1661
      getMyResearch_args args = new getMyResearch_args();
1445
      getMyResearch_args args = new getMyResearch_args();
1662
      args.user_id = user_id;
1446
      args.userId = userId;
1663
      args.write(oprot_);
1447
      args.write(oprot_);
1664
      oprot_.writeMessageEnd();
1448
      oprot_.writeMessageEnd();
1665
      oprot_.getTransport().flush();
1449
      oprot_.getTransport().flush();
1666
    }
1450
    }
1667
 
1451
 
Line 1683... Line 1467...
1683
        throw result.scx;
1467
        throw result.scx;
1684
      }
1468
      }
1685
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearch failed: unknown result");
1469
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearch failed: unknown result");
1686
    }
1470
    }
1687
 
1471
 
1688
    public boolean updateMyResearch(long user_id, long item_id) throws WidgetException, TException
1472
    public boolean updateMyResearch(long userId, long itemId) throws WidgetException, TException
1689
    {
1473
    {
1690
      send_updateMyResearch(user_id, item_id);
1474
      send_updateMyResearch(userId, itemId);
1691
      return recv_updateMyResearch();
1475
      return recv_updateMyResearch();
1692
    }
1476
    }
1693
 
1477
 
1694
    public void send_updateMyResearch(long user_id, long item_id) throws TException
1478
    public void send_updateMyResearch(long userId, long itemId) throws TException
1695
    {
1479
    {
1696
      oprot_.writeMessageBegin(new TMessage("updateMyResearch", TMessageType.CALL, seqid_));
1480
      oprot_.writeMessageBegin(new TMessage("updateMyResearch", TMessageType.CALL, seqid_));
1697
      updateMyResearch_args args = new updateMyResearch_args();
1481
      updateMyResearch_args args = new updateMyResearch_args();
1698
      args.user_id = user_id;
1482
      args.userId = userId;
1699
      args.item_id = item_id;
1483
      args.itemId = itemId;
1700
      args.write(oprot_);
1484
      args.write(oprot_);
1701
      oprot_.writeMessageEnd();
1485
      oprot_.writeMessageEnd();
1702
      oprot_.getTransport().flush();
1486
      oprot_.getTransport().flush();
1703
    }
1487
    }
1704
 
1488
 
Line 1720... Line 1504...
1720
        throw result.scx;
1504
        throw result.scx;
1721
      }
1505
      }
1722
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
1506
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
1723
    }
1507
    }
1724
 
1508
 
1725
    public void deleteItemFromMyResearch(long user_id, long item_id) throws WidgetException, TException
1509
    public void deleteItemFromMyResearch(long userId, long itemId) throws WidgetException, TException
1726
    {
1510
    {
1727
      send_deleteItemFromMyResearch(user_id, item_id);
1511
      send_deleteItemFromMyResearch(userId, itemId);
1728
      recv_deleteItemFromMyResearch();
1512
      recv_deleteItemFromMyResearch();
1729
    }
1513
    }
1730
 
1514
 
1731
    public void send_deleteItemFromMyResearch(long user_id, long item_id) throws TException
1515
    public void send_deleteItemFromMyResearch(long userId, long itemId) throws TException
1732
    {
1516
    {
1733
      oprot_.writeMessageBegin(new TMessage("deleteItemFromMyResearch", TMessageType.CALL, seqid_));
1517
      oprot_.writeMessageBegin(new TMessage("deleteItemFromMyResearch", TMessageType.CALL, seqid_));
1734
      deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
1518
      deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
1735
      args.user_id = user_id;
1519
      args.userId = userId;
1736
      args.item_id = item_id;
1520
      args.itemId = itemId;
1737
      args.write(oprot_);
1521
      args.write(oprot_);
1738
      oprot_.writeMessageEnd();
1522
      oprot_.writeMessageEnd();
1739
      oprot_.getTransport().flush();
1523
      oprot_.getTransport().flush();
1740
    }
1524
    }
1741
 
1525
 
Line 1754... Line 1538...
1754
        throw result.scx;
1538
        throw result.scx;
1755
      }
1539
      }
1756
      return;
1540
      return;
1757
    }
1541
    }
1758
 
1542
 
1759
    public void updateRatings(long item_id, RatingType type, double rating, long user_id) throws TException
1543
    public void updateBrowseHistory(long userId, long itemId) throws TException
1760
    {
1544
    {
1761
      send_updateRatings(item_id, type, rating, user_id);
1545
      send_updateBrowseHistory(userId, itemId);
1762
      recv_updateRatings();
1546
      recv_updateBrowseHistory();
1763
    }
1547
    }
1764
 
1548
 
1765
    public void send_updateRatings(long item_id, RatingType type, double rating, long user_id) throws TException
1549
    public void send_updateBrowseHistory(long userId, long itemId) throws TException
1766
    {
1550
    {
1767
      oprot_.writeMessageBegin(new TMessage("updateRatings", TMessageType.CALL, seqid_));
1551
      oprot_.writeMessageBegin(new TMessage("updateBrowseHistory", TMessageType.CALL, seqid_));
1768
      updateRatings_args args = new updateRatings_args();
1552
      updateBrowseHistory_args args = new updateBrowseHistory_args();
1769
      args.item_id = item_id;
1553
      args.userId = userId;
1770
      args.type = type;
-
 
1771
      args.rating = rating;
-
 
1772
      args.user_id = user_id;
1554
      args.itemId = itemId;
1773
      args.write(oprot_);
1555
      args.write(oprot_);
1774
      oprot_.writeMessageEnd();
1556
      oprot_.writeMessageEnd();
1775
      oprot_.getTransport().flush();
1557
      oprot_.getTransport().flush();
1776
    }
1558
    }
1777
 
1559
 
1778
    public void recv_updateRatings() throws TException
1560
    public void recv_updateBrowseHistory() throws TException
1779
    {
1561
    {
1780
      TMessage msg = iprot_.readMessageBegin();
1562
      TMessage msg = iprot_.readMessageBegin();
1781
      if (msg.type == TMessageType.EXCEPTION) {
1563
      if (msg.type == TMessageType.EXCEPTION) {
1782
        TApplicationException x = TApplicationException.read(iprot_);
1564
        TApplicationException x = TApplicationException.read(iprot_);
1783
        iprot_.readMessageEnd();
1565
        iprot_.readMessageEnd();
1784
        throw x;
1566
        throw x;
1785
      }
1567
      }
1786
      updateRatings_result result = new updateRatings_result();
1568
      updateBrowseHistory_result result = new updateBrowseHistory_result();
1787
      result.read(iprot_);
1569
      result.read(iprot_);
1788
      iprot_.readMessageEnd();
1570
      iprot_.readMessageEnd();
1789
      return;
1571
      return;
1790
    }
1572
    }
1791
 
1573
 
1792
    public RatingsWidget getRatings(long item_id, long user_id) throws WidgetException, TException
1574
    public Widget getBrowseHistory(long userId) throws WidgetException, TException
1793
    {
1575
    {
1794
      send_getRatings(item_id, user_id);
1576
      send_getBrowseHistory(userId);
1795
      return recv_getRatings();
1577
      return recv_getBrowseHistory();
1796
    }
1578
    }
1797
 
1579
 
1798
    public void send_getRatings(long item_id, long user_id) throws TException
1580
    public void send_getBrowseHistory(long userId) throws TException
1799
    {
1581
    {
1800
      oprot_.writeMessageBegin(new TMessage("getRatings", TMessageType.CALL, seqid_));
1582
      oprot_.writeMessageBegin(new TMessage("getBrowseHistory", TMessageType.CALL, seqid_));
1801
      getRatings_args args = new getRatings_args();
1583
      getBrowseHistory_args args = new getBrowseHistory_args();
1802
      args.item_id = item_id;
-
 
1803
      args.user_id = user_id;
1584
      args.userId = userId;
1804
      args.write(oprot_);
1585
      args.write(oprot_);
1805
      oprot_.writeMessageEnd();
1586
      oprot_.writeMessageEnd();
1806
      oprot_.getTransport().flush();
1587
      oprot_.getTransport().flush();
1807
    }
1588
    }
1808
 
1589
 
1809
    public RatingsWidget recv_getRatings() throws WidgetException, TException
1590
    public Widget recv_getBrowseHistory() throws WidgetException, TException
1810
    {
1591
    {
1811
      TMessage msg = iprot_.readMessageBegin();
1592
      TMessage msg = iprot_.readMessageBegin();
1812
      if (msg.type == TMessageType.EXCEPTION) {
1593
      if (msg.type == TMessageType.EXCEPTION) {
1813
        TApplicationException x = TApplicationException.read(iprot_);
1594
        TApplicationException x = TApplicationException.read(iprot_);
1814
        iprot_.readMessageEnd();
1595
        iprot_.readMessageEnd();
1815
        throw x;
1596
        throw x;
1816
      }
1597
      }
1817
      getRatings_result result = new getRatings_result();
1598
      getBrowseHistory_result result = new getBrowseHistory_result();
1818
      result.read(iprot_);
1599
      result.read(iprot_);
1819
      iprot_.readMessageEnd();
1600
      iprot_.readMessageEnd();
1820
      if (result.isSetSuccess()) {
1601
      if (result.isSetSuccess()) {
1821
        return result.success;
1602
        return result.success;
1822
      }
1603
      }
1823
      if (result.scx != null) {
1604
      if (result.scx != null) {
1824
        throw result.scx;
1605
        throw result.scx;
1825
      }
1606
      }
1826
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getRatings failed: unknown result");
1607
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistory failed: unknown result");
1827
    }
1608
    }
1828
 
1609
 
1829
    public void updateBrowseHistory(long user_id, long item_id, boolean isSessionId) throws TException
1610
    public void mergeBrowseHistory(long fromUserId, long toUserId) throws TException
1830
    {
1611
    {
1831
      send_updateBrowseHistory(user_id, item_id, isSessionId);
1612
      send_mergeBrowseHistory(fromUserId, toUserId);
1832
      recv_updateBrowseHistory();
1613
      recv_mergeBrowseHistory();
1833
    }
1614
    }
1834
 
1615
 
1835
    public void send_updateBrowseHistory(long user_id, long item_id, boolean isSessionId) throws TException
1616
    public void send_mergeBrowseHistory(long fromUserId, long toUserId) throws TException
1836
    {
1617
    {
1837
      oprot_.writeMessageBegin(new TMessage("updateBrowseHistory", TMessageType.CALL, seqid_));
1618
      oprot_.writeMessageBegin(new TMessage("mergeBrowseHistory", TMessageType.CALL, seqid_));
1838
      updateBrowseHistory_args args = new updateBrowseHistory_args();
1619
      mergeBrowseHistory_args args = new mergeBrowseHistory_args();
1839
      args.user_id = user_id;
1620
      args.fromUserId = fromUserId;
1840
      args.item_id = item_id;
1621
      args.toUserId = toUserId;
1841
      args.isSessionId = isSessionId;
-
 
1842
      args.write(oprot_);
1622
      args.write(oprot_);
1843
      oprot_.writeMessageEnd();
1623
      oprot_.writeMessageEnd();
1844
      oprot_.getTransport().flush();
1624
      oprot_.getTransport().flush();
1845
    }
1625
    }
1846
 
1626
 
1847
    public void recv_updateBrowseHistory() throws TException
1627
    public void recv_mergeBrowseHistory() throws TException
1848
    {
1628
    {
1849
      TMessage msg = iprot_.readMessageBegin();
1629
      TMessage msg = iprot_.readMessageBegin();
1850
      if (msg.type == TMessageType.EXCEPTION) {
1630
      if (msg.type == TMessageType.EXCEPTION) {
1851
        TApplicationException x = TApplicationException.read(iprot_);
1631
        TApplicationException x = TApplicationException.read(iprot_);
1852
        iprot_.readMessageEnd();
1632
        iprot_.readMessageEnd();
1853
        throw x;
1633
        throw x;
1854
      }
1634
      }
1855
      updateBrowseHistory_result result = new updateBrowseHistory_result();
1635
      mergeBrowseHistory_result result = new mergeBrowseHistory_result();
1856
      result.read(iprot_);
1636
      result.read(iprot_);
1857
      iprot_.readMessageEnd();
1637
      iprot_.readMessageEnd();
1858
      return;
1638
      return;
1859
    }
1639
    }
1860
 
1640
 
1861
    public Widget getBrowseHistory(long userId, boolean isSessionId) throws WidgetException, TException
-
 
1862
    {
-
 
1863
      send_getBrowseHistory(userId, isSessionId);
-
 
1864
      return recv_getBrowseHistory();
-
 
1865
    }
-
 
1866
 
-
 
1867
    public void send_getBrowseHistory(long userId, boolean isSessionId) throws TException
-
 
1868
    {
-
 
1869
      oprot_.writeMessageBegin(new TMessage("getBrowseHistory", TMessageType.CALL, seqid_));
-
 
1870
      getBrowseHistory_args args = new getBrowseHistory_args();
-
 
1871
      args.userId = userId;
-
 
1872
      args.isSessionId = isSessionId;
-
 
1873
      args.write(oprot_);
-
 
1874
      oprot_.writeMessageEnd();
-
 
1875
      oprot_.getTransport().flush();
-
 
1876
    }
-
 
1877
 
-
 
1878
    public Widget recv_getBrowseHistory() throws WidgetException, TException
-
 
1879
    {
-
 
1880
      TMessage msg = iprot_.readMessageBegin();
-
 
1881
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1882
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1883
        iprot_.readMessageEnd();
-
 
1884
        throw x;
-
 
1885
      }
-
 
1886
      getBrowseHistory_result result = new getBrowseHistory_result();
-
 
1887
      result.read(iprot_);
-
 
1888
      iprot_.readMessageEnd();
-
 
1889
      if (result.isSetSuccess()) {
-
 
1890
        return result.success;
-
 
1891
      }
-
 
1892
      if (result.scx != null) {
-
 
1893
        throw result.scx;
-
 
1894
      }
-
 
1895
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistory failed: unknown result");
-
 
1896
    }
-
 
1897
 
-
 
1898
  }
1641
  }
1899
  public static class Processor implements TProcessor {
1642
  public static class Processor implements TProcessor {
1900
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1643
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1901
    public Processor(Iface iface)
1644
    public Processor(Iface iface)
1902
    {
1645
    {
Line 1934... Line 1677...
1934
      processMap_.put("createOrders", new createOrders());
1677
      processMap_.put("createOrders", new createOrders());
1935
      processMap_.put("validateCart", new validateCart());
1678
      processMap_.put("validateCart", new validateCart());
1936
      processMap_.put("mergeCart", new mergeCart());
1679
      processMap_.put("mergeCart", new mergeCart());
1937
      processMap_.put("checkOut", new checkOut());
1680
      processMap_.put("checkOut", new checkOut());
1938
      processMap_.put("resetCart", new resetCart());
1681
      processMap_.put("resetCart", new resetCart());
1939
      processMap_.put("addWidget", new addWidget());
-
 
1940
      processMap_.put("addItemToWidget", new addItemToWidget());
-
 
1941
      processMap_.put("deleteItemFromWidget", new deleteItemFromWidget());
-
 
1942
      processMap_.put("updateWidget", new updateWidget());
-
 
1943
      processMap_.put("updateWidgetItem", new updateWidgetItem());
-
 
1944
      processMap_.put("getWidget", new getWidget());
-
 
1945
      processMap_.put("getMyResearch", new getMyResearch());
1682
      processMap_.put("getMyResearch", new getMyResearch());
1946
      processMap_.put("updateMyResearch", new updateMyResearch());
1683
      processMap_.put("updateMyResearch", new updateMyResearch());
1947
      processMap_.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
1684
      processMap_.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
1948
      processMap_.put("updateRatings", new updateRatings());
-
 
1949
      processMap_.put("getRatings", new getRatings());
-
 
1950
      processMap_.put("updateBrowseHistory", new updateBrowseHistory());
1685
      processMap_.put("updateBrowseHistory", new updateBrowseHistory());
1951
      processMap_.put("getBrowseHistory", new getBrowseHistory());
1686
      processMap_.put("getBrowseHistory", new getBrowseHistory());
-
 
1687
      processMap_.put("mergeBrowseHistory", new mergeBrowseHistory());
1952
    }
1688
    }
1953
 
1689
 
1954
    protected static interface ProcessFunction {
1690
    protected static interface ProcessFunction {
1955
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1691
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1956
    }
1692
    }
Line 2945... Line 2681...
2945
        oprot.getTransport().flush();
2681
        oprot.getTransport().flush();
2946
      }
2682
      }
2947
 
2683
 
2948
    }
2684
    }
2949
 
2685
 
2950
    private class addWidget implements ProcessFunction {
-
 
2951
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2952
      {
-
 
2953
        addWidget_args args = new addWidget_args();
-
 
2954
        args.read(iprot);
-
 
2955
        iprot.readMessageEnd();
-
 
2956
        addWidget_result result = new addWidget_result();
-
 
2957
        try {
-
 
2958
          iface_.addWidget(args.widget);
-
 
2959
        } catch (WidgetException scx) {
-
 
2960
          result.scx = scx;
-
 
2961
        } catch (Throwable th) {
-
 
2962
          LOGGER.error("Internal error processing addWidget", th);
-
 
2963
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addWidget");
-
 
2964
          oprot.writeMessageBegin(new TMessage("addWidget", TMessageType.EXCEPTION, seqid));
-
 
2965
          x.write(oprot);
-
 
2966
          oprot.writeMessageEnd();
-
 
2967
          oprot.getTransport().flush();
-
 
2968
          return;
-
 
2969
        }
-
 
2970
        oprot.writeMessageBegin(new TMessage("addWidget", TMessageType.REPLY, seqid));
-
 
2971
        result.write(oprot);
-
 
2972
        oprot.writeMessageEnd();
-
 
2973
        oprot.getTransport().flush();
-
 
2974
      }
-
 
2975
 
-
 
2976
    }
-
 
2977
 
-
 
2978
    private class addItemToWidget implements ProcessFunction {
-
 
2979
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2980
      {
-
 
2981
        addItemToWidget_args args = new addItemToWidget_args();
-
 
2982
        args.read(iprot);
-
 
2983
        iprot.readMessageEnd();
-
 
2984
        addItemToWidget_result result = new addItemToWidget_result();
-
 
2985
        try {
-
 
2986
          iface_.addItemToWidget(args.widget_id, args.items);
-
 
2987
        } catch (WidgetException scx) {
-
 
2988
          result.scx = scx;
-
 
2989
        } catch (Throwable th) {
-
 
2990
          LOGGER.error("Internal error processing addItemToWidget", th);
-
 
2991
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addItemToWidget");
-
 
2992
          oprot.writeMessageBegin(new TMessage("addItemToWidget", TMessageType.EXCEPTION, seqid));
-
 
2993
          x.write(oprot);
-
 
2994
          oprot.writeMessageEnd();
-
 
2995
          oprot.getTransport().flush();
-
 
2996
          return;
-
 
2997
        }
-
 
2998
        oprot.writeMessageBegin(new TMessage("addItemToWidget", TMessageType.REPLY, seqid));
-
 
2999
        result.write(oprot);
-
 
3000
        oprot.writeMessageEnd();
-
 
3001
        oprot.getTransport().flush();
-
 
3002
      }
-
 
3003
 
-
 
3004
    }
-
 
3005
 
-
 
3006
    private class deleteItemFromWidget implements ProcessFunction {
-
 
3007
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3008
      {
-
 
3009
        deleteItemFromWidget_args args = new deleteItemFromWidget_args();
-
 
3010
        args.read(iprot);
-
 
3011
        iprot.readMessageEnd();
-
 
3012
        deleteItemFromWidget_result result = new deleteItemFromWidget_result();
-
 
3013
        try {
-
 
3014
          iface_.deleteItemFromWidget(args.widget_id, args.item_id);
-
 
3015
        } catch (WidgetException scx) {
-
 
3016
          result.scx = scx;
-
 
3017
        } catch (Throwable th) {
-
 
3018
          LOGGER.error("Internal error processing deleteItemFromWidget", th);
-
 
3019
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing deleteItemFromWidget");
-
 
3020
          oprot.writeMessageBegin(new TMessage("deleteItemFromWidget", TMessageType.EXCEPTION, seqid));
-
 
3021
          x.write(oprot);
-
 
3022
          oprot.writeMessageEnd();
-
 
3023
          oprot.getTransport().flush();
-
 
3024
          return;
-
 
3025
        }
-
 
3026
        oprot.writeMessageBegin(new TMessage("deleteItemFromWidget", TMessageType.REPLY, seqid));
-
 
3027
        result.write(oprot);
-
 
3028
        oprot.writeMessageEnd();
-
 
3029
        oprot.getTransport().flush();
-
 
3030
      }
-
 
3031
 
-
 
3032
    }
-
 
3033
 
-
 
3034
    private class updateWidget implements ProcessFunction {
-
 
3035
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3036
      {
-
 
3037
        updateWidget_args args = new updateWidget_args();
-
 
3038
        args.read(iprot);
-
 
3039
        iprot.readMessageEnd();
-
 
3040
        updateWidget_result result = new updateWidget_result();
-
 
3041
        try {
-
 
3042
          iface_.updateWidget(args.widgetId, args.enable);
-
 
3043
        } catch (WidgetException scx) {
-
 
3044
          result.scx = scx;
-
 
3045
        } catch (Throwable th) {
-
 
3046
          LOGGER.error("Internal error processing updateWidget", th);
-
 
3047
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updateWidget");
-
 
3048
          oprot.writeMessageBegin(new TMessage("updateWidget", TMessageType.EXCEPTION, seqid));
-
 
3049
          x.write(oprot);
-
 
3050
          oprot.writeMessageEnd();
-
 
3051
          oprot.getTransport().flush();
-
 
3052
          return;
-
 
3053
        }
-
 
3054
        oprot.writeMessageBegin(new TMessage("updateWidget", TMessageType.REPLY, seqid));
-
 
3055
        result.write(oprot);
-
 
3056
        oprot.writeMessageEnd();
-
 
3057
        oprot.getTransport().flush();
-
 
3058
      }
-
 
3059
 
-
 
3060
    }
-
 
3061
 
-
 
3062
    private class updateWidgetItem implements ProcessFunction {
-
 
3063
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3064
      {
-
 
3065
        updateWidgetItem_args args = new updateWidgetItem_args();
-
 
3066
        args.read(iprot);
-
 
3067
        iprot.readMessageEnd();
-
 
3068
        updateWidgetItem_result result = new updateWidgetItem_result();
-
 
3069
        try {
-
 
3070
          iface_.updateWidgetItem(args.widgetId, args.enable);
-
 
3071
        } catch (WidgetException scx) {
-
 
3072
          result.scx = scx;
-
 
3073
        } catch (Throwable th) {
-
 
3074
          LOGGER.error("Internal error processing updateWidgetItem", th);
-
 
3075
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updateWidgetItem");
-
 
3076
          oprot.writeMessageBegin(new TMessage("updateWidgetItem", TMessageType.EXCEPTION, seqid));
-
 
3077
          x.write(oprot);
-
 
3078
          oprot.writeMessageEnd();
-
 
3079
          oprot.getTransport().flush();
-
 
3080
          return;
-
 
3081
        }
-
 
3082
        oprot.writeMessageBegin(new TMessage("updateWidgetItem", TMessageType.REPLY, seqid));
-
 
3083
        result.write(oprot);
-
 
3084
        oprot.writeMessageEnd();
-
 
3085
        oprot.getTransport().flush();
-
 
3086
      }
-
 
3087
 
-
 
3088
    }
-
 
3089
 
-
 
3090
    private class getWidget implements ProcessFunction {
-
 
3091
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3092
      {
-
 
3093
        getWidget_args args = new getWidget_args();
-
 
3094
        args.read(iprot);
-
 
3095
        iprot.readMessageEnd();
-
 
3096
        getWidget_result result = new getWidget_result();
-
 
3097
        try {
-
 
3098
          result.success = iface_.getWidget(args.type, args.userId, args.onlyEnabled);
-
 
3099
        } catch (WidgetException scx) {
-
 
3100
          result.scx = scx;
-
 
3101
        } catch (Throwable th) {
-
 
3102
          LOGGER.error("Internal error processing getWidget", th);
-
 
3103
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getWidget");
-
 
3104
          oprot.writeMessageBegin(new TMessage("getWidget", TMessageType.EXCEPTION, seqid));
-
 
3105
          x.write(oprot);
-
 
3106
          oprot.writeMessageEnd();
-
 
3107
          oprot.getTransport().flush();
-
 
3108
          return;
-
 
3109
        }
-
 
3110
        oprot.writeMessageBegin(new TMessage("getWidget", TMessageType.REPLY, seqid));
-
 
3111
        result.write(oprot);
-
 
3112
        oprot.writeMessageEnd();
-
 
3113
        oprot.getTransport().flush();
-
 
3114
      }
-
 
3115
 
-
 
3116
    }
-
 
3117
 
-
 
3118
    private class getMyResearch implements ProcessFunction {
2686
    private class getMyResearch implements ProcessFunction {
3119
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2687
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3120
      {
2688
      {
3121
        getMyResearch_args args = new getMyResearch_args();
2689
        getMyResearch_args args = new getMyResearch_args();
3122
        args.read(iprot);
2690
        args.read(iprot);
3123
        iprot.readMessageEnd();
2691
        iprot.readMessageEnd();
3124
        getMyResearch_result result = new getMyResearch_result();
2692
        getMyResearch_result result = new getMyResearch_result();
3125
        try {
2693
        try {
3126
          result.success = iface_.getMyResearch(args.user_id);
2694
          result.success = iface_.getMyResearch(args.userId);
3127
        } catch (WidgetException scx) {
2695
        } catch (WidgetException scx) {
3128
          result.scx = scx;
2696
          result.scx = scx;
3129
        } catch (Throwable th) {
2697
        } catch (Throwable th) {
3130
          LOGGER.error("Internal error processing getMyResearch", th);
2698
          LOGGER.error("Internal error processing getMyResearch", th);
3131
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getMyResearch");
2699
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getMyResearch");
Line 3149... Line 2717...
3149
        updateMyResearch_args args = new updateMyResearch_args();
2717
        updateMyResearch_args args = new updateMyResearch_args();
3150
        args.read(iprot);
2718
        args.read(iprot);
3151
        iprot.readMessageEnd();
2719
        iprot.readMessageEnd();
3152
        updateMyResearch_result result = new updateMyResearch_result();
2720
        updateMyResearch_result result = new updateMyResearch_result();
3153
        try {
2721
        try {
3154
          result.success = iface_.updateMyResearch(args.user_id, args.item_id);
2722
          result.success = iface_.updateMyResearch(args.userId, args.itemId);
3155
          result.setSuccessIsSet(true);
2723
          result.setSuccessIsSet(true);
3156
        } catch (WidgetException scx) {
2724
        } catch (WidgetException scx) {
3157
          result.scx = scx;
2725
          result.scx = scx;
3158
        } catch (Throwable th) {
2726
        } catch (Throwable th) {
3159
          LOGGER.error("Internal error processing updateMyResearch", th);
2727
          LOGGER.error("Internal error processing updateMyResearch", th);
Line 3178... Line 2746...
3178
        deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
2746
        deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
3179
        args.read(iprot);
2747
        args.read(iprot);
3180
        iprot.readMessageEnd();
2748
        iprot.readMessageEnd();
3181
        deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
2749
        deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
3182
        try {
2750
        try {
3183
          iface_.deleteItemFromMyResearch(args.user_id, args.item_id);
2751
          iface_.deleteItemFromMyResearch(args.userId, args.itemId);
3184
        } catch (WidgetException scx) {
2752
        } catch (WidgetException scx) {
3185
          result.scx = scx;
2753
          result.scx = scx;
3186
        } catch (Throwable th) {
2754
        } catch (Throwable th) {
3187
          LOGGER.error("Internal error processing deleteItemFromMyResearch", th);
2755
          LOGGER.error("Internal error processing deleteItemFromMyResearch", th);
3188
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing deleteItemFromMyResearch");
2756
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing deleteItemFromMyResearch");
Line 3198... Line 2766...
3198
        oprot.getTransport().flush();
2766
        oprot.getTransport().flush();
3199
      }
2767
      }
3200
 
2768
 
3201
    }
2769
    }
3202
 
2770
 
3203
    private class updateRatings implements ProcessFunction {
-
 
3204
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3205
      {
-
 
3206
        updateRatings_args args = new updateRatings_args();
-
 
3207
        args.read(iprot);
-
 
3208
        iprot.readMessageEnd();
-
 
3209
        updateRatings_result result = new updateRatings_result();
-
 
3210
        iface_.updateRatings(args.item_id, args.type, args.rating, args.user_id);
-
 
3211
        oprot.writeMessageBegin(new TMessage("updateRatings", TMessageType.REPLY, seqid));
-
 
3212
        result.write(oprot);
-
 
3213
        oprot.writeMessageEnd();
-
 
3214
        oprot.getTransport().flush();
-
 
3215
      }
-
 
3216
 
-
 
3217
    }
-
 
3218
 
-
 
3219
    private class getRatings implements ProcessFunction {
-
 
3220
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3221
      {
-
 
3222
        getRatings_args args = new getRatings_args();
-
 
3223
        args.read(iprot);
-
 
3224
        iprot.readMessageEnd();
-
 
3225
        getRatings_result result = new getRatings_result();
-
 
3226
        try {
-
 
3227
          result.success = iface_.getRatings(args.item_id, args.user_id);
-
 
3228
        } catch (WidgetException scx) {
-
 
3229
          result.scx = scx;
-
 
3230
        } catch (Throwable th) {
-
 
3231
          LOGGER.error("Internal error processing getRatings", th);
-
 
3232
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getRatings");
-
 
3233
          oprot.writeMessageBegin(new TMessage("getRatings", TMessageType.EXCEPTION, seqid));
-
 
3234
          x.write(oprot);
-
 
3235
          oprot.writeMessageEnd();
-
 
3236
          oprot.getTransport().flush();
-
 
3237
          return;
-
 
3238
        }
-
 
3239
        oprot.writeMessageBegin(new TMessage("getRatings", TMessageType.REPLY, seqid));
-
 
3240
        result.write(oprot);
-
 
3241
        oprot.writeMessageEnd();
-
 
3242
        oprot.getTransport().flush();
-
 
3243
      }
-
 
3244
 
-
 
3245
    }
-
 
3246
 
-
 
3247
    private class updateBrowseHistory implements ProcessFunction {
2771
    private class updateBrowseHistory implements ProcessFunction {
3248
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2772
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3249
      {
2773
      {
3250
        updateBrowseHistory_args args = new updateBrowseHistory_args();
2774
        updateBrowseHistory_args args = new updateBrowseHistory_args();
3251
        args.read(iprot);
2775
        args.read(iprot);
3252
        iprot.readMessageEnd();
2776
        iprot.readMessageEnd();
3253
        updateBrowseHistory_result result = new updateBrowseHistory_result();
2777
        updateBrowseHistory_result result = new updateBrowseHistory_result();
3254
        iface_.updateBrowseHistory(args.user_id, args.item_id, args.isSessionId);
2778
        iface_.updateBrowseHistory(args.userId, args.itemId);
3255
        oprot.writeMessageBegin(new TMessage("updateBrowseHistory", TMessageType.REPLY, seqid));
2779
        oprot.writeMessageBegin(new TMessage("updateBrowseHistory", TMessageType.REPLY, seqid));
3256
        result.write(oprot);
2780
        result.write(oprot);
3257
        oprot.writeMessageEnd();
2781
        oprot.writeMessageEnd();
3258
        oprot.getTransport().flush();
2782
        oprot.getTransport().flush();
3259
      }
2783
      }
Line 3266... Line 2790...
3266
        getBrowseHistory_args args = new getBrowseHistory_args();
2790
        getBrowseHistory_args args = new getBrowseHistory_args();
3267
        args.read(iprot);
2791
        args.read(iprot);
3268
        iprot.readMessageEnd();
2792
        iprot.readMessageEnd();
3269
        getBrowseHistory_result result = new getBrowseHistory_result();
2793
        getBrowseHistory_result result = new getBrowseHistory_result();
3270
        try {
2794
        try {
3271
          result.success = iface_.getBrowseHistory(args.userId, args.isSessionId);
2795
          result.success = iface_.getBrowseHistory(args.userId);
3272
        } catch (WidgetException scx) {
2796
        } catch (WidgetException scx) {
3273
          result.scx = scx;
2797
          result.scx = scx;
3274
        } catch (Throwable th) {
2798
        } catch (Throwable th) {
3275
          LOGGER.error("Internal error processing getBrowseHistory", th);
2799
          LOGGER.error("Internal error processing getBrowseHistory", th);
3276
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getBrowseHistory");
2800
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getBrowseHistory");
Line 3286... Line 2810...
3286
        oprot.getTransport().flush();
2810
        oprot.getTransport().flush();
3287
      }
2811
      }
3288
 
2812
 
3289
    }
2813
    }
3290
 
2814
 
-
 
2815
    private class mergeBrowseHistory implements ProcessFunction {
-
 
2816
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2817
      {
-
 
2818
        mergeBrowseHistory_args args = new mergeBrowseHistory_args();
-
 
2819
        args.read(iprot);
-
 
2820
        iprot.readMessageEnd();
-
 
2821
        mergeBrowseHistory_result result = new mergeBrowseHistory_result();
-
 
2822
        iface_.mergeBrowseHistory(args.fromUserId, args.toUserId);
-
 
2823
        oprot.writeMessageBegin(new TMessage("mergeBrowseHistory", TMessageType.REPLY, seqid));
-
 
2824
        result.write(oprot);
-
 
2825
        oprot.writeMessageEnd();
-
 
2826
        oprot.getTransport().flush();
-
 
2827
      }
-
 
2828
 
-
 
2829
    }
-
 
2830
 
3291
  }
2831
  }
3292
 
2832
 
3293
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
2833
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
3294
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
2834
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
3295
 
2835
 
Line 14639... Line 14179...
14639
        } else {
14179
        } else {
14640
          switch (fieldId) {
14180
          switch (fieldId) {
14641
            case SUCCESS:
14181
            case SUCCESS:
14642
              if (field.type == TType.LIST) {
14182
              if (field.type == TType.LIST) {
14643
                {
14183
                {
14644
                  TList _list21 = iprot.readListBegin();
14184
                  TList _list16 = iprot.readListBegin();
14645
                  this.success = new ArrayList<Address>(_list21.size);
14185
                  this.success = new ArrayList<Address>(_list16.size);
14646
                  for (int _i22 = 0; _i22 < _list21.size; ++_i22)
14186
                  for (int _i17 = 0; _i17 < _list16.size; ++_i17)
14647
                  {
14187
                  {
14648
                    Address _elem23;
14188
                    Address _elem18;
14649
                    _elem23 = new Address();
14189
                    _elem18 = new Address();
14650
                    _elem23.read(iprot);
14190
                    _elem18.read(iprot);
14651
                    this.success.add(_elem23);
14191
                    this.success.add(_elem18);
14652
                  }
14192
                  }
14653
                  iprot.readListEnd();
14193
                  iprot.readListEnd();
14654
                }
14194
                }
14655
              } else { 
14195
              } else { 
14656
                TProtocolUtil.skip(iprot, field.type);
14196
                TProtocolUtil.skip(iprot, field.type);
Line 14677... Line 14217...
14677
 
14217
 
14678
      if (this.isSetSuccess()) {
14218
      if (this.isSetSuccess()) {
14679
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14219
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14680
        {
14220
        {
14681
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
14221
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
14682
          for (Address _iter24 : this.success)
14222
          for (Address _iter19 : this.success)
14683
          {
14223
          {
14684
            _iter24.write(oprot);
14224
            _iter19.write(oprot);
14685
          }
14225
          }
14686
          oprot.writeListEnd();
14226
          oprot.writeListEnd();
14687
        }
14227
        }
14688
        oprot.writeFieldEnd();
14228
        oprot.writeFieldEnd();
14689
      } else if (this.isSetUcx()) {
14229
      } else if (this.isSetUcx()) {
Line 17991... Line 17531...
17991
        } else {
17531
        } else {
17992
          switch (fieldId) {
17532
          switch (fieldId) {
17993
            case SUCCESS:
17533
            case SUCCESS:
17994
              if (field.type == TType.LIST) {
17534
              if (field.type == TType.LIST) {
17995
                {
17535
                {
17996
                  TList _list25 = iprot.readListBegin();
17536
                  TList _list20 = iprot.readListBegin();
17997
                  this.success = new ArrayList<Cart>(_list25.size);
17537
                  this.success = new ArrayList<Cart>(_list20.size);
17998
                  for (int _i26 = 0; _i26 < _list25.size; ++_i26)
17538
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
17999
                  {
17539
                  {
18000
                    Cart _elem27;
17540
                    Cart _elem22;
18001
                    _elem27 = new Cart();
17541
                    _elem22 = new Cart();
18002
                    _elem27.read(iprot);
17542
                    _elem22.read(iprot);
18003
                    this.success.add(_elem27);
17543
                    this.success.add(_elem22);
18004
                  }
17544
                  }
18005
                  iprot.readListEnd();
17545
                  iprot.readListEnd();
18006
                }
17546
                }
18007
              } else { 
17547
              } else { 
18008
                TProtocolUtil.skip(iprot, field.type);
17548
                TProtocolUtil.skip(iprot, field.type);
Line 18029... Line 17569...
18029
 
17569
 
18030
      if (this.isSetSuccess()) {
17570
      if (this.isSetSuccess()) {
18031
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17571
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18032
        {
17572
        {
18033
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
17573
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
18034
          for (Cart _iter28 : this.success)
17574
          for (Cart _iter23 : this.success)
18035
          {
17575
          {
18036
            _iter28.write(oprot);
17576
            _iter23.write(oprot);
18037
          }
17577
          }
18038
          oprot.writeListEnd();
17578
          oprot.writeListEnd();
18039
        }
17579
        }
18040
        oprot.writeFieldEnd();
17580
        oprot.writeFieldEnd();
18041
      } else if (this.isSetScx()) {
17581
      } else if (this.isSetScx()) {
Line 18694... Line 18234...
18694
        } else {
18234
        } else {
18695
          switch (fieldId) {
18235
          switch (fieldId) {
18696
            case SUCCESS:
18236
            case SUCCESS:
18697
              if (field.type == TType.LIST) {
18237
              if (field.type == TType.LIST) {
18698
                {
18238
                {
18699
                  TList _list29 = iprot.readListBegin();
18239
                  TList _list24 = iprot.readListBegin();
18700
                  this.success = new ArrayList<Cart>(_list29.size);
18240
                  this.success = new ArrayList<Cart>(_list24.size);
18701
                  for (int _i30 = 0; _i30 < _list29.size; ++_i30)
18241
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
18702
                  {
18242
                  {
18703
                    Cart _elem31;
18243
                    Cart _elem26;
18704
                    _elem31 = new Cart();
18244
                    _elem26 = new Cart();
18705
                    _elem31.read(iprot);
18245
                    _elem26.read(iprot);
18706
                    this.success.add(_elem31);
18246
                    this.success.add(_elem26);
18707
                  }
18247
                  }
18708
                  iprot.readListEnd();
18248
                  iprot.readListEnd();
18709
                }
18249
                }
18710
              } else { 
18250
              } else { 
18711
                TProtocolUtil.skip(iprot, field.type);
18251
                TProtocolUtil.skip(iprot, field.type);
Line 18732... Line 18272...
18732
 
18272
 
18733
      if (this.isSetSuccess()) {
18273
      if (this.isSetSuccess()) {
18734
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18274
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18735
        {
18275
        {
18736
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
18276
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
18737
          for (Cart _iter32 : this.success)
18277
          for (Cart _iter27 : this.success)
18738
          {
18278
          {
18739
            _iter32.write(oprot);
18279
            _iter27.write(oprot);
18740
          }
18280
          }
18741
          oprot.writeListEnd();
18281
          oprot.writeListEnd();
18742
        }
18282
        }
18743
        oprot.writeFieldEnd();
18283
        oprot.writeFieldEnd();
18744
      } else if (this.isSetScx()) {
18284
      } else if (this.isSetScx()) {
Line 19556... Line 19096...
19556
        } else {
19096
        } else {
19557
          switch (fieldId) {
19097
          switch (fieldId) {
19558
            case SUCCESS:
19098
            case SUCCESS:
19559
              if (field.type == TType.LIST) {
19099
              if (field.type == TType.LIST) {
19560
                {
19100
                {
19561
                  TList _list33 = iprot.readListBegin();
19101
                  TList _list28 = iprot.readListBegin();
19562
                  this.success = new ArrayList<Cart>(_list33.size);
19102
                  this.success = new ArrayList<Cart>(_list28.size);
19563
                  for (int _i34 = 0; _i34 < _list33.size; ++_i34)
19103
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
19564
                  {
19104
                  {
19565
                    Cart _elem35;
19105
                    Cart _elem30;
19566
                    _elem35 = new Cart();
19106
                    _elem30 = new Cart();
19567
                    _elem35.read(iprot);
19107
                    _elem30.read(iprot);
19568
                    this.success.add(_elem35);
19108
                    this.success.add(_elem30);
19569
                  }
19109
                  }
19570
                  iprot.readListEnd();
19110
                  iprot.readListEnd();
19571
                }
19111
                }
19572
              } else { 
19112
              } else { 
19573
                TProtocolUtil.skip(iprot, field.type);
19113
                TProtocolUtil.skip(iprot, field.type);
Line 19594... Line 19134...
19594
 
19134
 
19595
      if (this.isSetSuccess()) {
19135
      if (this.isSetSuccess()) {
19596
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19136
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19597
        {
19137
        {
19598
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
19138
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
19599
          for (Cart _iter36 : this.success)
19139
          for (Cart _iter31 : this.success)
19600
          {
19140
          {
19601
            _iter36.write(oprot);
19141
            _iter31.write(oprot);
19602
          }
19142
          }
19603
          oprot.writeListEnd();
19143
          oprot.writeListEnd();
19604
        }
19144
        }
19605
        oprot.writeFieldEnd();
19145
        oprot.writeFieldEnd();
19606
      } else if (this.isSetScx()) {
19146
      } else if (this.isSetScx()) {
Line 26523... Line 26063...
26523
              }
26063
              }
26524
              break;
26064
              break;
26525
            case ITEMS:
26065
            case ITEMS:
26526
              if (field.type == TType.MAP) {
26066
              if (field.type == TType.MAP) {
26527
                {
26067
                {
26528
                  TMap _map37 = iprot.readMapBegin();
26068
                  TMap _map32 = iprot.readMapBegin();
26529
                  this.items = new HashMap<Long,Double>(2*_map37.size);
26069
                  this.items = new HashMap<Long,Double>(2*_map32.size);
26530
                  for (int _i38 = 0; _i38 < _map37.size; ++_i38)
26070
                  for (int _i33 = 0; _i33 < _map32.size; ++_i33)
26531
                  {
26071
                  {
26532
                    long _key39;
26072
                    long _key34;
26533
                    double _val40;
26073
                    double _val35;
26534
                    _key39 = iprot.readI64();
26074
                    _key34 = iprot.readI64();
26535
                    _val40 = iprot.readDouble();
26075
                    _val35 = iprot.readDouble();
26536
                    this.items.put(_key39, _val40);
26076
                    this.items.put(_key34, _val35);
26537
                  }
26077
                  }
26538
                  iprot.readMapEnd();
26078
                  iprot.readMapEnd();
26539
                }
26079
                }
26540
              } else { 
26080
              } else { 
26541
                TProtocolUtil.skip(iprot, field.type);
26081
                TProtocolUtil.skip(iprot, field.type);
Line 26558... Line 26098...
26558
      oprot.writeFieldEnd();
26098
      oprot.writeFieldEnd();
26559
      if (this.items != null) {
26099
      if (this.items != null) {
26560
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
26100
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
26561
        {
26101
        {
26562
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
26102
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
26563
          for (Map.Entry<Long, Double> _iter41 : this.items.entrySet())
26103
          for (Map.Entry<Long, Double> _iter36 : this.items.entrySet())
26564
          {
26104
          {
26565
            oprot.writeI64(_iter41.getKey());
26105
            oprot.writeI64(_iter36.getKey());
26566
            oprot.writeDouble(_iter41.getValue());
26106
            oprot.writeDouble(_iter36.getValue());
26567
          }
26107
          }
26568
          oprot.writeMapEnd();
26108
          oprot.writeMapEnd();
26569
        }
26109
        }
26570
        oprot.writeFieldEnd();
26110
        oprot.writeFieldEnd();
26571
      }
26111
      }
Line 26960... Line 26500...
26960
      // check for required fields
26500
      // check for required fields
26961
    }
26501
    }
26962
 
26502
 
26963
  }
26503
  }
26964
 
26504
 
26965
  public static class addWidget_args implements TBase<addWidget_args._Fields>, java.io.Serializable, Cloneable, Comparable<addWidget_args>   {
-
 
26966
    private static final TStruct STRUCT_DESC = new TStruct("addWidget_args");
-
 
26967
 
-
 
26968
    private static final TField WIDGET_FIELD_DESC = new TField("widget", TType.STRUCT, (short)1);
-
 
26969
 
-
 
26970
    private Widget widget;
-
 
26971
 
-
 
26972
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26973
    public enum _Fields implements TFieldIdEnum {
-
 
26974
      WIDGET((short)1, "widget");
-
 
26975
 
-
 
26976
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
26977
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26978
 
-
 
26979
      static {
-
 
26980
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26981
          byId.put((int)field._thriftId, field);
-
 
26982
          byName.put(field.getFieldName(), field);
-
 
26983
        }
-
 
26984
      }
-
 
26985
 
-
 
26986
      /**
-
 
26987
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26988
       */
-
 
26989
      public static _Fields findByThriftId(int fieldId) {
-
 
26990
        return byId.get(fieldId);
-
 
26991
      }
-
 
26992
 
-
 
26993
      /**
-
 
26994
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26995
       * if it is not found.
-
 
26996
       */
-
 
26997
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26998
        _Fields fields = findByThriftId(fieldId);
-
 
26999
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27000
        return fields;
-
 
27001
      }
-
 
27002
 
-
 
27003
      /**
-
 
27004
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27005
       */
-
 
27006
      public static _Fields findByName(String name) {
-
 
27007
        return byName.get(name);
-
 
27008
      }
-
 
27009
 
-
 
27010
      private final short _thriftId;
-
 
27011
      private final String _fieldName;
-
 
27012
 
-
 
27013
      _Fields(short thriftId, String fieldName) {
-
 
27014
        _thriftId = thriftId;
-
 
27015
        _fieldName = fieldName;
-
 
27016
      }
-
 
27017
 
-
 
27018
      public short getThriftFieldId() {
-
 
27019
        return _thriftId;
-
 
27020
      }
-
 
27021
 
-
 
27022
      public String getFieldName() {
-
 
27023
        return _fieldName;
-
 
27024
      }
-
 
27025
    }
-
 
27026
 
-
 
27027
    // isset id assignments
-
 
27028
 
-
 
27029
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27030
      put(_Fields.WIDGET, new FieldMetaData("widget", TFieldRequirementType.DEFAULT, 
-
 
27031
          new StructMetaData(TType.STRUCT, Widget.class)));
-
 
27032
    }});
-
 
27033
 
-
 
27034
    static {
-
 
27035
      FieldMetaData.addStructMetaDataMap(addWidget_args.class, metaDataMap);
-
 
27036
    }
-
 
27037
 
-
 
27038
    public addWidget_args() {
-
 
27039
    }
-
 
27040
 
-
 
27041
    public addWidget_args(
-
 
27042
      Widget widget)
-
 
27043
    {
-
 
27044
      this();
-
 
27045
      this.widget = widget;
-
 
27046
    }
-
 
27047
 
-
 
27048
    /**
-
 
27049
     * Performs a deep copy on <i>other</i>.
-
 
27050
     */
-
 
27051
    public addWidget_args(addWidget_args other) {
-
 
27052
      if (other.isSetWidget()) {
-
 
27053
        this.widget = new Widget(other.widget);
-
 
27054
      }
-
 
27055
    }
-
 
27056
 
-
 
27057
    public addWidget_args deepCopy() {
-
 
27058
      return new addWidget_args(this);
-
 
27059
    }
-
 
27060
 
-
 
27061
    @Deprecated
-
 
27062
    public addWidget_args clone() {
-
 
27063
      return new addWidget_args(this);
-
 
27064
    }
-
 
27065
 
-
 
27066
    public Widget getWidget() {
-
 
27067
      return this.widget;
-
 
27068
    }
-
 
27069
 
-
 
27070
    public addWidget_args setWidget(Widget widget) {
-
 
27071
      this.widget = widget;
-
 
27072
      return this;
-
 
27073
    }
-
 
27074
 
-
 
27075
    public void unsetWidget() {
-
 
27076
      this.widget = null;
-
 
27077
    }
-
 
27078
 
-
 
27079
    /** Returns true if field widget is set (has been asigned a value) and false otherwise */
-
 
27080
    public boolean isSetWidget() {
-
 
27081
      return this.widget != null;
-
 
27082
    }
-
 
27083
 
-
 
27084
    public void setWidgetIsSet(boolean value) {
-
 
27085
      if (!value) {
-
 
27086
        this.widget = null;
-
 
27087
      }
-
 
27088
    }
-
 
27089
 
-
 
27090
    public void setFieldValue(_Fields field, Object value) {
-
 
27091
      switch (field) {
-
 
27092
      case WIDGET:
-
 
27093
        if (value == null) {
-
 
27094
          unsetWidget();
-
 
27095
        } else {
-
 
27096
          setWidget((Widget)value);
-
 
27097
        }
-
 
27098
        break;
-
 
27099
 
-
 
27100
      }
-
 
27101
    }
-
 
27102
 
-
 
27103
    public void setFieldValue(int fieldID, Object value) {
-
 
27104
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27105
    }
-
 
27106
 
-
 
27107
    public Object getFieldValue(_Fields field) {
-
 
27108
      switch (field) {
-
 
27109
      case WIDGET:
-
 
27110
        return getWidget();
-
 
27111
 
-
 
27112
      }
-
 
27113
      throw new IllegalStateException();
-
 
27114
    }
-
 
27115
 
-
 
27116
    public Object getFieldValue(int fieldId) {
-
 
27117
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
27118
    }
-
 
27119
 
-
 
27120
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27121
    public boolean isSet(_Fields field) {
-
 
27122
      switch (field) {
-
 
27123
      case WIDGET:
-
 
27124
        return isSetWidget();
-
 
27125
      }
-
 
27126
      throw new IllegalStateException();
-
 
27127
    }
-
 
27128
 
-
 
27129
    public boolean isSet(int fieldID) {
-
 
27130
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
27131
    }
-
 
27132
 
-
 
27133
    @Override
-
 
27134
    public boolean equals(Object that) {
-
 
27135
      if (that == null)
-
 
27136
        return false;
-
 
27137
      if (that instanceof addWidget_args)
-
 
27138
        return this.equals((addWidget_args)that);
-
 
27139
      return false;
-
 
27140
    }
-
 
27141
 
-
 
27142
    public boolean equals(addWidget_args that) {
-
 
27143
      if (that == null)
-
 
27144
        return false;
-
 
27145
 
-
 
27146
      boolean this_present_widget = true && this.isSetWidget();
-
 
27147
      boolean that_present_widget = true && that.isSetWidget();
-
 
27148
      if (this_present_widget || that_present_widget) {
-
 
27149
        if (!(this_present_widget && that_present_widget))
-
 
27150
          return false;
-
 
27151
        if (!this.widget.equals(that.widget))
-
 
27152
          return false;
-
 
27153
      }
-
 
27154
 
-
 
27155
      return true;
-
 
27156
    }
-
 
27157
 
-
 
27158
    @Override
-
 
27159
    public int hashCode() {
-
 
27160
      return 0;
-
 
27161
    }
-
 
27162
 
-
 
27163
    public int compareTo(addWidget_args other) {
-
 
27164
      if (!getClass().equals(other.getClass())) {
-
 
27165
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27166
      }
-
 
27167
 
-
 
27168
      int lastComparison = 0;
-
 
27169
      addWidget_args typedOther = (addWidget_args)other;
-
 
27170
 
-
 
27171
      lastComparison = Boolean.valueOf(isSetWidget()).compareTo(isSetWidget());
-
 
27172
      if (lastComparison != 0) {
-
 
27173
        return lastComparison;
-
 
27174
      }
-
 
27175
      lastComparison = TBaseHelper.compareTo(widget, typedOther.widget);
-
 
27176
      if (lastComparison != 0) {
-
 
27177
        return lastComparison;
-
 
27178
      }
-
 
27179
      return 0;
-
 
27180
    }
-
 
27181
 
-
 
27182
    public void read(TProtocol iprot) throws TException {
-
 
27183
      TField field;
-
 
27184
      iprot.readStructBegin();
-
 
27185
      while (true)
-
 
27186
      {
-
 
27187
        field = iprot.readFieldBegin();
-
 
27188
        if (field.type == TType.STOP) { 
-
 
27189
          break;
-
 
27190
        }
-
 
27191
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27192
        if (fieldId == null) {
-
 
27193
          TProtocolUtil.skip(iprot, field.type);
-
 
27194
        } else {
-
 
27195
          switch (fieldId) {
-
 
27196
            case WIDGET:
-
 
27197
              if (field.type == TType.STRUCT) {
-
 
27198
                this.widget = new Widget();
-
 
27199
                this.widget.read(iprot);
-
 
27200
              } else { 
-
 
27201
                TProtocolUtil.skip(iprot, field.type);
-
 
27202
              }
-
 
27203
              break;
-
 
27204
          }
-
 
27205
          iprot.readFieldEnd();
-
 
27206
        }
-
 
27207
      }
-
 
27208
      iprot.readStructEnd();
-
 
27209
      validate();
-
 
27210
    }
-
 
27211
 
-
 
27212
    public void write(TProtocol oprot) throws TException {
-
 
27213
      validate();
-
 
27214
 
-
 
27215
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27216
      if (this.widget != null) {
-
 
27217
        oprot.writeFieldBegin(WIDGET_FIELD_DESC);
-
 
27218
        this.widget.write(oprot);
-
 
27219
        oprot.writeFieldEnd();
-
 
27220
      }
-
 
27221
      oprot.writeFieldStop();
-
 
27222
      oprot.writeStructEnd();
-
 
27223
    }
-
 
27224
 
-
 
27225
    @Override
-
 
27226
    public String toString() {
-
 
27227
      StringBuilder sb = new StringBuilder("addWidget_args(");
-
 
27228
      boolean first = true;
-
 
27229
 
-
 
27230
      sb.append("widget:");
-
 
27231
      if (this.widget == null) {
-
 
27232
        sb.append("null");
-
 
27233
      } else {
-
 
27234
        sb.append(this.widget);
-
 
27235
      }
-
 
27236
      first = false;
-
 
27237
      sb.append(")");
-
 
27238
      return sb.toString();
-
 
27239
    }
-
 
27240
 
-
 
27241
    public void validate() throws TException {
-
 
27242
      // check for required fields
-
 
27243
    }
-
 
27244
 
-
 
27245
  }
-
 
27246
 
-
 
27247
  public static class addWidget_result implements TBase<addWidget_result._Fields>, java.io.Serializable, Cloneable, Comparable<addWidget_result>   {
-
 
27248
    private static final TStruct STRUCT_DESC = new TStruct("addWidget_result");
-
 
27249
 
-
 
27250
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
27251
 
-
 
27252
    private WidgetException scx;
-
 
27253
 
-
 
27254
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27255
    public enum _Fields implements TFieldIdEnum {
-
 
27256
      SCX((short)1, "scx");
-
 
27257
 
-
 
27258
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
27259
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27260
 
-
 
27261
      static {
-
 
27262
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27263
          byId.put((int)field._thriftId, field);
-
 
27264
          byName.put(field.getFieldName(), field);
-
 
27265
        }
-
 
27266
      }
-
 
27267
 
-
 
27268
      /**
-
 
27269
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27270
       */
-
 
27271
      public static _Fields findByThriftId(int fieldId) {
-
 
27272
        return byId.get(fieldId);
-
 
27273
      }
-
 
27274
 
-
 
27275
      /**
-
 
27276
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27277
       * if it is not found.
-
 
27278
       */
-
 
27279
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27280
        _Fields fields = findByThriftId(fieldId);
-
 
27281
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27282
        return fields;
-
 
27283
      }
-
 
27284
 
-
 
27285
      /**
-
 
27286
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27287
       */
-
 
27288
      public static _Fields findByName(String name) {
-
 
27289
        return byName.get(name);
-
 
27290
      }
-
 
27291
 
-
 
27292
      private final short _thriftId;
-
 
27293
      private final String _fieldName;
-
 
27294
 
-
 
27295
      _Fields(short thriftId, String fieldName) {
-
 
27296
        _thriftId = thriftId;
-
 
27297
        _fieldName = fieldName;
-
 
27298
      }
-
 
27299
 
-
 
27300
      public short getThriftFieldId() {
-
 
27301
        return _thriftId;
-
 
27302
      }
-
 
27303
 
-
 
27304
      public String getFieldName() {
-
 
27305
        return _fieldName;
-
 
27306
      }
-
 
27307
    }
-
 
27308
 
-
 
27309
    // isset id assignments
-
 
27310
 
-
 
27311
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27312
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
27313
          new FieldValueMetaData(TType.STRUCT)));
-
 
27314
    }});
-
 
27315
 
-
 
27316
    static {
-
 
27317
      FieldMetaData.addStructMetaDataMap(addWidget_result.class, metaDataMap);
-
 
27318
    }
-
 
27319
 
-
 
27320
    public addWidget_result() {
-
 
27321
    }
-
 
27322
 
-
 
27323
    public addWidget_result(
-
 
27324
      WidgetException scx)
-
 
27325
    {
-
 
27326
      this();
-
 
27327
      this.scx = scx;
-
 
27328
    }
-
 
27329
 
-
 
27330
    /**
-
 
27331
     * Performs a deep copy on <i>other</i>.
-
 
27332
     */
-
 
27333
    public addWidget_result(addWidget_result other) {
-
 
27334
      if (other.isSetScx()) {
-
 
27335
        this.scx = new WidgetException(other.scx);
-
 
27336
      }
-
 
27337
    }
-
 
27338
 
-
 
27339
    public addWidget_result deepCopy() {
-
 
27340
      return new addWidget_result(this);
-
 
27341
    }
-
 
27342
 
-
 
27343
    @Deprecated
-
 
27344
    public addWidget_result clone() {
-
 
27345
      return new addWidget_result(this);
-
 
27346
    }
-
 
27347
 
-
 
27348
    public WidgetException getScx() {
-
 
27349
      return this.scx;
-
 
27350
    }
-
 
27351
 
-
 
27352
    public addWidget_result setScx(WidgetException scx) {
-
 
27353
      this.scx = scx;
-
 
27354
      return this;
-
 
27355
    }
-
 
27356
 
-
 
27357
    public void unsetScx() {
-
 
27358
      this.scx = null;
-
 
27359
    }
-
 
27360
 
-
 
27361
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
27362
    public boolean isSetScx() {
-
 
27363
      return this.scx != null;
-
 
27364
    }
-
 
27365
 
-
 
27366
    public void setScxIsSet(boolean value) {
-
 
27367
      if (!value) {
-
 
27368
        this.scx = null;
-
 
27369
      }
-
 
27370
    }
-
 
27371
 
-
 
27372
    public void setFieldValue(_Fields field, Object value) {
-
 
27373
      switch (field) {
-
 
27374
      case SCX:
-
 
27375
        if (value == null) {
-
 
27376
          unsetScx();
-
 
27377
        } else {
-
 
27378
          setScx((WidgetException)value);
-
 
27379
        }
-
 
27380
        break;
-
 
27381
 
-
 
27382
      }
-
 
27383
    }
-
 
27384
 
-
 
27385
    public void setFieldValue(int fieldID, Object value) {
-
 
27386
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27387
    }
-
 
27388
 
-
 
27389
    public Object getFieldValue(_Fields field) {
-
 
27390
      switch (field) {
-
 
27391
      case SCX:
-
 
27392
        return getScx();
-
 
27393
 
-
 
27394
      }
-
 
27395
      throw new IllegalStateException();
-
 
27396
    }
-
 
27397
 
-
 
27398
    public Object getFieldValue(int fieldId) {
-
 
27399
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
27400
    }
-
 
27401
 
-
 
27402
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27403
    public boolean isSet(_Fields field) {
-
 
27404
      switch (field) {
-
 
27405
      case SCX:
-
 
27406
        return isSetScx();
-
 
27407
      }
-
 
27408
      throw new IllegalStateException();
-
 
27409
    }
-
 
27410
 
-
 
27411
    public boolean isSet(int fieldID) {
-
 
27412
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
27413
    }
-
 
27414
 
-
 
27415
    @Override
-
 
27416
    public boolean equals(Object that) {
-
 
27417
      if (that == null)
-
 
27418
        return false;
-
 
27419
      if (that instanceof addWidget_result)
-
 
27420
        return this.equals((addWidget_result)that);
-
 
27421
      return false;
-
 
27422
    }
-
 
27423
 
-
 
27424
    public boolean equals(addWidget_result that) {
-
 
27425
      if (that == null)
-
 
27426
        return false;
-
 
27427
 
-
 
27428
      boolean this_present_scx = true && this.isSetScx();
-
 
27429
      boolean that_present_scx = true && that.isSetScx();
-
 
27430
      if (this_present_scx || that_present_scx) {
-
 
27431
        if (!(this_present_scx && that_present_scx))
-
 
27432
          return false;
-
 
27433
        if (!this.scx.equals(that.scx))
-
 
27434
          return false;
-
 
27435
      }
-
 
27436
 
-
 
27437
      return true;
-
 
27438
    }
-
 
27439
 
-
 
27440
    @Override
-
 
27441
    public int hashCode() {
-
 
27442
      return 0;
-
 
27443
    }
-
 
27444
 
-
 
27445
    public int compareTo(addWidget_result other) {
-
 
27446
      if (!getClass().equals(other.getClass())) {
-
 
27447
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27448
      }
-
 
27449
 
-
 
27450
      int lastComparison = 0;
-
 
27451
      addWidget_result typedOther = (addWidget_result)other;
-
 
27452
 
-
 
27453
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
27454
      if (lastComparison != 0) {
-
 
27455
        return lastComparison;
-
 
27456
      }
-
 
27457
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
27458
      if (lastComparison != 0) {
-
 
27459
        return lastComparison;
-
 
27460
      }
-
 
27461
      return 0;
-
 
27462
    }
-
 
27463
 
-
 
27464
    public void read(TProtocol iprot) throws TException {
-
 
27465
      TField field;
-
 
27466
      iprot.readStructBegin();
-
 
27467
      while (true)
-
 
27468
      {
-
 
27469
        field = iprot.readFieldBegin();
-
 
27470
        if (field.type == TType.STOP) { 
-
 
27471
          break;
-
 
27472
        }
-
 
27473
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27474
        if (fieldId == null) {
-
 
27475
          TProtocolUtil.skip(iprot, field.type);
-
 
27476
        } else {
-
 
27477
          switch (fieldId) {
-
 
27478
            case SCX:
-
 
27479
              if (field.type == TType.STRUCT) {
-
 
27480
                this.scx = new WidgetException();
-
 
27481
                this.scx.read(iprot);
-
 
27482
              } else { 
-
 
27483
                TProtocolUtil.skip(iprot, field.type);
-
 
27484
              }
-
 
27485
              break;
-
 
27486
          }
-
 
27487
          iprot.readFieldEnd();
-
 
27488
        }
-
 
27489
      }
-
 
27490
      iprot.readStructEnd();
-
 
27491
      validate();
-
 
27492
    }
-
 
27493
 
-
 
27494
    public void write(TProtocol oprot) throws TException {
-
 
27495
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27496
 
-
 
27497
      if (this.isSetScx()) {
-
 
27498
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
27499
        this.scx.write(oprot);
-
 
27500
        oprot.writeFieldEnd();
-
 
27501
      }
-
 
27502
      oprot.writeFieldStop();
-
 
27503
      oprot.writeStructEnd();
-
 
27504
    }
-
 
27505
 
-
 
27506
    @Override
-
 
27507
    public String toString() {
-
 
27508
      StringBuilder sb = new StringBuilder("addWidget_result(");
-
 
27509
      boolean first = true;
-
 
27510
 
-
 
27511
      sb.append("scx:");
-
 
27512
      if (this.scx == null) {
-
 
27513
        sb.append("null");
-
 
27514
      } else {
-
 
27515
        sb.append(this.scx);
-
 
27516
      }
-
 
27517
      first = false;
-
 
27518
      sb.append(")");
-
 
27519
      return sb.toString();
-
 
27520
    }
-
 
27521
 
-
 
27522
    public void validate() throws TException {
-
 
27523
      // check for required fields
-
 
27524
    }
-
 
27525
 
-
 
27526
  }
-
 
27527
 
-
 
27528
  public static class addItemToWidget_args implements TBase<addItemToWidget_args._Fields>, java.io.Serializable, Cloneable, Comparable<addItemToWidget_args>   {
-
 
27529
    private static final TStruct STRUCT_DESC = new TStruct("addItemToWidget_args");
-
 
27530
 
-
 
27531
    private static final TField WIDGET_ID_FIELD_DESC = new TField("widget_id", TType.I64, (short)1);
-
 
27532
    private static final TField ITEMS_FIELD_DESC = new TField("items", TType.LIST, (short)2);
-
 
27533
 
-
 
27534
    private long widget_id;
-
 
27535
    private List<Long> items;
-
 
27536
 
-
 
27537
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27538
    public enum _Fields implements TFieldIdEnum {
-
 
27539
      WIDGET_ID((short)1, "widget_id"),
-
 
27540
      ITEMS((short)2, "items");
-
 
27541
 
-
 
27542
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
27543
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27544
 
-
 
27545
      static {
-
 
27546
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27547
          byId.put((int)field._thriftId, field);
-
 
27548
          byName.put(field.getFieldName(), field);
-
 
27549
        }
-
 
27550
      }
-
 
27551
 
-
 
27552
      /**
-
 
27553
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27554
       */
-
 
27555
      public static _Fields findByThriftId(int fieldId) {
-
 
27556
        return byId.get(fieldId);
-
 
27557
      }
-
 
27558
 
-
 
27559
      /**
-
 
27560
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27561
       * if it is not found.
-
 
27562
       */
-
 
27563
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27564
        _Fields fields = findByThriftId(fieldId);
-
 
27565
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27566
        return fields;
-
 
27567
      }
-
 
27568
 
-
 
27569
      /**
-
 
27570
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27571
       */
-
 
27572
      public static _Fields findByName(String name) {
-
 
27573
        return byName.get(name);
-
 
27574
      }
-
 
27575
 
-
 
27576
      private final short _thriftId;
-
 
27577
      private final String _fieldName;
-
 
27578
 
-
 
27579
      _Fields(short thriftId, String fieldName) {
-
 
27580
        _thriftId = thriftId;
-
 
27581
        _fieldName = fieldName;
-
 
27582
      }
-
 
27583
 
-
 
27584
      public short getThriftFieldId() {
-
 
27585
        return _thriftId;
-
 
27586
      }
-
 
27587
 
-
 
27588
      public String getFieldName() {
-
 
27589
        return _fieldName;
-
 
27590
      }
-
 
27591
    }
-
 
27592
 
-
 
27593
    // isset id assignments
-
 
27594
    private static final int __WIDGET_ID_ISSET_ID = 0;
-
 
27595
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
27596
 
-
 
27597
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27598
      put(_Fields.WIDGET_ID, new FieldMetaData("widget_id", TFieldRequirementType.DEFAULT, 
-
 
27599
          new FieldValueMetaData(TType.I64)));
-
 
27600
      put(_Fields.ITEMS, new FieldMetaData("items", TFieldRequirementType.DEFAULT, 
-
 
27601
          new ListMetaData(TType.LIST, 
-
 
27602
              new FieldValueMetaData(TType.I64))));
-
 
27603
    }});
-
 
27604
 
-
 
27605
    static {
-
 
27606
      FieldMetaData.addStructMetaDataMap(addItemToWidget_args.class, metaDataMap);
-
 
27607
    }
-
 
27608
 
-
 
27609
    public addItemToWidget_args() {
-
 
27610
    }
-
 
27611
 
-
 
27612
    public addItemToWidget_args(
-
 
27613
      long widget_id,
-
 
27614
      List<Long> items)
-
 
27615
    {
-
 
27616
      this();
-
 
27617
      this.widget_id = widget_id;
-
 
27618
      setWidget_idIsSet(true);
-
 
27619
      this.items = items;
-
 
27620
    }
-
 
27621
 
-
 
27622
    /**
-
 
27623
     * Performs a deep copy on <i>other</i>.
-
 
27624
     */
-
 
27625
    public addItemToWidget_args(addItemToWidget_args other) {
-
 
27626
      __isset_bit_vector.clear();
-
 
27627
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
27628
      this.widget_id = other.widget_id;
-
 
27629
      if (other.isSetItems()) {
-
 
27630
        List<Long> __this__items = new ArrayList<Long>();
-
 
27631
        for (Long other_element : other.items) {
-
 
27632
          __this__items.add(other_element);
-
 
27633
        }
-
 
27634
        this.items = __this__items;
-
 
27635
      }
-
 
27636
    }
-
 
27637
 
-
 
27638
    public addItemToWidget_args deepCopy() {
-
 
27639
      return new addItemToWidget_args(this);
-
 
27640
    }
-
 
27641
 
-
 
27642
    @Deprecated
-
 
27643
    public addItemToWidget_args clone() {
-
 
27644
      return new addItemToWidget_args(this);
-
 
27645
    }
-
 
27646
 
-
 
27647
    public long getWidget_id() {
-
 
27648
      return this.widget_id;
-
 
27649
    }
-
 
27650
 
-
 
27651
    public addItemToWidget_args setWidget_id(long widget_id) {
-
 
27652
      this.widget_id = widget_id;
-
 
27653
      setWidget_idIsSet(true);
-
 
27654
      return this;
-
 
27655
    }
-
 
27656
 
-
 
27657
    public void unsetWidget_id() {
-
 
27658
      __isset_bit_vector.clear(__WIDGET_ID_ISSET_ID);
-
 
27659
    }
-
 
27660
 
-
 
27661
    /** Returns true if field widget_id is set (has been asigned a value) and false otherwise */
-
 
27662
    public boolean isSetWidget_id() {
-
 
27663
      return __isset_bit_vector.get(__WIDGET_ID_ISSET_ID);
-
 
27664
    }
-
 
27665
 
-
 
27666
    public void setWidget_idIsSet(boolean value) {
-
 
27667
      __isset_bit_vector.set(__WIDGET_ID_ISSET_ID, value);
-
 
27668
    }
-
 
27669
 
-
 
27670
    public int getItemsSize() {
-
 
27671
      return (this.items == null) ? 0 : this.items.size();
-
 
27672
    }
-
 
27673
 
-
 
27674
    public java.util.Iterator<Long> getItemsIterator() {
-
 
27675
      return (this.items == null) ? null : this.items.iterator();
-
 
27676
    }
-
 
27677
 
-
 
27678
    public void addToItems(long elem) {
-
 
27679
      if (this.items == null) {
-
 
27680
        this.items = new ArrayList<Long>();
-
 
27681
      }
-
 
27682
      this.items.add(elem);
-
 
27683
    }
-
 
27684
 
-
 
27685
    public List<Long> getItems() {
-
 
27686
      return this.items;
-
 
27687
    }
-
 
27688
 
-
 
27689
    public addItemToWidget_args setItems(List<Long> items) {
-
 
27690
      this.items = items;
-
 
27691
      return this;
-
 
27692
    }
-
 
27693
 
-
 
27694
    public void unsetItems() {
-
 
27695
      this.items = null;
-
 
27696
    }
-
 
27697
 
-
 
27698
    /** Returns true if field items is set (has been asigned a value) and false otherwise */
-
 
27699
    public boolean isSetItems() {
-
 
27700
      return this.items != null;
-
 
27701
    }
-
 
27702
 
-
 
27703
    public void setItemsIsSet(boolean value) {
-
 
27704
      if (!value) {
-
 
27705
        this.items = null;
-
 
27706
      }
-
 
27707
    }
-
 
27708
 
-
 
27709
    public void setFieldValue(_Fields field, Object value) {
-
 
27710
      switch (field) {
-
 
27711
      case WIDGET_ID:
-
 
27712
        if (value == null) {
-
 
27713
          unsetWidget_id();
-
 
27714
        } else {
-
 
27715
          setWidget_id((Long)value);
-
 
27716
        }
-
 
27717
        break;
-
 
27718
 
-
 
27719
      case ITEMS:
-
 
27720
        if (value == null) {
-
 
27721
          unsetItems();
-
 
27722
        } else {
-
 
27723
          setItems((List<Long>)value);
-
 
27724
        }
-
 
27725
        break;
-
 
27726
 
-
 
27727
      }
-
 
27728
    }
-
 
27729
 
-
 
27730
    public void setFieldValue(int fieldID, Object value) {
-
 
27731
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27732
    }
-
 
27733
 
-
 
27734
    public Object getFieldValue(_Fields field) {
-
 
27735
      switch (field) {
-
 
27736
      case WIDGET_ID:
-
 
27737
        return new Long(getWidget_id());
-
 
27738
 
-
 
27739
      case ITEMS:
-
 
27740
        return getItems();
-
 
27741
 
-
 
27742
      }
-
 
27743
      throw new IllegalStateException();
-
 
27744
    }
-
 
27745
 
-
 
27746
    public Object getFieldValue(int fieldId) {
-
 
27747
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
27748
    }
-
 
27749
 
-
 
27750
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27751
    public boolean isSet(_Fields field) {
-
 
27752
      switch (field) {
-
 
27753
      case WIDGET_ID:
-
 
27754
        return isSetWidget_id();
-
 
27755
      case ITEMS:
-
 
27756
        return isSetItems();
-
 
27757
      }
-
 
27758
      throw new IllegalStateException();
-
 
27759
    }
-
 
27760
 
-
 
27761
    public boolean isSet(int fieldID) {
-
 
27762
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
27763
    }
-
 
27764
 
-
 
27765
    @Override
-
 
27766
    public boolean equals(Object that) {
-
 
27767
      if (that == null)
-
 
27768
        return false;
-
 
27769
      if (that instanceof addItemToWidget_args)
-
 
27770
        return this.equals((addItemToWidget_args)that);
-
 
27771
      return false;
-
 
27772
    }
-
 
27773
 
-
 
27774
    public boolean equals(addItemToWidget_args that) {
-
 
27775
      if (that == null)
-
 
27776
        return false;
-
 
27777
 
-
 
27778
      boolean this_present_widget_id = true;
-
 
27779
      boolean that_present_widget_id = true;
-
 
27780
      if (this_present_widget_id || that_present_widget_id) {
-
 
27781
        if (!(this_present_widget_id && that_present_widget_id))
-
 
27782
          return false;
-
 
27783
        if (this.widget_id != that.widget_id)
-
 
27784
          return false;
-
 
27785
      }
-
 
27786
 
-
 
27787
      boolean this_present_items = true && this.isSetItems();
-
 
27788
      boolean that_present_items = true && that.isSetItems();
-
 
27789
      if (this_present_items || that_present_items) {
-
 
27790
        if (!(this_present_items && that_present_items))
-
 
27791
          return false;
-
 
27792
        if (!this.items.equals(that.items))
-
 
27793
          return false;
-
 
27794
      }
-
 
27795
 
-
 
27796
      return true;
-
 
27797
    }
-
 
27798
 
-
 
27799
    @Override
-
 
27800
    public int hashCode() {
-
 
27801
      return 0;
-
 
27802
    }
-
 
27803
 
-
 
27804
    public int compareTo(addItemToWidget_args other) {
-
 
27805
      if (!getClass().equals(other.getClass())) {
-
 
27806
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27807
      }
-
 
27808
 
-
 
27809
      int lastComparison = 0;
-
 
27810
      addItemToWidget_args typedOther = (addItemToWidget_args)other;
-
 
27811
 
-
 
27812
      lastComparison = Boolean.valueOf(isSetWidget_id()).compareTo(isSetWidget_id());
-
 
27813
      if (lastComparison != 0) {
-
 
27814
        return lastComparison;
-
 
27815
      }
-
 
27816
      lastComparison = TBaseHelper.compareTo(widget_id, typedOther.widget_id);
-
 
27817
      if (lastComparison != 0) {
-
 
27818
        return lastComparison;
-
 
27819
      }
-
 
27820
      lastComparison = Boolean.valueOf(isSetItems()).compareTo(isSetItems());
-
 
27821
      if (lastComparison != 0) {
-
 
27822
        return lastComparison;
-
 
27823
      }
-
 
27824
      lastComparison = TBaseHelper.compareTo(items, typedOther.items);
-
 
27825
      if (lastComparison != 0) {
-
 
27826
        return lastComparison;
-
 
27827
      }
-
 
27828
      return 0;
-
 
27829
    }
-
 
27830
 
-
 
27831
    public void read(TProtocol iprot) throws TException {
-
 
27832
      TField field;
-
 
27833
      iprot.readStructBegin();
-
 
27834
      while (true)
-
 
27835
      {
-
 
27836
        field = iprot.readFieldBegin();
-
 
27837
        if (field.type == TType.STOP) { 
-
 
27838
          break;
-
 
27839
        }
-
 
27840
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27841
        if (fieldId == null) {
-
 
27842
          TProtocolUtil.skip(iprot, field.type);
-
 
27843
        } else {
-
 
27844
          switch (fieldId) {
-
 
27845
            case WIDGET_ID:
-
 
27846
              if (field.type == TType.I64) {
-
 
27847
                this.widget_id = iprot.readI64();
-
 
27848
                setWidget_idIsSet(true);
-
 
27849
              } else { 
-
 
27850
                TProtocolUtil.skip(iprot, field.type);
-
 
27851
              }
-
 
27852
              break;
-
 
27853
            case ITEMS:
-
 
27854
              if (field.type == TType.LIST) {
-
 
27855
                {
-
 
27856
                  TList _list42 = iprot.readListBegin();
-
 
27857
                  this.items = new ArrayList<Long>(_list42.size);
-
 
27858
                  for (int _i43 = 0; _i43 < _list42.size; ++_i43)
-
 
27859
                  {
-
 
27860
                    long _elem44;
-
 
27861
                    _elem44 = iprot.readI64();
-
 
27862
                    this.items.add(_elem44);
-
 
27863
                  }
-
 
27864
                  iprot.readListEnd();
-
 
27865
                }
-
 
27866
              } else { 
-
 
27867
                TProtocolUtil.skip(iprot, field.type);
-
 
27868
              }
-
 
27869
              break;
-
 
27870
          }
-
 
27871
          iprot.readFieldEnd();
-
 
27872
        }
-
 
27873
      }
-
 
27874
      iprot.readStructEnd();
-
 
27875
      validate();
-
 
27876
    }
-
 
27877
 
-
 
27878
    public void write(TProtocol oprot) throws TException {
-
 
27879
      validate();
-
 
27880
 
-
 
27881
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27882
      oprot.writeFieldBegin(WIDGET_ID_FIELD_DESC);
-
 
27883
      oprot.writeI64(this.widget_id);
-
 
27884
      oprot.writeFieldEnd();
-
 
27885
      if (this.items != null) {
-
 
27886
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
-
 
27887
        {
-
 
27888
          oprot.writeListBegin(new TList(TType.I64, this.items.size()));
-
 
27889
          for (long _iter45 : this.items)
-
 
27890
          {
-
 
27891
            oprot.writeI64(_iter45);
-
 
27892
          }
-
 
27893
          oprot.writeListEnd();
-
 
27894
        }
-
 
27895
        oprot.writeFieldEnd();
-
 
27896
      }
-
 
27897
      oprot.writeFieldStop();
-
 
27898
      oprot.writeStructEnd();
-
 
27899
    }
-
 
27900
 
-
 
27901
    @Override
-
 
27902
    public String toString() {
-
 
27903
      StringBuilder sb = new StringBuilder("addItemToWidget_args(");
-
 
27904
      boolean first = true;
-
 
27905
 
-
 
27906
      sb.append("widget_id:");
-
 
27907
      sb.append(this.widget_id);
-
 
27908
      first = false;
-
 
27909
      if (!first) sb.append(", ");
-
 
27910
      sb.append("items:");
-
 
27911
      if (this.items == null) {
-
 
27912
        sb.append("null");
-
 
27913
      } else {
-
 
27914
        sb.append(this.items);
-
 
27915
      }
-
 
27916
      first = false;
-
 
27917
      sb.append(")");
-
 
27918
      return sb.toString();
-
 
27919
    }
-
 
27920
 
-
 
27921
    public void validate() throws TException {
-
 
27922
      // check for required fields
-
 
27923
    }
-
 
27924
 
-
 
27925
  }
-
 
27926
 
-
 
27927
  public static class addItemToWidget_result implements TBase<addItemToWidget_result._Fields>, java.io.Serializable, Cloneable, Comparable<addItemToWidget_result>   {
-
 
27928
    private static final TStruct STRUCT_DESC = new TStruct("addItemToWidget_result");
-
 
27929
 
-
 
27930
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
27931
 
-
 
27932
    private WidgetException scx;
-
 
27933
 
-
 
27934
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27935
    public enum _Fields implements TFieldIdEnum {
-
 
27936
      SCX((short)1, "scx");
-
 
27937
 
-
 
27938
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
27939
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27940
 
-
 
27941
      static {
-
 
27942
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27943
          byId.put((int)field._thriftId, field);
-
 
27944
          byName.put(field.getFieldName(), field);
-
 
27945
        }
-
 
27946
      }
-
 
27947
 
-
 
27948
      /**
-
 
27949
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27950
       */
-
 
27951
      public static _Fields findByThriftId(int fieldId) {
-
 
27952
        return byId.get(fieldId);
-
 
27953
      }
-
 
27954
 
-
 
27955
      /**
-
 
27956
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27957
       * if it is not found.
-
 
27958
       */
-
 
27959
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27960
        _Fields fields = findByThriftId(fieldId);
-
 
27961
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27962
        return fields;
-
 
27963
      }
-
 
27964
 
-
 
27965
      /**
-
 
27966
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27967
       */
-
 
27968
      public static _Fields findByName(String name) {
-
 
27969
        return byName.get(name);
-
 
27970
      }
-
 
27971
 
-
 
27972
      private final short _thriftId;
-
 
27973
      private final String _fieldName;
-
 
27974
 
-
 
27975
      _Fields(short thriftId, String fieldName) {
-
 
27976
        _thriftId = thriftId;
-
 
27977
        _fieldName = fieldName;
-
 
27978
      }
-
 
27979
 
-
 
27980
      public short getThriftFieldId() {
-
 
27981
        return _thriftId;
-
 
27982
      }
-
 
27983
 
-
 
27984
      public String getFieldName() {
-
 
27985
        return _fieldName;
-
 
27986
      }
-
 
27987
    }
-
 
27988
 
-
 
27989
    // isset id assignments
-
 
27990
 
-
 
27991
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27992
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
27993
          new FieldValueMetaData(TType.STRUCT)));
-
 
27994
    }});
-
 
27995
 
-
 
27996
    static {
-
 
27997
      FieldMetaData.addStructMetaDataMap(addItemToWidget_result.class, metaDataMap);
-
 
27998
    }
-
 
27999
 
-
 
28000
    public addItemToWidget_result() {
-
 
28001
    }
-
 
28002
 
-
 
28003
    public addItemToWidget_result(
-
 
28004
      WidgetException scx)
-
 
28005
    {
-
 
28006
      this();
-
 
28007
      this.scx = scx;
-
 
28008
    }
-
 
28009
 
-
 
28010
    /**
-
 
28011
     * Performs a deep copy on <i>other</i>.
-
 
28012
     */
-
 
28013
    public addItemToWidget_result(addItemToWidget_result other) {
-
 
28014
      if (other.isSetScx()) {
-
 
28015
        this.scx = new WidgetException(other.scx);
-
 
28016
      }
-
 
28017
    }
-
 
28018
 
-
 
28019
    public addItemToWidget_result deepCopy() {
-
 
28020
      return new addItemToWidget_result(this);
-
 
28021
    }
-
 
28022
 
-
 
28023
    @Deprecated
-
 
28024
    public addItemToWidget_result clone() {
-
 
28025
      return new addItemToWidget_result(this);
-
 
28026
    }
-
 
28027
 
-
 
28028
    public WidgetException getScx() {
-
 
28029
      return this.scx;
-
 
28030
    }
-
 
28031
 
-
 
28032
    public addItemToWidget_result setScx(WidgetException scx) {
-
 
28033
      this.scx = scx;
-
 
28034
      return this;
-
 
28035
    }
-
 
28036
 
-
 
28037
    public void unsetScx() {
-
 
28038
      this.scx = null;
-
 
28039
    }
-
 
28040
 
-
 
28041
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
28042
    public boolean isSetScx() {
-
 
28043
      return this.scx != null;
-
 
28044
    }
-
 
28045
 
-
 
28046
    public void setScxIsSet(boolean value) {
-
 
28047
      if (!value) {
-
 
28048
        this.scx = null;
-
 
28049
      }
-
 
28050
    }
-
 
28051
 
-
 
28052
    public void setFieldValue(_Fields field, Object value) {
-
 
28053
      switch (field) {
-
 
28054
      case SCX:
-
 
28055
        if (value == null) {
-
 
28056
          unsetScx();
-
 
28057
        } else {
-
 
28058
          setScx((WidgetException)value);
-
 
28059
        }
-
 
28060
        break;
-
 
28061
 
-
 
28062
      }
-
 
28063
    }
-
 
28064
 
-
 
28065
    public void setFieldValue(int fieldID, Object value) {
-
 
28066
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
28067
    }
-
 
28068
 
-
 
28069
    public Object getFieldValue(_Fields field) {
-
 
28070
      switch (field) {
-
 
28071
      case SCX:
-
 
28072
        return getScx();
-
 
28073
 
-
 
28074
      }
-
 
28075
      throw new IllegalStateException();
-
 
28076
    }
-
 
28077
 
-
 
28078
    public Object getFieldValue(int fieldId) {
-
 
28079
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
28080
    }
-
 
28081
 
-
 
28082
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
28083
    public boolean isSet(_Fields field) {
-
 
28084
      switch (field) {
-
 
28085
      case SCX:
-
 
28086
        return isSetScx();
-
 
28087
      }
-
 
28088
      throw new IllegalStateException();
-
 
28089
    }
-
 
28090
 
-
 
28091
    public boolean isSet(int fieldID) {
-
 
28092
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
28093
    }
-
 
28094
 
-
 
28095
    @Override
-
 
28096
    public boolean equals(Object that) {
-
 
28097
      if (that == null)
-
 
28098
        return false;
-
 
28099
      if (that instanceof addItemToWidget_result)
-
 
28100
        return this.equals((addItemToWidget_result)that);
-
 
28101
      return false;
-
 
28102
    }
-
 
28103
 
-
 
28104
    public boolean equals(addItemToWidget_result that) {
-
 
28105
      if (that == null)
-
 
28106
        return false;
-
 
28107
 
-
 
28108
      boolean this_present_scx = true && this.isSetScx();
-
 
28109
      boolean that_present_scx = true && that.isSetScx();
-
 
28110
      if (this_present_scx || that_present_scx) {
-
 
28111
        if (!(this_present_scx && that_present_scx))
-
 
28112
          return false;
-
 
28113
        if (!this.scx.equals(that.scx))
-
 
28114
          return false;
-
 
28115
      }
-
 
28116
 
-
 
28117
      return true;
-
 
28118
    }
-
 
28119
 
-
 
28120
    @Override
-
 
28121
    public int hashCode() {
-
 
28122
      return 0;
-
 
28123
    }
-
 
28124
 
-
 
28125
    public int compareTo(addItemToWidget_result other) {
-
 
28126
      if (!getClass().equals(other.getClass())) {
-
 
28127
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28128
      }
-
 
28129
 
-
 
28130
      int lastComparison = 0;
-
 
28131
      addItemToWidget_result typedOther = (addItemToWidget_result)other;
-
 
28132
 
-
 
28133
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
28134
      if (lastComparison != 0) {
-
 
28135
        return lastComparison;
-
 
28136
      }
-
 
28137
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
28138
      if (lastComparison != 0) {
-
 
28139
        return lastComparison;
-
 
28140
      }
-
 
28141
      return 0;
-
 
28142
    }
-
 
28143
 
-
 
28144
    public void read(TProtocol iprot) throws TException {
-
 
28145
      TField field;
-
 
28146
      iprot.readStructBegin();
-
 
28147
      while (true)
-
 
28148
      {
-
 
28149
        field = iprot.readFieldBegin();
-
 
28150
        if (field.type == TType.STOP) { 
-
 
28151
          break;
-
 
28152
        }
-
 
28153
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
28154
        if (fieldId == null) {
-
 
28155
          TProtocolUtil.skip(iprot, field.type);
-
 
28156
        } else {
-
 
28157
          switch (fieldId) {
-
 
28158
            case SCX:
-
 
28159
              if (field.type == TType.STRUCT) {
-
 
28160
                this.scx = new WidgetException();
-
 
28161
                this.scx.read(iprot);
-
 
28162
              } else { 
-
 
28163
                TProtocolUtil.skip(iprot, field.type);
-
 
28164
              }
-
 
28165
              break;
-
 
28166
          }
-
 
28167
          iprot.readFieldEnd();
-
 
28168
        }
-
 
28169
      }
-
 
28170
      iprot.readStructEnd();
-
 
28171
      validate();
-
 
28172
    }
-
 
28173
 
-
 
28174
    public void write(TProtocol oprot) throws TException {
-
 
28175
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28176
 
-
 
28177
      if (this.isSetScx()) {
-
 
28178
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
28179
        this.scx.write(oprot);
-
 
28180
        oprot.writeFieldEnd();
-
 
28181
      }
-
 
28182
      oprot.writeFieldStop();
-
 
28183
      oprot.writeStructEnd();
-
 
28184
    }
-
 
28185
 
-
 
28186
    @Override
-
 
28187
    public String toString() {
-
 
28188
      StringBuilder sb = new StringBuilder("addItemToWidget_result(");
-
 
28189
      boolean first = true;
-
 
28190
 
-
 
28191
      sb.append("scx:");
-
 
28192
      if (this.scx == null) {
-
 
28193
        sb.append("null");
-
 
28194
      } else {
-
 
28195
        sb.append(this.scx);
-
 
28196
      }
-
 
28197
      first = false;
-
 
28198
      sb.append(")");
-
 
28199
      return sb.toString();
-
 
28200
    }
-
 
28201
 
-
 
28202
    public void validate() throws TException {
-
 
28203
      // check for required fields
-
 
28204
    }
-
 
28205
 
-
 
28206
  }
-
 
28207
 
-
 
28208
  public static class deleteItemFromWidget_args implements TBase<deleteItemFromWidget_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteItemFromWidget_args>   {
-
 
28209
    private static final TStruct STRUCT_DESC = new TStruct("deleteItemFromWidget_args");
-
 
28210
 
-
 
28211
    private static final TField WIDGET_ID_FIELD_DESC = new TField("widget_id", TType.I64, (short)1);
-
 
28212
    private static final TField ITEM_ID_FIELD_DESC = new TField("item_id", TType.I64, (short)2);
-
 
28213
 
-
 
28214
    private long widget_id;
-
 
28215
    private long item_id;
-
 
28216
 
-
 
28217
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28218
    public enum _Fields implements TFieldIdEnum {
-
 
28219
      WIDGET_ID((short)1, "widget_id"),
-
 
28220
      ITEM_ID((short)2, "item_id");
-
 
28221
 
-
 
28222
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
28223
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28224
 
-
 
28225
      static {
-
 
28226
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28227
          byId.put((int)field._thriftId, field);
-
 
28228
          byName.put(field.getFieldName(), field);
-
 
28229
        }
-
 
28230
      }
-
 
28231
 
-
 
28232
      /**
-
 
28233
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28234
       */
-
 
28235
      public static _Fields findByThriftId(int fieldId) {
-
 
28236
        return byId.get(fieldId);
-
 
28237
      }
-
 
28238
 
-
 
28239
      /**
-
 
28240
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28241
       * if it is not found.
-
 
28242
       */
-
 
28243
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28244
        _Fields fields = findByThriftId(fieldId);
-
 
28245
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28246
        return fields;
-
 
28247
      }
-
 
28248
 
-
 
28249
      /**
-
 
28250
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28251
       */
-
 
28252
      public static _Fields findByName(String name) {
-
 
28253
        return byName.get(name);
-
 
28254
      }
-
 
28255
 
-
 
28256
      private final short _thriftId;
-
 
28257
      private final String _fieldName;
-
 
28258
 
-
 
28259
      _Fields(short thriftId, String fieldName) {
-
 
28260
        _thriftId = thriftId;
-
 
28261
        _fieldName = fieldName;
-
 
28262
      }
-
 
28263
 
-
 
28264
      public short getThriftFieldId() {
-
 
28265
        return _thriftId;
-
 
28266
      }
-
 
28267
 
-
 
28268
      public String getFieldName() {
-
 
28269
        return _fieldName;
-
 
28270
      }
-
 
28271
    }
-
 
28272
 
-
 
28273
    // isset id assignments
-
 
28274
    private static final int __WIDGET_ID_ISSET_ID = 0;
-
 
28275
    private static final int __ITEM_ID_ISSET_ID = 1;
-
 
28276
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
28277
 
-
 
28278
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
28279
      put(_Fields.WIDGET_ID, new FieldMetaData("widget_id", TFieldRequirementType.DEFAULT, 
-
 
28280
          new FieldValueMetaData(TType.I64)));
-
 
28281
      put(_Fields.ITEM_ID, new FieldMetaData("item_id", TFieldRequirementType.DEFAULT, 
-
 
28282
          new FieldValueMetaData(TType.I64)));
-
 
28283
    }});
-
 
28284
 
-
 
28285
    static {
-
 
28286
      FieldMetaData.addStructMetaDataMap(deleteItemFromWidget_args.class, metaDataMap);
-
 
28287
    }
-
 
28288
 
-
 
28289
    public deleteItemFromWidget_args() {
-
 
28290
    }
-
 
28291
 
-
 
28292
    public deleteItemFromWidget_args(
-
 
28293
      long widget_id,
-
 
28294
      long item_id)
-
 
28295
    {
-
 
28296
      this();
-
 
28297
      this.widget_id = widget_id;
-
 
28298
      setWidget_idIsSet(true);
-
 
28299
      this.item_id = item_id;
-
 
28300
      setItem_idIsSet(true);
-
 
28301
    }
-
 
28302
 
-
 
28303
    /**
-
 
28304
     * Performs a deep copy on <i>other</i>.
-
 
28305
     */
-
 
28306
    public deleteItemFromWidget_args(deleteItemFromWidget_args other) {
-
 
28307
      __isset_bit_vector.clear();
-
 
28308
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
28309
      this.widget_id = other.widget_id;
-
 
28310
      this.item_id = other.item_id;
-
 
28311
    }
-
 
28312
 
-
 
28313
    public deleteItemFromWidget_args deepCopy() {
-
 
28314
      return new deleteItemFromWidget_args(this);
-
 
28315
    }
-
 
28316
 
-
 
28317
    @Deprecated
-
 
28318
    public deleteItemFromWidget_args clone() {
-
 
28319
      return new deleteItemFromWidget_args(this);
-
 
28320
    }
-
 
28321
 
-
 
28322
    public long getWidget_id() {
-
 
28323
      return this.widget_id;
-
 
28324
    }
-
 
28325
 
-
 
28326
    public deleteItemFromWidget_args setWidget_id(long widget_id) {
-
 
28327
      this.widget_id = widget_id;
-
 
28328
      setWidget_idIsSet(true);
-
 
28329
      return this;
-
 
28330
    }
-
 
28331
 
-
 
28332
    public void unsetWidget_id() {
-
 
28333
      __isset_bit_vector.clear(__WIDGET_ID_ISSET_ID);
-
 
28334
    }
-
 
28335
 
-
 
28336
    /** Returns true if field widget_id is set (has been asigned a value) and false otherwise */
-
 
28337
    public boolean isSetWidget_id() {
-
 
28338
      return __isset_bit_vector.get(__WIDGET_ID_ISSET_ID);
-
 
28339
    }
-
 
28340
 
-
 
28341
    public void setWidget_idIsSet(boolean value) {
-
 
28342
      __isset_bit_vector.set(__WIDGET_ID_ISSET_ID, value);
-
 
28343
    }
-
 
28344
 
-
 
28345
    public long getItem_id() {
-
 
28346
      return this.item_id;
-
 
28347
    }
-
 
28348
 
-
 
28349
    public deleteItemFromWidget_args setItem_id(long item_id) {
-
 
28350
      this.item_id = item_id;
-
 
28351
      setItem_idIsSet(true);
-
 
28352
      return this;
-
 
28353
    }
-
 
28354
 
-
 
28355
    public void unsetItem_id() {
-
 
28356
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
28357
    }
-
 
28358
 
-
 
28359
    /** Returns true if field item_id is set (has been asigned a value) and false otherwise */
-
 
28360
    public boolean isSetItem_id() {
-
 
28361
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
28362
    }
-
 
28363
 
-
 
28364
    public void setItem_idIsSet(boolean value) {
-
 
28365
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
28366
    }
-
 
28367
 
-
 
28368
    public void setFieldValue(_Fields field, Object value) {
-
 
28369
      switch (field) {
-
 
28370
      case WIDGET_ID:
-
 
28371
        if (value == null) {
-
 
28372
          unsetWidget_id();
-
 
28373
        } else {
-
 
28374
          setWidget_id((Long)value);
-
 
28375
        }
-
 
28376
        break;
-
 
28377
 
-
 
28378
      case ITEM_ID:
-
 
28379
        if (value == null) {
-
 
28380
          unsetItem_id();
-
 
28381
        } else {
-
 
28382
          setItem_id((Long)value);
-
 
28383
        }
-
 
28384
        break;
-
 
28385
 
-
 
28386
      }
-
 
28387
    }
-
 
28388
 
-
 
28389
    public void setFieldValue(int fieldID, Object value) {
-
 
28390
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
28391
    }
-
 
28392
 
-
 
28393
    public Object getFieldValue(_Fields field) {
-
 
28394
      switch (field) {
-
 
28395
      case WIDGET_ID:
-
 
28396
        return new Long(getWidget_id());
-
 
28397
 
-
 
28398
      case ITEM_ID:
-
 
28399
        return new Long(getItem_id());
-
 
28400
 
-
 
28401
      }
-
 
28402
      throw new IllegalStateException();
-
 
28403
    }
-
 
28404
 
-
 
28405
    public Object getFieldValue(int fieldId) {
-
 
28406
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
28407
    }
-
 
28408
 
-
 
28409
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
28410
    public boolean isSet(_Fields field) {
-
 
28411
      switch (field) {
-
 
28412
      case WIDGET_ID:
-
 
28413
        return isSetWidget_id();
-
 
28414
      case ITEM_ID:
-
 
28415
        return isSetItem_id();
-
 
28416
      }
-
 
28417
      throw new IllegalStateException();
-
 
28418
    }
-
 
28419
 
-
 
28420
    public boolean isSet(int fieldID) {
-
 
28421
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
28422
    }
-
 
28423
 
-
 
28424
    @Override
-
 
28425
    public boolean equals(Object that) {
-
 
28426
      if (that == null)
-
 
28427
        return false;
-
 
28428
      if (that instanceof deleteItemFromWidget_args)
-
 
28429
        return this.equals((deleteItemFromWidget_args)that);
-
 
28430
      return false;
-
 
28431
    }
-
 
28432
 
-
 
28433
    public boolean equals(deleteItemFromWidget_args that) {
-
 
28434
      if (that == null)
-
 
28435
        return false;
-
 
28436
 
-
 
28437
      boolean this_present_widget_id = true;
-
 
28438
      boolean that_present_widget_id = true;
-
 
28439
      if (this_present_widget_id || that_present_widget_id) {
-
 
28440
        if (!(this_present_widget_id && that_present_widget_id))
-
 
28441
          return false;
-
 
28442
        if (this.widget_id != that.widget_id)
-
 
28443
          return false;
-
 
28444
      }
-
 
28445
 
-
 
28446
      boolean this_present_item_id = true;
-
 
28447
      boolean that_present_item_id = true;
-
 
28448
      if (this_present_item_id || that_present_item_id) {
-
 
28449
        if (!(this_present_item_id && that_present_item_id))
-
 
28450
          return false;
-
 
28451
        if (this.item_id != that.item_id)
-
 
28452
          return false;
-
 
28453
      }
-
 
28454
 
-
 
28455
      return true;
-
 
28456
    }
-
 
28457
 
-
 
28458
    @Override
-
 
28459
    public int hashCode() {
-
 
28460
      return 0;
-
 
28461
    }
-
 
28462
 
-
 
28463
    public int compareTo(deleteItemFromWidget_args other) {
-
 
28464
      if (!getClass().equals(other.getClass())) {
-
 
28465
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28466
      }
-
 
28467
 
-
 
28468
      int lastComparison = 0;
-
 
28469
      deleteItemFromWidget_args typedOther = (deleteItemFromWidget_args)other;
-
 
28470
 
-
 
28471
      lastComparison = Boolean.valueOf(isSetWidget_id()).compareTo(isSetWidget_id());
-
 
28472
      if (lastComparison != 0) {
-
 
28473
        return lastComparison;
-
 
28474
      }
-
 
28475
      lastComparison = TBaseHelper.compareTo(widget_id, typedOther.widget_id);
-
 
28476
      if (lastComparison != 0) {
-
 
28477
        return lastComparison;
-
 
28478
      }
-
 
28479
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(isSetItem_id());
-
 
28480
      if (lastComparison != 0) {
-
 
28481
        return lastComparison;
-
 
28482
      }
-
 
28483
      lastComparison = TBaseHelper.compareTo(item_id, typedOther.item_id);
-
 
28484
      if (lastComparison != 0) {
-
 
28485
        return lastComparison;
-
 
28486
      }
-
 
28487
      return 0;
-
 
28488
    }
-
 
28489
 
-
 
28490
    public void read(TProtocol iprot) throws TException {
-
 
28491
      TField field;
-
 
28492
      iprot.readStructBegin();
-
 
28493
      while (true)
-
 
28494
      {
-
 
28495
        field = iprot.readFieldBegin();
-
 
28496
        if (field.type == TType.STOP) { 
-
 
28497
          break;
-
 
28498
        }
-
 
28499
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
28500
        if (fieldId == null) {
-
 
28501
          TProtocolUtil.skip(iprot, field.type);
-
 
28502
        } else {
-
 
28503
          switch (fieldId) {
-
 
28504
            case WIDGET_ID:
-
 
28505
              if (field.type == TType.I64) {
-
 
28506
                this.widget_id = iprot.readI64();
-
 
28507
                setWidget_idIsSet(true);
-
 
28508
              } else { 
-
 
28509
                TProtocolUtil.skip(iprot, field.type);
-
 
28510
              }
-
 
28511
              break;
-
 
28512
            case ITEM_ID:
-
 
28513
              if (field.type == TType.I64) {
-
 
28514
                this.item_id = iprot.readI64();
-
 
28515
                setItem_idIsSet(true);
-
 
28516
              } else { 
-
 
28517
                TProtocolUtil.skip(iprot, field.type);
-
 
28518
              }
-
 
28519
              break;
-
 
28520
          }
-
 
28521
          iprot.readFieldEnd();
-
 
28522
        }
-
 
28523
      }
-
 
28524
      iprot.readStructEnd();
-
 
28525
      validate();
-
 
28526
    }
-
 
28527
 
-
 
28528
    public void write(TProtocol oprot) throws TException {
-
 
28529
      validate();
-
 
28530
 
-
 
28531
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28532
      oprot.writeFieldBegin(WIDGET_ID_FIELD_DESC);
-
 
28533
      oprot.writeI64(this.widget_id);
-
 
28534
      oprot.writeFieldEnd();
-
 
28535
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
28536
      oprot.writeI64(this.item_id);
-
 
28537
      oprot.writeFieldEnd();
-
 
28538
      oprot.writeFieldStop();
-
 
28539
      oprot.writeStructEnd();
-
 
28540
    }
-
 
28541
 
-
 
28542
    @Override
-
 
28543
    public String toString() {
-
 
28544
      StringBuilder sb = new StringBuilder("deleteItemFromWidget_args(");
-
 
28545
      boolean first = true;
-
 
28546
 
-
 
28547
      sb.append("widget_id:");
-
 
28548
      sb.append(this.widget_id);
-
 
28549
      first = false;
-
 
28550
      if (!first) sb.append(", ");
-
 
28551
      sb.append("item_id:");
-
 
28552
      sb.append(this.item_id);
-
 
28553
      first = false;
-
 
28554
      sb.append(")");
-
 
28555
      return sb.toString();
-
 
28556
    }
-
 
28557
 
-
 
28558
    public void validate() throws TException {
-
 
28559
      // check for required fields
-
 
28560
    }
-
 
28561
 
-
 
28562
  }
-
 
28563
 
-
 
28564
  public static class deleteItemFromWidget_result implements TBase<deleteItemFromWidget_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteItemFromWidget_result>   {
-
 
28565
    private static final TStruct STRUCT_DESC = new TStruct("deleteItemFromWidget_result");
-
 
28566
 
-
 
28567
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
28568
 
-
 
28569
    private WidgetException scx;
-
 
28570
 
-
 
28571
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28572
    public enum _Fields implements TFieldIdEnum {
-
 
28573
      SCX((short)1, "scx");
-
 
28574
 
-
 
28575
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
28576
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28577
 
-
 
28578
      static {
-
 
28579
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28580
          byId.put((int)field._thriftId, field);
-
 
28581
          byName.put(field.getFieldName(), field);
-
 
28582
        }
-
 
28583
      }
-
 
28584
 
-
 
28585
      /**
-
 
28586
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28587
       */
-
 
28588
      public static _Fields findByThriftId(int fieldId) {
-
 
28589
        return byId.get(fieldId);
-
 
28590
      }
-
 
28591
 
-
 
28592
      /**
-
 
28593
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28594
       * if it is not found.
-
 
28595
       */
-
 
28596
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28597
        _Fields fields = findByThriftId(fieldId);
-
 
28598
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28599
        return fields;
-
 
28600
      }
-
 
28601
 
-
 
28602
      /**
-
 
28603
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28604
       */
-
 
28605
      public static _Fields findByName(String name) {
-
 
28606
        return byName.get(name);
-
 
28607
      }
-
 
28608
 
-
 
28609
      private final short _thriftId;
-
 
28610
      private final String _fieldName;
-
 
28611
 
-
 
28612
      _Fields(short thriftId, String fieldName) {
-
 
28613
        _thriftId = thriftId;
-
 
28614
        _fieldName = fieldName;
-
 
28615
      }
-
 
28616
 
-
 
28617
      public short getThriftFieldId() {
-
 
28618
        return _thriftId;
-
 
28619
      }
-
 
28620
 
-
 
28621
      public String getFieldName() {
-
 
28622
        return _fieldName;
-
 
28623
      }
-
 
28624
    }
-
 
28625
 
-
 
28626
    // isset id assignments
-
 
28627
 
-
 
28628
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
28629
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
28630
          new FieldValueMetaData(TType.STRUCT)));
-
 
28631
    }});
-
 
28632
 
-
 
28633
    static {
-
 
28634
      FieldMetaData.addStructMetaDataMap(deleteItemFromWidget_result.class, metaDataMap);
-
 
28635
    }
-
 
28636
 
-
 
28637
    public deleteItemFromWidget_result() {
-
 
28638
    }
-
 
28639
 
-
 
28640
    public deleteItemFromWidget_result(
-
 
28641
      WidgetException scx)
-
 
28642
    {
-
 
28643
      this();
-
 
28644
      this.scx = scx;
-
 
28645
    }
-
 
28646
 
-
 
28647
    /**
-
 
28648
     * Performs a deep copy on <i>other</i>.
-
 
28649
     */
-
 
28650
    public deleteItemFromWidget_result(deleteItemFromWidget_result other) {
-
 
28651
      if (other.isSetScx()) {
-
 
28652
        this.scx = new WidgetException(other.scx);
-
 
28653
      }
-
 
28654
    }
-
 
28655
 
-
 
28656
    public deleteItemFromWidget_result deepCopy() {
-
 
28657
      return new deleteItemFromWidget_result(this);
-
 
28658
    }
-
 
28659
 
-
 
28660
    @Deprecated
-
 
28661
    public deleteItemFromWidget_result clone() {
-
 
28662
      return new deleteItemFromWidget_result(this);
-
 
28663
    }
-
 
28664
 
-
 
28665
    public WidgetException getScx() {
-
 
28666
      return this.scx;
-
 
28667
    }
-
 
28668
 
-
 
28669
    public deleteItemFromWidget_result setScx(WidgetException scx) {
-
 
28670
      this.scx = scx;
-
 
28671
      return this;
-
 
28672
    }
-
 
28673
 
-
 
28674
    public void unsetScx() {
-
 
28675
      this.scx = null;
-
 
28676
    }
-
 
28677
 
-
 
28678
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
28679
    public boolean isSetScx() {
-
 
28680
      return this.scx != null;
-
 
28681
    }
-
 
28682
 
-
 
28683
    public void setScxIsSet(boolean value) {
-
 
28684
      if (!value) {
-
 
28685
        this.scx = null;
-
 
28686
      }
-
 
28687
    }
-
 
28688
 
-
 
28689
    public void setFieldValue(_Fields field, Object value) {
-
 
28690
      switch (field) {
-
 
28691
      case SCX:
-
 
28692
        if (value == null) {
-
 
28693
          unsetScx();
-
 
28694
        } else {
-
 
28695
          setScx((WidgetException)value);
-
 
28696
        }
-
 
28697
        break;
-
 
28698
 
-
 
28699
      }
-
 
28700
    }
-
 
28701
 
-
 
28702
    public void setFieldValue(int fieldID, Object value) {
-
 
28703
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
28704
    }
-
 
28705
 
-
 
28706
    public Object getFieldValue(_Fields field) {
-
 
28707
      switch (field) {
-
 
28708
      case SCX:
-
 
28709
        return getScx();
-
 
28710
 
-
 
28711
      }
-
 
28712
      throw new IllegalStateException();
-
 
28713
    }
-
 
28714
 
-
 
28715
    public Object getFieldValue(int fieldId) {
-
 
28716
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
28717
    }
-
 
28718
 
-
 
28719
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
28720
    public boolean isSet(_Fields field) {
-
 
28721
      switch (field) {
-
 
28722
      case SCX:
-
 
28723
        return isSetScx();
-
 
28724
      }
-
 
28725
      throw new IllegalStateException();
-
 
28726
    }
-
 
28727
 
-
 
28728
    public boolean isSet(int fieldID) {
-
 
28729
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
28730
    }
-
 
28731
 
-
 
28732
    @Override
-
 
28733
    public boolean equals(Object that) {
-
 
28734
      if (that == null)
-
 
28735
        return false;
-
 
28736
      if (that instanceof deleteItemFromWidget_result)
-
 
28737
        return this.equals((deleteItemFromWidget_result)that);
-
 
28738
      return false;
-
 
28739
    }
-
 
28740
 
-
 
28741
    public boolean equals(deleteItemFromWidget_result that) {
-
 
28742
      if (that == null)
-
 
28743
        return false;
-
 
28744
 
-
 
28745
      boolean this_present_scx = true && this.isSetScx();
-
 
28746
      boolean that_present_scx = true && that.isSetScx();
-
 
28747
      if (this_present_scx || that_present_scx) {
-
 
28748
        if (!(this_present_scx && that_present_scx))
-
 
28749
          return false;
-
 
28750
        if (!this.scx.equals(that.scx))
-
 
28751
          return false;
-
 
28752
      }
-
 
28753
 
-
 
28754
      return true;
-
 
28755
    }
-
 
28756
 
-
 
28757
    @Override
-
 
28758
    public int hashCode() {
-
 
28759
      return 0;
-
 
28760
    }
-
 
28761
 
-
 
28762
    public int compareTo(deleteItemFromWidget_result other) {
-
 
28763
      if (!getClass().equals(other.getClass())) {
-
 
28764
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28765
      }
-
 
28766
 
-
 
28767
      int lastComparison = 0;
-
 
28768
      deleteItemFromWidget_result typedOther = (deleteItemFromWidget_result)other;
-
 
28769
 
-
 
28770
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
28771
      if (lastComparison != 0) {
-
 
28772
        return lastComparison;
-
 
28773
      }
-
 
28774
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
28775
      if (lastComparison != 0) {
-
 
28776
        return lastComparison;
-
 
28777
      }
-
 
28778
      return 0;
-
 
28779
    }
-
 
28780
 
-
 
28781
    public void read(TProtocol iprot) throws TException {
-
 
28782
      TField field;
-
 
28783
      iprot.readStructBegin();
-
 
28784
      while (true)
-
 
28785
      {
-
 
28786
        field = iprot.readFieldBegin();
-
 
28787
        if (field.type == TType.STOP) { 
-
 
28788
          break;
-
 
28789
        }
-
 
28790
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
28791
        if (fieldId == null) {
-
 
28792
          TProtocolUtil.skip(iprot, field.type);
-
 
28793
        } else {
-
 
28794
          switch (fieldId) {
-
 
28795
            case SCX:
-
 
28796
              if (field.type == TType.STRUCT) {
-
 
28797
                this.scx = new WidgetException();
-
 
28798
                this.scx.read(iprot);
-
 
28799
              } else { 
-
 
28800
                TProtocolUtil.skip(iprot, field.type);
-
 
28801
              }
-
 
28802
              break;
-
 
28803
          }
-
 
28804
          iprot.readFieldEnd();
-
 
28805
        }
-
 
28806
      }
-
 
28807
      iprot.readStructEnd();
-
 
28808
      validate();
-
 
28809
    }
-
 
28810
 
-
 
28811
    public void write(TProtocol oprot) throws TException {
-
 
28812
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28813
 
-
 
28814
      if (this.isSetScx()) {
-
 
28815
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
28816
        this.scx.write(oprot);
-
 
28817
        oprot.writeFieldEnd();
-
 
28818
      }
-
 
28819
      oprot.writeFieldStop();
-
 
28820
      oprot.writeStructEnd();
-
 
28821
    }
-
 
28822
 
-
 
28823
    @Override
-
 
28824
    public String toString() {
-
 
28825
      StringBuilder sb = new StringBuilder("deleteItemFromWidget_result(");
-
 
28826
      boolean first = true;
-
 
28827
 
-
 
28828
      sb.append("scx:");
-
 
28829
      if (this.scx == null) {
-
 
28830
        sb.append("null");
-
 
28831
      } else {
-
 
28832
        sb.append(this.scx);
-
 
28833
      }
-
 
28834
      first = false;
-
 
28835
      sb.append(")");
-
 
28836
      return sb.toString();
-
 
28837
    }
-
 
28838
 
-
 
28839
    public void validate() throws TException {
-
 
28840
      // check for required fields
-
 
28841
    }
-
 
28842
 
-
 
28843
  }
-
 
28844
 
-
 
28845
  public static class updateWidget_args implements TBase<updateWidget_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateWidget_args>   {
-
 
28846
    private static final TStruct STRUCT_DESC = new TStruct("updateWidget_args");
-
 
28847
 
-
 
28848
    private static final TField WIDGET_ID_FIELD_DESC = new TField("widgetId", TType.I64, (short)1);
-
 
28849
    private static final TField ENABLE_FIELD_DESC = new TField("enable", TType.BOOL, (short)2);
-
 
28850
 
-
 
28851
    private long widgetId;
-
 
28852
    private boolean enable;
-
 
28853
 
-
 
28854
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28855
    public enum _Fields implements TFieldIdEnum {
-
 
28856
      WIDGET_ID((short)1, "widgetId"),
-
 
28857
      ENABLE((short)2, "enable");
-
 
28858
 
-
 
28859
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
28860
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28861
 
-
 
28862
      static {
-
 
28863
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28864
          byId.put((int)field._thriftId, field);
-
 
28865
          byName.put(field.getFieldName(), field);
-
 
28866
        }
-
 
28867
      }
-
 
28868
 
-
 
28869
      /**
-
 
28870
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28871
       */
-
 
28872
      public static _Fields findByThriftId(int fieldId) {
-
 
28873
        return byId.get(fieldId);
-
 
28874
      }
-
 
28875
 
-
 
28876
      /**
-
 
28877
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28878
       * if it is not found.
-
 
28879
       */
-
 
28880
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28881
        _Fields fields = findByThriftId(fieldId);
-
 
28882
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28883
        return fields;
-
 
28884
      }
-
 
28885
 
-
 
28886
      /**
-
 
28887
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28888
       */
-
 
28889
      public static _Fields findByName(String name) {
-
 
28890
        return byName.get(name);
-
 
28891
      }
-
 
28892
 
-
 
28893
      private final short _thriftId;
-
 
28894
      private final String _fieldName;
-
 
28895
 
-
 
28896
      _Fields(short thriftId, String fieldName) {
-
 
28897
        _thriftId = thriftId;
-
 
28898
        _fieldName = fieldName;
-
 
28899
      }
-
 
28900
 
-
 
28901
      public short getThriftFieldId() {
-
 
28902
        return _thriftId;
-
 
28903
      }
-
 
28904
 
-
 
28905
      public String getFieldName() {
-
 
28906
        return _fieldName;
-
 
28907
      }
-
 
28908
    }
-
 
28909
 
-
 
28910
    // isset id assignments
-
 
28911
    private static final int __WIDGETID_ISSET_ID = 0;
-
 
28912
    private static final int __ENABLE_ISSET_ID = 1;
-
 
28913
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
28914
 
-
 
28915
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
28916
      put(_Fields.WIDGET_ID, new FieldMetaData("widgetId", TFieldRequirementType.DEFAULT, 
-
 
28917
          new FieldValueMetaData(TType.I64)));
-
 
28918
      put(_Fields.ENABLE, new FieldMetaData("enable", TFieldRequirementType.DEFAULT, 
-
 
28919
          new FieldValueMetaData(TType.BOOL)));
-
 
28920
    }});
-
 
28921
 
-
 
28922
    static {
-
 
28923
      FieldMetaData.addStructMetaDataMap(updateWidget_args.class, metaDataMap);
-
 
28924
    }
-
 
28925
 
-
 
28926
    public updateWidget_args() {
-
 
28927
    }
-
 
28928
 
-
 
28929
    public updateWidget_args(
-
 
28930
      long widgetId,
-
 
28931
      boolean enable)
-
 
28932
    {
-
 
28933
      this();
-
 
28934
      this.widgetId = widgetId;
-
 
28935
      setWidgetIdIsSet(true);
-
 
28936
      this.enable = enable;
-
 
28937
      setEnableIsSet(true);
-
 
28938
    }
-
 
28939
 
-
 
28940
    /**
-
 
28941
     * Performs a deep copy on <i>other</i>.
-
 
28942
     */
-
 
28943
    public updateWidget_args(updateWidget_args other) {
-
 
28944
      __isset_bit_vector.clear();
-
 
28945
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
28946
      this.widgetId = other.widgetId;
-
 
28947
      this.enable = other.enable;
-
 
28948
    }
-
 
28949
 
-
 
28950
    public updateWidget_args deepCopy() {
-
 
28951
      return new updateWidget_args(this);
-
 
28952
    }
-
 
28953
 
-
 
28954
    @Deprecated
-
 
28955
    public updateWidget_args clone() {
-
 
28956
      return new updateWidget_args(this);
-
 
28957
    }
-
 
28958
 
-
 
28959
    public long getWidgetId() {
-
 
28960
      return this.widgetId;
-
 
28961
    }
-
 
28962
 
-
 
28963
    public updateWidget_args setWidgetId(long widgetId) {
-
 
28964
      this.widgetId = widgetId;
-
 
28965
      setWidgetIdIsSet(true);
-
 
28966
      return this;
-
 
28967
    }
-
 
28968
 
-
 
28969
    public void unsetWidgetId() {
-
 
28970
      __isset_bit_vector.clear(__WIDGETID_ISSET_ID);
-
 
28971
    }
-
 
28972
 
-
 
28973
    /** Returns true if field widgetId is set (has been asigned a value) and false otherwise */
-
 
28974
    public boolean isSetWidgetId() {
-
 
28975
      return __isset_bit_vector.get(__WIDGETID_ISSET_ID);
-
 
28976
    }
-
 
28977
 
-
 
28978
    public void setWidgetIdIsSet(boolean value) {
-
 
28979
      __isset_bit_vector.set(__WIDGETID_ISSET_ID, value);
-
 
28980
    }
-
 
28981
 
-
 
28982
    public boolean isEnable() {
-
 
28983
      return this.enable;
-
 
28984
    }
-
 
28985
 
-
 
28986
    public updateWidget_args setEnable(boolean enable) {
-
 
28987
      this.enable = enable;
-
 
28988
      setEnableIsSet(true);
-
 
28989
      return this;
-
 
28990
    }
-
 
28991
 
-
 
28992
    public void unsetEnable() {
-
 
28993
      __isset_bit_vector.clear(__ENABLE_ISSET_ID);
-
 
28994
    }
-
 
28995
 
-
 
28996
    /** Returns true if field enable is set (has been asigned a value) and false otherwise */
-
 
28997
    public boolean isSetEnable() {
-
 
28998
      return __isset_bit_vector.get(__ENABLE_ISSET_ID);
-
 
28999
    }
-
 
29000
 
-
 
29001
    public void setEnableIsSet(boolean value) {
-
 
29002
      __isset_bit_vector.set(__ENABLE_ISSET_ID, value);
-
 
29003
    }
-
 
29004
 
-
 
29005
    public void setFieldValue(_Fields field, Object value) {
-
 
29006
      switch (field) {
-
 
29007
      case WIDGET_ID:
-
 
29008
        if (value == null) {
-
 
29009
          unsetWidgetId();
-
 
29010
        } else {
-
 
29011
          setWidgetId((Long)value);
-
 
29012
        }
-
 
29013
        break;
-
 
29014
 
-
 
29015
      case ENABLE:
-
 
29016
        if (value == null) {
-
 
29017
          unsetEnable();
-
 
29018
        } else {
-
 
29019
          setEnable((Boolean)value);
-
 
29020
        }
-
 
29021
        break;
-
 
29022
 
-
 
29023
      }
-
 
29024
    }
-
 
29025
 
-
 
29026
    public void setFieldValue(int fieldID, Object value) {
-
 
29027
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
29028
    }
-
 
29029
 
-
 
29030
    public Object getFieldValue(_Fields field) {
-
 
29031
      switch (field) {
-
 
29032
      case WIDGET_ID:
-
 
29033
        return new Long(getWidgetId());
-
 
29034
 
-
 
29035
      case ENABLE:
-
 
29036
        return new Boolean(isEnable());
-
 
29037
 
-
 
29038
      }
-
 
29039
      throw new IllegalStateException();
-
 
29040
    }
-
 
29041
 
-
 
29042
    public Object getFieldValue(int fieldId) {
-
 
29043
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
29044
    }
-
 
29045
 
-
 
29046
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
29047
    public boolean isSet(_Fields field) {
-
 
29048
      switch (field) {
-
 
29049
      case WIDGET_ID:
-
 
29050
        return isSetWidgetId();
-
 
29051
      case ENABLE:
-
 
29052
        return isSetEnable();
-
 
29053
      }
-
 
29054
      throw new IllegalStateException();
-
 
29055
    }
-
 
29056
 
-
 
29057
    public boolean isSet(int fieldID) {
-
 
29058
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
29059
    }
-
 
29060
 
-
 
29061
    @Override
-
 
29062
    public boolean equals(Object that) {
-
 
29063
      if (that == null)
-
 
29064
        return false;
-
 
29065
      if (that instanceof updateWidget_args)
-
 
29066
        return this.equals((updateWidget_args)that);
-
 
29067
      return false;
-
 
29068
    }
-
 
29069
 
-
 
29070
    public boolean equals(updateWidget_args that) {
-
 
29071
      if (that == null)
-
 
29072
        return false;
-
 
29073
 
-
 
29074
      boolean this_present_widgetId = true;
-
 
29075
      boolean that_present_widgetId = true;
-
 
29076
      if (this_present_widgetId || that_present_widgetId) {
-
 
29077
        if (!(this_present_widgetId && that_present_widgetId))
-
 
29078
          return false;
-
 
29079
        if (this.widgetId != that.widgetId)
-
 
29080
          return false;
-
 
29081
      }
-
 
29082
 
-
 
29083
      boolean this_present_enable = true;
-
 
29084
      boolean that_present_enable = true;
-
 
29085
      if (this_present_enable || that_present_enable) {
-
 
29086
        if (!(this_present_enable && that_present_enable))
-
 
29087
          return false;
-
 
29088
        if (this.enable != that.enable)
-
 
29089
          return false;
-
 
29090
      }
-
 
29091
 
-
 
29092
      return true;
-
 
29093
    }
-
 
29094
 
-
 
29095
    @Override
-
 
29096
    public int hashCode() {
-
 
29097
      return 0;
-
 
29098
    }
-
 
29099
 
-
 
29100
    public int compareTo(updateWidget_args other) {
-
 
29101
      if (!getClass().equals(other.getClass())) {
-
 
29102
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29103
      }
-
 
29104
 
-
 
29105
      int lastComparison = 0;
-
 
29106
      updateWidget_args typedOther = (updateWidget_args)other;
-
 
29107
 
-
 
29108
      lastComparison = Boolean.valueOf(isSetWidgetId()).compareTo(isSetWidgetId());
-
 
29109
      if (lastComparison != 0) {
-
 
29110
        return lastComparison;
-
 
29111
      }
-
 
29112
      lastComparison = TBaseHelper.compareTo(widgetId, typedOther.widgetId);
-
 
29113
      if (lastComparison != 0) {
-
 
29114
        return lastComparison;
-
 
29115
      }
-
 
29116
      lastComparison = Boolean.valueOf(isSetEnable()).compareTo(isSetEnable());
-
 
29117
      if (lastComparison != 0) {
-
 
29118
        return lastComparison;
-
 
29119
      }
-
 
29120
      lastComparison = TBaseHelper.compareTo(enable, typedOther.enable);
-
 
29121
      if (lastComparison != 0) {
-
 
29122
        return lastComparison;
-
 
29123
      }
-
 
29124
      return 0;
-
 
29125
    }
-
 
29126
 
-
 
29127
    public void read(TProtocol iprot) throws TException {
-
 
29128
      TField field;
-
 
29129
      iprot.readStructBegin();
-
 
29130
      while (true)
-
 
29131
      {
-
 
29132
        field = iprot.readFieldBegin();
-
 
29133
        if (field.type == TType.STOP) { 
-
 
29134
          break;
-
 
29135
        }
-
 
29136
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
29137
        if (fieldId == null) {
-
 
29138
          TProtocolUtil.skip(iprot, field.type);
-
 
29139
        } else {
-
 
29140
          switch (fieldId) {
-
 
29141
            case WIDGET_ID:
-
 
29142
              if (field.type == TType.I64) {
-
 
29143
                this.widgetId = iprot.readI64();
-
 
29144
                setWidgetIdIsSet(true);
-
 
29145
              } else { 
-
 
29146
                TProtocolUtil.skip(iprot, field.type);
-
 
29147
              }
-
 
29148
              break;
-
 
29149
            case ENABLE:
-
 
29150
              if (field.type == TType.BOOL) {
-
 
29151
                this.enable = iprot.readBool();
-
 
29152
                setEnableIsSet(true);
-
 
29153
              } else { 
-
 
29154
                TProtocolUtil.skip(iprot, field.type);
-
 
29155
              }
-
 
29156
              break;
-
 
29157
          }
-
 
29158
          iprot.readFieldEnd();
-
 
29159
        }
-
 
29160
      }
-
 
29161
      iprot.readStructEnd();
-
 
29162
      validate();
-
 
29163
    }
-
 
29164
 
-
 
29165
    public void write(TProtocol oprot) throws TException {
-
 
29166
      validate();
-
 
29167
 
-
 
29168
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29169
      oprot.writeFieldBegin(WIDGET_ID_FIELD_DESC);
-
 
29170
      oprot.writeI64(this.widgetId);
-
 
29171
      oprot.writeFieldEnd();
-
 
29172
      oprot.writeFieldBegin(ENABLE_FIELD_DESC);
-
 
29173
      oprot.writeBool(this.enable);
-
 
29174
      oprot.writeFieldEnd();
-
 
29175
      oprot.writeFieldStop();
-
 
29176
      oprot.writeStructEnd();
-
 
29177
    }
-
 
29178
 
-
 
29179
    @Override
-
 
29180
    public String toString() {
-
 
29181
      StringBuilder sb = new StringBuilder("updateWidget_args(");
-
 
29182
      boolean first = true;
-
 
29183
 
-
 
29184
      sb.append("widgetId:");
-
 
29185
      sb.append(this.widgetId);
-
 
29186
      first = false;
-
 
29187
      if (!first) sb.append(", ");
-
 
29188
      sb.append("enable:");
-
 
29189
      sb.append(this.enable);
-
 
29190
      first = false;
-
 
29191
      sb.append(")");
-
 
29192
      return sb.toString();
-
 
29193
    }
-
 
29194
 
-
 
29195
    public void validate() throws TException {
-
 
29196
      // check for required fields
-
 
29197
    }
-
 
29198
 
-
 
29199
  }
-
 
29200
 
-
 
29201
  public static class updateWidget_result implements TBase<updateWidget_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateWidget_result>   {
-
 
29202
    private static final TStruct STRUCT_DESC = new TStruct("updateWidget_result");
-
 
29203
 
-
 
29204
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
29205
 
-
 
29206
    private WidgetException scx;
-
 
29207
 
-
 
29208
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29209
    public enum _Fields implements TFieldIdEnum {
-
 
29210
      SCX((short)1, "scx");
-
 
29211
 
-
 
29212
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
29213
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29214
 
-
 
29215
      static {
-
 
29216
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29217
          byId.put((int)field._thriftId, field);
-
 
29218
          byName.put(field.getFieldName(), field);
-
 
29219
        }
-
 
29220
      }
-
 
29221
 
-
 
29222
      /**
-
 
29223
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29224
       */
-
 
29225
      public static _Fields findByThriftId(int fieldId) {
-
 
29226
        return byId.get(fieldId);
-
 
29227
      }
-
 
29228
 
-
 
29229
      /**
-
 
29230
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29231
       * if it is not found.
-
 
29232
       */
-
 
29233
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29234
        _Fields fields = findByThriftId(fieldId);
-
 
29235
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29236
        return fields;
-
 
29237
      }
-
 
29238
 
-
 
29239
      /**
-
 
29240
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29241
       */
-
 
29242
      public static _Fields findByName(String name) {
-
 
29243
        return byName.get(name);
-
 
29244
      }
-
 
29245
 
-
 
29246
      private final short _thriftId;
-
 
29247
      private final String _fieldName;
-
 
29248
 
-
 
29249
      _Fields(short thriftId, String fieldName) {
-
 
29250
        _thriftId = thriftId;
-
 
29251
        _fieldName = fieldName;
-
 
29252
      }
-
 
29253
 
-
 
29254
      public short getThriftFieldId() {
-
 
29255
        return _thriftId;
-
 
29256
      }
-
 
29257
 
-
 
29258
      public String getFieldName() {
-
 
29259
        return _fieldName;
-
 
29260
      }
-
 
29261
    }
-
 
29262
 
-
 
29263
    // isset id assignments
-
 
29264
 
-
 
29265
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
29266
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
29267
          new FieldValueMetaData(TType.STRUCT)));
-
 
29268
    }});
-
 
29269
 
-
 
29270
    static {
-
 
29271
      FieldMetaData.addStructMetaDataMap(updateWidget_result.class, metaDataMap);
-
 
29272
    }
-
 
29273
 
-
 
29274
    public updateWidget_result() {
-
 
29275
    }
-
 
29276
 
-
 
29277
    public updateWidget_result(
-
 
29278
      WidgetException scx)
-
 
29279
    {
-
 
29280
      this();
-
 
29281
      this.scx = scx;
-
 
29282
    }
-
 
29283
 
-
 
29284
    /**
-
 
29285
     * Performs a deep copy on <i>other</i>.
-
 
29286
     */
-
 
29287
    public updateWidget_result(updateWidget_result other) {
-
 
29288
      if (other.isSetScx()) {
-
 
29289
        this.scx = new WidgetException(other.scx);
-
 
29290
      }
-
 
29291
    }
-
 
29292
 
-
 
29293
    public updateWidget_result deepCopy() {
-
 
29294
      return new updateWidget_result(this);
-
 
29295
    }
-
 
29296
 
-
 
29297
    @Deprecated
-
 
29298
    public updateWidget_result clone() {
-
 
29299
      return new updateWidget_result(this);
-
 
29300
    }
-
 
29301
 
-
 
29302
    public WidgetException getScx() {
-
 
29303
      return this.scx;
-
 
29304
    }
-
 
29305
 
-
 
29306
    public updateWidget_result setScx(WidgetException scx) {
-
 
29307
      this.scx = scx;
-
 
29308
      return this;
-
 
29309
    }
-
 
29310
 
-
 
29311
    public void unsetScx() {
-
 
29312
      this.scx = null;
-
 
29313
    }
-
 
29314
 
-
 
29315
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
29316
    public boolean isSetScx() {
-
 
29317
      return this.scx != null;
-
 
29318
    }
-
 
29319
 
-
 
29320
    public void setScxIsSet(boolean value) {
-
 
29321
      if (!value) {
-
 
29322
        this.scx = null;
-
 
29323
      }
-
 
29324
    }
-
 
29325
 
-
 
29326
    public void setFieldValue(_Fields field, Object value) {
-
 
29327
      switch (field) {
-
 
29328
      case SCX:
-
 
29329
        if (value == null) {
-
 
29330
          unsetScx();
-
 
29331
        } else {
-
 
29332
          setScx((WidgetException)value);
-
 
29333
        }
-
 
29334
        break;
-
 
29335
 
-
 
29336
      }
-
 
29337
    }
-
 
29338
 
-
 
29339
    public void setFieldValue(int fieldID, Object value) {
-
 
29340
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
29341
    }
-
 
29342
 
-
 
29343
    public Object getFieldValue(_Fields field) {
-
 
29344
      switch (field) {
-
 
29345
      case SCX:
-
 
29346
        return getScx();
-
 
29347
 
-
 
29348
      }
-
 
29349
      throw new IllegalStateException();
-
 
29350
    }
-
 
29351
 
-
 
29352
    public Object getFieldValue(int fieldId) {
-
 
29353
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
29354
    }
-
 
29355
 
-
 
29356
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
29357
    public boolean isSet(_Fields field) {
-
 
29358
      switch (field) {
-
 
29359
      case SCX:
-
 
29360
        return isSetScx();
-
 
29361
      }
-
 
29362
      throw new IllegalStateException();
-
 
29363
    }
-
 
29364
 
-
 
29365
    public boolean isSet(int fieldID) {
-
 
29366
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
29367
    }
-
 
29368
 
-
 
29369
    @Override
-
 
29370
    public boolean equals(Object that) {
-
 
29371
      if (that == null)
-
 
29372
        return false;
-
 
29373
      if (that instanceof updateWidget_result)
-
 
29374
        return this.equals((updateWidget_result)that);
-
 
29375
      return false;
-
 
29376
    }
-
 
29377
 
-
 
29378
    public boolean equals(updateWidget_result that) {
-
 
29379
      if (that == null)
-
 
29380
        return false;
-
 
29381
 
-
 
29382
      boolean this_present_scx = true && this.isSetScx();
-
 
29383
      boolean that_present_scx = true && that.isSetScx();
-
 
29384
      if (this_present_scx || that_present_scx) {
-
 
29385
        if (!(this_present_scx && that_present_scx))
-
 
29386
          return false;
-
 
29387
        if (!this.scx.equals(that.scx))
-
 
29388
          return false;
-
 
29389
      }
-
 
29390
 
-
 
29391
      return true;
-
 
29392
    }
-
 
29393
 
-
 
29394
    @Override
-
 
29395
    public int hashCode() {
-
 
29396
      return 0;
-
 
29397
    }
-
 
29398
 
-
 
29399
    public int compareTo(updateWidget_result other) {
-
 
29400
      if (!getClass().equals(other.getClass())) {
-
 
29401
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29402
      }
-
 
29403
 
-
 
29404
      int lastComparison = 0;
-
 
29405
      updateWidget_result typedOther = (updateWidget_result)other;
-
 
29406
 
-
 
29407
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
29408
      if (lastComparison != 0) {
-
 
29409
        return lastComparison;
-
 
29410
      }
-
 
29411
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
29412
      if (lastComparison != 0) {
-
 
29413
        return lastComparison;
-
 
29414
      }
-
 
29415
      return 0;
-
 
29416
    }
-
 
29417
 
-
 
29418
    public void read(TProtocol iprot) throws TException {
-
 
29419
      TField field;
-
 
29420
      iprot.readStructBegin();
-
 
29421
      while (true)
-
 
29422
      {
-
 
29423
        field = iprot.readFieldBegin();
-
 
29424
        if (field.type == TType.STOP) { 
-
 
29425
          break;
-
 
29426
        }
-
 
29427
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
29428
        if (fieldId == null) {
-
 
29429
          TProtocolUtil.skip(iprot, field.type);
-
 
29430
        } else {
-
 
29431
          switch (fieldId) {
-
 
29432
            case SCX:
-
 
29433
              if (field.type == TType.STRUCT) {
-
 
29434
                this.scx = new WidgetException();
-
 
29435
                this.scx.read(iprot);
-
 
29436
              } else { 
-
 
29437
                TProtocolUtil.skip(iprot, field.type);
-
 
29438
              }
-
 
29439
              break;
-
 
29440
          }
-
 
29441
          iprot.readFieldEnd();
-
 
29442
        }
-
 
29443
      }
-
 
29444
      iprot.readStructEnd();
-
 
29445
      validate();
-
 
29446
    }
-
 
29447
 
-
 
29448
    public void write(TProtocol oprot) throws TException {
-
 
29449
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29450
 
-
 
29451
      if (this.isSetScx()) {
-
 
29452
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
29453
        this.scx.write(oprot);
-
 
29454
        oprot.writeFieldEnd();
-
 
29455
      }
-
 
29456
      oprot.writeFieldStop();
-
 
29457
      oprot.writeStructEnd();
-
 
29458
    }
-
 
29459
 
-
 
29460
    @Override
-
 
29461
    public String toString() {
-
 
29462
      StringBuilder sb = new StringBuilder("updateWidget_result(");
-
 
29463
      boolean first = true;
-
 
29464
 
-
 
29465
      sb.append("scx:");
-
 
29466
      if (this.scx == null) {
-
 
29467
        sb.append("null");
-
 
29468
      } else {
-
 
29469
        sb.append(this.scx);
-
 
29470
      }
-
 
29471
      first = false;
-
 
29472
      sb.append(")");
-
 
29473
      return sb.toString();
-
 
29474
    }
-
 
29475
 
-
 
29476
    public void validate() throws TException {
-
 
29477
      // check for required fields
-
 
29478
    }
-
 
29479
 
-
 
29480
  }
-
 
29481
 
-
 
29482
  public static class updateWidgetItem_args implements TBase<updateWidgetItem_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateWidgetItem_args>   {
-
 
29483
    private static final TStruct STRUCT_DESC = new TStruct("updateWidgetItem_args");
-
 
29484
 
-
 
29485
    private static final TField WIDGET_ID_FIELD_DESC = new TField("widgetId", TType.I64, (short)1);
-
 
29486
    private static final TField ENABLE_FIELD_DESC = new TField("enable", TType.BOOL, (short)2);
-
 
29487
 
-
 
29488
    private long widgetId;
-
 
29489
    private boolean enable;
-
 
29490
 
-
 
29491
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29492
    public enum _Fields implements TFieldIdEnum {
-
 
29493
      WIDGET_ID((short)1, "widgetId"),
-
 
29494
      ENABLE((short)2, "enable");
-
 
29495
 
-
 
29496
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
29497
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29498
 
-
 
29499
      static {
-
 
29500
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29501
          byId.put((int)field._thriftId, field);
-
 
29502
          byName.put(field.getFieldName(), field);
-
 
29503
        }
-
 
29504
      }
-
 
29505
 
-
 
29506
      /**
-
 
29507
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29508
       */
-
 
29509
      public static _Fields findByThriftId(int fieldId) {
-
 
29510
        return byId.get(fieldId);
-
 
29511
      }
-
 
29512
 
-
 
29513
      /**
-
 
29514
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29515
       * if it is not found.
-
 
29516
       */
-
 
29517
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29518
        _Fields fields = findByThriftId(fieldId);
-
 
29519
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29520
        return fields;
-
 
29521
      }
-
 
29522
 
-
 
29523
      /**
-
 
29524
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29525
       */
-
 
29526
      public static _Fields findByName(String name) {
-
 
29527
        return byName.get(name);
-
 
29528
      }
-
 
29529
 
-
 
29530
      private final short _thriftId;
-
 
29531
      private final String _fieldName;
-
 
29532
 
-
 
29533
      _Fields(short thriftId, String fieldName) {
-
 
29534
        _thriftId = thriftId;
-
 
29535
        _fieldName = fieldName;
-
 
29536
      }
-
 
29537
 
-
 
29538
      public short getThriftFieldId() {
-
 
29539
        return _thriftId;
-
 
29540
      }
-
 
29541
 
-
 
29542
      public String getFieldName() {
-
 
29543
        return _fieldName;
-
 
29544
      }
-
 
29545
    }
-
 
29546
 
-
 
29547
    // isset id assignments
-
 
29548
    private static final int __WIDGETID_ISSET_ID = 0;
-
 
29549
    private static final int __ENABLE_ISSET_ID = 1;
-
 
29550
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
29551
 
-
 
29552
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
29553
      put(_Fields.WIDGET_ID, new FieldMetaData("widgetId", TFieldRequirementType.DEFAULT, 
-
 
29554
          new FieldValueMetaData(TType.I64)));
-
 
29555
      put(_Fields.ENABLE, new FieldMetaData("enable", TFieldRequirementType.DEFAULT, 
-
 
29556
          new FieldValueMetaData(TType.BOOL)));
-
 
29557
    }});
-
 
29558
 
-
 
29559
    static {
-
 
29560
      FieldMetaData.addStructMetaDataMap(updateWidgetItem_args.class, metaDataMap);
-
 
29561
    }
-
 
29562
 
-
 
29563
    public updateWidgetItem_args() {
-
 
29564
    }
-
 
29565
 
-
 
29566
    public updateWidgetItem_args(
-
 
29567
      long widgetId,
-
 
29568
      boolean enable)
-
 
29569
    {
-
 
29570
      this();
-
 
29571
      this.widgetId = widgetId;
-
 
29572
      setWidgetIdIsSet(true);
-
 
29573
      this.enable = enable;
-
 
29574
      setEnableIsSet(true);
-
 
29575
    }
-
 
29576
 
-
 
29577
    /**
-
 
29578
     * Performs a deep copy on <i>other</i>.
-
 
29579
     */
-
 
29580
    public updateWidgetItem_args(updateWidgetItem_args other) {
-
 
29581
      __isset_bit_vector.clear();
-
 
29582
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
29583
      this.widgetId = other.widgetId;
-
 
29584
      this.enable = other.enable;
-
 
29585
    }
-
 
29586
 
-
 
29587
    public updateWidgetItem_args deepCopy() {
-
 
29588
      return new updateWidgetItem_args(this);
-
 
29589
    }
-
 
29590
 
-
 
29591
    @Deprecated
-
 
29592
    public updateWidgetItem_args clone() {
-
 
29593
      return new updateWidgetItem_args(this);
-
 
29594
    }
-
 
29595
 
-
 
29596
    public long getWidgetId() {
-
 
29597
      return this.widgetId;
-
 
29598
    }
-
 
29599
 
-
 
29600
    public updateWidgetItem_args setWidgetId(long widgetId) {
-
 
29601
      this.widgetId = widgetId;
-
 
29602
      setWidgetIdIsSet(true);
-
 
29603
      return this;
-
 
29604
    }
-
 
29605
 
-
 
29606
    public void unsetWidgetId() {
-
 
29607
      __isset_bit_vector.clear(__WIDGETID_ISSET_ID);
-
 
29608
    }
-
 
29609
 
-
 
29610
    /** Returns true if field widgetId is set (has been asigned a value) and false otherwise */
-
 
29611
    public boolean isSetWidgetId() {
-
 
29612
      return __isset_bit_vector.get(__WIDGETID_ISSET_ID);
-
 
29613
    }
-
 
29614
 
-
 
29615
    public void setWidgetIdIsSet(boolean value) {
-
 
29616
      __isset_bit_vector.set(__WIDGETID_ISSET_ID, value);
-
 
29617
    }
-
 
29618
 
-
 
29619
    public boolean isEnable() {
-
 
29620
      return this.enable;
-
 
29621
    }
-
 
29622
 
-
 
29623
    public updateWidgetItem_args setEnable(boolean enable) {
-
 
29624
      this.enable = enable;
-
 
29625
      setEnableIsSet(true);
-
 
29626
      return this;
-
 
29627
    }
-
 
29628
 
-
 
29629
    public void unsetEnable() {
-
 
29630
      __isset_bit_vector.clear(__ENABLE_ISSET_ID);
-
 
29631
    }
-
 
29632
 
-
 
29633
    /** Returns true if field enable is set (has been asigned a value) and false otherwise */
-
 
29634
    public boolean isSetEnable() {
-
 
29635
      return __isset_bit_vector.get(__ENABLE_ISSET_ID);
-
 
29636
    }
-
 
29637
 
-
 
29638
    public void setEnableIsSet(boolean value) {
-
 
29639
      __isset_bit_vector.set(__ENABLE_ISSET_ID, value);
-
 
29640
    }
-
 
29641
 
-
 
29642
    public void setFieldValue(_Fields field, Object value) {
-
 
29643
      switch (field) {
-
 
29644
      case WIDGET_ID:
-
 
29645
        if (value == null) {
-
 
29646
          unsetWidgetId();
-
 
29647
        } else {
-
 
29648
          setWidgetId((Long)value);
-
 
29649
        }
-
 
29650
        break;
-
 
29651
 
-
 
29652
      case ENABLE:
-
 
29653
        if (value == null) {
-
 
29654
          unsetEnable();
-
 
29655
        } else {
-
 
29656
          setEnable((Boolean)value);
-
 
29657
        }
-
 
29658
        break;
-
 
29659
 
-
 
29660
      }
-
 
29661
    }
-
 
29662
 
-
 
29663
    public void setFieldValue(int fieldID, Object value) {
-
 
29664
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
29665
    }
-
 
29666
 
-
 
29667
    public Object getFieldValue(_Fields field) {
-
 
29668
      switch (field) {
-
 
29669
      case WIDGET_ID:
-
 
29670
        return new Long(getWidgetId());
-
 
29671
 
-
 
29672
      case ENABLE:
-
 
29673
        return new Boolean(isEnable());
-
 
29674
 
-
 
29675
      }
-
 
29676
      throw new IllegalStateException();
-
 
29677
    }
-
 
29678
 
-
 
29679
    public Object getFieldValue(int fieldId) {
-
 
29680
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
29681
    }
-
 
29682
 
-
 
29683
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
29684
    public boolean isSet(_Fields field) {
-
 
29685
      switch (field) {
-
 
29686
      case WIDGET_ID:
-
 
29687
        return isSetWidgetId();
-
 
29688
      case ENABLE:
-
 
29689
        return isSetEnable();
-
 
29690
      }
-
 
29691
      throw new IllegalStateException();
-
 
29692
    }
-
 
29693
 
-
 
29694
    public boolean isSet(int fieldID) {
-
 
29695
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
29696
    }
-
 
29697
 
-
 
29698
    @Override
-
 
29699
    public boolean equals(Object that) {
-
 
29700
      if (that == null)
-
 
29701
        return false;
-
 
29702
      if (that instanceof updateWidgetItem_args)
-
 
29703
        return this.equals((updateWidgetItem_args)that);
-
 
29704
      return false;
-
 
29705
    }
-
 
29706
 
-
 
29707
    public boolean equals(updateWidgetItem_args that) {
-
 
29708
      if (that == null)
-
 
29709
        return false;
-
 
29710
 
-
 
29711
      boolean this_present_widgetId = true;
-
 
29712
      boolean that_present_widgetId = true;
-
 
29713
      if (this_present_widgetId || that_present_widgetId) {
-
 
29714
        if (!(this_present_widgetId && that_present_widgetId))
-
 
29715
          return false;
-
 
29716
        if (this.widgetId != that.widgetId)
-
 
29717
          return false;
-
 
29718
      }
-
 
29719
 
-
 
29720
      boolean this_present_enable = true;
-
 
29721
      boolean that_present_enable = true;
-
 
29722
      if (this_present_enable || that_present_enable) {
-
 
29723
        if (!(this_present_enable && that_present_enable))
-
 
29724
          return false;
-
 
29725
        if (this.enable != that.enable)
-
 
29726
          return false;
-
 
29727
      }
-
 
29728
 
-
 
29729
      return true;
-
 
29730
    }
-
 
29731
 
-
 
29732
    @Override
-
 
29733
    public int hashCode() {
-
 
29734
      return 0;
-
 
29735
    }
-
 
29736
 
-
 
29737
    public int compareTo(updateWidgetItem_args other) {
-
 
29738
      if (!getClass().equals(other.getClass())) {
-
 
29739
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29740
      }
-
 
29741
 
-
 
29742
      int lastComparison = 0;
-
 
29743
      updateWidgetItem_args typedOther = (updateWidgetItem_args)other;
-
 
29744
 
-
 
29745
      lastComparison = Boolean.valueOf(isSetWidgetId()).compareTo(isSetWidgetId());
-
 
29746
      if (lastComparison != 0) {
-
 
29747
        return lastComparison;
-
 
29748
      }
-
 
29749
      lastComparison = TBaseHelper.compareTo(widgetId, typedOther.widgetId);
-
 
29750
      if (lastComparison != 0) {
-
 
29751
        return lastComparison;
-
 
29752
      }
-
 
29753
      lastComparison = Boolean.valueOf(isSetEnable()).compareTo(isSetEnable());
-
 
29754
      if (lastComparison != 0) {
-
 
29755
        return lastComparison;
-
 
29756
      }
-
 
29757
      lastComparison = TBaseHelper.compareTo(enable, typedOther.enable);
-
 
29758
      if (lastComparison != 0) {
-
 
29759
        return lastComparison;
-
 
29760
      }
-
 
29761
      return 0;
-
 
29762
    }
-
 
29763
 
-
 
29764
    public void read(TProtocol iprot) throws TException {
-
 
29765
      TField field;
-
 
29766
      iprot.readStructBegin();
-
 
29767
      while (true)
-
 
29768
      {
-
 
29769
        field = iprot.readFieldBegin();
-
 
29770
        if (field.type == TType.STOP) { 
-
 
29771
          break;
-
 
29772
        }
-
 
29773
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
29774
        if (fieldId == null) {
-
 
29775
          TProtocolUtil.skip(iprot, field.type);
-
 
29776
        } else {
-
 
29777
          switch (fieldId) {
-
 
29778
            case WIDGET_ID:
-
 
29779
              if (field.type == TType.I64) {
-
 
29780
                this.widgetId = iprot.readI64();
-
 
29781
                setWidgetIdIsSet(true);
-
 
29782
              } else { 
-
 
29783
                TProtocolUtil.skip(iprot, field.type);
-
 
29784
              }
-
 
29785
              break;
-
 
29786
            case ENABLE:
-
 
29787
              if (field.type == TType.BOOL) {
-
 
29788
                this.enable = iprot.readBool();
-
 
29789
                setEnableIsSet(true);
-
 
29790
              } else { 
-
 
29791
                TProtocolUtil.skip(iprot, field.type);
-
 
29792
              }
-
 
29793
              break;
-
 
29794
          }
-
 
29795
          iprot.readFieldEnd();
-
 
29796
        }
-
 
29797
      }
-
 
29798
      iprot.readStructEnd();
-
 
29799
      validate();
-
 
29800
    }
-
 
29801
 
-
 
29802
    public void write(TProtocol oprot) throws TException {
-
 
29803
      validate();
-
 
29804
 
-
 
29805
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29806
      oprot.writeFieldBegin(WIDGET_ID_FIELD_DESC);
-
 
29807
      oprot.writeI64(this.widgetId);
-
 
29808
      oprot.writeFieldEnd();
-
 
29809
      oprot.writeFieldBegin(ENABLE_FIELD_DESC);
-
 
29810
      oprot.writeBool(this.enable);
-
 
29811
      oprot.writeFieldEnd();
-
 
29812
      oprot.writeFieldStop();
-
 
29813
      oprot.writeStructEnd();
-
 
29814
    }
-
 
29815
 
-
 
29816
    @Override
-
 
29817
    public String toString() {
-
 
29818
      StringBuilder sb = new StringBuilder("updateWidgetItem_args(");
-
 
29819
      boolean first = true;
-
 
29820
 
-
 
29821
      sb.append("widgetId:");
-
 
29822
      sb.append(this.widgetId);
-
 
29823
      first = false;
-
 
29824
      if (!first) sb.append(", ");
-
 
29825
      sb.append("enable:");
-
 
29826
      sb.append(this.enable);
-
 
29827
      first = false;
-
 
29828
      sb.append(")");
-
 
29829
      return sb.toString();
-
 
29830
    }
-
 
29831
 
-
 
29832
    public void validate() throws TException {
-
 
29833
      // check for required fields
-
 
29834
    }
-
 
29835
 
-
 
29836
  }
-
 
29837
 
-
 
29838
  public static class updateWidgetItem_result implements TBase<updateWidgetItem_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateWidgetItem_result>   {
-
 
29839
    private static final TStruct STRUCT_DESC = new TStruct("updateWidgetItem_result");
-
 
29840
 
-
 
29841
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
29842
 
-
 
29843
    private WidgetException scx;
-
 
29844
 
-
 
29845
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29846
    public enum _Fields implements TFieldIdEnum {
-
 
29847
      SCX((short)1, "scx");
-
 
29848
 
-
 
29849
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
29850
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29851
 
-
 
29852
      static {
-
 
29853
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29854
          byId.put((int)field._thriftId, field);
-
 
29855
          byName.put(field.getFieldName(), field);
-
 
29856
        }
-
 
29857
      }
-
 
29858
 
-
 
29859
      /**
-
 
29860
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29861
       */
-
 
29862
      public static _Fields findByThriftId(int fieldId) {
-
 
29863
        return byId.get(fieldId);
-
 
29864
      }
-
 
29865
 
-
 
29866
      /**
-
 
29867
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29868
       * if it is not found.
-
 
29869
       */
-
 
29870
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29871
        _Fields fields = findByThriftId(fieldId);
-
 
29872
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29873
        return fields;
-
 
29874
      }
-
 
29875
 
-
 
29876
      /**
-
 
29877
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29878
       */
-
 
29879
      public static _Fields findByName(String name) {
-
 
29880
        return byName.get(name);
-
 
29881
      }
-
 
29882
 
-
 
29883
      private final short _thriftId;
-
 
29884
      private final String _fieldName;
-
 
29885
 
-
 
29886
      _Fields(short thriftId, String fieldName) {
-
 
29887
        _thriftId = thriftId;
-
 
29888
        _fieldName = fieldName;
-
 
29889
      }
-
 
29890
 
-
 
29891
      public short getThriftFieldId() {
-
 
29892
        return _thriftId;
-
 
29893
      }
-
 
29894
 
-
 
29895
      public String getFieldName() {
-
 
29896
        return _fieldName;
-
 
29897
      }
-
 
29898
    }
-
 
29899
 
-
 
29900
    // isset id assignments
-
 
29901
 
-
 
29902
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
29903
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
29904
          new FieldValueMetaData(TType.STRUCT)));
-
 
29905
    }});
-
 
29906
 
-
 
29907
    static {
-
 
29908
      FieldMetaData.addStructMetaDataMap(updateWidgetItem_result.class, metaDataMap);
-
 
29909
    }
-
 
29910
 
-
 
29911
    public updateWidgetItem_result() {
-
 
29912
    }
-
 
29913
 
-
 
29914
    public updateWidgetItem_result(
-
 
29915
      WidgetException scx)
-
 
29916
    {
-
 
29917
      this();
-
 
29918
      this.scx = scx;
-
 
29919
    }
-
 
29920
 
-
 
29921
    /**
-
 
29922
     * Performs a deep copy on <i>other</i>.
-
 
29923
     */
-
 
29924
    public updateWidgetItem_result(updateWidgetItem_result other) {
-
 
29925
      if (other.isSetScx()) {
-
 
29926
        this.scx = new WidgetException(other.scx);
-
 
29927
      }
-
 
29928
    }
-
 
29929
 
-
 
29930
    public updateWidgetItem_result deepCopy() {
-
 
29931
      return new updateWidgetItem_result(this);
-
 
29932
    }
-
 
29933
 
-
 
29934
    @Deprecated
-
 
29935
    public updateWidgetItem_result clone() {
-
 
29936
      return new updateWidgetItem_result(this);
-
 
29937
    }
-
 
29938
 
-
 
29939
    public WidgetException getScx() {
-
 
29940
      return this.scx;
-
 
29941
    }
-
 
29942
 
-
 
29943
    public updateWidgetItem_result setScx(WidgetException scx) {
-
 
29944
      this.scx = scx;
-
 
29945
      return this;
-
 
29946
    }
-
 
29947
 
-
 
29948
    public void unsetScx() {
-
 
29949
      this.scx = null;
-
 
29950
    }
-
 
29951
 
-
 
29952
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
29953
    public boolean isSetScx() {
-
 
29954
      return this.scx != null;
-
 
29955
    }
-
 
29956
 
-
 
29957
    public void setScxIsSet(boolean value) {
-
 
29958
      if (!value) {
-
 
29959
        this.scx = null;
-
 
29960
      }
-
 
29961
    }
-
 
29962
 
-
 
29963
    public void setFieldValue(_Fields field, Object value) {
-
 
29964
      switch (field) {
-
 
29965
      case SCX:
-
 
29966
        if (value == null) {
-
 
29967
          unsetScx();
-
 
29968
        } else {
-
 
29969
          setScx((WidgetException)value);
-
 
29970
        }
-
 
29971
        break;
-
 
29972
 
-
 
29973
      }
-
 
29974
    }
-
 
29975
 
-
 
29976
    public void setFieldValue(int fieldID, Object value) {
-
 
29977
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
29978
    }
-
 
29979
 
-
 
29980
    public Object getFieldValue(_Fields field) {
-
 
29981
      switch (field) {
-
 
29982
      case SCX:
-
 
29983
        return getScx();
-
 
29984
 
-
 
29985
      }
-
 
29986
      throw new IllegalStateException();
-
 
29987
    }
-
 
29988
 
-
 
29989
    public Object getFieldValue(int fieldId) {
-
 
29990
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
29991
    }
-
 
29992
 
-
 
29993
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
29994
    public boolean isSet(_Fields field) {
-
 
29995
      switch (field) {
-
 
29996
      case SCX:
-
 
29997
        return isSetScx();
-
 
29998
      }
-
 
29999
      throw new IllegalStateException();
-
 
30000
    }
-
 
30001
 
-
 
30002
    public boolean isSet(int fieldID) {
-
 
30003
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
30004
    }
-
 
30005
 
-
 
30006
    @Override
-
 
30007
    public boolean equals(Object that) {
-
 
30008
      if (that == null)
-
 
30009
        return false;
-
 
30010
      if (that instanceof updateWidgetItem_result)
-
 
30011
        return this.equals((updateWidgetItem_result)that);
-
 
30012
      return false;
-
 
30013
    }
-
 
30014
 
-
 
30015
    public boolean equals(updateWidgetItem_result that) {
-
 
30016
      if (that == null)
-
 
30017
        return false;
-
 
30018
 
-
 
30019
      boolean this_present_scx = true && this.isSetScx();
-
 
30020
      boolean that_present_scx = true && that.isSetScx();
-
 
30021
      if (this_present_scx || that_present_scx) {
-
 
30022
        if (!(this_present_scx && that_present_scx))
-
 
30023
          return false;
-
 
30024
        if (!this.scx.equals(that.scx))
-
 
30025
          return false;
-
 
30026
      }
-
 
30027
 
-
 
30028
      return true;
-
 
30029
    }
-
 
30030
 
-
 
30031
    @Override
-
 
30032
    public int hashCode() {
-
 
30033
      return 0;
-
 
30034
    }
-
 
30035
 
-
 
30036
    public int compareTo(updateWidgetItem_result other) {
-
 
30037
      if (!getClass().equals(other.getClass())) {
-
 
30038
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30039
      }
-
 
30040
 
-
 
30041
      int lastComparison = 0;
-
 
30042
      updateWidgetItem_result typedOther = (updateWidgetItem_result)other;
-
 
30043
 
-
 
30044
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
30045
      if (lastComparison != 0) {
-
 
30046
        return lastComparison;
-
 
30047
      }
-
 
30048
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
30049
      if (lastComparison != 0) {
-
 
30050
        return lastComparison;
-
 
30051
      }
-
 
30052
      return 0;
-
 
30053
    }
-
 
30054
 
-
 
30055
    public void read(TProtocol iprot) throws TException {
-
 
30056
      TField field;
-
 
30057
      iprot.readStructBegin();
-
 
30058
      while (true)
-
 
30059
      {
-
 
30060
        field = iprot.readFieldBegin();
-
 
30061
        if (field.type == TType.STOP) { 
-
 
30062
          break;
-
 
30063
        }
-
 
30064
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
30065
        if (fieldId == null) {
-
 
30066
          TProtocolUtil.skip(iprot, field.type);
-
 
30067
        } else {
-
 
30068
          switch (fieldId) {
-
 
30069
            case SCX:
-
 
30070
              if (field.type == TType.STRUCT) {
-
 
30071
                this.scx = new WidgetException();
-
 
30072
                this.scx.read(iprot);
-
 
30073
              } else { 
-
 
30074
                TProtocolUtil.skip(iprot, field.type);
-
 
30075
              }
-
 
30076
              break;
-
 
30077
          }
-
 
30078
          iprot.readFieldEnd();
-
 
30079
        }
-
 
30080
      }
-
 
30081
      iprot.readStructEnd();
-
 
30082
      validate();
-
 
30083
    }
-
 
30084
 
-
 
30085
    public void write(TProtocol oprot) throws TException {
-
 
30086
      oprot.writeStructBegin(STRUCT_DESC);
-
 
30087
 
-
 
30088
      if (this.isSetScx()) {
-
 
30089
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
30090
        this.scx.write(oprot);
-
 
30091
        oprot.writeFieldEnd();
-
 
30092
      }
-
 
30093
      oprot.writeFieldStop();
-
 
30094
      oprot.writeStructEnd();
-
 
30095
    }
-
 
30096
 
-
 
30097
    @Override
-
 
30098
    public String toString() {
-
 
30099
      StringBuilder sb = new StringBuilder("updateWidgetItem_result(");
-
 
30100
      boolean first = true;
-
 
30101
 
-
 
30102
      sb.append("scx:");
-
 
30103
      if (this.scx == null) {
-
 
30104
        sb.append("null");
-
 
30105
      } else {
-
 
30106
        sb.append(this.scx);
-
 
30107
      }
-
 
30108
      first = false;
-
 
30109
      sb.append(")");
-
 
30110
      return sb.toString();
-
 
30111
    }
-
 
30112
 
-
 
30113
    public void validate() throws TException {
-
 
30114
      // check for required fields
-
 
30115
    }
-
 
30116
 
-
 
30117
  }
-
 
30118
 
-
 
30119
  public static class getWidget_args implements TBase<getWidget_args._Fields>, java.io.Serializable, Cloneable, Comparable<getWidget_args>   {
26505
  public static class getMyResearch_args implements TBase<getMyResearch_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMyResearch_args>   {
30120
    private static final TStruct STRUCT_DESC = new TStruct("getWidget_args");
26506
    private static final TStruct STRUCT_DESC = new TStruct("getMyResearch_args");
30121
 
26507
 
30122
    private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)1);
-
 
30123
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)2);
26508
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
30124
    private static final TField ONLY_ENABLED_FIELD_DESC = new TField("onlyEnabled", TType.BOOL, (short)3);
-
 
30125
 
26509
 
30126
    private WidgetType type;
-
 
30127
    private long userId;
26510
    private long userId;
30128
    private boolean onlyEnabled;
-
 
30129
 
26511
 
30130
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26512
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30131
    public enum _Fields implements TFieldIdEnum {
26513
    public enum _Fields implements TFieldIdEnum {
30132
      /**
-
 
30133
       * 
-
 
30134
       * @see WidgetType
-
 
30135
       */
-
 
30136
      TYPE((short)1, "type"),
-
 
30137
      USER_ID((short)2, "userId"),
26514
      USER_ID((short)1, "userId");
30138
      ONLY_ENABLED((short)3, "onlyEnabled");
-
 
30139
 
26515
 
30140
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
26516
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
30141
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26517
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30142
 
26518
 
30143
      static {
26519
      static {
Line 30188... Line 26564...
30188
      }
26564
      }
30189
    }
26565
    }
30190
 
26566
 
30191
    // isset id assignments
26567
    // isset id assignments
30192
    private static final int __USERID_ISSET_ID = 0;
26568
    private static final int __USERID_ISSET_ID = 0;
30193
    private static final int __ONLYENABLED_ISSET_ID = 1;
-
 
30194
    private BitSet __isset_bit_vector = new BitSet(2);
26569
    private BitSet __isset_bit_vector = new BitSet(1);
30195
 
26570
 
30196
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
26571
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
30197
      put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
-
 
30198
          new EnumMetaData(TType.ENUM, WidgetType.class)));
-
 
30199
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
26572
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
30200
          new FieldValueMetaData(TType.I64)));
26573
          new FieldValueMetaData(TType.I64)));
30201
      put(_Fields.ONLY_ENABLED, new FieldMetaData("onlyEnabled", TFieldRequirementType.DEFAULT, 
-
 
30202
          new FieldValueMetaData(TType.BOOL)));
-
 
30203
    }});
26574
    }});
30204
 
26575
 
30205
    static {
26576
    static {
30206
      FieldMetaData.addStructMetaDataMap(getWidget_args.class, metaDataMap);
26577
      FieldMetaData.addStructMetaDataMap(getMyResearch_args.class, metaDataMap);
30207
    }
26578
    }
30208
 
26579
 
30209
    public getWidget_args() {
26580
    public getMyResearch_args() {
30210
    }
26581
    }
30211
 
26582
 
30212
    public getWidget_args(
26583
    public getMyResearch_args(
30213
      WidgetType type,
-
 
30214
      long userId,
26584
      long userId)
30215
      boolean onlyEnabled)
-
 
30216
    {
26585
    {
30217
      this();
26586
      this();
30218
      this.type = type;
-
 
30219
      this.userId = userId;
26587
      this.userId = userId;
30220
      setUserIdIsSet(true);
26588
      setUserIdIsSet(true);
30221
      this.onlyEnabled = onlyEnabled;
-
 
30222
      setOnlyEnabledIsSet(true);
-
 
30223
    }
26589
    }
30224
 
26590
 
30225
    /**
26591
    /**
30226
     * Performs a deep copy on <i>other</i>.
26592
     * Performs a deep copy on <i>other</i>.
30227
     */
26593
     */
30228
    public getWidget_args(getWidget_args other) {
26594
    public getMyResearch_args(getMyResearch_args other) {
30229
      __isset_bit_vector.clear();
26595
      __isset_bit_vector.clear();
30230
      __isset_bit_vector.or(other.__isset_bit_vector);
26596
      __isset_bit_vector.or(other.__isset_bit_vector);
30231
      if (other.isSetType()) {
-
 
30232
        this.type = other.type;
-
 
30233
      }
-
 
30234
      this.userId = other.userId;
26597
      this.userId = other.userId;
30235
      this.onlyEnabled = other.onlyEnabled;
-
 
30236
    }
26598
    }
30237
 
26599
 
30238
    public getWidget_args deepCopy() {
26600
    public getMyResearch_args deepCopy() {
30239
      return new getWidget_args(this);
26601
      return new getMyResearch_args(this);
30240
    }
26602
    }
30241
 
26603
 
30242
    @Deprecated
26604
    @Deprecated
30243
    public getWidget_args clone() {
26605
    public getMyResearch_args clone() {
30244
      return new getWidget_args(this);
26606
      return new getMyResearch_args(this);
30245
    }
-
 
30246
 
-
 
30247
    /**
-
 
30248
     * 
-
 
30249
     * @see WidgetType
-
 
30250
     */
-
 
30251
    public WidgetType getType() {
-
 
30252
      return this.type;
-
 
30253
    }
-
 
30254
 
-
 
30255
    /**
-
 
30256
     * 
-
 
30257
     * @see WidgetType
-
 
30258
     */
-
 
30259
    public getWidget_args setType(WidgetType type) {
-
 
30260
      this.type = type;
-
 
30261
      return this;
-
 
30262
    }
-
 
30263
 
-
 
30264
    public void unsetType() {
-
 
30265
      this.type = null;
-
 
30266
    }
-
 
30267
 
-
 
30268
    /** Returns true if field type is set (has been asigned a value) and false otherwise */
-
 
30269
    public boolean isSetType() {
-
 
30270
      return this.type != null;
-
 
30271
    }
-
 
30272
 
-
 
30273
    public void setTypeIsSet(boolean value) {
-
 
30274
      if (!value) {
-
 
30275
        this.type = null;
-
 
30276
      }
-
 
30277
    }
26607
    }
30278
 
26608
 
30279
    public long getUserId() {
26609
    public long getUserId() {
30280
      return this.userId;
26610
      return this.userId;
30281
    }
26611
    }
30282
 
26612
 
30283
    public getWidget_args setUserId(long userId) {
26613
    public getMyResearch_args setUserId(long userId) {
30284
      this.userId = userId;
26614
      this.userId = userId;
30285
      setUserIdIsSet(true);
26615
      setUserIdIsSet(true);
30286
      return this;
26616
      return this;
30287
    }
26617
    }
30288
 
26618
 
Line 30297... Line 26627...
30297
 
26627
 
30298
    public void setUserIdIsSet(boolean value) {
26628
    public void setUserIdIsSet(boolean value) {
30299
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
26629
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
30300
    }
26630
    }
30301
 
26631
 
30302
    public boolean isOnlyEnabled() {
-
 
30303
      return this.onlyEnabled;
-
 
30304
    }
-
 
30305
 
-
 
30306
    public getWidget_args setOnlyEnabled(boolean onlyEnabled) {
-
 
30307
      this.onlyEnabled = onlyEnabled;
-
 
30308
      setOnlyEnabledIsSet(true);
-
 
30309
      return this;
-
 
30310
    }
-
 
30311
 
-
 
30312
    public void unsetOnlyEnabled() {
-
 
30313
      __isset_bit_vector.clear(__ONLYENABLED_ISSET_ID);
-
 
30314
    }
-
 
30315
 
-
 
30316
    /** Returns true if field onlyEnabled is set (has been asigned a value) and false otherwise */
-
 
30317
    public boolean isSetOnlyEnabled() {
-
 
30318
      return __isset_bit_vector.get(__ONLYENABLED_ISSET_ID);
-
 
30319
    }
-
 
30320
 
-
 
30321
    public void setOnlyEnabledIsSet(boolean value) {
-
 
30322
      __isset_bit_vector.set(__ONLYENABLED_ISSET_ID, value);
-
 
30323
    }
-
 
30324
 
-
 
30325
    public void setFieldValue(_Fields field, Object value) {
26632
    public void setFieldValue(_Fields field, Object value) {
30326
      switch (field) {
26633
      switch (field) {
30327
      case TYPE:
-
 
30328
        if (value == null) {
-
 
30329
          unsetType();
-
 
30330
        } else {
-
 
30331
          setType((WidgetType)value);
-
 
30332
        }
-
 
30333
        break;
-
 
30334
 
-
 
30335
      case USER_ID:
26634
      case USER_ID:
30336
        if (value == null) {
26635
        if (value == null) {
30337
          unsetUserId();
26636
          unsetUserId();
30338
        } else {
26637
        } else {
30339
          setUserId((Long)value);
26638
          setUserId((Long)value);
30340
        }
26639
        }
30341
        break;
26640
        break;
30342
 
26641
 
30343
      case ONLY_ENABLED:
-
 
30344
        if (value == null) {
-
 
30345
          unsetOnlyEnabled();
-
 
30346
        } else {
-
 
30347
          setOnlyEnabled((Boolean)value);
-
 
30348
        }
-
 
30349
        break;
-
 
30350
 
-
 
30351
      }
26642
      }
30352
    }
26643
    }
30353
 
26644
 
30354
    public void setFieldValue(int fieldID, Object value) {
26645
    public void setFieldValue(int fieldID, Object value) {
30355
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
26646
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
30356
    }
26647
    }
30357
 
26648
 
30358
    public Object getFieldValue(_Fields field) {
26649
    public Object getFieldValue(_Fields field) {
30359
      switch (field) {
26650
      switch (field) {
30360
      case TYPE:
-
 
30361
        return getType();
-
 
30362
 
-
 
30363
      case USER_ID:
26651
      case USER_ID:
30364
        return new Long(getUserId());
26652
        return new Long(getUserId());
30365
 
26653
 
30366
      case ONLY_ENABLED:
-
 
30367
        return new Boolean(isOnlyEnabled());
-
 
30368
 
-
 
30369
      }
26654
      }
30370
      throw new IllegalStateException();
26655
      throw new IllegalStateException();
30371
    }
26656
    }
30372
 
26657
 
30373
    public Object getFieldValue(int fieldId) {
26658
    public Object getFieldValue(int fieldId) {
Line 30375... Line 26660...
30375
    }
26660
    }
30376
 
26661
 
30377
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
26662
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
30378
    public boolean isSet(_Fields field) {
26663
    public boolean isSet(_Fields field) {
30379
      switch (field) {
26664
      switch (field) {
30380
      case TYPE:
-
 
30381
        return isSetType();
-
 
30382
      case USER_ID:
26665
      case USER_ID:
30383
        return isSetUserId();
26666
        return isSetUserId();
30384
      case ONLY_ENABLED:
-
 
30385
        return isSetOnlyEnabled();
-
 
30386
      }
26667
      }
30387
      throw new IllegalStateException();
26668
      throw new IllegalStateException();
30388
    }
26669
    }
30389
 
26670
 
30390
    public boolean isSet(int fieldID) {
26671
    public boolean isSet(int fieldID) {
Line 30393... Line 26674...
30393
 
26674
 
30394
    @Override
26675
    @Override
30395
    public boolean equals(Object that) {
26676
    public boolean equals(Object that) {
30396
      if (that == null)
26677
      if (that == null)
30397
        return false;
26678
        return false;
30398
      if (that instanceof getWidget_args)
26679
      if (that instanceof getMyResearch_args)
30399
        return this.equals((getWidget_args)that);
26680
        return this.equals((getMyResearch_args)that);
30400
      return false;
26681
      return false;
30401
    }
26682
    }
30402
 
26683
 
30403
    public boolean equals(getWidget_args that) {
26684
    public boolean equals(getMyResearch_args that) {
30404
      if (that == null)
26685
      if (that == null)
30405
        return false;
26686
        return false;
30406
 
26687
 
30407
      boolean this_present_type = true && this.isSetType();
-
 
30408
      boolean that_present_type = true && that.isSetType();
-
 
30409
      if (this_present_type || that_present_type) {
-
 
30410
        if (!(this_present_type && that_present_type))
-
 
30411
          return false;
-
 
30412
        if (!this.type.equals(that.type))
-
 
30413
          return false;
-
 
30414
      }
-
 
30415
 
-
 
30416
      boolean this_present_userId = true;
26688
      boolean this_present_userId = true;
30417
      boolean that_present_userId = true;
26689
      boolean that_present_userId = true;
30418
      if (this_present_userId || that_present_userId) {
26690
      if (this_present_userId || that_present_userId) {
30419
        if (!(this_present_userId && that_present_userId))
26691
        if (!(this_present_userId && that_present_userId))
30420
          return false;
26692
          return false;
30421
        if (this.userId != that.userId)
26693
        if (this.userId != that.userId)
30422
          return false;
26694
          return false;
30423
      }
26695
      }
30424
 
26696
 
30425
      boolean this_present_onlyEnabled = true;
-
 
30426
      boolean that_present_onlyEnabled = true;
-
 
30427
      if (this_present_onlyEnabled || that_present_onlyEnabled) {
-
 
30428
        if (!(this_present_onlyEnabled && that_present_onlyEnabled))
-
 
30429
          return false;
-
 
30430
        if (this.onlyEnabled != that.onlyEnabled)
-
 
30431
          return false;
-
 
30432
      }
-
 
30433
 
-
 
30434
      return true;
26697
      return true;
30435
    }
26698
    }
30436
 
26699
 
30437
    @Override
26700
    @Override
30438
    public int hashCode() {
26701
    public int hashCode() {
30439
      return 0;
26702
      return 0;
30440
    }
26703
    }
30441
 
26704
 
30442
    public int compareTo(getWidget_args other) {
26705
    public int compareTo(getMyResearch_args other) {
30443
      if (!getClass().equals(other.getClass())) {
26706
      if (!getClass().equals(other.getClass())) {
30444
        return getClass().getName().compareTo(other.getClass().getName());
26707
        return getClass().getName().compareTo(other.getClass().getName());
30445
      }
26708
      }
30446
 
26709
 
30447
      int lastComparison = 0;
26710
      int lastComparison = 0;
30448
      getWidget_args typedOther = (getWidget_args)other;
26711
      getMyResearch_args typedOther = (getMyResearch_args)other;
30449
 
26712
 
30450
      lastComparison = Boolean.valueOf(isSetType()).compareTo(isSetType());
-
 
30451
      if (lastComparison != 0) {
-
 
30452
        return lastComparison;
-
 
30453
      }
-
 
30454
      lastComparison = TBaseHelper.compareTo(type, typedOther.type);
-
 
30455
      if (lastComparison != 0) {
-
 
30456
        return lastComparison;
-
 
30457
      }
-
 
30458
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
26713
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
30459
      if (lastComparison != 0) {
26714
      if (lastComparison != 0) {
30460
        return lastComparison;
26715
        return lastComparison;
30461
      }
26716
      }
30462
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
26717
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
30463
      if (lastComparison != 0) {
26718
      if (lastComparison != 0) {
30464
        return lastComparison;
26719
        return lastComparison;
30465
      }
26720
      }
30466
      lastComparison = Boolean.valueOf(isSetOnlyEnabled()).compareTo(isSetOnlyEnabled());
-
 
30467
      if (lastComparison != 0) {
-
 
30468
        return lastComparison;
-
 
30469
      }
-
 
30470
      lastComparison = TBaseHelper.compareTo(onlyEnabled, typedOther.onlyEnabled);
-
 
30471
      if (lastComparison != 0) {
-
 
30472
        return lastComparison;
-
 
30473
      }
-
 
30474
      return 0;
26721
      return 0;
30475
    }
26722
    }
30476
 
26723
 
30477
    public void read(TProtocol iprot) throws TException {
26724
    public void read(TProtocol iprot) throws TException {
30478
      TField field;
26725
      TField field;
Line 30486... Line 26733...
30486
        _Fields fieldId = _Fields.findByThriftId(field.id);
26733
        _Fields fieldId = _Fields.findByThriftId(field.id);
30487
        if (fieldId == null) {
26734
        if (fieldId == null) {
30488
          TProtocolUtil.skip(iprot, field.type);
26735
          TProtocolUtil.skip(iprot, field.type);
30489
        } else {
26736
        } else {
30490
          switch (fieldId) {
26737
          switch (fieldId) {
30491
            case TYPE:
-
 
30492
              if (field.type == TType.I32) {
-
 
30493
                this.type = WidgetType.findByValue(iprot.readI32());
-
 
30494
              } else { 
-
 
30495
                TProtocolUtil.skip(iprot, field.type);
-
 
30496
              }
-
 
30497
              break;
-
 
30498
            case USER_ID:
26738
            case USER_ID:
30499
              if (field.type == TType.I64) {
26739
              if (field.type == TType.I64) {
30500
                this.userId = iprot.readI64();
26740
                this.userId = iprot.readI64();
30501
                setUserIdIsSet(true);
26741
                setUserIdIsSet(true);
30502
              } else { 
26742
              } else { 
30503
                TProtocolUtil.skip(iprot, field.type);
26743
                TProtocolUtil.skip(iprot, field.type);
30504
              }
26744
              }
30505
              break;
26745
              break;
30506
            case ONLY_ENABLED:
-
 
30507
              if (field.type == TType.BOOL) {
-
 
30508
                this.onlyEnabled = iprot.readBool();
-
 
30509
                setOnlyEnabledIsSet(true);
-
 
30510
              } else { 
-
 
30511
                TProtocolUtil.skip(iprot, field.type);
-
 
30512
              }
-
 
30513
              break;
-
 
30514
          }
26746
          }
30515
          iprot.readFieldEnd();
26747
          iprot.readFieldEnd();
30516
        }
26748
        }
30517
      }
26749
      }
30518
      iprot.readStructEnd();
26750
      iprot.readStructEnd();
Line 30521... Line 26753...
30521
 
26753
 
30522
    public void write(TProtocol oprot) throws TException {
26754
    public void write(TProtocol oprot) throws TException {
30523
      validate();
26755
      validate();
30524
 
26756
 
30525
      oprot.writeStructBegin(STRUCT_DESC);
26757
      oprot.writeStructBegin(STRUCT_DESC);
30526
      if (this.type != null) {
-
 
30527
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
30528
        oprot.writeI32(this.type.getValue());
-
 
30529
        oprot.writeFieldEnd();
-
 
30530
      }
-
 
30531
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
26758
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
30532
      oprot.writeI64(this.userId);
26759
      oprot.writeI64(this.userId);
30533
      oprot.writeFieldEnd();
26760
      oprot.writeFieldEnd();
30534
      oprot.writeFieldBegin(ONLY_ENABLED_FIELD_DESC);
-
 
30535
      oprot.writeBool(this.onlyEnabled);
-
 
30536
      oprot.writeFieldEnd();
-
 
30537
      oprot.writeFieldStop();
26761
      oprot.writeFieldStop();
30538
      oprot.writeStructEnd();
26762
      oprot.writeStructEnd();
30539
    }
26763
    }
30540
 
26764
 
30541
    @Override
26765
    @Override
30542
    public String toString() {
26766
    public String toString() {
30543
      StringBuilder sb = new StringBuilder("getWidget_args(");
26767
      StringBuilder sb = new StringBuilder("getMyResearch_args(");
30544
      boolean first = true;
26768
      boolean first = true;
30545
 
26769
 
30546
      sb.append("type:");
-
 
30547
      if (this.type == null) {
-
 
30548
        sb.append("null");
-
 
30549
      } else {
-
 
30550
        String type_name = type.name();
-
 
30551
        if (type_name != null) {
-
 
30552
          sb.append(type_name);
-
 
30553
          sb.append(" (");
-
 
30554
        }
-
 
30555
        sb.append(this.type);
-
 
30556
        if (type_name != null) {
-
 
30557
          sb.append(")");
-
 
30558
        }
-
 
30559
      }
-
 
30560
      first = false;
-
 
30561
      if (!first) sb.append(", ");
-
 
30562
      sb.append("userId:");
26770
      sb.append("userId:");
30563
      sb.append(this.userId);
26771
      sb.append(this.userId);
30564
      first = false;
26772
      first = false;
30565
      if (!first) sb.append(", ");
-
 
30566
      sb.append("onlyEnabled:");
-
 
30567
      sb.append(this.onlyEnabled);
-
 
30568
      first = false;
-
 
30569
      sb.append(")");
-
 
30570
      return sb.toString();
-
 
30571
    }
-
 
30572
 
-
 
30573
    public void validate() throws TException {
-
 
30574
      // check for required fields
-
 
30575
    }
-
 
30576
 
-
 
30577
  }
-
 
30578
 
-
 
30579
  public static class getWidget_result implements TBase<getWidget_result._Fields>, java.io.Serializable, Cloneable, Comparable<getWidget_result>   {
-
 
30580
    private static final TStruct STRUCT_DESC = new TStruct("getWidget_result");
-
 
30581
 
-
 
30582
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
30583
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
30584
 
-
 
30585
    private Widget success;
-
 
30586
    private WidgetException scx;
-
 
30587
 
-
 
30588
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
30589
    public enum _Fields implements TFieldIdEnum {
-
 
30590
      SUCCESS((short)0, "success"),
-
 
30591
      SCX((short)1, "scx");
-
 
30592
 
-
 
30593
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
30594
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
30595
 
-
 
30596
      static {
-
 
30597
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
30598
          byId.put((int)field._thriftId, field);
-
 
30599
          byName.put(field.getFieldName(), field);
-
 
30600
        }
-
 
30601
      }
-
 
30602
 
-
 
30603
      /**
-
 
30604
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
30605
       */
-
 
30606
      public static _Fields findByThriftId(int fieldId) {
-
 
30607
        return byId.get(fieldId);
-
 
30608
      }
-
 
30609
 
-
 
30610
      /**
-
 
30611
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
30612
       * if it is not found.
-
 
30613
       */
-
 
30614
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
30615
        _Fields fields = findByThriftId(fieldId);
-
 
30616
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
30617
        return fields;
-
 
30618
      }
-
 
30619
 
-
 
30620
      /**
-
 
30621
       * Find the _Fields constant that matches name, or null if its not found.
-
 
30622
       */
-
 
30623
      public static _Fields findByName(String name) {
-
 
30624
        return byName.get(name);
-
 
30625
      }
-
 
30626
 
-
 
30627
      private final short _thriftId;
-
 
30628
      private final String _fieldName;
-
 
30629
 
-
 
30630
      _Fields(short thriftId, String fieldName) {
-
 
30631
        _thriftId = thriftId;
-
 
30632
        _fieldName = fieldName;
-
 
30633
      }
-
 
30634
 
-
 
30635
      public short getThriftFieldId() {
-
 
30636
        return _thriftId;
-
 
30637
      }
-
 
30638
 
-
 
30639
      public String getFieldName() {
-
 
30640
        return _fieldName;
-
 
30641
      }
-
 
30642
    }
-
 
30643
 
-
 
30644
    // isset id assignments
-
 
30645
 
-
 
30646
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
30647
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
30648
          new StructMetaData(TType.STRUCT, Widget.class)));
-
 
30649
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
30650
          new FieldValueMetaData(TType.STRUCT)));
-
 
30651
    }});
-
 
30652
 
-
 
30653
    static {
-
 
30654
      FieldMetaData.addStructMetaDataMap(getWidget_result.class, metaDataMap);
-
 
30655
    }
-
 
30656
 
-
 
30657
    public getWidget_result() {
-
 
30658
    }
-
 
30659
 
-
 
30660
    public getWidget_result(
-
 
30661
      Widget success,
-
 
30662
      WidgetException scx)
-
 
30663
    {
-
 
30664
      this();
-
 
30665
      this.success = success;
-
 
30666
      this.scx = scx;
-
 
30667
    }
-
 
30668
 
-
 
30669
    /**
-
 
30670
     * Performs a deep copy on <i>other</i>.
-
 
30671
     */
-
 
30672
    public getWidget_result(getWidget_result other) {
-
 
30673
      if (other.isSetSuccess()) {
-
 
30674
        this.success = new Widget(other.success);
-
 
30675
      }
-
 
30676
      if (other.isSetScx()) {
-
 
30677
        this.scx = new WidgetException(other.scx);
-
 
30678
      }
-
 
30679
    }
-
 
30680
 
-
 
30681
    public getWidget_result deepCopy() {
-
 
30682
      return new getWidget_result(this);
-
 
30683
    }
-
 
30684
 
-
 
30685
    @Deprecated
-
 
30686
    public getWidget_result clone() {
-
 
30687
      return new getWidget_result(this);
-
 
30688
    }
-
 
30689
 
-
 
30690
    public Widget getSuccess() {
-
 
30691
      return this.success;
-
 
30692
    }
-
 
30693
 
-
 
30694
    public getWidget_result setSuccess(Widget success) {
-
 
30695
      this.success = success;
-
 
30696
      return this;
-
 
30697
    }
-
 
30698
 
-
 
30699
    public void unsetSuccess() {
-
 
30700
      this.success = null;
-
 
30701
    }
-
 
30702
 
-
 
30703
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
30704
    public boolean isSetSuccess() {
-
 
30705
      return this.success != null;
-
 
30706
    }
-
 
30707
 
-
 
30708
    public void setSuccessIsSet(boolean value) {
-
 
30709
      if (!value) {
-
 
30710
        this.success = null;
-
 
30711
      }
-
 
30712
    }
-
 
30713
 
-
 
30714
    public WidgetException getScx() {
-
 
30715
      return this.scx;
-
 
30716
    }
-
 
30717
 
-
 
30718
    public getWidget_result setScx(WidgetException scx) {
-
 
30719
      this.scx = scx;
-
 
30720
      return this;
-
 
30721
    }
-
 
30722
 
-
 
30723
    public void unsetScx() {
-
 
30724
      this.scx = null;
-
 
30725
    }
-
 
30726
 
-
 
30727
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
30728
    public boolean isSetScx() {
-
 
30729
      return this.scx != null;
-
 
30730
    }
-
 
30731
 
-
 
30732
    public void setScxIsSet(boolean value) {
-
 
30733
      if (!value) {
-
 
30734
        this.scx = null;
-
 
30735
      }
-
 
30736
    }
-
 
30737
 
-
 
30738
    public void setFieldValue(_Fields field, Object value) {
-
 
30739
      switch (field) {
-
 
30740
      case SUCCESS:
-
 
30741
        if (value == null) {
-
 
30742
          unsetSuccess();
-
 
30743
        } else {
-
 
30744
          setSuccess((Widget)value);
-
 
30745
        }
-
 
30746
        break;
-
 
30747
 
-
 
30748
      case SCX:
-
 
30749
        if (value == null) {
-
 
30750
          unsetScx();
-
 
30751
        } else {
-
 
30752
          setScx((WidgetException)value);
-
 
30753
        }
-
 
30754
        break;
-
 
30755
 
-
 
30756
      }
-
 
30757
    }
-
 
30758
 
-
 
30759
    public void setFieldValue(int fieldID, Object value) {
-
 
30760
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
30761
    }
-
 
30762
 
-
 
30763
    public Object getFieldValue(_Fields field) {
-
 
30764
      switch (field) {
-
 
30765
      case SUCCESS:
-
 
30766
        return getSuccess();
-
 
30767
 
-
 
30768
      case SCX:
-
 
30769
        return getScx();
-
 
30770
 
-
 
30771
      }
-
 
30772
      throw new IllegalStateException();
-
 
30773
    }
-
 
30774
 
-
 
30775
    public Object getFieldValue(int fieldId) {
-
 
30776
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
30777
    }
-
 
30778
 
-
 
30779
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
30780
    public boolean isSet(_Fields field) {
-
 
30781
      switch (field) {
-
 
30782
      case SUCCESS:
-
 
30783
        return isSetSuccess();
-
 
30784
      case SCX:
-
 
30785
        return isSetScx();
-
 
30786
      }
-
 
30787
      throw new IllegalStateException();
-
 
30788
    }
-
 
30789
 
-
 
30790
    public boolean isSet(int fieldID) {
-
 
30791
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
30792
    }
-
 
30793
 
-
 
30794
    @Override
-
 
30795
    public boolean equals(Object that) {
-
 
30796
      if (that == null)
-
 
30797
        return false;
-
 
30798
      if (that instanceof getWidget_result)
-
 
30799
        return this.equals((getWidget_result)that);
-
 
30800
      return false;
-
 
30801
    }
-
 
30802
 
-
 
30803
    public boolean equals(getWidget_result that) {
-
 
30804
      if (that == null)
-
 
30805
        return false;
-
 
30806
 
-
 
30807
      boolean this_present_success = true && this.isSetSuccess();
-
 
30808
      boolean that_present_success = true && that.isSetSuccess();
-
 
30809
      if (this_present_success || that_present_success) {
-
 
30810
        if (!(this_present_success && that_present_success))
-
 
30811
          return false;
-
 
30812
        if (!this.success.equals(that.success))
-
 
30813
          return false;
-
 
30814
      }
-
 
30815
 
-
 
30816
      boolean this_present_scx = true && this.isSetScx();
-
 
30817
      boolean that_present_scx = true && that.isSetScx();
-
 
30818
      if (this_present_scx || that_present_scx) {
-
 
30819
        if (!(this_present_scx && that_present_scx))
-
 
30820
          return false;
-
 
30821
        if (!this.scx.equals(that.scx))
-
 
30822
          return false;
-
 
30823
      }
-
 
30824
 
-
 
30825
      return true;
-
 
30826
    }
-
 
30827
 
-
 
30828
    @Override
-
 
30829
    public int hashCode() {
-
 
30830
      return 0;
-
 
30831
    }
-
 
30832
 
-
 
30833
    public int compareTo(getWidget_result other) {
-
 
30834
      if (!getClass().equals(other.getClass())) {
-
 
30835
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30836
      }
-
 
30837
 
-
 
30838
      int lastComparison = 0;
-
 
30839
      getWidget_result typedOther = (getWidget_result)other;
-
 
30840
 
-
 
30841
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
30842
      if (lastComparison != 0) {
-
 
30843
        return lastComparison;
-
 
30844
      }
-
 
30845
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
30846
      if (lastComparison != 0) {
-
 
30847
        return lastComparison;
-
 
30848
      }
-
 
30849
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
30850
      if (lastComparison != 0) {
-
 
30851
        return lastComparison;
-
 
30852
      }
-
 
30853
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
30854
      if (lastComparison != 0) {
-
 
30855
        return lastComparison;
-
 
30856
      }
-
 
30857
      return 0;
-
 
30858
    }
-
 
30859
 
-
 
30860
    public void read(TProtocol iprot) throws TException {
-
 
30861
      TField field;
-
 
30862
      iprot.readStructBegin();
-
 
30863
      while (true)
-
 
30864
      {
-
 
30865
        field = iprot.readFieldBegin();
-
 
30866
        if (field.type == TType.STOP) { 
-
 
30867
          break;
-
 
30868
        }
-
 
30869
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
30870
        if (fieldId == null) {
-
 
30871
          TProtocolUtil.skip(iprot, field.type);
-
 
30872
        } else {
-
 
30873
          switch (fieldId) {
-
 
30874
            case SUCCESS:
-
 
30875
              if (field.type == TType.STRUCT) {
-
 
30876
                this.success = new Widget();
-
 
30877
                this.success.read(iprot);
-
 
30878
              } else { 
-
 
30879
                TProtocolUtil.skip(iprot, field.type);
-
 
30880
              }
-
 
30881
              break;
-
 
30882
            case SCX:
-
 
30883
              if (field.type == TType.STRUCT) {
-
 
30884
                this.scx = new WidgetException();
-
 
30885
                this.scx.read(iprot);
-
 
30886
              } else { 
-
 
30887
                TProtocolUtil.skip(iprot, field.type);
-
 
30888
              }
-
 
30889
              break;
-
 
30890
          }
-
 
30891
          iprot.readFieldEnd();
-
 
30892
        }
-
 
30893
      }
-
 
30894
      iprot.readStructEnd();
-
 
30895
      validate();
-
 
30896
    }
-
 
30897
 
-
 
30898
    public void write(TProtocol oprot) throws TException {
-
 
30899
      oprot.writeStructBegin(STRUCT_DESC);
-
 
30900
 
-
 
30901
      if (this.isSetSuccess()) {
-
 
30902
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
30903
        this.success.write(oprot);
-
 
30904
        oprot.writeFieldEnd();
-
 
30905
      } else if (this.isSetScx()) {
-
 
30906
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
30907
        this.scx.write(oprot);
-
 
30908
        oprot.writeFieldEnd();
-
 
30909
      }
-
 
30910
      oprot.writeFieldStop();
-
 
30911
      oprot.writeStructEnd();
-
 
30912
    }
-
 
30913
 
-
 
30914
    @Override
-
 
30915
    public String toString() {
-
 
30916
      StringBuilder sb = new StringBuilder("getWidget_result(");
-
 
30917
      boolean first = true;
-
 
30918
 
-
 
30919
      sb.append("success:");
-
 
30920
      if (this.success == null) {
-
 
30921
        sb.append("null");
-
 
30922
      } else {
-
 
30923
        sb.append(this.success);
-
 
30924
      }
-
 
30925
      first = false;
-
 
30926
      if (!first) sb.append(", ");
-
 
30927
      sb.append("scx:");
-
 
30928
      if (this.scx == null) {
-
 
30929
        sb.append("null");
-
 
30930
      } else {
-
 
30931
        sb.append(this.scx);
-
 
30932
      }
-
 
30933
      first = false;
-
 
30934
      sb.append(")");
-
 
30935
      return sb.toString();
-
 
30936
    }
-
 
30937
 
-
 
30938
    public void validate() throws TException {
-
 
30939
      // check for required fields
-
 
30940
    }
-
 
30941
 
-
 
30942
  }
-
 
30943
 
-
 
30944
  public static class getMyResearch_args implements TBase<getMyResearch_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMyResearch_args>   {
-
 
30945
    private static final TStruct STRUCT_DESC = new TStruct("getMyResearch_args");
-
 
30946
 
-
 
30947
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)1);
-
 
30948
 
-
 
30949
    private long user_id;
-
 
30950
 
-
 
30951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
30952
    public enum _Fields implements TFieldIdEnum {
-
 
30953
      USER_ID((short)1, "user_id");
-
 
30954
 
-
 
30955
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
30956
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
30957
 
-
 
30958
      static {
-
 
30959
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
30960
          byId.put((int)field._thriftId, field);
-
 
30961
          byName.put(field.getFieldName(), field);
-
 
30962
        }
-
 
30963
      }
-
 
30964
 
-
 
30965
      /**
-
 
30966
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
30967
       */
-
 
30968
      public static _Fields findByThriftId(int fieldId) {
-
 
30969
        return byId.get(fieldId);
-
 
30970
      }
-
 
30971
 
-
 
30972
      /**
-
 
30973
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
30974
       * if it is not found.
-
 
30975
       */
-
 
30976
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
30977
        _Fields fields = findByThriftId(fieldId);
-
 
30978
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
30979
        return fields;
-
 
30980
      }
-
 
30981
 
-
 
30982
      /**
-
 
30983
       * Find the _Fields constant that matches name, or null if its not found.
-
 
30984
       */
-
 
30985
      public static _Fields findByName(String name) {
-
 
30986
        return byName.get(name);
-
 
30987
      }
-
 
30988
 
-
 
30989
      private final short _thriftId;
-
 
30990
      private final String _fieldName;
-
 
30991
 
-
 
30992
      _Fields(short thriftId, String fieldName) {
-
 
30993
        _thriftId = thriftId;
-
 
30994
        _fieldName = fieldName;
-
 
30995
      }
-
 
30996
 
-
 
30997
      public short getThriftFieldId() {
-
 
30998
        return _thriftId;
-
 
30999
      }
-
 
31000
 
-
 
31001
      public String getFieldName() {
-
 
31002
        return _fieldName;
-
 
31003
      }
-
 
31004
    }
-
 
31005
 
-
 
31006
    // isset id assignments
-
 
31007
    private static final int __USER_ID_ISSET_ID = 0;
-
 
31008
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
31009
 
-
 
31010
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
31011
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
-
 
31012
          new FieldValueMetaData(TType.I64)));
-
 
31013
    }});
-
 
31014
 
-
 
31015
    static {
-
 
31016
      FieldMetaData.addStructMetaDataMap(getMyResearch_args.class, metaDataMap);
-
 
31017
    }
-
 
31018
 
-
 
31019
    public getMyResearch_args() {
-
 
31020
    }
-
 
31021
 
-
 
31022
    public getMyResearch_args(
-
 
31023
      long user_id)
-
 
31024
    {
-
 
31025
      this();
-
 
31026
      this.user_id = user_id;
-
 
31027
      setUser_idIsSet(true);
-
 
31028
    }
-
 
31029
 
-
 
31030
    /**
-
 
31031
     * Performs a deep copy on <i>other</i>.
-
 
31032
     */
-
 
31033
    public getMyResearch_args(getMyResearch_args other) {
-
 
31034
      __isset_bit_vector.clear();
-
 
31035
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
31036
      this.user_id = other.user_id;
-
 
31037
    }
-
 
31038
 
-
 
31039
    public getMyResearch_args deepCopy() {
-
 
31040
      return new getMyResearch_args(this);
-
 
31041
    }
-
 
31042
 
-
 
31043
    @Deprecated
-
 
31044
    public getMyResearch_args clone() {
-
 
31045
      return new getMyResearch_args(this);
-
 
31046
    }
-
 
31047
 
-
 
31048
    public long getUser_id() {
-
 
31049
      return this.user_id;
-
 
31050
    }
-
 
31051
 
-
 
31052
    public getMyResearch_args setUser_id(long user_id) {
-
 
31053
      this.user_id = user_id;
-
 
31054
      setUser_idIsSet(true);
-
 
31055
      return this;
-
 
31056
    }
-
 
31057
 
-
 
31058
    public void unsetUser_id() {
-
 
31059
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
-
 
31060
    }
-
 
31061
 
-
 
31062
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
-
 
31063
    public boolean isSetUser_id() {
-
 
31064
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
-
 
31065
    }
-
 
31066
 
-
 
31067
    public void setUser_idIsSet(boolean value) {
-
 
31068
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
-
 
31069
    }
-
 
31070
 
-
 
31071
    public void setFieldValue(_Fields field, Object value) {
-
 
31072
      switch (field) {
-
 
31073
      case USER_ID:
-
 
31074
        if (value == null) {
-
 
31075
          unsetUser_id();
-
 
31076
        } else {
-
 
31077
          setUser_id((Long)value);
-
 
31078
        }
-
 
31079
        break;
-
 
31080
 
-
 
31081
      }
-
 
31082
    }
-
 
31083
 
-
 
31084
    public void setFieldValue(int fieldID, Object value) {
-
 
31085
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
31086
    }
-
 
31087
 
-
 
31088
    public Object getFieldValue(_Fields field) {
-
 
31089
      switch (field) {
-
 
31090
      case USER_ID:
-
 
31091
        return new Long(getUser_id());
-
 
31092
 
-
 
31093
      }
-
 
31094
      throw new IllegalStateException();
-
 
31095
    }
-
 
31096
 
-
 
31097
    public Object getFieldValue(int fieldId) {
-
 
31098
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
31099
    }
-
 
31100
 
-
 
31101
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
31102
    public boolean isSet(_Fields field) {
-
 
31103
      switch (field) {
-
 
31104
      case USER_ID:
-
 
31105
        return isSetUser_id();
-
 
31106
      }
-
 
31107
      throw new IllegalStateException();
-
 
31108
    }
-
 
31109
 
-
 
31110
    public boolean isSet(int fieldID) {
-
 
31111
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
31112
    }
-
 
31113
 
-
 
31114
    @Override
-
 
31115
    public boolean equals(Object that) {
-
 
31116
      if (that == null)
-
 
31117
        return false;
-
 
31118
      if (that instanceof getMyResearch_args)
-
 
31119
        return this.equals((getMyResearch_args)that);
-
 
31120
      return false;
-
 
31121
    }
-
 
31122
 
-
 
31123
    public boolean equals(getMyResearch_args that) {
-
 
31124
      if (that == null)
-
 
31125
        return false;
-
 
31126
 
-
 
31127
      boolean this_present_user_id = true;
-
 
31128
      boolean that_present_user_id = true;
-
 
31129
      if (this_present_user_id || that_present_user_id) {
-
 
31130
        if (!(this_present_user_id && that_present_user_id))
-
 
31131
          return false;
-
 
31132
        if (this.user_id != that.user_id)
-
 
31133
          return false;
-
 
31134
      }
-
 
31135
 
-
 
31136
      return true;
-
 
31137
    }
-
 
31138
 
-
 
31139
    @Override
-
 
31140
    public int hashCode() {
-
 
31141
      return 0;
-
 
31142
    }
-
 
31143
 
-
 
31144
    public int compareTo(getMyResearch_args other) {
-
 
31145
      if (!getClass().equals(other.getClass())) {
-
 
31146
        return getClass().getName().compareTo(other.getClass().getName());
-
 
31147
      }
-
 
31148
 
-
 
31149
      int lastComparison = 0;
-
 
31150
      getMyResearch_args typedOther = (getMyResearch_args)other;
-
 
31151
 
-
 
31152
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
-
 
31153
      if (lastComparison != 0) {
-
 
31154
        return lastComparison;
-
 
31155
      }
-
 
31156
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
-
 
31157
      if (lastComparison != 0) {
-
 
31158
        return lastComparison;
-
 
31159
      }
-
 
31160
      return 0;
-
 
31161
    }
-
 
31162
 
-
 
31163
    public void read(TProtocol iprot) throws TException {
-
 
31164
      TField field;
-
 
31165
      iprot.readStructBegin();
-
 
31166
      while (true)
-
 
31167
      {
-
 
31168
        field = iprot.readFieldBegin();
-
 
31169
        if (field.type == TType.STOP) { 
-
 
31170
          break;
-
 
31171
        }
-
 
31172
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
31173
        if (fieldId == null) {
-
 
31174
          TProtocolUtil.skip(iprot, field.type);
-
 
31175
        } else {
-
 
31176
          switch (fieldId) {
-
 
31177
            case USER_ID:
-
 
31178
              if (field.type == TType.I64) {
-
 
31179
                this.user_id = iprot.readI64();
-
 
31180
                setUser_idIsSet(true);
-
 
31181
              } else { 
-
 
31182
                TProtocolUtil.skip(iprot, field.type);
-
 
31183
              }
-
 
31184
              break;
-
 
31185
          }
-
 
31186
          iprot.readFieldEnd();
-
 
31187
        }
-
 
31188
      }
-
 
31189
      iprot.readStructEnd();
-
 
31190
      validate();
-
 
31191
    }
-
 
31192
 
-
 
31193
    public void write(TProtocol oprot) throws TException {
-
 
31194
      validate();
-
 
31195
 
-
 
31196
      oprot.writeStructBegin(STRUCT_DESC);
-
 
31197
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
31198
      oprot.writeI64(this.user_id);
-
 
31199
      oprot.writeFieldEnd();
-
 
31200
      oprot.writeFieldStop();
-
 
31201
      oprot.writeStructEnd();
-
 
31202
    }
-
 
31203
 
-
 
31204
    @Override
-
 
31205
    public String toString() {
-
 
31206
      StringBuilder sb = new StringBuilder("getMyResearch_args(");
-
 
31207
      boolean first = true;
-
 
31208
 
-
 
31209
      sb.append("user_id:");
-
 
31210
      sb.append(this.user_id);
-
 
31211
      first = false;
-
 
31212
      sb.append(")");
26773
      sb.append(")");
31213
      return sb.toString();
26774
      return sb.toString();
31214
    }
26775
    }
31215
 
26776
 
31216
    public void validate() throws TException {
26777
    public void validate() throws TException {
Line 31585... Line 27146...
31585
  }
27146
  }
31586
 
27147
 
31587
  public static class updateMyResearch_args implements TBase<updateMyResearch_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateMyResearch_args>   {
27148
  public static class updateMyResearch_args implements TBase<updateMyResearch_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateMyResearch_args>   {
31588
    private static final TStruct STRUCT_DESC = new TStruct("updateMyResearch_args");
27149
    private static final TStruct STRUCT_DESC = new TStruct("updateMyResearch_args");
31589
 
27150
 
31590
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)1);
27151
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
31591
    private static final TField ITEM_ID_FIELD_DESC = new TField("item_id", TType.I64, (short)2);
27152
    private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)2);
31592
 
27153
 
31593
    private long user_id;
27154
    private long userId;
31594
    private long item_id;
27155
    private long itemId;
31595
 
27156
 
31596
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27157
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31597
    public enum _Fields implements TFieldIdEnum {
27158
    public enum _Fields implements TFieldIdEnum {
31598
      USER_ID((short)1, "user_id"),
27159
      USER_ID((short)1, "userId"),
31599
      ITEM_ID((short)2, "item_id");
27160
      ITEM_ID((short)2, "itemId");
31600
 
27161
 
31601
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
27162
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
31602
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27163
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31603
 
27164
 
31604
      static {
27165
      static {
Line 31648... Line 27209...
31648
        return _fieldName;
27209
        return _fieldName;
31649
      }
27210
      }
31650
    }
27211
    }
31651
 
27212
 
31652
    // isset id assignments
27213
    // isset id assignments
31653
    private static final int __USER_ID_ISSET_ID = 0;
27214
    private static final int __USERID_ISSET_ID = 0;
31654
    private static final int __ITEM_ID_ISSET_ID = 1;
27215
    private static final int __ITEMID_ISSET_ID = 1;
31655
    private BitSet __isset_bit_vector = new BitSet(2);
27216
    private BitSet __isset_bit_vector = new BitSet(2);
31656
 
27217
 
31657
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
27218
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
31658
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
27219
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
31659
          new FieldValueMetaData(TType.I64)));
27220
          new FieldValueMetaData(TType.I64)));
31660
      put(_Fields.ITEM_ID, new FieldMetaData("item_id", TFieldRequirementType.DEFAULT, 
27221
      put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
31661
          new FieldValueMetaData(TType.I64)));
27222
          new FieldValueMetaData(TType.I64)));
31662
    }});
27223
    }});
31663
 
27224
 
31664
    static {
27225
    static {
31665
      FieldMetaData.addStructMetaDataMap(updateMyResearch_args.class, metaDataMap);
27226
      FieldMetaData.addStructMetaDataMap(updateMyResearch_args.class, metaDataMap);
Line 31667... Line 27228...
31667
 
27228
 
31668
    public updateMyResearch_args() {
27229
    public updateMyResearch_args() {
31669
    }
27230
    }
31670
 
27231
 
31671
    public updateMyResearch_args(
27232
    public updateMyResearch_args(
31672
      long user_id,
27233
      long userId,
31673
      long item_id)
27234
      long itemId)
31674
    {
27235
    {
31675
      this();
27236
      this();
31676
      this.user_id = user_id;
27237
      this.userId = userId;
31677
      setUser_idIsSet(true);
27238
      setUserIdIsSet(true);
31678
      this.item_id = item_id;
27239
      this.itemId = itemId;
31679
      setItem_idIsSet(true);
27240
      setItemIdIsSet(true);
31680
    }
27241
    }
31681
 
27242
 
31682
    /**
27243
    /**
31683
     * Performs a deep copy on <i>other</i>.
27244
     * Performs a deep copy on <i>other</i>.
31684
     */
27245
     */
31685
    public updateMyResearch_args(updateMyResearch_args other) {
27246
    public updateMyResearch_args(updateMyResearch_args other) {
31686
      __isset_bit_vector.clear();
27247
      __isset_bit_vector.clear();
31687
      __isset_bit_vector.or(other.__isset_bit_vector);
27248
      __isset_bit_vector.or(other.__isset_bit_vector);
31688
      this.user_id = other.user_id;
27249
      this.userId = other.userId;
31689
      this.item_id = other.item_id;
27250
      this.itemId = other.itemId;
31690
    }
27251
    }
31691
 
27252
 
31692
    public updateMyResearch_args deepCopy() {
27253
    public updateMyResearch_args deepCopy() {
31693
      return new updateMyResearch_args(this);
27254
      return new updateMyResearch_args(this);
31694
    }
27255
    }
Line 31696... Line 27257...
31696
    @Deprecated
27257
    @Deprecated
31697
    public updateMyResearch_args clone() {
27258
    public updateMyResearch_args clone() {
31698
      return new updateMyResearch_args(this);
27259
      return new updateMyResearch_args(this);
31699
    }
27260
    }
31700
 
27261
 
31701
    public long getUser_id() {
27262
    public long getUserId() {
31702
      return this.user_id;
27263
      return this.userId;
31703
    }
27264
    }
31704
 
27265
 
31705
    public updateMyResearch_args setUser_id(long user_id) {
27266
    public updateMyResearch_args setUserId(long userId) {
31706
      this.user_id = user_id;
27267
      this.userId = userId;
31707
      setUser_idIsSet(true);
27268
      setUserIdIsSet(true);
31708
      return this;
27269
      return this;
31709
    }
27270
    }
31710
 
27271
 
31711
    public void unsetUser_id() {
27272
    public void unsetUserId() {
31712
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
27273
      __isset_bit_vector.clear(__USERID_ISSET_ID);
31713
    }
27274
    }
31714
 
27275
 
31715
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
27276
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
31716
    public boolean isSetUser_id() {
27277
    public boolean isSetUserId() {
31717
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
27278
      return __isset_bit_vector.get(__USERID_ISSET_ID);
31718
    }
27279
    }
31719
 
27280
 
31720
    public void setUser_idIsSet(boolean value) {
27281
    public void setUserIdIsSet(boolean value) {
31721
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
27282
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
31722
    }
27283
    }
31723
 
27284
 
31724
    public long getItem_id() {
27285
    public long getItemId() {
31725
      return this.item_id;
27286
      return this.itemId;
31726
    }
27287
    }
31727
 
27288
 
31728
    public updateMyResearch_args setItem_id(long item_id) {
27289
    public updateMyResearch_args setItemId(long itemId) {
31729
      this.item_id = item_id;
27290
      this.itemId = itemId;
31730
      setItem_idIsSet(true);
27291
      setItemIdIsSet(true);
31731
      return this;
27292
      return this;
31732
    }
27293
    }
31733
 
27294
 
31734
    public void unsetItem_id() {
27295
    public void unsetItemId() {
31735
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
27296
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
31736
    }
27297
    }
31737
 
27298
 
31738
    /** Returns true if field item_id is set (has been asigned a value) and false otherwise */
27299
    /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
31739
    public boolean isSetItem_id() {
27300
    public boolean isSetItemId() {
31740
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
27301
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
31741
    }
27302
    }
31742
 
27303
 
31743
    public void setItem_idIsSet(boolean value) {
27304
    public void setItemIdIsSet(boolean value) {
31744
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
27305
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
31745
    }
27306
    }
31746
 
27307
 
31747
    public void setFieldValue(_Fields field, Object value) {
27308
    public void setFieldValue(_Fields field, Object value) {
31748
      switch (field) {
27309
      switch (field) {
31749
      case USER_ID:
27310
      case USER_ID:
31750
        if (value == null) {
27311
        if (value == null) {
31751
          unsetUser_id();
27312
          unsetUserId();
31752
        } else {
27313
        } else {
31753
          setUser_id((Long)value);
27314
          setUserId((Long)value);
31754
        }
27315
        }
31755
        break;
27316
        break;
31756
 
27317
 
31757
      case ITEM_ID:
27318
      case ITEM_ID:
31758
        if (value == null) {
27319
        if (value == null) {
31759
          unsetItem_id();
27320
          unsetItemId();
31760
        } else {
27321
        } else {
31761
          setItem_id((Long)value);
27322
          setItemId((Long)value);
31762
        }
27323
        }
31763
        break;
27324
        break;
31764
 
27325
 
31765
      }
27326
      }
31766
    }
27327
    }
Line 31770... Line 27331...
31770
    }
27331
    }
31771
 
27332
 
31772
    public Object getFieldValue(_Fields field) {
27333
    public Object getFieldValue(_Fields field) {
31773
      switch (field) {
27334
      switch (field) {
31774
      case USER_ID:
27335
      case USER_ID:
31775
        return new Long(getUser_id());
27336
        return new Long(getUserId());
31776
 
27337
 
31777
      case ITEM_ID:
27338
      case ITEM_ID:
31778
        return new Long(getItem_id());
27339
        return new Long(getItemId());
31779
 
27340
 
31780
      }
27341
      }
31781
      throw new IllegalStateException();
27342
      throw new IllegalStateException();
31782
    }
27343
    }
31783
 
27344
 
Line 31787... Line 27348...
31787
 
27348
 
31788
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
27349
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
31789
    public boolean isSet(_Fields field) {
27350
    public boolean isSet(_Fields field) {
31790
      switch (field) {
27351
      switch (field) {
31791
      case USER_ID:
27352
      case USER_ID:
31792
        return isSetUser_id();
27353
        return isSetUserId();
31793
      case ITEM_ID:
27354
      case ITEM_ID:
31794
        return isSetItem_id();
27355
        return isSetItemId();
31795
      }
27356
      }
31796
      throw new IllegalStateException();
27357
      throw new IllegalStateException();
31797
    }
27358
    }
31798
 
27359
 
31799
    public boolean isSet(int fieldID) {
27360
    public boolean isSet(int fieldID) {
Line 31811... Line 27372...
31811
 
27372
 
31812
    public boolean equals(updateMyResearch_args that) {
27373
    public boolean equals(updateMyResearch_args that) {
31813
      if (that == null)
27374
      if (that == null)
31814
        return false;
27375
        return false;
31815
 
27376
 
31816
      boolean this_present_user_id = true;
27377
      boolean this_present_userId = true;
31817
      boolean that_present_user_id = true;
27378
      boolean that_present_userId = true;
31818
      if (this_present_user_id || that_present_user_id) {
27379
      if (this_present_userId || that_present_userId) {
31819
        if (!(this_present_user_id && that_present_user_id))
27380
        if (!(this_present_userId && that_present_userId))
31820
          return false;
27381
          return false;
31821
        if (this.user_id != that.user_id)
27382
        if (this.userId != that.userId)
31822
          return false;
27383
          return false;
31823
      }
27384
      }
31824
 
27385
 
31825
      boolean this_present_item_id = true;
27386
      boolean this_present_itemId = true;
31826
      boolean that_present_item_id = true;
27387
      boolean that_present_itemId = true;
31827
      if (this_present_item_id || that_present_item_id) {
27388
      if (this_present_itemId || that_present_itemId) {
31828
        if (!(this_present_item_id && that_present_item_id))
27389
        if (!(this_present_itemId && that_present_itemId))
31829
          return false;
27390
          return false;
31830
        if (this.item_id != that.item_id)
27391
        if (this.itemId != that.itemId)
31831
          return false;
27392
          return false;
31832
      }
27393
      }
31833
 
27394
 
31834
      return true;
27395
      return true;
31835
    }
27396
    }
Line 31845... Line 27406...
31845
      }
27406
      }
31846
 
27407
 
31847
      int lastComparison = 0;
27408
      int lastComparison = 0;
31848
      updateMyResearch_args typedOther = (updateMyResearch_args)other;
27409
      updateMyResearch_args typedOther = (updateMyResearch_args)other;
31849
 
27410
 
31850
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
27411
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
31851
      if (lastComparison != 0) {
27412
      if (lastComparison != 0) {
31852
        return lastComparison;
27413
        return lastComparison;
31853
      }
27414
      }
31854
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
27415
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
31855
      if (lastComparison != 0) {
27416
      if (lastComparison != 0) {
31856
        return lastComparison;
27417
        return lastComparison;
31857
      }
27418
      }
31858
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(isSetItem_id());
27419
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
31859
      if (lastComparison != 0) {
27420
      if (lastComparison != 0) {
31860
        return lastComparison;
27421
        return lastComparison;
31861
      }
27422
      }
31862
      lastComparison = TBaseHelper.compareTo(item_id, typedOther.item_id);
27423
      lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
31863
      if (lastComparison != 0) {
27424
      if (lastComparison != 0) {
31864
        return lastComparison;
27425
        return lastComparison;
31865
      }
27426
      }
31866
      return 0;
27427
      return 0;
31867
    }
27428
    }
Line 31880... Line 27441...
31880
          TProtocolUtil.skip(iprot, field.type);
27441
          TProtocolUtil.skip(iprot, field.type);
31881
        } else {
27442
        } else {
31882
          switch (fieldId) {
27443
          switch (fieldId) {
31883
            case USER_ID:
27444
            case USER_ID:
31884
              if (field.type == TType.I64) {
27445
              if (field.type == TType.I64) {
31885
                this.user_id = iprot.readI64();
27446
                this.userId = iprot.readI64();
31886
                setUser_idIsSet(true);
27447
                setUserIdIsSet(true);
31887
              } else { 
27448
              } else { 
31888
                TProtocolUtil.skip(iprot, field.type);
27449
                TProtocolUtil.skip(iprot, field.type);
31889
              }
27450
              }
31890
              break;
27451
              break;
31891
            case ITEM_ID:
27452
            case ITEM_ID:
31892
              if (field.type == TType.I64) {
27453
              if (field.type == TType.I64) {
31893
                this.item_id = iprot.readI64();
27454
                this.itemId = iprot.readI64();
31894
                setItem_idIsSet(true);
27455
                setItemIdIsSet(true);
31895
              } else { 
27456
              } else { 
31896
                TProtocolUtil.skip(iprot, field.type);
27457
                TProtocolUtil.skip(iprot, field.type);
31897
              }
27458
              }
31898
              break;
27459
              break;
31899
          }
27460
          }
Line 31907... Line 27468...
31907
    public void write(TProtocol oprot) throws TException {
27468
    public void write(TProtocol oprot) throws TException {
31908
      validate();
27469
      validate();
31909
 
27470
 
31910
      oprot.writeStructBegin(STRUCT_DESC);
27471
      oprot.writeStructBegin(STRUCT_DESC);
31911
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
27472
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
31912
      oprot.writeI64(this.user_id);
27473
      oprot.writeI64(this.userId);
31913
      oprot.writeFieldEnd();
27474
      oprot.writeFieldEnd();
31914
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
27475
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
31915
      oprot.writeI64(this.item_id);
27476
      oprot.writeI64(this.itemId);
31916
      oprot.writeFieldEnd();
27477
      oprot.writeFieldEnd();
31917
      oprot.writeFieldStop();
27478
      oprot.writeFieldStop();
31918
      oprot.writeStructEnd();
27479
      oprot.writeStructEnd();
31919
    }
27480
    }
31920
 
27481
 
31921
    @Override
27482
    @Override
31922
    public String toString() {
27483
    public String toString() {
31923
      StringBuilder sb = new StringBuilder("updateMyResearch_args(");
27484
      StringBuilder sb = new StringBuilder("updateMyResearch_args(");
31924
      boolean first = true;
27485
      boolean first = true;
31925
 
27486
 
31926
      sb.append("user_id:");
27487
      sb.append("userId:");
31927
      sb.append(this.user_id);
27488
      sb.append(this.userId);
31928
      first = false;
27489
      first = false;
31929
      if (!first) sb.append(", ");
27490
      if (!first) sb.append(", ");
31930
      sb.append("item_id:");
27491
      sb.append("itemId:");
31931
      sb.append(this.item_id);
27492
      sb.append(this.itemId);
31932
      first = false;
27493
      first = false;
31933
      sb.append(")");
27494
      sb.append(")");
31934
      return sb.toString();
27495
      return sb.toString();
31935
    }
27496
    }
31936
 
27497
 
Line 32304... Line 27865...
32304
  }
27865
  }
32305
 
27866
 
32306
  public static class deleteItemFromMyResearch_args implements TBase<deleteItemFromMyResearch_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteItemFromMyResearch_args>   {
27867
  public static class deleteItemFromMyResearch_args implements TBase<deleteItemFromMyResearch_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteItemFromMyResearch_args>   {
32307
    private static final TStruct STRUCT_DESC = new TStruct("deleteItemFromMyResearch_args");
27868
    private static final TStruct STRUCT_DESC = new TStruct("deleteItemFromMyResearch_args");
32308
 
27869
 
32309
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)1);
27870
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
32310
    private static final TField ITEM_ID_FIELD_DESC = new TField("item_id", TType.I64, (short)2);
27871
    private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)2);
32311
 
27872
 
32312
    private long user_id;
27873
    private long userId;
32313
    private long item_id;
27874
    private long itemId;
32314
 
27875
 
32315
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27876
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32316
    public enum _Fields implements TFieldIdEnum {
27877
    public enum _Fields implements TFieldIdEnum {
32317
      USER_ID((short)1, "user_id"),
27878
      USER_ID((short)1, "userId"),
32318
      ITEM_ID((short)2, "item_id");
27879
      ITEM_ID((short)2, "itemId");
32319
 
27880
 
32320
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
27881
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
32321
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27882
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32322
 
27883
 
32323
      static {
27884
      static {
Line 32367... Line 27928...
32367
        return _fieldName;
27928
        return _fieldName;
32368
      }
27929
      }
32369
    }
27930
    }
32370
 
27931
 
32371
    // isset id assignments
27932
    // isset id assignments
32372
    private static final int __USER_ID_ISSET_ID = 0;
27933
    private static final int __USERID_ISSET_ID = 0;
32373
    private static final int __ITEM_ID_ISSET_ID = 1;
27934
    private static final int __ITEMID_ISSET_ID = 1;
32374
    private BitSet __isset_bit_vector = new BitSet(2);
27935
    private BitSet __isset_bit_vector = new BitSet(2);
32375
 
27936
 
32376
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
27937
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
32377
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
27938
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
32378
          new FieldValueMetaData(TType.I64)));
27939
          new FieldValueMetaData(TType.I64)));
32379
      put(_Fields.ITEM_ID, new FieldMetaData("item_id", TFieldRequirementType.DEFAULT, 
27940
      put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
32380
          new FieldValueMetaData(TType.I64)));
27941
          new FieldValueMetaData(TType.I64)));
32381
    }});
27942
    }});
32382
 
27943
 
32383
    static {
27944
    static {
32384
      FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_args.class, metaDataMap);
27945
      FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_args.class, metaDataMap);
Line 32386... Line 27947...
32386
 
27947
 
32387
    public deleteItemFromMyResearch_args() {
27948
    public deleteItemFromMyResearch_args() {
32388
    }
27949
    }
32389
 
27950
 
32390
    public deleteItemFromMyResearch_args(
27951
    public deleteItemFromMyResearch_args(
32391
      long user_id,
27952
      long userId,
32392
      long item_id)
27953
      long itemId)
32393
    {
27954
    {
32394
      this();
27955
      this();
32395
      this.user_id = user_id;
27956
      this.userId = userId;
32396
      setUser_idIsSet(true);
27957
      setUserIdIsSet(true);
32397
      this.item_id = item_id;
27958
      this.itemId = itemId;
32398
      setItem_idIsSet(true);
27959
      setItemIdIsSet(true);
32399
    }
27960
    }
32400
 
27961
 
32401
    /**
27962
    /**
32402
     * Performs a deep copy on <i>other</i>.
27963
     * Performs a deep copy on <i>other</i>.
32403
     */
27964
     */
32404
    public deleteItemFromMyResearch_args(deleteItemFromMyResearch_args other) {
27965
    public deleteItemFromMyResearch_args(deleteItemFromMyResearch_args other) {
32405
      __isset_bit_vector.clear();
27966
      __isset_bit_vector.clear();
32406
      __isset_bit_vector.or(other.__isset_bit_vector);
27967
      __isset_bit_vector.or(other.__isset_bit_vector);
32407
      this.user_id = other.user_id;
27968
      this.userId = other.userId;
32408
      this.item_id = other.item_id;
27969
      this.itemId = other.itemId;
32409
    }
27970
    }
32410
 
27971
 
32411
    public deleteItemFromMyResearch_args deepCopy() {
27972
    public deleteItemFromMyResearch_args deepCopy() {
32412
      return new deleteItemFromMyResearch_args(this);
27973
      return new deleteItemFromMyResearch_args(this);
32413
    }
27974
    }
Line 32415... Line 27976...
32415
    @Deprecated
27976
    @Deprecated
32416
    public deleteItemFromMyResearch_args clone() {
27977
    public deleteItemFromMyResearch_args clone() {
32417
      return new deleteItemFromMyResearch_args(this);
27978
      return new deleteItemFromMyResearch_args(this);
32418
    }
27979
    }
32419
 
27980
 
32420
    public long getUser_id() {
27981
    public long getUserId() {
32421
      return this.user_id;
27982
      return this.userId;
32422
    }
27983
    }
32423
 
27984
 
32424
    public deleteItemFromMyResearch_args setUser_id(long user_id) {
27985
    public deleteItemFromMyResearch_args setUserId(long userId) {
32425
      this.user_id = user_id;
27986
      this.userId = userId;
32426
      setUser_idIsSet(true);
27987
      setUserIdIsSet(true);
32427
      return this;
27988
      return this;
32428
    }
27989
    }
32429
 
27990
 
32430
    public void unsetUser_id() {
27991
    public void unsetUserId() {
32431
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
27992
      __isset_bit_vector.clear(__USERID_ISSET_ID);
32432
    }
27993
    }
32433
 
27994
 
32434
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
27995
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
32435
    public boolean isSetUser_id() {
27996
    public boolean isSetUserId() {
32436
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
27997
      return __isset_bit_vector.get(__USERID_ISSET_ID);
32437
    }
27998
    }
32438
 
27999
 
32439
    public void setUser_idIsSet(boolean value) {
28000
    public void setUserIdIsSet(boolean value) {
32440
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
28001
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
32441
    }
28002
    }
32442
 
28003
 
32443
    public long getItem_id() {
28004
    public long getItemId() {
32444
      return this.item_id;
28005
      return this.itemId;
32445
    }
28006
    }
32446
 
28007
 
32447
    public deleteItemFromMyResearch_args setItem_id(long item_id) {
28008
    public deleteItemFromMyResearch_args setItemId(long itemId) {
32448
      this.item_id = item_id;
28009
      this.itemId = itemId;
32449
      setItem_idIsSet(true);
28010
      setItemIdIsSet(true);
32450
      return this;
28011
      return this;
32451
    }
28012
    }
32452
 
28013
 
32453
    public void unsetItem_id() {
28014
    public void unsetItemId() {
32454
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
28015
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
32455
    }
28016
    }
32456
 
28017
 
32457
    /** Returns true if field item_id is set (has been asigned a value) and false otherwise */
28018
    /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
32458
    public boolean isSetItem_id() {
28019
    public boolean isSetItemId() {
32459
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
28020
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
32460
    }
28021
    }
32461
 
28022
 
32462
    public void setItem_idIsSet(boolean value) {
28023
    public void setItemIdIsSet(boolean value) {
32463
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
28024
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
32464
    }
28025
    }
32465
 
28026
 
32466
    public void setFieldValue(_Fields field, Object value) {
28027
    public void setFieldValue(_Fields field, Object value) {
32467
      switch (field) {
28028
      switch (field) {
32468
      case USER_ID:
28029
      case USER_ID:
32469
        if (value == null) {
28030
        if (value == null) {
32470
          unsetUser_id();
28031
          unsetUserId();
32471
        } else {
28032
        } else {
32472
          setUser_id((Long)value);
28033
          setUserId((Long)value);
32473
        }
28034
        }
32474
        break;
28035
        break;
32475
 
28036
 
32476
      case ITEM_ID:
28037
      case ITEM_ID:
32477
        if (value == null) {
28038
        if (value == null) {
32478
          unsetItem_id();
28039
          unsetItemId();
32479
        } else {
28040
        } else {
32480
          setItem_id((Long)value);
28041
          setItemId((Long)value);
32481
        }
28042
        }
32482
        break;
28043
        break;
32483
 
28044
 
32484
      }
28045
      }
32485
    }
28046
    }
Line 32489... Line 28050...
32489
    }
28050
    }
32490
 
28051
 
32491
    public Object getFieldValue(_Fields field) {
28052
    public Object getFieldValue(_Fields field) {
32492
      switch (field) {
28053
      switch (field) {
32493
      case USER_ID:
28054
      case USER_ID:
32494
        return new Long(getUser_id());
28055
        return new Long(getUserId());
32495
 
28056
 
32496
      case ITEM_ID:
28057
      case ITEM_ID:
32497
        return new Long(getItem_id());
28058
        return new Long(getItemId());
32498
 
28059
 
32499
      }
28060
      }
32500
      throw new IllegalStateException();
28061
      throw new IllegalStateException();
32501
    }
28062
    }
32502
 
28063
 
Line 32506... Line 28067...
32506
 
28067
 
32507
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
28068
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
32508
    public boolean isSet(_Fields field) {
28069
    public boolean isSet(_Fields field) {
32509
      switch (field) {
28070
      switch (field) {
32510
      case USER_ID:
28071
      case USER_ID:
32511
        return isSetUser_id();
28072
        return isSetUserId();
32512
      case ITEM_ID:
28073
      case ITEM_ID:
32513
        return isSetItem_id();
28074
        return isSetItemId();
32514
      }
28075
      }
32515
      throw new IllegalStateException();
28076
      throw new IllegalStateException();
32516
    }
28077
    }
32517
 
28078
 
32518
    public boolean isSet(int fieldID) {
28079
    public boolean isSet(int fieldID) {
Line 32530... Line 28091...
32530
 
28091
 
32531
    public boolean equals(deleteItemFromMyResearch_args that) {
28092
    public boolean equals(deleteItemFromMyResearch_args that) {
32532
      if (that == null)
28093
      if (that == null)
32533
        return false;
28094
        return false;
32534
 
28095
 
32535
      boolean this_present_user_id = true;
28096
      boolean this_present_userId = true;
32536
      boolean that_present_user_id = true;
28097
      boolean that_present_userId = true;
32537
      if (this_present_user_id || that_present_user_id) {
28098
      if (this_present_userId || that_present_userId) {
32538
        if (!(this_present_user_id && that_present_user_id))
28099
        if (!(this_present_userId && that_present_userId))
32539
          return false;
28100
          return false;
32540
        if (this.user_id != that.user_id)
28101
        if (this.userId != that.userId)
32541
          return false;
28102
          return false;
32542
      }
28103
      }
32543
 
28104
 
32544
      boolean this_present_item_id = true;
28105
      boolean this_present_itemId = true;
32545
      boolean that_present_item_id = true;
28106
      boolean that_present_itemId = true;
32546
      if (this_present_item_id || that_present_item_id) {
28107
      if (this_present_itemId || that_present_itemId) {
32547
        if (!(this_present_item_id && that_present_item_id))
28108
        if (!(this_present_itemId && that_present_itemId))
32548
          return false;
28109
          return false;
32549
        if (this.item_id != that.item_id)
28110
        if (this.itemId != that.itemId)
32550
          return false;
28111
          return false;
32551
      }
28112
      }
32552
 
28113
 
32553
      return true;
28114
      return true;
32554
    }
28115
    }
Line 32564... Line 28125...
32564
      }
28125
      }
32565
 
28126
 
32566
      int lastComparison = 0;
28127
      int lastComparison = 0;
32567
      deleteItemFromMyResearch_args typedOther = (deleteItemFromMyResearch_args)other;
28128
      deleteItemFromMyResearch_args typedOther = (deleteItemFromMyResearch_args)other;
32568
 
28129
 
32569
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
28130
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
32570
      if (lastComparison != 0) {
28131
      if (lastComparison != 0) {
32571
        return lastComparison;
28132
        return lastComparison;
32572
      }
28133
      }
32573
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
28134
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
32574
      if (lastComparison != 0) {
28135
      if (lastComparison != 0) {
32575
        return lastComparison;
28136
        return lastComparison;
32576
      }
28137
      }
32577
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(isSetItem_id());
28138
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
32578
      if (lastComparison != 0) {
28139
      if (lastComparison != 0) {
32579
        return lastComparison;
28140
        return lastComparison;
32580
      }
28141
      }
32581
      lastComparison = TBaseHelper.compareTo(item_id, typedOther.item_id);
28142
      lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
32582
      if (lastComparison != 0) {
28143
      if (lastComparison != 0) {
32583
        return lastComparison;
28144
        return lastComparison;
32584
      }
28145
      }
32585
      return 0;
28146
      return 0;
32586
    }
28147
    }
Line 32599... Line 28160...
32599
          TProtocolUtil.skip(iprot, field.type);
28160
          TProtocolUtil.skip(iprot, field.type);
32600
        } else {
28161
        } else {
32601
          switch (fieldId) {
28162
          switch (fieldId) {
32602
            case USER_ID:
28163
            case USER_ID:
32603
              if (field.type == TType.I64) {
28164
              if (field.type == TType.I64) {
32604
                this.user_id = iprot.readI64();
28165
                this.userId = iprot.readI64();
32605
                setUser_idIsSet(true);
28166
                setUserIdIsSet(true);
32606
              } else { 
28167
              } else { 
32607
                TProtocolUtil.skip(iprot, field.type);
28168
                TProtocolUtil.skip(iprot, field.type);
32608
              }
28169
              }
32609
              break;
28170
              break;
32610
            case ITEM_ID:
28171
            case ITEM_ID:
32611
              if (field.type == TType.I64) {
28172
              if (field.type == TType.I64) {
32612
                this.item_id = iprot.readI64();
28173
                this.itemId = iprot.readI64();
32613
                setItem_idIsSet(true);
28174
                setItemIdIsSet(true);
32614
              } else { 
28175
              } else { 
32615
                TProtocolUtil.skip(iprot, field.type);
28176
                TProtocolUtil.skip(iprot, field.type);
32616
              }
28177
              }
32617
              break;
28178
              break;
32618
          }
28179
          }
Line 32626... Line 28187...
32626
    public void write(TProtocol oprot) throws TException {
28187
    public void write(TProtocol oprot) throws TException {
32627
      validate();
28188
      validate();
32628
 
28189
 
32629
      oprot.writeStructBegin(STRUCT_DESC);
28190
      oprot.writeStructBegin(STRUCT_DESC);
32630
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
28191
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
32631
      oprot.writeI64(this.user_id);
28192
      oprot.writeI64(this.userId);
32632
      oprot.writeFieldEnd();
28193
      oprot.writeFieldEnd();
32633
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
28194
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
32634
      oprot.writeI64(this.item_id);
28195
      oprot.writeI64(this.itemId);
32635
      oprot.writeFieldEnd();
28196
      oprot.writeFieldEnd();
32636
      oprot.writeFieldStop();
28197
      oprot.writeFieldStop();
32637
      oprot.writeStructEnd();
28198
      oprot.writeStructEnd();
32638
    }
28199
    }
32639
 
28200
 
32640
    @Override
28201
    @Override
32641
    public String toString() {
28202
    public String toString() {
32642
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_args(");
28203
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_args(");
32643
      boolean first = true;
28204
      boolean first = true;
32644
 
28205
 
32645
      sb.append("user_id:");
28206
      sb.append("userId:");
32646
      sb.append(this.user_id);
28207
      sb.append(this.userId);
32647
      first = false;
28208
      first = false;
32648
      if (!first) sb.append(", ");
28209
      if (!first) sb.append(", ");
32649
      sb.append("item_id:");
28210
      sb.append("itemId:");
32650
      sb.append(this.item_id);
28211
      sb.append(this.itemId);
32651
      first = false;
28212
      first = false;
32652
      sb.append(")");
28213
      sb.append(")");
32653
      return sb.toString();
28214
      return sb.toString();
32654
    }
28215
    }
32655
 
28216
 
Line 32938... Line 28499...
32938
      // check for required fields
28499
      // check for required fields
32939
    }
28500
    }
32940
 
28501
 
32941
  }
28502
  }
32942
 
28503
 
32943
  public static class updateRatings_args implements TBase<updateRatings_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateRatings_args>   {
28504
  public static class updateBrowseHistory_args implements TBase<updateBrowseHistory_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateBrowseHistory_args>   {
32944
    private static final TStruct STRUCT_DESC = new TStruct("updateRatings_args");
28505
    private static final TStruct STRUCT_DESC = new TStruct("updateBrowseHistory_args");
32945
 
28506
 
32946
    private static final TField ITEM_ID_FIELD_DESC = new TField("item_id", TType.I64, (short)1);
28507
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
32947
    private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)2);
-
 
32948
    private static final TField RATING_FIELD_DESC = new TField("rating", TType.DOUBLE, (short)3);
-
 
32949
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)4);
28508
    private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)2);
32950
 
28509
 
32951
    private long item_id;
28510
    private long userId;
32952
    private RatingType type;
-
 
32953
    private double rating;
-
 
32954
    private long user_id;
28511
    private long itemId;
32955
 
28512
 
32956
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28513
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32957
    public enum _Fields implements TFieldIdEnum {
28514
    public enum _Fields implements TFieldIdEnum {
32958
      ITEM_ID((short)1, "item_id"),
28515
      USER_ID((short)1, "userId"),
32959
      /**
-
 
32960
       * 
-
 
32961
       * @see RatingType
-
 
32962
       */
-
 
32963
      TYPE((short)2, "type"),
-
 
32964
      RATING((short)3, "rating"),
-
 
32965
      USER_ID((short)4, "user_id");
28516
      ITEM_ID((short)2, "itemId");
32966
 
28517
 
32967
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
28518
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
32968
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32969
 
28520
 
32970
      static {
28521
      static {
Line 33014... Line 28565...
33014
        return _fieldName;
28565
        return _fieldName;
33015
      }
28566
      }
33016
    }
28567
    }
33017
 
28568
 
33018
    // isset id assignments
28569
    // isset id assignments
33019
    private static final int __ITEM_ID_ISSET_ID = 0;
28570
    private static final int __USERID_ISSET_ID = 0;
33020
    private static final int __RATING_ISSET_ID = 1;
-
 
33021
    private static final int __USER_ID_ISSET_ID = 2;
28571
    private static final int __ITEMID_ISSET_ID = 1;
33022
    private BitSet __isset_bit_vector = new BitSet(3);
28572
    private BitSet __isset_bit_vector = new BitSet(2);
33023
 
28573
 
33024
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
28574
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
33025
      put(_Fields.ITEM_ID, new FieldMetaData("item_id", TFieldRequirementType.DEFAULT, 
28575
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
33026
          new FieldValueMetaData(TType.I64)));
28576
          new FieldValueMetaData(TType.I64)));
33027
      put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
-
 
33028
          new EnumMetaData(TType.ENUM, RatingType.class)));
-
 
33029
      put(_Fields.RATING, new FieldMetaData("rating", TFieldRequirementType.DEFAULT, 
-
 
33030
          new FieldValueMetaData(TType.DOUBLE)));
-
 
33031
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
28577
      put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
33032
          new FieldValueMetaData(TType.I64)));
28578
          new FieldValueMetaData(TType.I64)));
33033
    }});
28579
    }});
33034
 
28580
 
33035
    static {
28581
    static {
33036
      FieldMetaData.addStructMetaDataMap(updateRatings_args.class, metaDataMap);
28582
      FieldMetaData.addStructMetaDataMap(updateBrowseHistory_args.class, metaDataMap);
33037
    }
28583
    }
33038
 
28584
 
33039
    public updateRatings_args() {
28585
    public updateBrowseHistory_args() {
33040
    }
28586
    }
33041
 
28587
 
33042
    public updateRatings_args(
28588
    public updateBrowseHistory_args(
33043
      long item_id,
28589
      long userId,
33044
      RatingType type,
-
 
33045
      double rating,
-
 
33046
      long user_id)
28590
      long itemId)
33047
    {
28591
    {
33048
      this();
28592
      this();
33049
      this.item_id = item_id;
28593
      this.userId = userId;
33050
      setItem_idIsSet(true);
28594
      setUserIdIsSet(true);
33051
      this.type = type;
-
 
33052
      this.rating = rating;
-
 
33053
      setRatingIsSet(true);
-
 
33054
      this.user_id = user_id;
28595
      this.itemId = itemId;
33055
      setUser_idIsSet(true);
28596
      setItemIdIsSet(true);
33056
    }
28597
    }
33057
 
28598
 
33058
    /**
28599
    /**
33059
     * Performs a deep copy on <i>other</i>.
28600
     * Performs a deep copy on <i>other</i>.
33060
     */
28601
     */
33061
    public updateRatings_args(updateRatings_args other) {
28602
    public updateBrowseHistory_args(updateBrowseHistory_args other) {
33062
      __isset_bit_vector.clear();
28603
      __isset_bit_vector.clear();
33063
      __isset_bit_vector.or(other.__isset_bit_vector);
28604
      __isset_bit_vector.or(other.__isset_bit_vector);
33064
      this.item_id = other.item_id;
28605
      this.userId = other.userId;
33065
      if (other.isSetType()) {
-
 
33066
        this.type = other.type;
-
 
33067
      }
-
 
33068
      this.rating = other.rating;
-
 
33069
      this.user_id = other.user_id;
28606
      this.itemId = other.itemId;
33070
    }
28607
    }
33071
 
28608
 
33072
    public updateRatings_args deepCopy() {
28609
    public updateBrowseHistory_args deepCopy() {
33073
      return new updateRatings_args(this);
28610
      return new updateBrowseHistory_args(this);
33074
    }
28611
    }
33075
 
28612
 
33076
    @Deprecated
28613
    @Deprecated
33077
    public updateRatings_args clone() {
28614
    public updateBrowseHistory_args clone() {
33078
      return new updateRatings_args(this);
28615
      return new updateBrowseHistory_args(this);
33079
    }
-
 
33080
 
-
 
33081
    public long getItem_id() {
-
 
33082
      return this.item_id;
-
 
33083
    }
-
 
33084
 
-
 
33085
    public updateRatings_args setItem_id(long item_id) {
-
 
33086
      this.item_id = item_id;
-
 
33087
      setItem_idIsSet(true);
-
 
33088
      return this;
-
 
33089
    }
-
 
33090
 
-
 
33091
    public void unsetItem_id() {
-
 
33092
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
33093
    }
-
 
33094
 
-
 
33095
    /** Returns true if field item_id is set (has been asigned a value) and false otherwise */
-
 
33096
    public boolean isSetItem_id() {
-
 
33097
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
33098
    }
-
 
33099
 
-
 
33100
    public void setItem_idIsSet(boolean value) {
-
 
33101
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
33102
    }
-
 
33103
 
-
 
33104
    /**
-
 
33105
     * 
-
 
33106
     * @see RatingType
-
 
33107
     */
-
 
33108
    public RatingType getType() {
-
 
33109
      return this.type;
-
 
33110
    }
-
 
33111
 
-
 
33112
    /**
-
 
33113
     * 
-
 
33114
     * @see RatingType
-
 
33115
     */
-
 
33116
    public updateRatings_args setType(RatingType type) {
-
 
33117
      this.type = type;
-
 
33118
      return this;
-
 
33119
    }
-
 
33120
 
-
 
33121
    public void unsetType() {
-
 
33122
      this.type = null;
-
 
33123
    }
-
 
33124
 
-
 
33125
    /** Returns true if field type is set (has been asigned a value) and false otherwise */
-
 
33126
    public boolean isSetType() {
-
 
33127
      return this.type != null;
-
 
33128
    }
-
 
33129
 
-
 
33130
    public void setTypeIsSet(boolean value) {
-
 
33131
      if (!value) {
-
 
33132
        this.type = null;
-
 
33133
      }
-
 
33134
    }
28616
    }
33135
 
28617
 
33136
    public double getRating() {
28618
    public long getUserId() {
33137
      return this.rating;
28619
      return this.userId;
33138
    }
28620
    }
33139
 
28621
 
33140
    public updateRatings_args setRating(double rating) {
28622
    public updateBrowseHistory_args setUserId(long userId) {
33141
      this.rating = rating;
28623
      this.userId = userId;
33142
      setRatingIsSet(true);
28624
      setUserIdIsSet(true);
33143
      return this;
28625
      return this;
33144
    }
28626
    }
33145
 
28627
 
33146
    public void unsetRating() {
28628
    public void unsetUserId() {
33147
      __isset_bit_vector.clear(__RATING_ISSET_ID);
28629
      __isset_bit_vector.clear(__USERID_ISSET_ID);
33148
    }
28630
    }
33149
 
28631
 
33150
    /** Returns true if field rating is set (has been asigned a value) and false otherwise */
28632
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
33151
    public boolean isSetRating() {
28633
    public boolean isSetUserId() {
33152
      return __isset_bit_vector.get(__RATING_ISSET_ID);
28634
      return __isset_bit_vector.get(__USERID_ISSET_ID);
33153
    }
28635
    }
33154
 
28636
 
33155
    public void setRatingIsSet(boolean value) {
28637
    public void setUserIdIsSet(boolean value) {
33156
      __isset_bit_vector.set(__RATING_ISSET_ID, value);
28638
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
33157
    }
28639
    }
33158
 
28640
 
33159
    public long getUser_id() {
28641
    public long getItemId() {
33160
      return this.user_id;
28642
      return this.itemId;
33161
    }
28643
    }
33162
 
28644
 
33163
    public updateRatings_args setUser_id(long user_id) {
28645
    public updateBrowseHistory_args setItemId(long itemId) {
33164
      this.user_id = user_id;
28646
      this.itemId = itemId;
33165
      setUser_idIsSet(true);
28647
      setItemIdIsSet(true);
33166
      return this;
28648
      return this;
33167
    }
28649
    }
33168
 
28650
 
33169
    public void unsetUser_id() {
28651
    public void unsetItemId() {
33170
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
28652
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
33171
    }
28653
    }
33172
 
28654
 
33173
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
28655
    /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
33174
    public boolean isSetUser_id() {
28656
    public boolean isSetItemId() {
33175
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
28657
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
33176
    }
28658
    }
33177
 
28659
 
33178
    public void setUser_idIsSet(boolean value) {
28660
    public void setItemIdIsSet(boolean value) {
33179
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
28661
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
33180
    }
28662
    }
33181
 
28663
 
33182
    public void setFieldValue(_Fields field, Object value) {
28664
    public void setFieldValue(_Fields field, Object value) {
33183
      switch (field) {
28665
      switch (field) {
33184
      case ITEM_ID:
28666
      case USER_ID:
33185
        if (value == null) {
-
 
33186
          unsetItem_id();
-
 
33187
        } else {
-
 
33188
          setItem_id((Long)value);
-
 
33189
        }
-
 
33190
        break;
-
 
33191
 
-
 
33192
      case TYPE:
-
 
33193
        if (value == null) {
-
 
33194
          unsetType();
-
 
33195
        } else {
-
 
33196
          setType((RatingType)value);
-
 
33197
        }
-
 
33198
        break;
-
 
33199
 
-
 
33200
      case RATING:
-
 
33201
        if (value == null) {
28667
        if (value == null) {
33202
          unsetRating();
28668
          unsetUserId();
33203
        } else {
28669
        } else {
33204
          setRating((Double)value);
28670
          setUserId((Long)value);
33205
        }
28671
        }
33206
        break;
28672
        break;
33207
 
28673
 
33208
      case USER_ID:
28674
      case ITEM_ID:
33209
        if (value == null) {
28675
        if (value == null) {
33210
          unsetUser_id();
28676
          unsetItemId();
33211
        } else {
28677
        } else {
33212
          setUser_id((Long)value);
28678
          setItemId((Long)value);
33213
        }
28679
        }
33214
        break;
28680
        break;
33215
 
28681
 
33216
      }
28682
      }
33217
    }
28683
    }
Line 33220... Line 28686...
33220
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
28686
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
33221
    }
28687
    }
33222
 
28688
 
33223
    public Object getFieldValue(_Fields field) {
28689
    public Object getFieldValue(_Fields field) {
33224
      switch (field) {
28690
      switch (field) {
33225
      case ITEM_ID:
-
 
33226
        return new Long(getItem_id());
-
 
33227
 
-
 
33228
      case TYPE:
-
 
33229
        return getType();
-
 
33230
 
-
 
33231
      case RATING:
-
 
33232
        return new Double(getRating());
-
 
33233
 
-
 
33234
      case USER_ID:
28691
      case USER_ID:
33235
        return new Long(getUser_id());
28692
        return new Long(getUserId());
-
 
28693
 
-
 
28694
      case ITEM_ID:
-
 
28695
        return new Long(getItemId());
33236
 
28696
 
33237
      }
28697
      }
33238
      throw new IllegalStateException();
28698
      throw new IllegalStateException();
33239
    }
28699
    }
33240
 
28700
 
Line 33243... Line 28703...
33243
    }
28703
    }
33244
 
28704
 
33245
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
28705
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
33246
    public boolean isSet(_Fields field) {
28706
    public boolean isSet(_Fields field) {
33247
      switch (field) {
28707
      switch (field) {
33248
      case ITEM_ID:
-
 
33249
        return isSetItem_id();
-
 
33250
      case TYPE:
-
 
33251
        return isSetType();
-
 
33252
      case RATING:
-
 
33253
        return isSetRating();
-
 
33254
      case USER_ID:
28708
      case USER_ID:
33255
        return isSetUser_id();
28709
        return isSetUserId();
-
 
28710
      case ITEM_ID:
-
 
28711
        return isSetItemId();
33256
      }
28712
      }
33257
      throw new IllegalStateException();
28713
      throw new IllegalStateException();
33258
    }
28714
    }
33259
 
28715
 
33260
    public boolean isSet(int fieldID) {
28716
    public boolean isSet(int fieldID) {
Line 33263... Line 28719...
33263
 
28719
 
33264
    @Override
28720
    @Override
33265
    public boolean equals(Object that) {
28721
    public boolean equals(Object that) {
33266
      if (that == null)
28722
      if (that == null)
33267
        return false;
28723
        return false;
33268
      if (that instanceof updateRatings_args)
28724
      if (that instanceof updateBrowseHistory_args)
33269
        return this.equals((updateRatings_args)that);
28725
        return this.equals((updateBrowseHistory_args)that);
33270
      return false;
28726
      return false;
33271
    }
28727
    }
33272
 
28728
 
33273
    public boolean equals(updateRatings_args that) {
28729
    public boolean equals(updateBrowseHistory_args that) {
33274
      if (that == null)
28730
      if (that == null)
33275
        return false;
28731
        return false;
33276
 
28732
 
33277
      boolean this_present_item_id = true;
28733
      boolean this_present_userId = true;
33278
      boolean that_present_item_id = true;
28734
      boolean that_present_userId = true;
33279
      if (this_present_item_id || that_present_item_id) {
28735
      if (this_present_userId || that_present_userId) {
33280
        if (!(this_present_item_id && that_present_item_id))
28736
        if (!(this_present_userId && that_present_userId))
33281
          return false;
-
 
33282
        if (this.item_id != that.item_id)
-
 
33283
          return false;
-
 
33284
      }
-
 
33285
 
-
 
33286
      boolean this_present_type = true && this.isSetType();
-
 
33287
      boolean that_present_type = true && that.isSetType();
-
 
33288
      if (this_present_type || that_present_type) {
-
 
33289
        if (!(this_present_type && that_present_type))
-
 
33290
          return false;
-
 
33291
        if (!this.type.equals(that.type))
-
 
33292
          return false;
-
 
33293
      }
-
 
33294
 
-
 
33295
      boolean this_present_rating = true;
-
 
33296
      boolean that_present_rating = true;
-
 
33297
      if (this_present_rating || that_present_rating) {
-
 
33298
        if (!(this_present_rating && that_present_rating))
-
 
33299
          return false;
28737
          return false;
33300
        if (this.rating != that.rating)
28738
        if (this.userId != that.userId)
33301
          return false;
28739
          return false;
33302
      }
28740
      }
33303
 
28741
 
33304
      boolean this_present_user_id = true;
28742
      boolean this_present_itemId = true;
33305
      boolean that_present_user_id = true;
28743
      boolean that_present_itemId = true;
33306
      if (this_present_user_id || that_present_user_id) {
28744
      if (this_present_itemId || that_present_itemId) {
33307
        if (!(this_present_user_id && that_present_user_id))
28745
        if (!(this_present_itemId && that_present_itemId))
33308
          return false;
28746
          return false;
33309
        if (this.user_id != that.user_id)
28747
        if (this.itemId != that.itemId)
33310
          return false;
28748
          return false;
33311
      }
28749
      }
33312
 
28750
 
33313
      return true;
28751
      return true;
33314
    }
28752
    }
Line 33316... Line 28754...
33316
    @Override
28754
    @Override
33317
    public int hashCode() {
28755
    public int hashCode() {
33318
      return 0;
28756
      return 0;
33319
    }
28757
    }
33320
 
28758
 
33321
    public int compareTo(updateRatings_args other) {
28759
    public int compareTo(updateBrowseHistory_args other) {
33322
      if (!getClass().equals(other.getClass())) {
28760
      if (!getClass().equals(other.getClass())) {
33323
        return getClass().getName().compareTo(other.getClass().getName());
28761
        return getClass().getName().compareTo(other.getClass().getName());
33324
      }
28762
      }
33325
 
28763
 
33326
      int lastComparison = 0;
28764
      int lastComparison = 0;
33327
      updateRatings_args typedOther = (updateRatings_args)other;
28765
      updateBrowseHistory_args typedOther = (updateBrowseHistory_args)other;
33328
 
28766
 
33329
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(isSetItem_id());
28767
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
33330
      if (lastComparison != 0) {
-
 
33331
        return lastComparison;
-
 
33332
      }
-
 
33333
      lastComparison = TBaseHelper.compareTo(item_id, typedOther.item_id);
-
 
33334
      if (lastComparison != 0) {
-
 
33335
        return lastComparison;
-
 
33336
      }
-
 
33337
      lastComparison = Boolean.valueOf(isSetType()).compareTo(isSetType());
-
 
33338
      if (lastComparison != 0) {
-
 
33339
        return lastComparison;
-
 
33340
      }
-
 
33341
      lastComparison = TBaseHelper.compareTo(type, typedOther.type);
-
 
33342
      if (lastComparison != 0) {
-
 
33343
        return lastComparison;
-
 
33344
      }
-
 
33345
      lastComparison = Boolean.valueOf(isSetRating()).compareTo(isSetRating());
-
 
33346
      if (lastComparison != 0) {
28768
      if (lastComparison != 0) {
33347
        return lastComparison;
28769
        return lastComparison;
33348
      }
28770
      }
33349
      lastComparison = TBaseHelper.compareTo(rating, typedOther.rating);
28771
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
33350
      if (lastComparison != 0) {
28772
      if (lastComparison != 0) {
33351
        return lastComparison;
28773
        return lastComparison;
33352
      }
28774
      }
33353
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
28775
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
33354
      if (lastComparison != 0) {
28776
      if (lastComparison != 0) {
33355
        return lastComparison;
28777
        return lastComparison;
33356
      }
28778
      }
33357
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
28779
      lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
33358
      if (lastComparison != 0) {
28780
      if (lastComparison != 0) {
33359
        return lastComparison;
28781
        return lastComparison;
33360
      }
28782
      }
33361
      return 0;
28783
      return 0;
33362
    }
28784
    }
Line 33373... Line 28795...
33373
        _Fields fieldId = _Fields.findByThriftId(field.id);
28795
        _Fields fieldId = _Fields.findByThriftId(field.id);
33374
        if (fieldId == null) {
28796
        if (fieldId == null) {
33375
          TProtocolUtil.skip(iprot, field.type);
28797
          TProtocolUtil.skip(iprot, field.type);
33376
        } else {
28798
        } else {
33377
          switch (fieldId) {
28799
          switch (fieldId) {
33378
            case ITEM_ID:
28800
            case USER_ID:
33379
              if (field.type == TType.I64) {
28801
              if (field.type == TType.I64) {
33380
                this.item_id = iprot.readI64();
28802
                this.userId = iprot.readI64();
33381
                setItem_idIsSet(true);
28803
                setUserIdIsSet(true);
33382
              } else { 
-
 
33383
                TProtocolUtil.skip(iprot, field.type);
-
 
33384
              }
-
 
33385
              break;
-
 
33386
            case TYPE:
-
 
33387
              if (field.type == TType.I32) {
-
 
33388
                this.type = RatingType.findByValue(iprot.readI32());
-
 
33389
              } else { 
-
 
33390
                TProtocolUtil.skip(iprot, field.type);
-
 
33391
              }
-
 
33392
              break;
-
 
33393
            case RATING:
-
 
33394
              if (field.type == TType.DOUBLE) {
-
 
33395
                this.rating = iprot.readDouble();
-
 
33396
                setRatingIsSet(true);
-
 
33397
              } else { 
28804
              } else { 
33398
                TProtocolUtil.skip(iprot, field.type);
28805
                TProtocolUtil.skip(iprot, field.type);
33399
              }
28806
              }
33400
              break;
28807
              break;
33401
            case USER_ID:
28808
            case ITEM_ID:
33402
              if (field.type == TType.I64) {
28809
              if (field.type == TType.I64) {
33403
                this.user_id = iprot.readI64();
28810
                this.itemId = iprot.readI64();
33404
                setUser_idIsSet(true);
28811
                setItemIdIsSet(true);
33405
              } else { 
28812
              } else { 
33406
                TProtocolUtil.skip(iprot, field.type);
28813
                TProtocolUtil.skip(iprot, field.type);
33407
              }
28814
              }
33408
              break;
28815
              break;
33409
          }
28816
          }
Line 33416... Line 28823...
33416
 
28823
 
33417
    public void write(TProtocol oprot) throws TException {
28824
    public void write(TProtocol oprot) throws TException {
33418
      validate();
28825
      validate();
33419
 
28826
 
33420
      oprot.writeStructBegin(STRUCT_DESC);
28827
      oprot.writeStructBegin(STRUCT_DESC);
33421
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
33422
      oprot.writeI64(this.item_id);
-
 
33423
      oprot.writeFieldEnd();
-
 
33424
      if (this.type != null) {
-
 
33425
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
33426
        oprot.writeI32(this.type.getValue());
-
 
33427
        oprot.writeFieldEnd();
-
 
33428
      }
-
 
33429
      oprot.writeFieldBegin(RATING_FIELD_DESC);
-
 
33430
      oprot.writeDouble(this.rating);
-
 
33431
      oprot.writeFieldEnd();
-
 
33432
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
28828
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
33433
      oprot.writeI64(this.user_id);
28829
      oprot.writeI64(this.userId);
-
 
28830
      oprot.writeFieldEnd();
-
 
28831
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
28832
      oprot.writeI64(this.itemId);
33434
      oprot.writeFieldEnd();
28833
      oprot.writeFieldEnd();
33435
      oprot.writeFieldStop();
28834
      oprot.writeFieldStop();
33436
      oprot.writeStructEnd();
28835
      oprot.writeStructEnd();
33437
    }
28836
    }
33438
 
28837
 
33439
    @Override
28838
    @Override
33440
    public String toString() {
28839
    public String toString() {
33441
      StringBuilder sb = new StringBuilder("updateRatings_args(");
28840
      StringBuilder sb = new StringBuilder("updateBrowseHistory_args(");
33442
      boolean first = true;
28841
      boolean first = true;
33443
 
28842
 
33444
      sb.append("item_id:");
28843
      sb.append("userId:");
33445
      sb.append(this.item_id);
28844
      sb.append(this.userId);
33446
      first = false;
-
 
33447
      if (!first) sb.append(", ");
-
 
33448
      sb.append("type:");
-
 
33449
      if (this.type == null) {
-
 
33450
        sb.append("null");
-
 
33451
      } else {
-
 
33452
        String type_name = type.name();
-
 
33453
        if (type_name != null) {
-
 
33454
          sb.append(type_name);
-
 
33455
          sb.append(" (");
-
 
33456
        }
-
 
33457
        sb.append(this.type);
-
 
33458
        if (type_name != null) {
-
 
33459
          sb.append(")");
-
 
33460
        }
-
 
33461
      }
-
 
33462
      first = false;
-
 
33463
      if (!first) sb.append(", ");
-
 
33464
      sb.append("rating:");
-
 
33465
      sb.append(this.rating);
-
 
33466
      first = false;
28845
      first = false;
33467
      if (!first) sb.append(", ");
28846
      if (!first) sb.append(", ");
33468
      sb.append("user_id:");
28847
      sb.append("itemId:");
33469
      sb.append(this.user_id);
28848
      sb.append(this.itemId);
33470
      first = false;
28849
      first = false;
33471
      sb.append(")");
28850
      sb.append(")");
33472
      return sb.toString();
28851
      return sb.toString();
33473
    }
28852
    }
33474
 
28853
 
Line 33476... Line 28855...
33476
      // check for required fields
28855
      // check for required fields
33477
    }
28856
    }
33478
 
28857
 
33479
  }
28858
  }
33480
 
28859
 
33481
  public static class updateRatings_result implements TBase<updateRatings_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateRatings_result>   {
28860
  public static class updateBrowseHistory_result implements TBase<updateBrowseHistory_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateBrowseHistory_result>   {
33482
    private static final TStruct STRUCT_DESC = new TStruct("updateRatings_result");
28861
    private static final TStruct STRUCT_DESC = new TStruct("updateBrowseHistory_result");
33483
 
28862
 
33484
 
28863
 
33485
 
28864
 
33486
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28865
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33487
    public enum _Fields implements TFieldIdEnum {
28866
    public enum _Fields implements TFieldIdEnum {
Line 33539... Line 28918...
33539
    }
28918
    }
33540
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
28919
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
33541
    }});
28920
    }});
33542
 
28921
 
33543
    static {
28922
    static {
33544
      FieldMetaData.addStructMetaDataMap(updateRatings_result.class, metaDataMap);
28923
      FieldMetaData.addStructMetaDataMap(updateBrowseHistory_result.class, metaDataMap);
33545
    }
28924
    }
33546
 
28925
 
33547
    public updateRatings_result() {
28926
    public updateBrowseHistory_result() {
33548
    }
28927
    }
33549
 
28928
 
33550
    /**
28929
    /**
33551
     * Performs a deep copy on <i>other</i>.
28930
     * Performs a deep copy on <i>other</i>.
33552
     */
28931
     */
33553
    public updateRatings_result(updateRatings_result other) {
28932
    public updateBrowseHistory_result(updateBrowseHistory_result other) {
33554
    }
28933
    }
33555
 
28934
 
33556
    public updateRatings_result deepCopy() {
28935
    public updateBrowseHistory_result deepCopy() {
33557
      return new updateRatings_result(this);
28936
      return new updateBrowseHistory_result(this);
33558
    }
28937
    }
33559
 
28938
 
33560
    @Deprecated
28939
    @Deprecated
33561
    public updateRatings_result clone() {
28940
    public updateBrowseHistory_result clone() {
33562
      return new updateRatings_result(this);
28941
      return new updateBrowseHistory_result(this);
33563
    }
28942
    }
33564
 
28943
 
33565
    public void setFieldValue(_Fields field, Object value) {
28944
    public void setFieldValue(_Fields field, Object value) {
33566
      switch (field) {
28945
      switch (field) {
33567
      }
28946
      }
Line 33594... Line 28973...
33594
 
28973
 
33595
    @Override
28974
    @Override
33596
    public boolean equals(Object that) {
28975
    public boolean equals(Object that) {
33597
      if (that == null)
28976
      if (that == null)
33598
        return false;
28977
        return false;
33599
      if (that instanceof updateRatings_result)
28978
      if (that instanceof updateBrowseHistory_result)
33600
        return this.equals((updateRatings_result)that);
28979
        return this.equals((updateBrowseHistory_result)that);
33601
      return false;
28980
      return false;
33602
    }
28981
    }
33603
 
28982
 
33604
    public boolean equals(updateRatings_result that) {
28983
    public boolean equals(updateBrowseHistory_result that) {
33605
      if (that == null)
28984
      if (that == null)
33606
        return false;
28985
        return false;
33607
 
28986
 
33608
      return true;
28987
      return true;
33609
    }
28988
    }
Line 33611... Line 28990...
33611
    @Override
28990
    @Override
33612
    public int hashCode() {
28991
    public int hashCode() {
33613
      return 0;
28992
      return 0;
33614
    }
28993
    }
33615
 
28994
 
33616
    public int compareTo(updateRatings_result other) {
28995
    public int compareTo(updateBrowseHistory_result other) {
33617
      if (!getClass().equals(other.getClass())) {
28996
      if (!getClass().equals(other.getClass())) {
33618
        return getClass().getName().compareTo(other.getClass().getName());
28997
        return getClass().getName().compareTo(other.getClass().getName());
33619
      }
28998
      }
33620
 
28999
 
33621
      int lastComparison = 0;
29000
      int lastComparison = 0;
33622
      updateRatings_result typedOther = (updateRatings_result)other;
29001
      updateBrowseHistory_result typedOther = (updateBrowseHistory_result)other;
33623
 
29002
 
33624
      return 0;
29003
      return 0;
33625
    }
29004
    }
33626
 
29005
 
33627
    public void read(TProtocol iprot) throws TException {
29006
    public void read(TProtocol iprot) throws TException {
Line 33653... Line 29032...
33653
      oprot.writeStructEnd();
29032
      oprot.writeStructEnd();
33654
    }
29033
    }
33655
 
29034
 
33656
    @Override
29035
    @Override
33657
    public String toString() {
29036
    public String toString() {
33658
      StringBuilder sb = new StringBuilder("updateRatings_result(");
29037
      StringBuilder sb = new StringBuilder("updateBrowseHistory_result(");
33659
      boolean first = true;
29038
      boolean first = true;
33660
 
29039
 
33661
      sb.append(")");
29040
      sb.append(")");
33662
      return sb.toString();
29041
      return sb.toString();
33663
    }
29042
    }
Line 33666... Line 29045...
33666
      // check for required fields
29045
      // check for required fields
33667
    }
29046
    }
33668
 
29047
 
33669
  }
29048
  }
33670
 
29049
 
33671
  public static class getRatings_args implements TBase<getRatings_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRatings_args>   {
29050
  public static class getBrowseHistory_args implements TBase<getBrowseHistory_args._Fields>, java.io.Serializable, Cloneable, Comparable<getBrowseHistory_args>   {
33672
    private static final TStruct STRUCT_DESC = new TStruct("getRatings_args");
29051
    private static final TStruct STRUCT_DESC = new TStruct("getBrowseHistory_args");
33673
 
29052
 
33674
    private static final TField ITEM_ID_FIELD_DESC = new TField("item_id", TType.I64, (short)1);
-
 
33675
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)2);
29053
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
33676
 
29054
 
33677
    private long item_id;
-
 
33678
    private long user_id;
29055
    private long userId;
33679
 
29056
 
33680
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29057
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33681
    public enum _Fields implements TFieldIdEnum {
29058
    public enum _Fields implements TFieldIdEnum {
33682
      ITEM_ID((short)1, "item_id"),
-
 
33683
      USER_ID((short)2, "user_id");
29059
      USER_ID((short)1, "userId");
33684
 
29060
 
33685
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
29061
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
33686
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29062
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33687
 
29063
 
33688
      static {
29064
      static {
Line 33732... Line 29108...
33732
        return _fieldName;
29108
        return _fieldName;
33733
      }
29109
      }
33734
    }
29110
    }
33735
 
29111
 
33736
    // isset id assignments
29112
    // isset id assignments
33737
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
33738
    private static final int __USER_ID_ISSET_ID = 1;
29113
    private static final int __USERID_ISSET_ID = 0;
33739
    private BitSet __isset_bit_vector = new BitSet(2);
29114
    private BitSet __isset_bit_vector = new BitSet(1);
33740
 
29115
 
33741
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
29116
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
33742
      put(_Fields.ITEM_ID, new FieldMetaData("item_id", TFieldRequirementType.DEFAULT, 
-
 
33743
          new FieldValueMetaData(TType.I64)));
-
 
33744
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
29117
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
33745
          new FieldValueMetaData(TType.I64)));
29118
          new FieldValueMetaData(TType.I64)));
33746
    }});
29119
    }});
33747
 
29120
 
33748
    static {
29121
    static {
33749
      FieldMetaData.addStructMetaDataMap(getRatings_args.class, metaDataMap);
29122
      FieldMetaData.addStructMetaDataMap(getBrowseHistory_args.class, metaDataMap);
33750
    }
29123
    }
33751
 
29124
 
33752
    public getRatings_args() {
29125
    public getBrowseHistory_args() {
33753
    }
29126
    }
33754
 
29127
 
33755
    public getRatings_args(
29128
    public getBrowseHistory_args(
33756
      long item_id,
-
 
33757
      long user_id)
29129
      long userId)
33758
    {
29130
    {
33759
      this();
29131
      this();
33760
      this.item_id = item_id;
-
 
33761
      setItem_idIsSet(true);
-
 
33762
      this.user_id = user_id;
29132
      this.userId = userId;
33763
      setUser_idIsSet(true);
29133
      setUserIdIsSet(true);
33764
    }
29134
    }
33765
 
29135
 
33766
    /**
29136
    /**
33767
     * Performs a deep copy on <i>other</i>.
29137
     * Performs a deep copy on <i>other</i>.
33768
     */
29138
     */
33769
    public getRatings_args(getRatings_args other) {
29139
    public getBrowseHistory_args(getBrowseHistory_args other) {
33770
      __isset_bit_vector.clear();
29140
      __isset_bit_vector.clear();
33771
      __isset_bit_vector.or(other.__isset_bit_vector);
29141
      __isset_bit_vector.or(other.__isset_bit_vector);
33772
      this.item_id = other.item_id;
-
 
33773
      this.user_id = other.user_id;
29142
      this.userId = other.userId;
33774
    }
29143
    }
33775
 
29144
 
33776
    public getRatings_args deepCopy() {
29145
    public getBrowseHistory_args deepCopy() {
33777
      return new getRatings_args(this);
29146
      return new getBrowseHistory_args(this);
33778
    }
29147
    }
33779
 
29148
 
33780
    @Deprecated
29149
    @Deprecated
33781
    public getRatings_args clone() {
29150
    public getBrowseHistory_args clone() {
33782
      return new getRatings_args(this);
29151
      return new getBrowseHistory_args(this);
33783
    }
-
 
33784
 
-
 
33785
    public long getItem_id() {
-
 
33786
      return this.item_id;
-
 
33787
    }
-
 
33788
 
-
 
33789
    public getRatings_args setItem_id(long item_id) {
-
 
33790
      this.item_id = item_id;
-
 
33791
      setItem_idIsSet(true);
-
 
33792
      return this;
-
 
33793
    }
-
 
33794
 
-
 
33795
    public void unsetItem_id() {
-
 
33796
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
33797
    }
-
 
33798
 
-
 
33799
    /** Returns true if field item_id is set (has been asigned a value) and false otherwise */
-
 
33800
    public boolean isSetItem_id() {
-
 
33801
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
33802
    }
-
 
33803
 
-
 
33804
    public void setItem_idIsSet(boolean value) {
-
 
33805
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
33806
    }
29152
    }
33807
 
29153
 
33808
    public long getUser_id() {
29154
    public long getUserId() {
33809
      return this.user_id;
29155
      return this.userId;
33810
    }
29156
    }
33811
 
29157
 
33812
    public getRatings_args setUser_id(long user_id) {
29158
    public getBrowseHistory_args setUserId(long userId) {
33813
      this.user_id = user_id;
29159
      this.userId = userId;
33814
      setUser_idIsSet(true);
29160
      setUserIdIsSet(true);
33815
      return this;
29161
      return this;
33816
    }
29162
    }
33817
 
29163
 
33818
    public void unsetUser_id() {
29164
    public void unsetUserId() {
33819
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
29165
      __isset_bit_vector.clear(__USERID_ISSET_ID);
33820
    }
29166
    }
33821
 
29167
 
33822
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
29168
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
33823
    public boolean isSetUser_id() {
29169
    public boolean isSetUserId() {
33824
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
29170
      return __isset_bit_vector.get(__USERID_ISSET_ID);
33825
    }
29171
    }
33826
 
29172
 
33827
    public void setUser_idIsSet(boolean value) {
29173
    public void setUserIdIsSet(boolean value) {
33828
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
29174
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
33829
    }
29175
    }
33830
 
29176
 
33831
    public void setFieldValue(_Fields field, Object value) {
29177
    public void setFieldValue(_Fields field, Object value) {
33832
      switch (field) {
29178
      switch (field) {
33833
      case ITEM_ID:
-
 
33834
        if (value == null) {
-
 
33835
          unsetItem_id();
-
 
33836
        } else {
-
 
33837
          setItem_id((Long)value);
-
 
33838
        }
-
 
33839
        break;
-
 
33840
 
-
 
33841
      case USER_ID:
29179
      case USER_ID:
33842
        if (value == null) {
29180
        if (value == null) {
33843
          unsetUser_id();
29181
          unsetUserId();
33844
        } else {
29182
        } else {
33845
          setUser_id((Long)value);
29183
          setUserId((Long)value);
33846
        }
29184
        }
33847
        break;
29185
        break;
33848
 
29186
 
33849
      }
29187
      }
33850
    }
29188
    }
Line 33853... Line 29191...
33853
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
29191
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
33854
    }
29192
    }
33855
 
29193
 
33856
    public Object getFieldValue(_Fields field) {
29194
    public Object getFieldValue(_Fields field) {
33857
      switch (field) {
29195
      switch (field) {
33858
      case ITEM_ID:
-
 
33859
        return new Long(getItem_id());
-
 
33860
 
-
 
33861
      case USER_ID:
29196
      case USER_ID:
33862
        return new Long(getUser_id());
29197
        return new Long(getUserId());
33863
 
29198
 
33864
      }
29199
      }
33865
      throw new IllegalStateException();
29200
      throw new IllegalStateException();
33866
    }
29201
    }
33867
 
29202
 
Line 33870... Line 29205...
33870
    }
29205
    }
33871
 
29206
 
33872
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
29207
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
33873
    public boolean isSet(_Fields field) {
29208
    public boolean isSet(_Fields field) {
33874
      switch (field) {
29209
      switch (field) {
33875
      case ITEM_ID:
-
 
33876
        return isSetItem_id();
-
 
33877
      case USER_ID:
29210
      case USER_ID:
33878
        return isSetUser_id();
29211
        return isSetUserId();
33879
      }
29212
      }
33880
      throw new IllegalStateException();
29213
      throw new IllegalStateException();
33881
    }
29214
    }
33882
 
29215
 
33883
    public boolean isSet(int fieldID) {
29216
    public boolean isSet(int fieldID) {
Line 33886... Line 29219...
33886
 
29219
 
33887
    @Override
29220
    @Override
33888
    public boolean equals(Object that) {
29221
    public boolean equals(Object that) {
33889
      if (that == null)
29222
      if (that == null)
33890
        return false;
29223
        return false;
33891
      if (that instanceof getRatings_args)
29224
      if (that instanceof getBrowseHistory_args)
33892
        return this.equals((getRatings_args)that);
29225
        return this.equals((getBrowseHistory_args)that);
33893
      return false;
29226
      return false;
33894
    }
29227
    }
33895
 
29228
 
33896
    public boolean equals(getRatings_args that) {
29229
    public boolean equals(getBrowseHistory_args that) {
33897
      if (that == null)
29230
      if (that == null)
33898
        return false;
29231
        return false;
33899
 
29232
 
33900
      boolean this_present_item_id = true;
-
 
33901
      boolean that_present_item_id = true;
-
 
33902
      if (this_present_item_id || that_present_item_id) {
-
 
33903
        if (!(this_present_item_id && that_present_item_id))
-
 
33904
          return false;
-
 
33905
        if (this.item_id != that.item_id)
-
 
33906
          return false;
-
 
33907
      }
-
 
33908
 
-
 
33909
      boolean this_present_user_id = true;
29233
      boolean this_present_userId = true;
33910
      boolean that_present_user_id = true;
29234
      boolean that_present_userId = true;
33911
      if (this_present_user_id || that_present_user_id) {
29235
      if (this_present_userId || that_present_userId) {
33912
        if (!(this_present_user_id && that_present_user_id))
29236
        if (!(this_present_userId && that_present_userId))
33913
          return false;
29237
          return false;
33914
        if (this.user_id != that.user_id)
29238
        if (this.userId != that.userId)
33915
          return false;
29239
          return false;
33916
      }
29240
      }
33917
 
29241
 
33918
      return true;
29242
      return true;
33919
    }
29243
    }
Line 33921... Line 29245...
33921
    @Override
29245
    @Override
33922
    public int hashCode() {
29246
    public int hashCode() {
33923
      return 0;
29247
      return 0;
33924
    }
29248
    }
33925
 
29249
 
33926
    public int compareTo(getRatings_args other) {
29250
    public int compareTo(getBrowseHistory_args other) {
33927
      if (!getClass().equals(other.getClass())) {
29251
      if (!getClass().equals(other.getClass())) {
33928
        return getClass().getName().compareTo(other.getClass().getName());
29252
        return getClass().getName().compareTo(other.getClass().getName());
33929
      }
29253
      }
33930
 
29254
 
33931
      int lastComparison = 0;
29255
      int lastComparison = 0;
33932
      getRatings_args typedOther = (getRatings_args)other;
29256
      getBrowseHistory_args typedOther = (getBrowseHistory_args)other;
33933
 
29257
 
33934
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(isSetItem_id());
-
 
33935
      if (lastComparison != 0) {
-
 
33936
        return lastComparison;
-
 
33937
      }
-
 
33938
      lastComparison = TBaseHelper.compareTo(item_id, typedOther.item_id);
-
 
33939
      if (lastComparison != 0) {
-
 
33940
        return lastComparison;
-
 
33941
      }
-
 
33942
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
29258
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
33943
      if (lastComparison != 0) {
29259
      if (lastComparison != 0) {
33944
        return lastComparison;
29260
        return lastComparison;
33945
      }
29261
      }
33946
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
29262
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
33947
      if (lastComparison != 0) {
29263
      if (lastComparison != 0) {
33948
        return lastComparison;
29264
        return lastComparison;
33949
      }
29265
      }
33950
      return 0;
29266
      return 0;
33951
    }
29267
    }
Line 33962... Line 29278...
33962
        _Fields fieldId = _Fields.findByThriftId(field.id);
29278
        _Fields fieldId = _Fields.findByThriftId(field.id);
33963
        if (fieldId == null) {
29279
        if (fieldId == null) {
33964
          TProtocolUtil.skip(iprot, field.type);
29280
          TProtocolUtil.skip(iprot, field.type);
33965
        } else {
29281
        } else {
33966
          switch (fieldId) {
29282
          switch (fieldId) {
33967
            case ITEM_ID:
-
 
33968
              if (field.type == TType.I64) {
-
 
33969
                this.item_id = iprot.readI64();
-
 
33970
                setItem_idIsSet(true);
-
 
33971
              } else { 
-
 
33972
                TProtocolUtil.skip(iprot, field.type);
-
 
33973
              }
-
 
33974
              break;
-
 
33975
            case USER_ID:
29283
            case USER_ID:
33976
              if (field.type == TType.I64) {
29284
              if (field.type == TType.I64) {
33977
                this.user_id = iprot.readI64();
29285
                this.userId = iprot.readI64();
33978
                setUser_idIsSet(true);
29286
                setUserIdIsSet(true);
33979
              } else { 
29287
              } else { 
33980
                TProtocolUtil.skip(iprot, field.type);
29288
                TProtocolUtil.skip(iprot, field.type);
33981
              }
29289
              }
33982
              break;
29290
              break;
33983
          }
29291
          }
Line 33990... Line 29298...
33990
 
29298
 
33991
    public void write(TProtocol oprot) throws TException {
29299
    public void write(TProtocol oprot) throws TException {
33992
      validate();
29300
      validate();
33993
 
29301
 
33994
      oprot.writeStructBegin(STRUCT_DESC);
29302
      oprot.writeStructBegin(STRUCT_DESC);
33995
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
33996
      oprot.writeI64(this.item_id);
-
 
33997
      oprot.writeFieldEnd();
-
 
33998
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
29303
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
33999
      oprot.writeI64(this.user_id);
29304
      oprot.writeI64(this.userId);
34000
      oprot.writeFieldEnd();
29305
      oprot.writeFieldEnd();
34001
      oprot.writeFieldStop();
29306
      oprot.writeFieldStop();
34002
      oprot.writeStructEnd();
29307
      oprot.writeStructEnd();
34003
    }
29308
    }
34004
 
29309
 
34005
    @Override
29310
    @Override
34006
    public String toString() {
29311
    public String toString() {
34007
      StringBuilder sb = new StringBuilder("getRatings_args(");
29312
      StringBuilder sb = new StringBuilder("getBrowseHistory_args(");
34008
      boolean first = true;
29313
      boolean first = true;
34009
 
29314
 
34010
      sb.append("item_id:");
-
 
34011
      sb.append(this.item_id);
-
 
34012
      first = false;
-
 
34013
      if (!first) sb.append(", ");
-
 
34014
      sb.append("user_id:");
29315
      sb.append("userId:");
34015
      sb.append(this.user_id);
29316
      sb.append(this.userId);
34016
      first = false;
29317
      first = false;
34017
      sb.append(")");
29318
      sb.append(")");
34018
      return sb.toString();
29319
      return sb.toString();
34019
    }
29320
    }
34020
 
29321
 
Line 34022... Line 29323...
34022
      // check for required fields
29323
      // check for required fields
34023
    }
29324
    }
34024
 
29325
 
34025
  }
29326
  }
34026
 
29327
 
34027
  public static class getRatings_result implements TBase<getRatings_result._Fields>, java.io.Serializable, Cloneable   {
29328
  public static class getBrowseHistory_result implements TBase<getBrowseHistory_result._Fields>, java.io.Serializable, Cloneable, Comparable<getBrowseHistory_result>   {
34028
    private static final TStruct STRUCT_DESC = new TStruct("getRatings_result");
29329
    private static final TStruct STRUCT_DESC = new TStruct("getBrowseHistory_result");
34029
 
29330
 
34030
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
29331
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
34031
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
29332
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
34032
 
29333
 
34033
    private RatingsWidget success;
29334
    private Widget success;
34034
    private WidgetException scx;
29335
    private WidgetException scx;
34035
 
29336
 
34036
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29337
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34037
    public enum _Fields implements TFieldIdEnum {
29338
    public enum _Fields implements TFieldIdEnum {
34038
      SUCCESS((short)0, "success"),
29339
      SUCCESS((short)0, "success"),
Line 34091... Line 29392...
34091
 
29392
 
34092
    // isset id assignments
29393
    // isset id assignments
34093
 
29394
 
34094
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
29395
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
34095
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
29396
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
34096
          new StructMetaData(TType.STRUCT, RatingsWidget.class)));
29397
          new StructMetaData(TType.STRUCT, Widget.class)));
34097
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
29398
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
34098
          new FieldValueMetaData(TType.STRUCT)));
29399
          new FieldValueMetaData(TType.STRUCT)));
34099
    }});
29400
    }});
34100
 
29401
 
34101
    static {
29402
    static {
34102
      FieldMetaData.addStructMetaDataMap(getRatings_result.class, metaDataMap);
29403
      FieldMetaData.addStructMetaDataMap(getBrowseHistory_result.class, metaDataMap);
34103
    }
29404
    }
34104
 
29405
 
34105
    public getRatings_result() {
29406
    public getBrowseHistory_result() {
34106
    }
29407
    }
34107
 
29408
 
34108
    public getRatings_result(
29409
    public getBrowseHistory_result(
34109
      RatingsWidget success,
29410
      Widget success,
34110
      WidgetException scx)
29411
      WidgetException scx)
34111
    {
29412
    {
34112
      this();
29413
      this();
34113
      this.success = success;
29414
      this.success = success;
34114
      this.scx = scx;
29415
      this.scx = scx;
34115
    }
29416
    }
34116
 
29417
 
34117
    /**
29418
    /**
34118
     * Performs a deep copy on <i>other</i>.
29419
     * Performs a deep copy on <i>other</i>.
34119
     */
29420
     */
34120
    public getRatings_result(getRatings_result other) {
29421
    public getBrowseHistory_result(getBrowseHistory_result other) {
34121
      if (other.isSetSuccess()) {
29422
      if (other.isSetSuccess()) {
34122
        this.success = new RatingsWidget(other.success);
29423
        this.success = new Widget(other.success);
34123
      }
29424
      }
34124
      if (other.isSetScx()) {
29425
      if (other.isSetScx()) {
34125
        this.scx = new WidgetException(other.scx);
29426
        this.scx = new WidgetException(other.scx);
34126
      }
29427
      }
34127
    }
29428
    }
34128
 
29429
 
34129
    public getRatings_result deepCopy() {
29430
    public getBrowseHistory_result deepCopy() {
34130
      return new getRatings_result(this);
29431
      return new getBrowseHistory_result(this);
34131
    }
29432
    }
34132
 
29433
 
34133
    @Deprecated
29434
    @Deprecated
34134
    public getRatings_result clone() {
29435
    public getBrowseHistory_result clone() {
34135
      return new getRatings_result(this);
29436
      return new getBrowseHistory_result(this);
34136
    }
29437
    }
34137
 
29438
 
34138
    public RatingsWidget getSuccess() {
29439
    public Widget getSuccess() {
34139
      return this.success;
29440
      return this.success;
34140
    }
29441
    }
34141
 
29442
 
34142
    public getRatings_result setSuccess(RatingsWidget success) {
29443
    public getBrowseHistory_result setSuccess(Widget success) {
34143
      this.success = success;
29444
      this.success = success;
34144
      return this;
29445
      return this;
34145
    }
29446
    }
34146
 
29447
 
34147
    public void unsetSuccess() {
29448
    public void unsetSuccess() {
Line 34161... Line 29462...
34161
 
29462
 
34162
    public WidgetException getScx() {
29463
    public WidgetException getScx() {
34163
      return this.scx;
29464
      return this.scx;
34164
    }
29465
    }
34165
 
29466
 
34166
    public getRatings_result setScx(WidgetException scx) {
29467
    public getBrowseHistory_result setScx(WidgetException scx) {
34167
      this.scx = scx;
29468
      this.scx = scx;
34168
      return this;
29469
      return this;
34169
    }
29470
    }
34170
 
29471
 
34171
    public void unsetScx() {
29472
    public void unsetScx() {
Line 34187... Line 29488...
34187
      switch (field) {
29488
      switch (field) {
34188
      case SUCCESS:
29489
      case SUCCESS:
34189
        if (value == null) {
29490
        if (value == null) {
34190
          unsetSuccess();
29491
          unsetSuccess();
34191
        } else {
29492
        } else {
34192
          setSuccess((RatingsWidget)value);
29493
          setSuccess((Widget)value);
34193
        }
29494
        }
34194
        break;
29495
        break;
34195
 
29496
 
34196
      case SCX:
29497
      case SCX:
34197
        if (value == null) {
29498
        if (value == null) {
Line 34241... Line 29542...
34241
 
29542
 
34242
    @Override
29543
    @Override
34243
    public boolean equals(Object that) {
29544
    public boolean equals(Object that) {
34244
      if (that == null)
29545
      if (that == null)
34245
        return false;
29546
        return false;
34246
      if (that instanceof getRatings_result)
29547
      if (that instanceof getBrowseHistory_result)
34247
        return this.equals((getRatings_result)that);
29548
        return this.equals((getBrowseHistory_result)that);
34248
      return false;
29549
      return false;
34249
    }
29550
    }
34250
 
29551
 
34251
    public boolean equals(getRatings_result that) {
29552
    public boolean equals(getBrowseHistory_result that) {
34252
      if (that == null)
29553
      if (that == null)
34253
        return false;
29554
        return false;
34254
 
29555
 
34255
      boolean this_present_success = true && this.isSetSuccess();
29556
      boolean this_present_success = true && this.isSetSuccess();
34256
      boolean that_present_success = true && that.isSetSuccess();
29557
      boolean that_present_success = true && that.isSetSuccess();
Line 34276... Line 29577...
34276
    @Override
29577
    @Override
34277
    public int hashCode() {
29578
    public int hashCode() {
34278
      return 0;
29579
      return 0;
34279
    }
29580
    }
34280
 
29581
 
-
 
29582
    public int compareTo(getBrowseHistory_result other) {
-
 
29583
      if (!getClass().equals(other.getClass())) {
-
 
29584
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29585
      }
-
 
29586
 
-
 
29587
      int lastComparison = 0;
-
 
29588
      getBrowseHistory_result typedOther = (getBrowseHistory_result)other;
-
 
29589
 
-
 
29590
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
29591
      if (lastComparison != 0) {
-
 
29592
        return lastComparison;
-
 
29593
      }
-
 
29594
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
29595
      if (lastComparison != 0) {
-
 
29596
        return lastComparison;
-
 
29597
      }
-
 
29598
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
29599
      if (lastComparison != 0) {
-
 
29600
        return lastComparison;
-
 
29601
      }
-
 
29602
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
29603
      if (lastComparison != 0) {
-
 
29604
        return lastComparison;
-
 
29605
      }
-
 
29606
      return 0;
-
 
29607
    }
-
 
29608
 
34281
    public void read(TProtocol iprot) throws TException {
29609
    public void read(TProtocol iprot) throws TException {
34282
      TField field;
29610
      TField field;
34283
      iprot.readStructBegin();
29611
      iprot.readStructBegin();
34284
      while (true)
29612
      while (true)
34285
      {
29613
      {
Line 34292... Line 29620...
34292
          TProtocolUtil.skip(iprot, field.type);
29620
          TProtocolUtil.skip(iprot, field.type);
34293
        } else {
29621
        } else {
34294
          switch (fieldId) {
29622
          switch (fieldId) {
34295
            case SUCCESS:
29623
            case SUCCESS:
34296
              if (field.type == TType.STRUCT) {
29624
              if (field.type == TType.STRUCT) {
34297
                this.success = new RatingsWidget();
29625
                this.success = new Widget();
34298
                this.success.read(iprot);
29626
                this.success.read(iprot);
34299
              } else { 
29627
              } else { 
34300
                TProtocolUtil.skip(iprot, field.type);
29628
                TProtocolUtil.skip(iprot, field.type);
34301
              }
29629
              }
34302
              break;
29630
              break;
Line 34332... Line 29660...
34332
      oprot.writeStructEnd();
29660
      oprot.writeStructEnd();
34333
    }
29661
    }
34334
 
29662
 
34335
    @Override
29663
    @Override
34336
    public String toString() {
29664
    public String toString() {
34337
      StringBuilder sb = new StringBuilder("getRatings_result(");
29665
      StringBuilder sb = new StringBuilder("getBrowseHistory_result(");
34338
      boolean first = true;
29666
      boolean first = true;
34339
 
29667
 
34340
      sb.append("success:");
29668
      sb.append("success:");
34341
      if (this.success == null) {
29669
      if (this.success == null) {
34342
        sb.append("null");
29670
        sb.append("null");
Line 34360... Line 29688...
34360
      // check for required fields
29688
      // check for required fields
34361
    }
29689
    }
34362
 
29690
 
34363
  }
29691
  }
34364
 
29692
 
34365
  public static class updateBrowseHistory_args implements TBase<updateBrowseHistory_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateBrowseHistory_args>   {
29693
  public static class mergeBrowseHistory_args implements TBase<mergeBrowseHistory_args._Fields>, java.io.Serializable, Cloneable, Comparable<mergeBrowseHistory_args>   {
34366
    private static final TStruct STRUCT_DESC = new TStruct("updateBrowseHistory_args");
29694
    private static final TStruct STRUCT_DESC = new TStruct("mergeBrowseHistory_args");
34367
 
29695
 
34368
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)1);
29696
    private static final TField FROM_USER_ID_FIELD_DESC = new TField("fromUserId", TType.I64, (short)1);
34369
    private static final TField ITEM_ID_FIELD_DESC = new TField("item_id", TType.I64, (short)2);
29697
    private static final TField TO_USER_ID_FIELD_DESC = new TField("toUserId", TType.I64, (short)2);
34370
    private static final TField IS_SESSION_ID_FIELD_DESC = new TField("isSessionId", TType.BOOL, (short)3);
-
 
34371
 
29698
 
34372
    private long user_id;
29699
    private long fromUserId;
34373
    private long item_id;
29700
    private long toUserId;
34374
    private boolean isSessionId;
-
 
34375
 
29701
 
34376
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29702
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34377
    public enum _Fields implements TFieldIdEnum {
29703
    public enum _Fields implements TFieldIdEnum {
34378
      USER_ID((short)1, "user_id"),
29704
      FROM_USER_ID((short)1, "fromUserId"),
34379
      ITEM_ID((short)2, "item_id"),
29705
      TO_USER_ID((short)2, "toUserId");
34380
      IS_SESSION_ID((short)3, "isSessionId");
-
 
34381
 
29706
 
34382
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
29707
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
34383
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29708
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34384
 
29709
 
34385
      static {
29710
      static {
Line 34429... Line 29754...
34429
        return _fieldName;
29754
        return _fieldName;
34430
      }
29755
      }
34431
    }
29756
    }
34432
 
29757
 
34433
    // isset id assignments
29758
    // isset id assignments
34434
    private static final int __USER_ID_ISSET_ID = 0;
29759
    private static final int __FROMUSERID_ISSET_ID = 0;
34435
    private static final int __ITEM_ID_ISSET_ID = 1;
29760
    private static final int __TOUSERID_ISSET_ID = 1;
34436
    private static final int __ISSESSIONID_ISSET_ID = 2;
-
 
34437
    private BitSet __isset_bit_vector = new BitSet(3);
29761
    private BitSet __isset_bit_vector = new BitSet(2);
34438
 
29762
 
34439
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
29763
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
34440
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
29764
      put(_Fields.FROM_USER_ID, new FieldMetaData("fromUserId", TFieldRequirementType.DEFAULT, 
34441
          new FieldValueMetaData(TType.I64)));
29765
          new FieldValueMetaData(TType.I64)));
34442
      put(_Fields.ITEM_ID, new FieldMetaData("item_id", TFieldRequirementType.DEFAULT, 
29766
      put(_Fields.TO_USER_ID, new FieldMetaData("toUserId", TFieldRequirementType.DEFAULT, 
34443
          new FieldValueMetaData(TType.I64)));
29767
          new FieldValueMetaData(TType.I64)));
34444
      put(_Fields.IS_SESSION_ID, new FieldMetaData("isSessionId", TFieldRequirementType.DEFAULT, 
-
 
34445
          new FieldValueMetaData(TType.BOOL)));
-
 
34446
    }});
29768
    }});
34447
 
29769
 
34448
    static {
29770
    static {
34449
      FieldMetaData.addStructMetaDataMap(updateBrowseHistory_args.class, metaDataMap);
29771
      FieldMetaData.addStructMetaDataMap(mergeBrowseHistory_args.class, metaDataMap);
34450
    }
29772
    }
34451
 
29773
 
34452
    public updateBrowseHistory_args() {
29774
    public mergeBrowseHistory_args() {
34453
    }
29775
    }
34454
 
29776
 
34455
    public updateBrowseHistory_args(
29777
    public mergeBrowseHistory_args(
34456
      long user_id,
29778
      long fromUserId,
34457
      long item_id,
29779
      long toUserId)
34458
      boolean isSessionId)
-
 
34459
    {
29780
    {
34460
      this();
29781
      this();
34461
      this.user_id = user_id;
29782
      this.fromUserId = fromUserId;
34462
      setUser_idIsSet(true);
29783
      setFromUserIdIsSet(true);
34463
      this.item_id = item_id;
29784
      this.toUserId = toUserId;
34464
      setItem_idIsSet(true);
29785
      setToUserIdIsSet(true);
34465
      this.isSessionId = isSessionId;
-
 
34466
      setIsSessionIdIsSet(true);
-
 
34467
    }
29786
    }
34468
 
29787
 
34469
    /**
29788
    /**
34470
     * Performs a deep copy on <i>other</i>.
29789
     * Performs a deep copy on <i>other</i>.
34471
     */
29790
     */
34472
    public updateBrowseHistory_args(updateBrowseHistory_args other) {
29791
    public mergeBrowseHistory_args(mergeBrowseHistory_args other) {
34473
      __isset_bit_vector.clear();
29792
      __isset_bit_vector.clear();
34474
      __isset_bit_vector.or(other.__isset_bit_vector);
29793
      __isset_bit_vector.or(other.__isset_bit_vector);
34475
      this.user_id = other.user_id;
29794
      this.fromUserId = other.fromUserId;
34476
      this.item_id = other.item_id;
29795
      this.toUserId = other.toUserId;
34477
      this.isSessionId = other.isSessionId;
-
 
34478
    }
29796
    }
34479
 
29797
 
34480
    public updateBrowseHistory_args deepCopy() {
29798
    public mergeBrowseHistory_args deepCopy() {
34481
      return new updateBrowseHistory_args(this);
29799
      return new mergeBrowseHistory_args(this);
34482
    }
29800
    }
34483
 
29801
 
34484
    @Deprecated
29802
    @Deprecated
34485
    public updateBrowseHistory_args clone() {
29803
    public mergeBrowseHistory_args clone() {
34486
      return new updateBrowseHistory_args(this);
29804
      return new mergeBrowseHistory_args(this);
34487
    }
-
 
34488
 
-
 
34489
    public long getUser_id() {
-
 
34490
      return this.user_id;
-
 
34491
    }
-
 
34492
 
-
 
34493
    public updateBrowseHistory_args setUser_id(long user_id) {
-
 
34494
      this.user_id = user_id;
-
 
34495
      setUser_idIsSet(true);
-
 
34496
      return this;
-
 
34497
    }
-
 
34498
 
-
 
34499
    public void unsetUser_id() {
-
 
34500
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
-
 
34501
    }
-
 
34502
 
-
 
34503
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
-
 
34504
    public boolean isSetUser_id() {
-
 
34505
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
-
 
34506
    }
-
 
34507
 
-
 
34508
    public void setUser_idIsSet(boolean value) {
-
 
34509
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
-
 
34510
    }
29805
    }
34511
 
29806
 
34512
    public long getItem_id() {
29807
    public long getFromUserId() {
34513
      return this.item_id;
29808
      return this.fromUserId;
34514
    }
29809
    }
34515
 
29810
 
34516
    public updateBrowseHistory_args setItem_id(long item_id) {
29811
    public mergeBrowseHistory_args setFromUserId(long fromUserId) {
34517
      this.item_id = item_id;
29812
      this.fromUserId = fromUserId;
34518
      setItem_idIsSet(true);
29813
      setFromUserIdIsSet(true);
34519
      return this;
29814
      return this;
34520
    }
29815
    }
34521
 
29816
 
34522
    public void unsetItem_id() {
29817
    public void unsetFromUserId() {
34523
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
29818
      __isset_bit_vector.clear(__FROMUSERID_ISSET_ID);
34524
    }
29819
    }
34525
 
29820
 
34526
    /** Returns true if field item_id is set (has been asigned a value) and false otherwise */
29821
    /** Returns true if field fromUserId is set (has been asigned a value) and false otherwise */
34527
    public boolean isSetItem_id() {
29822
    public boolean isSetFromUserId() {
34528
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
29823
      return __isset_bit_vector.get(__FROMUSERID_ISSET_ID);
34529
    }
29824
    }
34530
 
29825
 
34531
    public void setItem_idIsSet(boolean value) {
29826
    public void setFromUserIdIsSet(boolean value) {
34532
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
29827
      __isset_bit_vector.set(__FROMUSERID_ISSET_ID, value);
34533
    }
29828
    }
34534
 
29829
 
34535
    public boolean isIsSessionId() {
29830
    public long getToUserId() {
34536
      return this.isSessionId;
29831
      return this.toUserId;
34537
    }
29832
    }
34538
 
29833
 
34539
    public updateBrowseHistory_args setIsSessionId(boolean isSessionId) {
29834
    public mergeBrowseHistory_args setToUserId(long toUserId) {
34540
      this.isSessionId = isSessionId;
29835
      this.toUserId = toUserId;
34541
      setIsSessionIdIsSet(true);
29836
      setToUserIdIsSet(true);
34542
      return this;
29837
      return this;
34543
    }
29838
    }
34544
 
29839
 
34545
    public void unsetIsSessionId() {
29840
    public void unsetToUserId() {
34546
      __isset_bit_vector.clear(__ISSESSIONID_ISSET_ID);
29841
      __isset_bit_vector.clear(__TOUSERID_ISSET_ID);
34547
    }
29842
    }
34548
 
29843
 
34549
    /** Returns true if field isSessionId is set (has been asigned a value) and false otherwise */
29844
    /** Returns true if field toUserId is set (has been asigned a value) and false otherwise */
34550
    public boolean isSetIsSessionId() {
29845
    public boolean isSetToUserId() {
34551
      return __isset_bit_vector.get(__ISSESSIONID_ISSET_ID);
29846
      return __isset_bit_vector.get(__TOUSERID_ISSET_ID);
34552
    }
29847
    }
34553
 
29848
 
34554
    public void setIsSessionIdIsSet(boolean value) {
29849
    public void setToUserIdIsSet(boolean value) {
34555
      __isset_bit_vector.set(__ISSESSIONID_ISSET_ID, value);
29850
      __isset_bit_vector.set(__TOUSERID_ISSET_ID, value);
34556
    }
29851
    }
34557
 
29852
 
34558
    public void setFieldValue(_Fields field, Object value) {
29853
    public void setFieldValue(_Fields field, Object value) {
34559
      switch (field) {
29854
      switch (field) {
34560
      case USER_ID:
29855
      case FROM_USER_ID:
34561
        if (value == null) {
-
 
34562
          unsetUser_id();
-
 
34563
        } else {
-
 
34564
          setUser_id((Long)value);
-
 
34565
        }
-
 
34566
        break;
-
 
34567
 
-
 
34568
      case ITEM_ID:
-
 
34569
        if (value == null) {
29856
        if (value == null) {
34570
          unsetItem_id();
29857
          unsetFromUserId();
34571
        } else {
29858
        } else {
34572
          setItem_id((Long)value);
29859
          setFromUserId((Long)value);
34573
        }
29860
        }
34574
        break;
29861
        break;
34575
 
29862
 
34576
      case IS_SESSION_ID:
29863
      case TO_USER_ID:
34577
        if (value == null) {
29864
        if (value == null) {
34578
          unsetIsSessionId();
29865
          unsetToUserId();
34579
        } else {
29866
        } else {
34580
          setIsSessionId((Boolean)value);
29867
          setToUserId((Long)value);
34581
        }
29868
        }
34582
        break;
29869
        break;
34583
 
29870
 
34584
      }
29871
      }
34585
    }
29872
    }
Line 34588... Line 29875...
34588
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
29875
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
34589
    }
29876
    }
34590
 
29877
 
34591
    public Object getFieldValue(_Fields field) {
29878
    public Object getFieldValue(_Fields field) {
34592
      switch (field) {
29879
      switch (field) {
34593
      case USER_ID:
29880
      case FROM_USER_ID:
34594
        return new Long(getUser_id());
29881
        return new Long(getFromUserId());
34595
 
-
 
34596
      case ITEM_ID:
-
 
34597
        return new Long(getItem_id());
-
 
34598
 
29882
 
34599
      case IS_SESSION_ID:
29883
      case TO_USER_ID:
34600
        return new Boolean(isIsSessionId());
29884
        return new Long(getToUserId());
34601
 
29885
 
34602
      }
29886
      }
34603
      throw new IllegalStateException();
29887
      throw new IllegalStateException();
34604
    }
29888
    }
34605
 
29889
 
Line 34608... Line 29892...
34608
    }
29892
    }
34609
 
29893
 
34610
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
29894
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
34611
    public boolean isSet(_Fields field) {
29895
    public boolean isSet(_Fields field) {
34612
      switch (field) {
29896
      switch (field) {
34613
      case USER_ID:
29897
      case FROM_USER_ID:
34614
        return isSetUser_id();
29898
        return isSetFromUserId();
34615
      case ITEM_ID:
29899
      case TO_USER_ID:
34616
        return isSetItem_id();
29900
        return isSetToUserId();
34617
      case IS_SESSION_ID:
-
 
34618
        return isSetIsSessionId();
-
 
34619
      }
29901
      }
34620
      throw new IllegalStateException();
29902
      throw new IllegalStateException();
34621
    }
29903
    }
34622
 
29904
 
34623
    public boolean isSet(int fieldID) {
29905
    public boolean isSet(int fieldID) {
Line 34626... Line 29908...
34626
 
29908
 
34627
    @Override
29909
    @Override
34628
    public boolean equals(Object that) {
29910
    public boolean equals(Object that) {
34629
      if (that == null)
29911
      if (that == null)
34630
        return false;
29912
        return false;
34631
      if (that instanceof updateBrowseHistory_args)
29913
      if (that instanceof mergeBrowseHistory_args)
34632
        return this.equals((updateBrowseHistory_args)that);
29914
        return this.equals((mergeBrowseHistory_args)that);
34633
      return false;
29915
      return false;
34634
    }
29916
    }
34635
 
29917
 
34636
    public boolean equals(updateBrowseHistory_args that) {
29918
    public boolean equals(mergeBrowseHistory_args that) {
34637
      if (that == null)
29919
      if (that == null)
34638
        return false;
29920
        return false;
34639
 
29921
 
34640
      boolean this_present_user_id = true;
29922
      boolean this_present_fromUserId = true;
34641
      boolean that_present_user_id = true;
29923
      boolean that_present_fromUserId = true;
34642
      if (this_present_user_id || that_present_user_id) {
29924
      if (this_present_fromUserId || that_present_fromUserId) {
34643
        if (!(this_present_user_id && that_present_user_id))
29925
        if (!(this_present_fromUserId && that_present_fromUserId))
34644
          return false;
29926
          return false;
34645
        if (this.user_id != that.user_id)
29927
        if (this.fromUserId != that.fromUserId)
34646
          return false;
29928
          return false;
34647
      }
29929
      }
34648
 
29930
 
34649
      boolean this_present_item_id = true;
29931
      boolean this_present_toUserId = true;
34650
      boolean that_present_item_id = true;
29932
      boolean that_present_toUserId = true;
34651
      if (this_present_item_id || that_present_item_id) {
29933
      if (this_present_toUserId || that_present_toUserId) {
34652
        if (!(this_present_item_id && that_present_item_id))
29934
        if (!(this_present_toUserId && that_present_toUserId))
34653
          return false;
29935
          return false;
34654
        if (this.item_id != that.item_id)
29936
        if (this.toUserId != that.toUserId)
34655
          return false;
-
 
34656
      }
-
 
34657
 
-
 
34658
      boolean this_present_isSessionId = true;
-
 
34659
      boolean that_present_isSessionId = true;
-
 
34660
      if (this_present_isSessionId || that_present_isSessionId) {
-
 
34661
        if (!(this_present_isSessionId && that_present_isSessionId))
-
 
34662
          return false;
-
 
34663
        if (this.isSessionId != that.isSessionId)
-
 
34664
          return false;
29937
          return false;
34665
      }
29938
      }
34666
 
29939
 
34667
      return true;
29940
      return true;
34668
    }
29941
    }
Line 34670... Line 29943...
34670
    @Override
29943
    @Override
34671
    public int hashCode() {
29944
    public int hashCode() {
34672
      return 0;
29945
      return 0;
34673
    }
29946
    }
34674
 
29947
 
34675
    public int compareTo(updateBrowseHistory_args other) {
29948
    public int compareTo(mergeBrowseHistory_args other) {
34676
      if (!getClass().equals(other.getClass())) {
29949
      if (!getClass().equals(other.getClass())) {
34677
        return getClass().getName().compareTo(other.getClass().getName());
29950
        return getClass().getName().compareTo(other.getClass().getName());
34678
      }
29951
      }
34679
 
29952
 
34680
      int lastComparison = 0;
29953
      int lastComparison = 0;
34681
      updateBrowseHistory_args typedOther = (updateBrowseHistory_args)other;
29954
      mergeBrowseHistory_args typedOther = (mergeBrowseHistory_args)other;
34682
 
29955
 
34683
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
29956
      lastComparison = Boolean.valueOf(isSetFromUserId()).compareTo(isSetFromUserId());
34684
      if (lastComparison != 0) {
-
 
34685
        return lastComparison;
-
 
34686
      }
-
 
34687
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
-
 
34688
      if (lastComparison != 0) {
-
 
34689
        return lastComparison;
-
 
34690
      }
-
 
34691
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(isSetItem_id());
-
 
34692
      if (lastComparison != 0) {
29957
      if (lastComparison != 0) {
34693
        return lastComparison;
29958
        return lastComparison;
34694
      }
29959
      }
34695
      lastComparison = TBaseHelper.compareTo(item_id, typedOther.item_id);
29960
      lastComparison = TBaseHelper.compareTo(fromUserId, typedOther.fromUserId);
34696
      if (lastComparison != 0) {
29961
      if (lastComparison != 0) {
34697
        return lastComparison;
29962
        return lastComparison;
34698
      }
29963
      }
34699
      lastComparison = Boolean.valueOf(isSetIsSessionId()).compareTo(isSetIsSessionId());
29964
      lastComparison = Boolean.valueOf(isSetToUserId()).compareTo(isSetToUserId());
34700
      if (lastComparison != 0) {
29965
      if (lastComparison != 0) {
34701
        return lastComparison;
29966
        return lastComparison;
34702
      }
29967
      }
34703
      lastComparison = TBaseHelper.compareTo(isSessionId, typedOther.isSessionId);
29968
      lastComparison = TBaseHelper.compareTo(toUserId, typedOther.toUserId);
34704
      if (lastComparison != 0) {
29969
      if (lastComparison != 0) {
34705
        return lastComparison;
29970
        return lastComparison;
34706
      }
29971
      }
34707
      return 0;
29972
      return 0;
34708
    }
29973
    }
Line 34719... Line 29984...
34719
        _Fields fieldId = _Fields.findByThriftId(field.id);
29984
        _Fields fieldId = _Fields.findByThriftId(field.id);
34720
        if (fieldId == null) {
29985
        if (fieldId == null) {
34721
          TProtocolUtil.skip(iprot, field.type);
29986
          TProtocolUtil.skip(iprot, field.type);
34722
        } else {
29987
        } else {
34723
          switch (fieldId) {
29988
          switch (fieldId) {
34724
            case USER_ID:
29989
            case FROM_USER_ID:
34725
              if (field.type == TType.I64) {
29990
              if (field.type == TType.I64) {
34726
                this.user_id = iprot.readI64();
29991
                this.fromUserId = iprot.readI64();
34727
                setUser_idIsSet(true);
29992
                setFromUserIdIsSet(true);
34728
              } else { 
29993
              } else { 
34729
                TProtocolUtil.skip(iprot, field.type);
29994
                TProtocolUtil.skip(iprot, field.type);
34730
              }
29995
              }
34731
              break;
29996
              break;
34732
            case ITEM_ID:
29997
            case TO_USER_ID:
34733
              if (field.type == TType.I64) {
29998
              if (field.type == TType.I64) {
34734
                this.item_id = iprot.readI64();
29999
                this.toUserId = iprot.readI64();
34735
                setItem_idIsSet(true);
30000
                setToUserIdIsSet(true);
34736
              } else { 
-
 
34737
                TProtocolUtil.skip(iprot, field.type);
-
 
34738
              }
-
 
34739
              break;
-
 
34740
            case IS_SESSION_ID:
-
 
34741
              if (field.type == TType.BOOL) {
-
 
34742
                this.isSessionId = iprot.readBool();
-
 
34743
                setIsSessionIdIsSet(true);
-
 
34744
              } else { 
30001
              } else { 
34745
                TProtocolUtil.skip(iprot, field.type);
30002
                TProtocolUtil.skip(iprot, field.type);
34746
              }
30003
              }
34747
              break;
30004
              break;
34748
          }
30005
          }
Line 34755... Line 30012...
34755
 
30012
 
34756
    public void write(TProtocol oprot) throws TException {
30013
    public void write(TProtocol oprot) throws TException {
34757
      validate();
30014
      validate();
34758
 
30015
 
34759
      oprot.writeStructBegin(STRUCT_DESC);
30016
      oprot.writeStructBegin(STRUCT_DESC);
34760
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
30017
      oprot.writeFieldBegin(FROM_USER_ID_FIELD_DESC);
34761
      oprot.writeI64(this.user_id);
30018
      oprot.writeI64(this.fromUserId);
34762
      oprot.writeFieldEnd();
30019
      oprot.writeFieldEnd();
34763
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
30020
      oprot.writeFieldBegin(TO_USER_ID_FIELD_DESC);
34764
      oprot.writeI64(this.item_id);
30021
      oprot.writeI64(this.toUserId);
34765
      oprot.writeFieldEnd();
-
 
34766
      oprot.writeFieldBegin(IS_SESSION_ID_FIELD_DESC);
-
 
34767
      oprot.writeBool(this.isSessionId);
-
 
34768
      oprot.writeFieldEnd();
30022
      oprot.writeFieldEnd();
34769
      oprot.writeFieldStop();
30023
      oprot.writeFieldStop();
34770
      oprot.writeStructEnd();
30024
      oprot.writeStructEnd();
34771
    }
30025
    }
34772
 
30026
 
34773
    @Override
30027
    @Override
34774
    public String toString() {
30028
    public String toString() {
34775
      StringBuilder sb = new StringBuilder("updateBrowseHistory_args(");
30029
      StringBuilder sb = new StringBuilder("mergeBrowseHistory_args(");
34776
      boolean first = true;
30030
      boolean first = true;
34777
 
30031
 
34778
      sb.append("user_id:");
30032
      sb.append("fromUserId:");
34779
      sb.append(this.user_id);
30033
      sb.append(this.fromUserId);
34780
      first = false;
30034
      first = false;
34781
      if (!first) sb.append(", ");
30035
      if (!first) sb.append(", ");
34782
      sb.append("item_id:");
30036
      sb.append("toUserId:");
34783
      sb.append(this.item_id);
30037
      sb.append(this.toUserId);
34784
      first = false;
-
 
34785
      if (!first) sb.append(", ");
-
 
34786
      sb.append("isSessionId:");
-
 
34787
      sb.append(this.isSessionId);
-
 
34788
      first = false;
30038
      first = false;
34789
      sb.append(")");
30039
      sb.append(")");
34790
      return sb.toString();
30040
      return sb.toString();
34791
    }
30041
    }
34792
 
30042
 
Line 34794... Line 30044...
34794
      // check for required fields
30044
      // check for required fields
34795
    }
30045
    }
34796
 
30046
 
34797
  }
30047
  }
34798
 
30048
 
34799
  public static class updateBrowseHistory_result implements TBase<updateBrowseHistory_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateBrowseHistory_result>   {
30049
  public static class mergeBrowseHistory_result implements TBase<mergeBrowseHistory_result._Fields>, java.io.Serializable, Cloneable, Comparable<mergeBrowseHistory_result>   {
34800
    private static final TStruct STRUCT_DESC = new TStruct("updateBrowseHistory_result");
30050
    private static final TStruct STRUCT_DESC = new TStruct("mergeBrowseHistory_result");
34801
 
30051
 
34802
 
30052
 
34803
 
30053
 
34804
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30054
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34805
    public enum _Fields implements TFieldIdEnum {
30055
    public enum _Fields implements TFieldIdEnum {
Line 34857... Line 30107...
34857
    }
30107
    }
34858
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
30108
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
34859
    }});
30109
    }});
34860
 
30110
 
34861
    static {
30111
    static {
34862
      FieldMetaData.addStructMetaDataMap(updateBrowseHistory_result.class, metaDataMap);
30112
      FieldMetaData.addStructMetaDataMap(mergeBrowseHistory_result.class, metaDataMap);
34863
    }
-
 
34864
 
-
 
34865
    public updateBrowseHistory_result() {
-
 
34866
    }
-
 
34867
 
-
 
34868
    /**
-
 
34869
     * Performs a deep copy on <i>other</i>.
-
 
34870
     */
-
 
34871
    public updateBrowseHistory_result(updateBrowseHistory_result other) {
-
 
34872
    }
-
 
34873
 
-
 
34874
    public updateBrowseHistory_result deepCopy() {
-
 
34875
      return new updateBrowseHistory_result(this);
-
 
34876
    }
-
 
34877
 
-
 
34878
    @Deprecated
-
 
34879
    public updateBrowseHistory_result clone() {
-
 
34880
      return new updateBrowseHistory_result(this);
-
 
34881
    }
-
 
34882
 
-
 
34883
    public void setFieldValue(_Fields field, Object value) {
-
 
34884
      switch (field) {
-
 
34885
      }
-
 
34886
    }
-
 
34887
 
-
 
34888
    public void setFieldValue(int fieldID, Object value) {
-
 
34889
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
34890
    }
-
 
34891
 
-
 
34892
    public Object getFieldValue(_Fields field) {
-
 
34893
      switch (field) {
-
 
34894
      }
-
 
34895
      throw new IllegalStateException();
-
 
34896
    }
-
 
34897
 
-
 
34898
    public Object getFieldValue(int fieldId) {
-
 
34899
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
34900
    }
-
 
34901
 
-
 
34902
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
34903
    public boolean isSet(_Fields field) {
-
 
34904
      switch (field) {
-
 
34905
      }
-
 
34906
      throw new IllegalStateException();
-
 
34907
    }
-
 
34908
 
-
 
34909
    public boolean isSet(int fieldID) {
-
 
34910
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
34911
    }
-
 
34912
 
-
 
34913
    @Override
-
 
34914
    public boolean equals(Object that) {
-
 
34915
      if (that == null)
-
 
34916
        return false;
-
 
34917
      if (that instanceof updateBrowseHistory_result)
-
 
34918
        return this.equals((updateBrowseHistory_result)that);
-
 
34919
      return false;
-
 
34920
    }
-
 
34921
 
-
 
34922
    public boolean equals(updateBrowseHistory_result that) {
-
 
34923
      if (that == null)
-
 
34924
        return false;
-
 
34925
 
-
 
34926
      return true;
-
 
34927
    }
-
 
34928
 
-
 
34929
    @Override
-
 
34930
    public int hashCode() {
-
 
34931
      return 0;
-
 
34932
    }
-
 
34933
 
-
 
34934
    public int compareTo(updateBrowseHistory_result other) {
-
 
34935
      if (!getClass().equals(other.getClass())) {
-
 
34936
        return getClass().getName().compareTo(other.getClass().getName());
-
 
34937
      }
-
 
34938
 
-
 
34939
      int lastComparison = 0;
-
 
34940
      updateBrowseHistory_result typedOther = (updateBrowseHistory_result)other;
-
 
34941
 
-
 
34942
      return 0;
-
 
34943
    }
-
 
34944
 
-
 
34945
    public void read(TProtocol iprot) throws TException {
-
 
34946
      TField field;
-
 
34947
      iprot.readStructBegin();
-
 
34948
      while (true)
-
 
34949
      {
-
 
34950
        field = iprot.readFieldBegin();
-
 
34951
        if (field.type == TType.STOP) { 
-
 
34952
          break;
-
 
34953
        }
-
 
34954
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
34955
        if (fieldId == null) {
-
 
34956
          TProtocolUtil.skip(iprot, field.type);
-
 
34957
        } else {
-
 
34958
          switch (fieldId) {
-
 
34959
          }
-
 
34960
          iprot.readFieldEnd();
-
 
34961
        }
-
 
34962
      }
-
 
34963
      iprot.readStructEnd();
-
 
34964
      validate();
-
 
34965
    }
-
 
34966
 
-
 
34967
    public void write(TProtocol oprot) throws TException {
-
 
34968
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34969
 
-
 
34970
      oprot.writeFieldStop();
-
 
34971
      oprot.writeStructEnd();
-
 
34972
    }
-
 
34973
 
-
 
34974
    @Override
-
 
34975
    public String toString() {
-
 
34976
      StringBuilder sb = new StringBuilder("updateBrowseHistory_result(");
-
 
34977
      boolean first = true;
-
 
34978
 
-
 
34979
      sb.append(")");
-
 
34980
      return sb.toString();
-
 
34981
    }
-
 
34982
 
-
 
34983
    public void validate() throws TException {
-
 
34984
      // check for required fields
-
 
34985
    }
-
 
34986
 
-
 
34987
  }
-
 
34988
 
-
 
34989
  public static class getBrowseHistory_args implements TBase<getBrowseHistory_args._Fields>, java.io.Serializable, Cloneable, Comparable<getBrowseHistory_args>   {
-
 
34990
    private static final TStruct STRUCT_DESC = new TStruct("getBrowseHistory_args");
-
 
34991
 
-
 
34992
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
34993
    private static final TField IS_SESSION_ID_FIELD_DESC = new TField("isSessionId", TType.BOOL, (short)2);
-
 
34994
 
-
 
34995
    private long userId;
-
 
34996
    private boolean isSessionId;
-
 
34997
 
-
 
34998
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34999
    public enum _Fields implements TFieldIdEnum {
-
 
35000
      USER_ID((short)1, "userId"),
-
 
35001
      IS_SESSION_ID((short)2, "isSessionId");
-
 
35002
 
-
 
35003
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
35004
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35005
 
-
 
35006
      static {
-
 
35007
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
35008
          byId.put((int)field._thriftId, field);
-
 
35009
          byName.put(field.getFieldName(), field);
-
 
35010
        }
-
 
35011
      }
-
 
35012
 
-
 
35013
      /**
-
 
35014
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35015
       */
-
 
35016
      public static _Fields findByThriftId(int fieldId) {
-
 
35017
        return byId.get(fieldId);
-
 
35018
      }
-
 
35019
 
-
 
35020
      /**
-
 
35021
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35022
       * if it is not found.
-
 
35023
       */
-
 
35024
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35025
        _Fields fields = findByThriftId(fieldId);
-
 
35026
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35027
        return fields;
-
 
35028
      }
-
 
35029
 
-
 
35030
      /**
-
 
35031
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35032
       */
-
 
35033
      public static _Fields findByName(String name) {
-
 
35034
        return byName.get(name);
-
 
35035
      }
-
 
35036
 
-
 
35037
      private final short _thriftId;
-
 
35038
      private final String _fieldName;
-
 
35039
 
-
 
35040
      _Fields(short thriftId, String fieldName) {
-
 
35041
        _thriftId = thriftId;
-
 
35042
        _fieldName = fieldName;
-
 
35043
      }
-
 
35044
 
-
 
35045
      public short getThriftFieldId() {
-
 
35046
        return _thriftId;
-
 
35047
      }
-
 
35048
 
-
 
35049
      public String getFieldName() {
-
 
35050
        return _fieldName;
-
 
35051
      }
-
 
35052
    }
-
 
35053
 
-
 
35054
    // isset id assignments
-
 
35055
    private static final int __USERID_ISSET_ID = 0;
-
 
35056
    private static final int __ISSESSIONID_ISSET_ID = 1;
-
 
35057
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
35058
 
-
 
35059
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
35060
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
35061
          new FieldValueMetaData(TType.I64)));
-
 
35062
      put(_Fields.IS_SESSION_ID, new FieldMetaData("isSessionId", TFieldRequirementType.DEFAULT, 
-
 
35063
          new FieldValueMetaData(TType.BOOL)));
-
 
35064
    }});
-
 
35065
 
-
 
35066
    static {
-
 
35067
      FieldMetaData.addStructMetaDataMap(getBrowseHistory_args.class, metaDataMap);
-
 
35068
    }
30113
    }
35069
 
30114
 
35070
    public getBrowseHistory_args() {
30115
    public mergeBrowseHistory_result() {
35071
    }
-
 
35072
 
-
 
35073
    public getBrowseHistory_args(
-
 
35074
      long userId,
-
 
35075
      boolean isSessionId)
-
 
35076
    {
-
 
35077
      this();
-
 
35078
      this.userId = userId;
-
 
35079
      setUserIdIsSet(true);
-
 
35080
      this.isSessionId = isSessionId;
-
 
35081
      setIsSessionIdIsSet(true);
-
 
35082
    }
30116
    }
35083
 
30117
 
35084
    /**
30118
    /**
35085
     * Performs a deep copy on <i>other</i>.
30119
     * Performs a deep copy on <i>other</i>.
35086
     */
30120
     */
35087
    public getBrowseHistory_args(getBrowseHistory_args other) {
30121
    public mergeBrowseHistory_result(mergeBrowseHistory_result other) {
35088
      __isset_bit_vector.clear();
-
 
35089
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
35090
      this.userId = other.userId;
-
 
35091
      this.isSessionId = other.isSessionId;
-
 
35092
    }
30122
    }
35093
 
30123
 
35094
    public getBrowseHistory_args deepCopy() {
30124
    public mergeBrowseHistory_result deepCopy() {
35095
      return new getBrowseHistory_args(this);
30125
      return new mergeBrowseHistory_result(this);
35096
    }
30126
    }
35097
 
30127
 
35098
    @Deprecated
30128
    @Deprecated
35099
    public getBrowseHistory_args clone() {
30129
    public mergeBrowseHistory_result clone() {
35100
      return new getBrowseHistory_args(this);
30130
      return new mergeBrowseHistory_result(this);
35101
    }
-
 
35102
 
-
 
35103
    public long getUserId() {
-
 
35104
      return this.userId;
-
 
35105
    }
-
 
35106
 
-
 
35107
    public getBrowseHistory_args setUserId(long userId) {
-
 
35108
      this.userId = userId;
-
 
35109
      setUserIdIsSet(true);
-
 
35110
      return this;
-
 
35111
    }
-
 
35112
 
-
 
35113
    public void unsetUserId() {
-
 
35114
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
35115
    }
-
 
35116
 
-
 
35117
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
-
 
35118
    public boolean isSetUserId() {
-
 
35119
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
35120
    }
-
 
35121
 
-
 
35122
    public void setUserIdIsSet(boolean value) {
-
 
35123
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
35124
    }
-
 
35125
 
-
 
35126
    public boolean isIsSessionId() {
-
 
35127
      return this.isSessionId;
-
 
35128
    }
-
 
35129
 
-
 
35130
    public getBrowseHistory_args setIsSessionId(boolean isSessionId) {
-
 
35131
      this.isSessionId = isSessionId;
-
 
35132
      setIsSessionIdIsSet(true);
-
 
35133
      return this;
-
 
35134
    }
-
 
35135
 
-
 
35136
    public void unsetIsSessionId() {
-
 
35137
      __isset_bit_vector.clear(__ISSESSIONID_ISSET_ID);
-
 
35138
    }
-
 
35139
 
-
 
35140
    /** Returns true if field isSessionId is set (has been asigned a value) and false otherwise */
-
 
35141
    public boolean isSetIsSessionId() {
-
 
35142
      return __isset_bit_vector.get(__ISSESSIONID_ISSET_ID);
-
 
35143
    }
-
 
35144
 
-
 
35145
    public void setIsSessionIdIsSet(boolean value) {
-
 
35146
      __isset_bit_vector.set(__ISSESSIONID_ISSET_ID, value);
-
 
35147
    }
30131
    }
35148
 
30132
 
35149
    public void setFieldValue(_Fields field, Object value) {
30133
    public void setFieldValue(_Fields field, Object value) {
35150
      switch (field) {
30134
      switch (field) {
35151
      case USER_ID:
-
 
35152
        if (value == null) {
-
 
35153
          unsetUserId();
-
 
35154
        } else {
-
 
35155
          setUserId((Long)value);
-
 
35156
        }
-
 
35157
        break;
-
 
35158
 
-
 
35159
      case IS_SESSION_ID:
-
 
35160
        if (value == null) {
-
 
35161
          unsetIsSessionId();
-
 
35162
        } else {
-
 
35163
          setIsSessionId((Boolean)value);
-
 
35164
        }
-
 
35165
        break;
-
 
35166
 
-
 
35167
      }
30135
      }
35168
    }
30136
    }
35169
 
30137
 
35170
    public void setFieldValue(int fieldID, Object value) {
30138
    public void setFieldValue(int fieldID, Object value) {
35171
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
30139
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
35172
    }
30140
    }
35173
 
30141
 
35174
    public Object getFieldValue(_Fields field) {
30142
    public Object getFieldValue(_Fields field) {
35175
      switch (field) {
30143
      switch (field) {
35176
      case USER_ID:
-
 
35177
        return new Long(getUserId());
-
 
35178
 
-
 
35179
      case IS_SESSION_ID:
-
 
35180
        return new Boolean(isIsSessionId());
-
 
35181
 
-
 
35182
      }
30144
      }
35183
      throw new IllegalStateException();
30145
      throw new IllegalStateException();
35184
    }
30146
    }
35185
 
30147
 
35186
    public Object getFieldValue(int fieldId) {
30148
    public Object getFieldValue(int fieldId) {
Line 35188... Line 30150...
35188
    }
30150
    }
35189
 
30151
 
35190
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
30152
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
35191
    public boolean isSet(_Fields field) {
30153
    public boolean isSet(_Fields field) {
35192
      switch (field) {
30154
      switch (field) {
35193
      case USER_ID:
-
 
35194
        return isSetUserId();
-
 
35195
      case IS_SESSION_ID:
-
 
35196
        return isSetIsSessionId();
-
 
35197
      }
30155
      }
35198
      throw new IllegalStateException();
30156
      throw new IllegalStateException();
35199
    }
30157
    }
35200
 
30158
 
35201
    public boolean isSet(int fieldID) {
30159
    public boolean isSet(int fieldID) {
Line 35204... Line 30162...
35204
 
30162
 
35205
    @Override
30163
    @Override
35206
    public boolean equals(Object that) {
30164
    public boolean equals(Object that) {
35207
      if (that == null)
30165
      if (that == null)
35208
        return false;
30166
        return false;
35209
      if (that instanceof getBrowseHistory_args)
30167
      if (that instanceof mergeBrowseHistory_result)
35210
        return this.equals((getBrowseHistory_args)that);
30168
        return this.equals((mergeBrowseHistory_result)that);
35211
      return false;
30169
      return false;
35212
    }
30170
    }
35213
 
30171
 
35214
    public boolean equals(getBrowseHistory_args that) {
30172
    public boolean equals(mergeBrowseHistory_result that) {
35215
      if (that == null)
30173
      if (that == null)
35216
        return false;
30174
        return false;
35217
 
30175
 
35218
      boolean this_present_userId = true;
-
 
35219
      boolean that_present_userId = true;
-
 
35220
      if (this_present_userId || that_present_userId) {
-
 
35221
        if (!(this_present_userId && that_present_userId))
-
 
35222
          return false;
-
 
35223
        if (this.userId != that.userId)
-
 
35224
          return false;
-
 
35225
      }
-
 
35226
 
-
 
35227
      boolean this_present_isSessionId = true;
-
 
35228
      boolean that_present_isSessionId = true;
-
 
35229
      if (this_present_isSessionId || that_present_isSessionId) {
-
 
35230
        if (!(this_present_isSessionId && that_present_isSessionId))
-
 
35231
          return false;
-
 
35232
        if (this.isSessionId != that.isSessionId)
-
 
35233
          return false;
-
 
35234
      }
-
 
35235
 
-
 
35236
      return true;
30176
      return true;
35237
    }
30177
    }
35238
 
30178
 
35239
    @Override
30179
    @Override
35240
    public int hashCode() {
30180
    public int hashCode() {
35241
      return 0;
30181
      return 0;
35242
    }
30182
    }
35243
 
30183
 
35244
    public int compareTo(getBrowseHistory_args other) {
30184
    public int compareTo(mergeBrowseHistory_result other) {
35245
      if (!getClass().equals(other.getClass())) {
30185
      if (!getClass().equals(other.getClass())) {
35246
        return getClass().getName().compareTo(other.getClass().getName());
30186
        return getClass().getName().compareTo(other.getClass().getName());
35247
      }
30187
      }
35248
 
30188
 
35249
      int lastComparison = 0;
30189
      int lastComparison = 0;
35250
      getBrowseHistory_args typedOther = (getBrowseHistory_args)other;
30190
      mergeBrowseHistory_result typedOther = (mergeBrowseHistory_result)other;
35251
 
30191
 
35252
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
-
 
35253
      if (lastComparison != 0) {
-
 
35254
        return lastComparison;
-
 
35255
      }
-
 
35256
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
-
 
35257
      if (lastComparison != 0) {
-
 
35258
        return lastComparison;
-
 
35259
      }
-
 
35260
      lastComparison = Boolean.valueOf(isSetIsSessionId()).compareTo(isSetIsSessionId());
-
 
35261
      if (lastComparison != 0) {
-
 
35262
        return lastComparison;
-
 
35263
      }
-
 
35264
      lastComparison = TBaseHelper.compareTo(isSessionId, typedOther.isSessionId);
-
 
35265
      if (lastComparison != 0) {
-
 
35266
        return lastComparison;
-
 
35267
      }
-
 
35268
      return 0;
30192
      return 0;
35269
    }
30193
    }
35270
 
30194
 
35271
    public void read(TProtocol iprot) throws TException {
30195
    public void read(TProtocol iprot) throws TException {
35272
      TField field;
30196
      TField field;
Line 35280... Line 30204...
35280
        _Fields fieldId = _Fields.findByThriftId(field.id);
30204
        _Fields fieldId = _Fields.findByThriftId(field.id);
35281
        if (fieldId == null) {
30205
        if (fieldId == null) {
35282
          TProtocolUtil.skip(iprot, field.type);
30206
          TProtocolUtil.skip(iprot, field.type);
35283
        } else {
30207
        } else {
35284
          switch (fieldId) {
30208
          switch (fieldId) {
35285
            case USER_ID:
-
 
35286
              if (field.type == TType.I64) {
-
 
35287
                this.userId = iprot.readI64();
-
 
35288
                setUserIdIsSet(true);
-
 
35289
              } else { 
-
 
35290
                TProtocolUtil.skip(iprot, field.type);
-
 
35291
              }
-
 
35292
              break;
-
 
35293
            case IS_SESSION_ID:
-
 
35294
              if (field.type == TType.BOOL) {
-
 
35295
                this.isSessionId = iprot.readBool();
-
 
35296
                setIsSessionIdIsSet(true);
-
 
35297
              } else { 
-
 
35298
                TProtocolUtil.skip(iprot, field.type);
-
 
35299
              }
-
 
35300
              break;
-
 
35301
          }
30209
          }
35302
          iprot.readFieldEnd();
30210
          iprot.readFieldEnd();
35303
        }
30211
        }
35304
      }
30212
      }
35305
      iprot.readStructEnd();
30213
      iprot.readStructEnd();
35306
      validate();
30214
      validate();
35307
    }
30215
    }
35308
 
30216
 
35309
    public void write(TProtocol oprot) throws TException {
30217
    public void write(TProtocol oprot) throws TException {
35310
      validate();
-
 
35311
 
-
 
35312
      oprot.writeStructBegin(STRUCT_DESC);
30218
      oprot.writeStructBegin(STRUCT_DESC);
35313
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
35314
      oprot.writeI64(this.userId);
-
 
35315
      oprot.writeFieldEnd();
-
 
35316
      oprot.writeFieldBegin(IS_SESSION_ID_FIELD_DESC);
-
 
35317
      oprot.writeBool(this.isSessionId);
-
 
35318
      oprot.writeFieldEnd();
-
 
35319
      oprot.writeFieldStop();
-
 
35320
      oprot.writeStructEnd();
-
 
35321
    }
-
 
35322
 
30219
 
35323
    @Override
-
 
35324
    public String toString() {
-
 
35325
      StringBuilder sb = new StringBuilder("getBrowseHistory_args(");
-
 
35326
      boolean first = true;
-
 
35327
 
-
 
35328
      sb.append("userId:");
-
 
35329
      sb.append(this.userId);
-
 
35330
      first = false;
-
 
35331
      if (!first) sb.append(", ");
-
 
35332
      sb.append("isSessionId:");
-
 
35333
      sb.append(this.isSessionId);
-
 
35334
      first = false;
-
 
35335
      sb.append(")");
-
 
35336
      return sb.toString();
-
 
35337
    }
-
 
35338
 
-
 
35339
    public void validate() throws TException {
-
 
35340
      // check for required fields
-
 
35341
    }
-
 
35342
 
-
 
35343
  }
-
 
35344
 
-
 
35345
  public static class getBrowseHistory_result implements TBase<getBrowseHistory_result._Fields>, java.io.Serializable, Cloneable, Comparable<getBrowseHistory_result>   {
-
 
35346
    private static final TStruct STRUCT_DESC = new TStruct("getBrowseHistory_result");
-
 
35347
 
-
 
35348
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
35349
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
-
 
35350
 
-
 
35351
    private Widget success;
-
 
35352
    private WidgetException scx;
-
 
35353
 
-
 
35354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
35355
    public enum _Fields implements TFieldIdEnum {
-
 
35356
      SUCCESS((short)0, "success"),
-
 
35357
      SCX((short)1, "scx");
-
 
35358
 
-
 
35359
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
35360
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35361
 
-
 
35362
      static {
-
 
35363
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
35364
          byId.put((int)field._thriftId, field);
-
 
35365
          byName.put(field.getFieldName(), field);
-
 
35366
        }
-
 
35367
      }
-
 
35368
 
-
 
35369
      /**
-
 
35370
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35371
       */
-
 
35372
      public static _Fields findByThriftId(int fieldId) {
-
 
35373
        return byId.get(fieldId);
-
 
35374
      }
-
 
35375
 
-
 
35376
      /**
-
 
35377
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35378
       * if it is not found.
-
 
35379
       */
-
 
35380
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35381
        _Fields fields = findByThriftId(fieldId);
-
 
35382
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35383
        return fields;
-
 
35384
      }
-
 
35385
 
-
 
35386
      /**
-
 
35387
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35388
       */
-
 
35389
      public static _Fields findByName(String name) {
-
 
35390
        return byName.get(name);
-
 
35391
      }
-
 
35392
 
-
 
35393
      private final short _thriftId;
-
 
35394
      private final String _fieldName;
-
 
35395
 
-
 
35396
      _Fields(short thriftId, String fieldName) {
-
 
35397
        _thriftId = thriftId;
-
 
35398
        _fieldName = fieldName;
-
 
35399
      }
-
 
35400
 
-
 
35401
      public short getThriftFieldId() {
-
 
35402
        return _thriftId;
-
 
35403
      }
-
 
35404
 
-
 
35405
      public String getFieldName() {
-
 
35406
        return _fieldName;
-
 
35407
      }
-
 
35408
    }
-
 
35409
 
-
 
35410
    // isset id assignments
-
 
35411
 
-
 
35412
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
35413
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
35414
          new StructMetaData(TType.STRUCT, Widget.class)));
-
 
35415
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
35416
          new FieldValueMetaData(TType.STRUCT)));
-
 
35417
    }});
-
 
35418
 
-
 
35419
    static {
-
 
35420
      FieldMetaData.addStructMetaDataMap(getBrowseHistory_result.class, metaDataMap);
-
 
35421
    }
-
 
35422
 
-
 
35423
    public getBrowseHistory_result() {
-
 
35424
    }
-
 
35425
 
-
 
35426
    public getBrowseHistory_result(
-
 
35427
      Widget success,
-
 
35428
      WidgetException scx)
-
 
35429
    {
-
 
35430
      this();
-
 
35431
      this.success = success;
-
 
35432
      this.scx = scx;
-
 
35433
    }
-
 
35434
 
-
 
35435
    /**
-
 
35436
     * Performs a deep copy on <i>other</i>.
-
 
35437
     */
-
 
35438
    public getBrowseHistory_result(getBrowseHistory_result other) {
-
 
35439
      if (other.isSetSuccess()) {
-
 
35440
        this.success = new Widget(other.success);
-
 
35441
      }
-
 
35442
      if (other.isSetScx()) {
-
 
35443
        this.scx = new WidgetException(other.scx);
-
 
35444
      }
-
 
35445
    }
-
 
35446
 
-
 
35447
    public getBrowseHistory_result deepCopy() {
-
 
35448
      return new getBrowseHistory_result(this);
-
 
35449
    }
-
 
35450
 
-
 
35451
    @Deprecated
-
 
35452
    public getBrowseHistory_result clone() {
-
 
35453
      return new getBrowseHistory_result(this);
-
 
35454
    }
-
 
35455
 
-
 
35456
    public Widget getSuccess() {
-
 
35457
      return this.success;
-
 
35458
    }
-
 
35459
 
-
 
35460
    public getBrowseHistory_result setSuccess(Widget success) {
-
 
35461
      this.success = success;
-
 
35462
      return this;
-
 
35463
    }
-
 
35464
 
-
 
35465
    public void unsetSuccess() {
-
 
35466
      this.success = null;
-
 
35467
    }
-
 
35468
 
-
 
35469
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
35470
    public boolean isSetSuccess() {
-
 
35471
      return this.success != null;
-
 
35472
    }
-
 
35473
 
-
 
35474
    public void setSuccessIsSet(boolean value) {
-
 
35475
      if (!value) {
-
 
35476
        this.success = null;
-
 
35477
      }
-
 
35478
    }
-
 
35479
 
-
 
35480
    public WidgetException getScx() {
-
 
35481
      return this.scx;
-
 
35482
    }
-
 
35483
 
-
 
35484
    public getBrowseHistory_result setScx(WidgetException scx) {
-
 
35485
      this.scx = scx;
-
 
35486
      return this;
-
 
35487
    }
-
 
35488
 
-
 
35489
    public void unsetScx() {
-
 
35490
      this.scx = null;
-
 
35491
    }
-
 
35492
 
-
 
35493
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
35494
    public boolean isSetScx() {
-
 
35495
      return this.scx != null;
-
 
35496
    }
-
 
35497
 
-
 
35498
    public void setScxIsSet(boolean value) {
-
 
35499
      if (!value) {
-
 
35500
        this.scx = null;
-
 
35501
      }
-
 
35502
    }
-
 
35503
 
-
 
35504
    public void setFieldValue(_Fields field, Object value) {
-
 
35505
      switch (field) {
-
 
35506
      case SUCCESS:
-
 
35507
        if (value == null) {
-
 
35508
          unsetSuccess();
-
 
35509
        } else {
-
 
35510
          setSuccess((Widget)value);
-
 
35511
        }
-
 
35512
        break;
-
 
35513
 
-
 
35514
      case SCX:
-
 
35515
        if (value == null) {
-
 
35516
          unsetScx();
-
 
35517
        } else {
-
 
35518
          setScx((WidgetException)value);
-
 
35519
        }
-
 
35520
        break;
-
 
35521
 
-
 
35522
      }
-
 
35523
    }
-
 
35524
 
-
 
35525
    public void setFieldValue(int fieldID, Object value) {
-
 
35526
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
35527
    }
-
 
35528
 
-
 
35529
    public Object getFieldValue(_Fields field) {
-
 
35530
      switch (field) {
-
 
35531
      case SUCCESS:
-
 
35532
        return getSuccess();
-
 
35533
 
-
 
35534
      case SCX:
-
 
35535
        return getScx();
-
 
35536
 
-
 
35537
      }
-
 
35538
      throw new IllegalStateException();
-
 
35539
    }
-
 
35540
 
-
 
35541
    public Object getFieldValue(int fieldId) {
-
 
35542
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
35543
    }
-
 
35544
 
-
 
35545
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
35546
    public boolean isSet(_Fields field) {
-
 
35547
      switch (field) {
-
 
35548
      case SUCCESS:
-
 
35549
        return isSetSuccess();
-
 
35550
      case SCX:
-
 
35551
        return isSetScx();
-
 
35552
      }
-
 
35553
      throw new IllegalStateException();
-
 
35554
    }
-
 
35555
 
-
 
35556
    public boolean isSet(int fieldID) {
-
 
35557
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
35558
    }
-
 
35559
 
-
 
35560
    @Override
-
 
35561
    public boolean equals(Object that) {
-
 
35562
      if (that == null)
-
 
35563
        return false;
-
 
35564
      if (that instanceof getBrowseHistory_result)
-
 
35565
        return this.equals((getBrowseHistory_result)that);
-
 
35566
      return false;
-
 
35567
    }
-
 
35568
 
-
 
35569
    public boolean equals(getBrowseHistory_result that) {
-
 
35570
      if (that == null)
-
 
35571
        return false;
-
 
35572
 
-
 
35573
      boolean this_present_success = true && this.isSetSuccess();
-
 
35574
      boolean that_present_success = true && that.isSetSuccess();
-
 
35575
      if (this_present_success || that_present_success) {
-
 
35576
        if (!(this_present_success && that_present_success))
-
 
35577
          return false;
-
 
35578
        if (!this.success.equals(that.success))
-
 
35579
          return false;
-
 
35580
      }
-
 
35581
 
-
 
35582
      boolean this_present_scx = true && this.isSetScx();
-
 
35583
      boolean that_present_scx = true && that.isSetScx();
-
 
35584
      if (this_present_scx || that_present_scx) {
-
 
35585
        if (!(this_present_scx && that_present_scx))
-
 
35586
          return false;
-
 
35587
        if (!this.scx.equals(that.scx))
-
 
35588
          return false;
-
 
35589
      }
-
 
35590
 
-
 
35591
      return true;
-
 
35592
    }
-
 
35593
 
-
 
35594
    @Override
-
 
35595
    public int hashCode() {
-
 
35596
      return 0;
-
 
35597
    }
-
 
35598
 
-
 
35599
    public int compareTo(getBrowseHistory_result other) {
-
 
35600
      if (!getClass().equals(other.getClass())) {
-
 
35601
        return getClass().getName().compareTo(other.getClass().getName());
-
 
35602
      }
-
 
35603
 
-
 
35604
      int lastComparison = 0;
-
 
35605
      getBrowseHistory_result typedOther = (getBrowseHistory_result)other;
-
 
35606
 
-
 
35607
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
35608
      if (lastComparison != 0) {
-
 
35609
        return lastComparison;
-
 
35610
      }
-
 
35611
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
35612
      if (lastComparison != 0) {
-
 
35613
        return lastComparison;
-
 
35614
      }
-
 
35615
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
35616
      if (lastComparison != 0) {
-
 
35617
        return lastComparison;
-
 
35618
      }
-
 
35619
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
35620
      if (lastComparison != 0) {
-
 
35621
        return lastComparison;
-
 
35622
      }
-
 
35623
      return 0;
-
 
35624
    }
-
 
35625
 
-
 
35626
    public void read(TProtocol iprot) throws TException {
-
 
35627
      TField field;
-
 
35628
      iprot.readStructBegin();
-
 
35629
      while (true)
-
 
35630
      {
-
 
35631
        field = iprot.readFieldBegin();
-
 
35632
        if (field.type == TType.STOP) { 
-
 
35633
          break;
-
 
35634
        }
-
 
35635
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
35636
        if (fieldId == null) {
-
 
35637
          TProtocolUtil.skip(iprot, field.type);
-
 
35638
        } else {
-
 
35639
          switch (fieldId) {
-
 
35640
            case SUCCESS:
-
 
35641
              if (field.type == TType.STRUCT) {
-
 
35642
                this.success = new Widget();
-
 
35643
                this.success.read(iprot);
-
 
35644
              } else { 
-
 
35645
                TProtocolUtil.skip(iprot, field.type);
-
 
35646
              }
-
 
35647
              break;
-
 
35648
            case SCX:
-
 
35649
              if (field.type == TType.STRUCT) {
-
 
35650
                this.scx = new WidgetException();
-
 
35651
                this.scx.read(iprot);
-
 
35652
              } else { 
-
 
35653
                TProtocolUtil.skip(iprot, field.type);
-
 
35654
              }
-
 
35655
              break;
-
 
35656
          }
-
 
35657
          iprot.readFieldEnd();
-
 
35658
        }
-
 
35659
      }
-
 
35660
      iprot.readStructEnd();
-
 
35661
      validate();
-
 
35662
    }
-
 
35663
 
-
 
35664
    public void write(TProtocol oprot) throws TException {
-
 
35665
      oprot.writeStructBegin(STRUCT_DESC);
-
 
35666
 
-
 
35667
      if (this.isSetSuccess()) {
-
 
35668
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
35669
        this.success.write(oprot);
-
 
35670
        oprot.writeFieldEnd();
-
 
35671
      } else if (this.isSetScx()) {
-
 
35672
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
35673
        this.scx.write(oprot);
-
 
35674
        oprot.writeFieldEnd();
-
 
35675
      }
-
 
35676
      oprot.writeFieldStop();
30220
      oprot.writeFieldStop();
35677
      oprot.writeStructEnd();
30221
      oprot.writeStructEnd();
35678
    }
30222
    }
35679
 
30223
 
35680
    @Override
30224
    @Override
35681
    public String toString() {
30225
    public String toString() {
35682
      StringBuilder sb = new StringBuilder("getBrowseHistory_result(");
30226
      StringBuilder sb = new StringBuilder("mergeBrowseHistory_result(");
35683
      boolean first = true;
30227
      boolean first = true;
35684
 
30228
 
35685
      sb.append("success:");
-
 
35686
      if (this.success == null) {
-
 
35687
        sb.append("null");
-
 
35688
      } else {
-
 
35689
        sb.append(this.success);
-
 
35690
      }
-
 
35691
      first = false;
-
 
35692
      if (!first) sb.append(", ");
-
 
35693
      sb.append("scx:");
-
 
35694
      if (this.scx == null) {
-
 
35695
        sb.append("null");
-
 
35696
      } else {
-
 
35697
        sb.append(this.scx);
-
 
35698
      }
-
 
35699
      first = false;
-
 
35700
      sb.append(")");
30229
      sb.append(")");
35701
      return sb.toString();
30230
      return sb.toString();
35702
    }
30231
    }
35703
 
30232
 
35704
    public void validate() throws TException {
30233
    public void validate() throws TException {