Subversion Repositories SmartDukaan

Rev

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

Rev 2285 Rev 2357
Line 187... Line 187...
187
     * @param category
187
     * @param category
188
     */
188
     */
189
    public boolean itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category) throws TException;
189
    public boolean itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category) throws TException;
190
 
190
 
191
    /**
191
    /**
192
     * Adds vendor item mapping. Updates the key it the mapping already exists.
192
     * Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
193
     * 
193
     * 
-
 
194
     * @param key
194
     * @param vendorItemMapping
195
     * @param vendorItemMapping
195
     */
196
     */
196
    public void addVendorItemMapping(VendorItemMapping vendorItemMapping) throws InventoryServiceException, TException;
197
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, TException;
197
 
198
 
198
    /**
199
    /**
199
     * Returns the list of vendor item mapping corresponding to itemId passed as parameter.
200
     * Returns the list of vendor item mapping corresponding to itemId passed as parameter.
200
     * Raises an exception if item not found corresponding to itemId
201
     * Raises an exception if item not found corresponding to itemId
201
     * 
202
     * 
Line 220... Line 221...
220
     * @param itemId
221
     * @param itemId
221
     * @param risky
222
     * @param risky
222
     */
223
     */
223
    public void changeItemRiskyFlag(long itemId, boolean risky) throws TException;
224
    public void changeItemRiskyFlag(long itemId, boolean risky) throws TException;
224
 
225
 
-
 
226
    /**
-
 
227
     * Returns list of items marked as risky.
-
 
228
     */
-
 
229
    public List<Item> getItemsByRiskyFlag() throws TException;
-
 
230
 
-
 
231
    /**
-
 
232
     * Returns list of items with any status except PHASED_OUT and filtered by vendor category.
-
 
233
     * Raises exception if vendorCategory is null.
-
 
234
     * 
-
 
235
     * @param vendorCategory
-
 
236
     */
-
 
237
    public List<Item> getItemsByVendorCategory(String vendorCategory) throws TException;
-
 
238
 
225
  }
239
  }
226
 
240
 
227
  public static class Client implements Iface {
241
  public static class Client implements Iface {
228
    public Client(TProtocol prot)
242
    public Client(TProtocol prot)
229
    {
243
    {
Line 1812... Line 1826...
1812
        return result.success;
1826
        return result.success;
1813
      }
1827
      }
1814
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "itemExists failed: unknown result");
1828
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "itemExists failed: unknown result");
1815
    }
1829
    }
1816
 
1830
 
1817
    public void addVendorItemMapping(VendorItemMapping vendorItemMapping) throws InventoryServiceException, TException
1831
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, TException
1818
    {
1832
    {
1819
      send_addVendorItemMapping(vendorItemMapping);
1833
      send_addVendorItemMapping(key, vendorItemMapping);
1820
      recv_addVendorItemMapping();
1834
      recv_addVendorItemMapping();
1821
    }
1835
    }
1822
 
1836
 
1823
    public void send_addVendorItemMapping(VendorItemMapping vendorItemMapping) throws TException
1837
    public void send_addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws TException
1824
    {
1838
    {
1825
      oprot_.writeMessageBegin(new TMessage("addVendorItemMapping", TMessageType.CALL, seqid_));
1839
      oprot_.writeMessageBegin(new TMessage("addVendorItemMapping", TMessageType.CALL, seqid_));
1826
      addVendorItemMapping_args args = new addVendorItemMapping_args();
1840
      addVendorItemMapping_args args = new addVendorItemMapping_args();
-
 
1841
      args.key = key;
1827
      args.vendorItemMapping = vendorItemMapping;
1842
      args.vendorItemMapping = vendorItemMapping;
1828
      args.write(oprot_);
1843
      args.write(oprot_);
1829
      oprot_.writeMessageEnd();
1844
      oprot_.writeMessageEnd();
1830
      oprot_.getTransport().flush();
1845
      oprot_.getTransport().flush();
1831
    }
1846
    }
Line 1948... Line 1963...
1948
      result.read(iprot_);
1963
      result.read(iprot_);
1949
      iprot_.readMessageEnd();
1964
      iprot_.readMessageEnd();
1950
      return;
1965
      return;
1951
    }
1966
    }
1952
 
1967
 
-
 
1968
    public List<Item> getItemsByRiskyFlag() throws TException
-
 
1969
    {
-
 
1970
      send_getItemsByRiskyFlag();
-
 
1971
      return recv_getItemsByRiskyFlag();
-
 
1972
    }
-
 
1973
 
-
 
1974
    public void send_getItemsByRiskyFlag() throws TException
-
 
1975
    {
-
 
1976
      oprot_.writeMessageBegin(new TMessage("getItemsByRiskyFlag", TMessageType.CALL, seqid_));
-
 
1977
      getItemsByRiskyFlag_args args = new getItemsByRiskyFlag_args();
-
 
1978
      args.write(oprot_);
-
 
1979
      oprot_.writeMessageEnd();
-
 
1980
      oprot_.getTransport().flush();
-
 
1981
    }
-
 
1982
 
-
 
1983
    public List<Item> recv_getItemsByRiskyFlag() throws TException
-
 
1984
    {
-
 
1985
      TMessage msg = iprot_.readMessageBegin();
-
 
1986
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1987
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1988
        iprot_.readMessageEnd();
-
 
1989
        throw x;
-
 
1990
      }
-
 
1991
      getItemsByRiskyFlag_result result = new getItemsByRiskyFlag_result();
-
 
1992
      result.read(iprot_);
-
 
1993
      iprot_.readMessageEnd();
-
 
1994
      if (result.isSetSuccess()) {
-
 
1995
        return result.success;
-
 
1996
      }
-
 
1997
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
-
 
1998
    }
-
 
1999
 
-
 
2000
    public List<Item> getItemsByVendorCategory(String vendorCategory) throws TException
-
 
2001
    {
-
 
2002
      send_getItemsByVendorCategory(vendorCategory);
-
 
2003
      return recv_getItemsByVendorCategory();
-
 
2004
    }
-
 
2005
 
-
 
2006
    public void send_getItemsByVendorCategory(String vendorCategory) throws TException
-
 
2007
    {
-
 
2008
      oprot_.writeMessageBegin(new TMessage("getItemsByVendorCategory", TMessageType.CALL, seqid_));
-
 
2009
      getItemsByVendorCategory_args args = new getItemsByVendorCategory_args();
-
 
2010
      args.vendorCategory = vendorCategory;
-
 
2011
      args.write(oprot_);
-
 
2012
      oprot_.writeMessageEnd();
-
 
2013
      oprot_.getTransport().flush();
-
 
2014
    }
-
 
2015
 
-
 
2016
    public List<Item> recv_getItemsByVendorCategory() throws TException
-
 
2017
    {
-
 
2018
      TMessage msg = iprot_.readMessageBegin();
-
 
2019
      if (msg.type == TMessageType.EXCEPTION) {
-
 
2020
        TApplicationException x = TApplicationException.read(iprot_);
-
 
2021
        iprot_.readMessageEnd();
-
 
2022
        throw x;
-
 
2023
      }
-
 
2024
      getItemsByVendorCategory_result result = new getItemsByVendorCategory_result();
-
 
2025
      result.read(iprot_);
-
 
2026
      iprot_.readMessageEnd();
-
 
2027
      if (result.isSetSuccess()) {
-
 
2028
        return result.success;
-
 
2029
      }
-
 
2030
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByVendorCategory failed: unknown result");
-
 
2031
    }
-
 
2032
 
1953
  }
2033
  }
1954
  public static class Processor implements TProcessor {
2034
  public static class Processor implements TProcessor {
1955
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2035
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1956
    public Processor(Iface iface)
2036
    public Processor(Iface iface)
1957
    {
2037
    {
Line 2002... Line 2082...
2002
      processMap_.put("itemExists", new itemExists());
2082
      processMap_.put("itemExists", new itemExists());
2003
      processMap_.put("addVendorItemMapping", new addVendorItemMapping());
2083
      processMap_.put("addVendorItemMapping", new addVendorItemMapping());
2004
      processMap_.put("getVendorItemMappings", new getVendorItemMappings());
2084
      processMap_.put("getVendorItemMappings", new getVendorItemMappings());
2005
      processMap_.put("checkSimilarItem", new checkSimilarItem());
2085
      processMap_.put("checkSimilarItem", new checkSimilarItem());
2006
      processMap_.put("changeItemRiskyFlag", new changeItemRiskyFlag());
2086
      processMap_.put("changeItemRiskyFlag", new changeItemRiskyFlag());
-
 
2087
      processMap_.put("getItemsByRiskyFlag", new getItemsByRiskyFlag());
-
 
2088
      processMap_.put("getItemsByVendorCategory", new getItemsByVendorCategory());
2007
    }
2089
    }
2008
 
2090
 
2009
    protected static interface ProcessFunction {
2091
    protected static interface ProcessFunction {
2010
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
2092
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
2011
    }
2093
    }
Line 3199... Line 3281...
3199
        addVendorItemMapping_args args = new addVendorItemMapping_args();
3281
        addVendorItemMapping_args args = new addVendorItemMapping_args();
3200
        args.read(iprot);
3282
        args.read(iprot);
3201
        iprot.readMessageEnd();
3283
        iprot.readMessageEnd();
3202
        addVendorItemMapping_result result = new addVendorItemMapping_result();
3284
        addVendorItemMapping_result result = new addVendorItemMapping_result();
3203
        try {
3285
        try {
3204
          iface_.addVendorItemMapping(args.vendorItemMapping);
3286
          iface_.addVendorItemMapping(args.key, args.vendorItemMapping);
3205
        } catch (InventoryServiceException cex) {
3287
        } catch (InventoryServiceException cex) {
3206
          result.cex = cex;
3288
          result.cex = cex;
3207
        } catch (Throwable th) {
3289
        } catch (Throwable th) {
3208
          LOGGER.error("Internal error processing addVendorItemMapping", th);
3290
          LOGGER.error("Internal error processing addVendorItemMapping", th);
3209
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addVendorItemMapping");
3291
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addVendorItemMapping");
Line 3280... Line 3362...
3280
        oprot.getTransport().flush();
3362
        oprot.getTransport().flush();
3281
      }
3363
      }
3282
 
3364
 
3283
    }
3365
    }
3284
 
3366
 
-
 
3367
    private class getItemsByRiskyFlag implements ProcessFunction {
-
 
3368
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3369
      {
-
 
3370
        getItemsByRiskyFlag_args args = new getItemsByRiskyFlag_args();
-
 
3371
        args.read(iprot);
-
 
3372
        iprot.readMessageEnd();
-
 
3373
        getItemsByRiskyFlag_result result = new getItemsByRiskyFlag_result();
-
 
3374
        result.success = iface_.getItemsByRiskyFlag();
-
 
3375
        oprot.writeMessageBegin(new TMessage("getItemsByRiskyFlag", TMessageType.REPLY, seqid));
-
 
3376
        result.write(oprot);
-
 
3377
        oprot.writeMessageEnd();
-
 
3378
        oprot.getTransport().flush();
-
 
3379
      }
-
 
3380
 
-
 
3381
    }
-
 
3382
 
-
 
3383
    private class getItemsByVendorCategory implements ProcessFunction {
-
 
3384
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3385
      {
-
 
3386
        getItemsByVendorCategory_args args = new getItemsByVendorCategory_args();
-
 
3387
        args.read(iprot);
-
 
3388
        iprot.readMessageEnd();
-
 
3389
        getItemsByVendorCategory_result result = new getItemsByVendorCategory_result();
-
 
3390
        result.success = iface_.getItemsByVendorCategory(args.vendorCategory);
-
 
3391
        oprot.writeMessageBegin(new TMessage("getItemsByVendorCategory", TMessageType.REPLY, seqid));
-
 
3392
        result.write(oprot);
-
 
3393
        oprot.writeMessageEnd();
-
 
3394
        oprot.getTransport().flush();
-
 
3395
      }
-
 
3396
 
-
 
3397
    }
-
 
3398
 
3285
  }
3399
  }
3286
 
3400
 
3287
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
3401
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
3288
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
3402
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
3289
 
3403
 
Line 32350... Line 32464...
32350
  }
32464
  }
32351
 
32465
 
32352
  public static class addVendorItemMapping_args implements TBase<addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVendorItemMapping_args>   {
32466
  public static class addVendorItemMapping_args implements TBase<addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVendorItemMapping_args>   {
32353
    private static final TStruct STRUCT_DESC = new TStruct("addVendorItemMapping_args");
32467
    private static final TStruct STRUCT_DESC = new TStruct("addVendorItemMapping_args");
32354
 
32468
 
-
 
32469
    private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)1);
32355
    private static final TField VENDOR_ITEM_MAPPING_FIELD_DESC = new TField("vendorItemMapping", TType.STRUCT, (short)1);
32470
    private static final TField VENDOR_ITEM_MAPPING_FIELD_DESC = new TField("vendorItemMapping", TType.STRUCT, (short)2);
32356
 
32471
 
-
 
32472
    private String key;
32357
    private VendorItemMapping vendorItemMapping;
32473
    private VendorItemMapping vendorItemMapping;
32358
 
32474
 
32359
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32360
    public enum _Fields implements TFieldIdEnum {
32476
    public enum _Fields implements TFieldIdEnum {
-
 
32477
      KEY((short)1, "key"),
32361
      VENDOR_ITEM_MAPPING((short)1, "vendorItemMapping");
32478
      VENDOR_ITEM_MAPPING((short)2, "vendorItemMapping");
32362
 
32479
 
32363
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
32480
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
32364
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32481
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32365
 
32482
 
32366
      static {
32483
      static {
Line 32412... Line 32529...
32412
    }
32529
    }
32413
 
32530
 
32414
    // isset id assignments
32531
    // isset id assignments
32415
 
32532
 
32416
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
32533
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
32534
      put(_Fields.KEY, new FieldMetaData("key", TFieldRequirementType.DEFAULT, 
-
 
32535
          new FieldValueMetaData(TType.STRING)));
32417
      put(_Fields.VENDOR_ITEM_MAPPING, new FieldMetaData("vendorItemMapping", TFieldRequirementType.DEFAULT, 
32536
      put(_Fields.VENDOR_ITEM_MAPPING, new FieldMetaData("vendorItemMapping", TFieldRequirementType.DEFAULT, 
32418
          new StructMetaData(TType.STRUCT, VendorItemMapping.class)));
32537
          new StructMetaData(TType.STRUCT, VendorItemMapping.class)));
32419
    }});
32538
    }});
32420
 
32539
 
32421
    static {
32540
    static {
Line 32424... Line 32543...
32424
 
32543
 
32425
    public addVendorItemMapping_args() {
32544
    public addVendorItemMapping_args() {
32426
    }
32545
    }
32427
 
32546
 
32428
    public addVendorItemMapping_args(
32547
    public addVendorItemMapping_args(
-
 
32548
      String key,
32429
      VendorItemMapping vendorItemMapping)
32549
      VendorItemMapping vendorItemMapping)
32430
    {
32550
    {
32431
      this();
32551
      this();
-
 
32552
      this.key = key;
32432
      this.vendorItemMapping = vendorItemMapping;
32553
      this.vendorItemMapping = vendorItemMapping;
32433
    }
32554
    }
32434
 
32555
 
32435
    /**
32556
    /**
32436
     * Performs a deep copy on <i>other</i>.
32557
     * Performs a deep copy on <i>other</i>.
32437
     */
32558
     */
32438
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
32559
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
-
 
32560
      if (other.isSetKey()) {
-
 
32561
        this.key = other.key;
-
 
32562
      }
32439
      if (other.isSetVendorItemMapping()) {
32563
      if (other.isSetVendorItemMapping()) {
32440
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
32564
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
32441
      }
32565
      }
32442
    }
32566
    }
32443
 
32567
 
Line 32448... Line 32572...
32448
    @Deprecated
32572
    @Deprecated
32449
    public addVendorItemMapping_args clone() {
32573
    public addVendorItemMapping_args clone() {
32450
      return new addVendorItemMapping_args(this);
32574
      return new addVendorItemMapping_args(this);
32451
    }
32575
    }
32452
 
32576
 
-
 
32577
    public String getKey() {
-
 
32578
      return this.key;
-
 
32579
    }
-
 
32580
 
-
 
32581
    public addVendorItemMapping_args setKey(String key) {
-
 
32582
      this.key = key;
-
 
32583
      return this;
-
 
32584
    }
-
 
32585
 
-
 
32586
    public void unsetKey() {
-
 
32587
      this.key = null;
-
 
32588
    }
-
 
32589
 
-
 
32590
    /** Returns true if field key is set (has been asigned a value) and false otherwise */
-
 
32591
    public boolean isSetKey() {
-
 
32592
      return this.key != null;
-
 
32593
    }
-
 
32594
 
-
 
32595
    public void setKeyIsSet(boolean value) {
-
 
32596
      if (!value) {
-
 
32597
        this.key = null;
-
 
32598
      }
-
 
32599
    }
-
 
32600
 
32453
    public VendorItemMapping getVendorItemMapping() {
32601
    public VendorItemMapping getVendorItemMapping() {
32454
      return this.vendorItemMapping;
32602
      return this.vendorItemMapping;
32455
    }
32603
    }
32456
 
32604
 
32457
    public addVendorItemMapping_args setVendorItemMapping(VendorItemMapping vendorItemMapping) {
32605
    public addVendorItemMapping_args setVendorItemMapping(VendorItemMapping vendorItemMapping) {
Line 32474... Line 32622...
32474
      }
32622
      }
32475
    }
32623
    }
32476
 
32624
 
32477
    public void setFieldValue(_Fields field, Object value) {
32625
    public void setFieldValue(_Fields field, Object value) {
32478
      switch (field) {
32626
      switch (field) {
-
 
32627
      case KEY:
-
 
32628
        if (value == null) {
-
 
32629
          unsetKey();
-
 
32630
        } else {
-
 
32631
          setKey((String)value);
-
 
32632
        }
-
 
32633
        break;
-
 
32634
 
32479
      case VENDOR_ITEM_MAPPING:
32635
      case VENDOR_ITEM_MAPPING:
32480
        if (value == null) {
32636
        if (value == null) {
32481
          unsetVendorItemMapping();
32637
          unsetVendorItemMapping();
32482
        } else {
32638
        } else {
32483
          setVendorItemMapping((VendorItemMapping)value);
32639
          setVendorItemMapping((VendorItemMapping)value);
Line 32491... Line 32647...
32491
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
32647
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
32492
    }
32648
    }
32493
 
32649
 
32494
    public Object getFieldValue(_Fields field) {
32650
    public Object getFieldValue(_Fields field) {
32495
      switch (field) {
32651
      switch (field) {
-
 
32652
      case KEY:
-
 
32653
        return getKey();
-
 
32654
 
32496
      case VENDOR_ITEM_MAPPING:
32655
      case VENDOR_ITEM_MAPPING:
32497
        return getVendorItemMapping();
32656
        return getVendorItemMapping();
32498
 
32657
 
32499
      }
32658
      }
32500
      throw new IllegalStateException();
32659
      throw new IllegalStateException();
Line 32505... Line 32664...
32505
    }
32664
    }
32506
 
32665
 
32507
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
32666
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
32508
    public boolean isSet(_Fields field) {
32667
    public boolean isSet(_Fields field) {
32509
      switch (field) {
32668
      switch (field) {
-
 
32669
      case KEY:
-
 
32670
        return isSetKey();
32510
      case VENDOR_ITEM_MAPPING:
32671
      case VENDOR_ITEM_MAPPING:
32511
        return isSetVendorItemMapping();
32672
        return isSetVendorItemMapping();
32512
      }
32673
      }
32513
      throw new IllegalStateException();
32674
      throw new IllegalStateException();
32514
    }
32675
    }
Line 32528... Line 32689...
32528
 
32689
 
32529
    public boolean equals(addVendorItemMapping_args that) {
32690
    public boolean equals(addVendorItemMapping_args that) {
32530
      if (that == null)
32691
      if (that == null)
32531
        return false;
32692
        return false;
32532
 
32693
 
-
 
32694
      boolean this_present_key = true && this.isSetKey();
-
 
32695
      boolean that_present_key = true && that.isSetKey();
-
 
32696
      if (this_present_key || that_present_key) {
-
 
32697
        if (!(this_present_key && that_present_key))
-
 
32698
          return false;
-
 
32699
        if (!this.key.equals(that.key))
-
 
32700
          return false;
-
 
32701
      }
-
 
32702
 
32533
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
32703
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
32534
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
32704
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
32535
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
32705
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
32536
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
32706
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
32537
          return false;
32707
          return false;
Line 32553... Line 32723...
32553
      }
32723
      }
32554
 
32724
 
32555
      int lastComparison = 0;
32725
      int lastComparison = 0;
32556
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
32726
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
32557
 
32727
 
-
 
32728
      lastComparison = Boolean.valueOf(isSetKey()).compareTo(isSetKey());
-
 
32729
      if (lastComparison != 0) {
-
 
32730
        return lastComparison;
-
 
32731
      }
-
 
32732
      lastComparison = TBaseHelper.compareTo(key, typedOther.key);
-
 
32733
      if (lastComparison != 0) {
-
 
32734
        return lastComparison;
-
 
32735
      }
32558
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(isSetVendorItemMapping());
32736
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(isSetVendorItemMapping());
32559
      if (lastComparison != 0) {
32737
      if (lastComparison != 0) {
32560
        return lastComparison;
32738
        return lastComparison;
32561
      }
32739
      }
32562
      lastComparison = TBaseHelper.compareTo(vendorItemMapping, typedOther.vendorItemMapping);
32740
      lastComparison = TBaseHelper.compareTo(vendorItemMapping, typedOther.vendorItemMapping);
Line 32578... Line 32756...
32578
        _Fields fieldId = _Fields.findByThriftId(field.id);
32756
        _Fields fieldId = _Fields.findByThriftId(field.id);
32579
        if (fieldId == null) {
32757
        if (fieldId == null) {
32580
          TProtocolUtil.skip(iprot, field.type);
32758
          TProtocolUtil.skip(iprot, field.type);
32581
        } else {
32759
        } else {
32582
          switch (fieldId) {
32760
          switch (fieldId) {
-
 
32761
            case KEY:
-
 
32762
              if (field.type == TType.STRING) {
-
 
32763
                this.key = iprot.readString();
-
 
32764
              } else { 
-
 
32765
                TProtocolUtil.skip(iprot, field.type);
-
 
32766
              }
-
 
32767
              break;
32583
            case VENDOR_ITEM_MAPPING:
32768
            case VENDOR_ITEM_MAPPING:
32584
              if (field.type == TType.STRUCT) {
32769
              if (field.type == TType.STRUCT) {
32585
                this.vendorItemMapping = new VendorItemMapping();
32770
                this.vendorItemMapping = new VendorItemMapping();
32586
                this.vendorItemMapping.read(iprot);
32771
                this.vendorItemMapping.read(iprot);
32587
              } else { 
32772
              } else { 
Line 32598... Line 32783...
32598
 
32783
 
32599
    public void write(TProtocol oprot) throws TException {
32784
    public void write(TProtocol oprot) throws TException {
32600
      validate();
32785
      validate();
32601
 
32786
 
32602
      oprot.writeStructBegin(STRUCT_DESC);
32787
      oprot.writeStructBegin(STRUCT_DESC);
-
 
32788
      if (this.key != null) {
-
 
32789
        oprot.writeFieldBegin(KEY_FIELD_DESC);
-
 
32790
        oprot.writeString(this.key);
-
 
32791
        oprot.writeFieldEnd();
-
 
32792
      }
32603
      if (this.vendorItemMapping != null) {
32793
      if (this.vendorItemMapping != null) {
32604
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
32794
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
32605
        this.vendorItemMapping.write(oprot);
32795
        this.vendorItemMapping.write(oprot);
32606
        oprot.writeFieldEnd();
32796
        oprot.writeFieldEnd();
32607
      }
32797
      }
Line 32612... Line 32802...
32612
    @Override
32802
    @Override
32613
    public String toString() {
32803
    public String toString() {
32614
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
32804
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
32615
      boolean first = true;
32805
      boolean first = true;
32616
 
32806
 
-
 
32807
      sb.append("key:");
-
 
32808
      if (this.key == null) {
-
 
32809
        sb.append("null");
-
 
32810
      } else {
-
 
32811
        sb.append(this.key);
-
 
32812
      }
-
 
32813
      first = false;
-
 
32814
      if (!first) sb.append(", ");
32617
      sb.append("vendorItemMapping:");
32815
      sb.append("vendorItemMapping:");
32618
      if (this.vendorItemMapping == null) {
32816
      if (this.vendorItemMapping == null) {
32619
        sb.append("null");
32817
        sb.append("null");
32620
      } else {
32818
      } else {
32621
        sb.append(this.vendorItemMapping);
32819
        sb.append(this.vendorItemMapping);
Line 34943... Line 35141...
34943
      sb.append(")");
35141
      sb.append(")");
34944
      return sb.toString();
35142
      return sb.toString();
34945
    }
35143
    }
34946
 
35144
 
34947
    public void validate() throws TException {
35145
    public void validate() throws TException {
-
 
35146
      // check for required fields
-
 
35147
    }
-
 
35148
 
-
 
35149
  }
-
 
35150
 
-
 
35151
  public static class getItemsByRiskyFlag_args implements TBase<getItemsByRiskyFlag_args._Fields>, java.io.Serializable, Cloneable, Comparable<getItemsByRiskyFlag_args>   {
-
 
35152
    private static final TStruct STRUCT_DESC = new TStruct("getItemsByRiskyFlag_args");
-
 
35153
 
-
 
35154
 
-
 
35155
 
-
 
35156
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
35157
    public enum _Fields implements TFieldIdEnum {
-
 
35158
;
-
 
35159
 
-
 
35160
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
35161
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35162
 
-
 
35163
      static {
-
 
35164
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
35165
          byId.put((int)field._thriftId, field);
-
 
35166
          byName.put(field.getFieldName(), field);
-
 
35167
        }
-
 
35168
      }
-
 
35169
 
-
 
35170
      /**
-
 
35171
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35172
       */
-
 
35173
      public static _Fields findByThriftId(int fieldId) {
-
 
35174
        return byId.get(fieldId);
-
 
35175
      }
-
 
35176
 
-
 
35177
      /**
-
 
35178
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35179
       * if it is not found.
-
 
35180
       */
-
 
35181
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35182
        _Fields fields = findByThriftId(fieldId);
-
 
35183
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35184
        return fields;
-
 
35185
      }
-
 
35186
 
-
 
35187
      /**
-
 
35188
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35189
       */
-
 
35190
      public static _Fields findByName(String name) {
-
 
35191
        return byName.get(name);
-
 
35192
      }
-
 
35193
 
-
 
35194
      private final short _thriftId;
-
 
35195
      private final String _fieldName;
-
 
35196
 
-
 
35197
      _Fields(short thriftId, String fieldName) {
-
 
35198
        _thriftId = thriftId;
-
 
35199
        _fieldName = fieldName;
-
 
35200
      }
-
 
35201
 
-
 
35202
      public short getThriftFieldId() {
-
 
35203
        return _thriftId;
-
 
35204
      }
-
 
35205
 
-
 
35206
      public String getFieldName() {
-
 
35207
        return _fieldName;
-
 
35208
      }
-
 
35209
    }
-
 
35210
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
35211
    }});
-
 
35212
 
-
 
35213
    static {
-
 
35214
      FieldMetaData.addStructMetaDataMap(getItemsByRiskyFlag_args.class, metaDataMap);
-
 
35215
    }
-
 
35216
 
-
 
35217
    public getItemsByRiskyFlag_args() {
-
 
35218
    }
-
 
35219
 
-
 
35220
    /**
-
 
35221
     * Performs a deep copy on <i>other</i>.
-
 
35222
     */
-
 
35223
    public getItemsByRiskyFlag_args(getItemsByRiskyFlag_args other) {
-
 
35224
    }
-
 
35225
 
-
 
35226
    public getItemsByRiskyFlag_args deepCopy() {
-
 
35227
      return new getItemsByRiskyFlag_args(this);
-
 
35228
    }
-
 
35229
 
-
 
35230
    @Deprecated
-
 
35231
    public getItemsByRiskyFlag_args clone() {
-
 
35232
      return new getItemsByRiskyFlag_args(this);
-
 
35233
    }
-
 
35234
 
-
 
35235
    public void setFieldValue(_Fields field, Object value) {
-
 
35236
      switch (field) {
-
 
35237
      }
-
 
35238
    }
-
 
35239
 
-
 
35240
    public void setFieldValue(int fieldID, Object value) {
-
 
35241
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
35242
    }
-
 
35243
 
-
 
35244
    public Object getFieldValue(_Fields field) {
-
 
35245
      switch (field) {
-
 
35246
      }
-
 
35247
      throw new IllegalStateException();
-
 
35248
    }
-
 
35249
 
-
 
35250
    public Object getFieldValue(int fieldId) {
-
 
35251
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
35252
    }
-
 
35253
 
-
 
35254
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
35255
    public boolean isSet(_Fields field) {
-
 
35256
      switch (field) {
-
 
35257
      }
-
 
35258
      throw new IllegalStateException();
-
 
35259
    }
-
 
35260
 
-
 
35261
    public boolean isSet(int fieldID) {
-
 
35262
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
35263
    }
-
 
35264
 
-
 
35265
    @Override
-
 
35266
    public boolean equals(Object that) {
-
 
35267
      if (that == null)
-
 
35268
        return false;
-
 
35269
      if (that instanceof getItemsByRiskyFlag_args)
-
 
35270
        return this.equals((getItemsByRiskyFlag_args)that);
-
 
35271
      return false;
-
 
35272
    }
-
 
35273
 
-
 
35274
    public boolean equals(getItemsByRiskyFlag_args that) {
-
 
35275
      if (that == null)
-
 
35276
        return false;
-
 
35277
 
-
 
35278
      return true;
-
 
35279
    }
-
 
35280
 
-
 
35281
    @Override
-
 
35282
    public int hashCode() {
-
 
35283
      return 0;
-
 
35284
    }
-
 
35285
 
-
 
35286
    public int compareTo(getItemsByRiskyFlag_args other) {
-
 
35287
      if (!getClass().equals(other.getClass())) {
-
 
35288
        return getClass().getName().compareTo(other.getClass().getName());
-
 
35289
      }
-
 
35290
 
-
 
35291
      int lastComparison = 0;
-
 
35292
      getItemsByRiskyFlag_args typedOther = (getItemsByRiskyFlag_args)other;
-
 
35293
 
-
 
35294
      return 0;
-
 
35295
    }
-
 
35296
 
-
 
35297
    public void read(TProtocol iprot) throws TException {
-
 
35298
      TField field;
-
 
35299
      iprot.readStructBegin();
-
 
35300
      while (true)
-
 
35301
      {
-
 
35302
        field = iprot.readFieldBegin();
-
 
35303
        if (field.type == TType.STOP) { 
-
 
35304
          break;
-
 
35305
        }
-
 
35306
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
35307
        if (fieldId == null) {
-
 
35308
          TProtocolUtil.skip(iprot, field.type);
-
 
35309
        } else {
-
 
35310
          switch (fieldId) {
-
 
35311
          }
-
 
35312
          iprot.readFieldEnd();
-
 
35313
        }
-
 
35314
      }
-
 
35315
      iprot.readStructEnd();
-
 
35316
      validate();
-
 
35317
    }
-
 
35318
 
-
 
35319
    public void write(TProtocol oprot) throws TException {
-
 
35320
      validate();
-
 
35321
 
-
 
35322
      oprot.writeStructBegin(STRUCT_DESC);
-
 
35323
      oprot.writeFieldStop();
-
 
35324
      oprot.writeStructEnd();
-
 
35325
    }
-
 
35326
 
-
 
35327
    @Override
-
 
35328
    public String toString() {
-
 
35329
      StringBuilder sb = new StringBuilder("getItemsByRiskyFlag_args(");
-
 
35330
      boolean first = true;
-
 
35331
 
-
 
35332
      sb.append(")");
-
 
35333
      return sb.toString();
-
 
35334
    }
-
 
35335
 
-
 
35336
    public void validate() throws TException {
-
 
35337
      // check for required fields
-
 
35338
    }
-
 
35339
 
-
 
35340
  }
-
 
35341
 
-
 
35342
  public static class getItemsByRiskyFlag_result implements TBase<getItemsByRiskyFlag_result._Fields>, java.io.Serializable, Cloneable   {
-
 
35343
    private static final TStruct STRUCT_DESC = new TStruct("getItemsByRiskyFlag_result");
-
 
35344
 
-
 
35345
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
35346
 
-
 
35347
    private List<Item> success;
-
 
35348
 
-
 
35349
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
35350
    public enum _Fields implements TFieldIdEnum {
-
 
35351
      SUCCESS((short)0, "success");
-
 
35352
 
-
 
35353
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
35354
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35355
 
-
 
35356
      static {
-
 
35357
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
35358
          byId.put((int)field._thriftId, field);
-
 
35359
          byName.put(field.getFieldName(), field);
-
 
35360
        }
-
 
35361
      }
-
 
35362
 
-
 
35363
      /**
-
 
35364
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35365
       */
-
 
35366
      public static _Fields findByThriftId(int fieldId) {
-
 
35367
        return byId.get(fieldId);
-
 
35368
      }
-
 
35369
 
-
 
35370
      /**
-
 
35371
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35372
       * if it is not found.
-
 
35373
       */
-
 
35374
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35375
        _Fields fields = findByThriftId(fieldId);
-
 
35376
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35377
        return fields;
-
 
35378
      }
-
 
35379
 
-
 
35380
      /**
-
 
35381
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35382
       */
-
 
35383
      public static _Fields findByName(String name) {
-
 
35384
        return byName.get(name);
-
 
35385
      }
-
 
35386
 
-
 
35387
      private final short _thriftId;
-
 
35388
      private final String _fieldName;
-
 
35389
 
-
 
35390
      _Fields(short thriftId, String fieldName) {
-
 
35391
        _thriftId = thriftId;
-
 
35392
        _fieldName = fieldName;
-
 
35393
      }
-
 
35394
 
-
 
35395
      public short getThriftFieldId() {
-
 
35396
        return _thriftId;
-
 
35397
      }
-
 
35398
 
-
 
35399
      public String getFieldName() {
-
 
35400
        return _fieldName;
-
 
35401
      }
-
 
35402
    }
-
 
35403
 
-
 
35404
    // isset id assignments
-
 
35405
 
-
 
35406
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
35407
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
35408
          new ListMetaData(TType.LIST, 
-
 
35409
              new StructMetaData(TType.STRUCT, Item.class))));
-
 
35410
    }});
-
 
35411
 
-
 
35412
    static {
-
 
35413
      FieldMetaData.addStructMetaDataMap(getItemsByRiskyFlag_result.class, metaDataMap);
-
 
35414
    }
-
 
35415
 
-
 
35416
    public getItemsByRiskyFlag_result() {
-
 
35417
    }
-
 
35418
 
-
 
35419
    public getItemsByRiskyFlag_result(
-
 
35420
      List<Item> success)
-
 
35421
    {
-
 
35422
      this();
-
 
35423
      this.success = success;
-
 
35424
    }
-
 
35425
 
-
 
35426
    /**
-
 
35427
     * Performs a deep copy on <i>other</i>.
-
 
35428
     */
-
 
35429
    public getItemsByRiskyFlag_result(getItemsByRiskyFlag_result other) {
-
 
35430
      if (other.isSetSuccess()) {
-
 
35431
        List<Item> __this__success = new ArrayList<Item>();
-
 
35432
        for (Item other_element : other.success) {
-
 
35433
          __this__success.add(new Item(other_element));
-
 
35434
        }
-
 
35435
        this.success = __this__success;
-
 
35436
      }
-
 
35437
    }
-
 
35438
 
-
 
35439
    public getItemsByRiskyFlag_result deepCopy() {
-
 
35440
      return new getItemsByRiskyFlag_result(this);
-
 
35441
    }
-
 
35442
 
-
 
35443
    @Deprecated
-
 
35444
    public getItemsByRiskyFlag_result clone() {
-
 
35445
      return new getItemsByRiskyFlag_result(this);
-
 
35446
    }
-
 
35447
 
-
 
35448
    public int getSuccessSize() {
-
 
35449
      return (this.success == null) ? 0 : this.success.size();
-
 
35450
    }
-
 
35451
 
-
 
35452
    public java.util.Iterator<Item> getSuccessIterator() {
-
 
35453
      return (this.success == null) ? null : this.success.iterator();
-
 
35454
    }
-
 
35455
 
-
 
35456
    public void addToSuccess(Item elem) {
-
 
35457
      if (this.success == null) {
-
 
35458
        this.success = new ArrayList<Item>();
-
 
35459
      }
-
 
35460
      this.success.add(elem);
-
 
35461
    }
-
 
35462
 
-
 
35463
    public List<Item> getSuccess() {
-
 
35464
      return this.success;
-
 
35465
    }
-
 
35466
 
-
 
35467
    public getItemsByRiskyFlag_result setSuccess(List<Item> success) {
-
 
35468
      this.success = success;
-
 
35469
      return this;
-
 
35470
    }
-
 
35471
 
-
 
35472
    public void unsetSuccess() {
-
 
35473
      this.success = null;
-
 
35474
    }
-
 
35475
 
-
 
35476
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
35477
    public boolean isSetSuccess() {
-
 
35478
      return this.success != null;
-
 
35479
    }
-
 
35480
 
-
 
35481
    public void setSuccessIsSet(boolean value) {
-
 
35482
      if (!value) {
-
 
35483
        this.success = null;
-
 
35484
      }
-
 
35485
    }
-
 
35486
 
-
 
35487
    public void setFieldValue(_Fields field, Object value) {
-
 
35488
      switch (field) {
-
 
35489
      case SUCCESS:
-
 
35490
        if (value == null) {
-
 
35491
          unsetSuccess();
-
 
35492
        } else {
-
 
35493
          setSuccess((List<Item>)value);
-
 
35494
        }
-
 
35495
        break;
-
 
35496
 
-
 
35497
      }
-
 
35498
    }
-
 
35499
 
-
 
35500
    public void setFieldValue(int fieldID, Object value) {
-
 
35501
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
35502
    }
-
 
35503
 
-
 
35504
    public Object getFieldValue(_Fields field) {
-
 
35505
      switch (field) {
-
 
35506
      case SUCCESS:
-
 
35507
        return getSuccess();
-
 
35508
 
-
 
35509
      }
-
 
35510
      throw new IllegalStateException();
-
 
35511
    }
-
 
35512
 
-
 
35513
    public Object getFieldValue(int fieldId) {
-
 
35514
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
35515
    }
-
 
35516
 
-
 
35517
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
35518
    public boolean isSet(_Fields field) {
-
 
35519
      switch (field) {
-
 
35520
      case SUCCESS:
-
 
35521
        return isSetSuccess();
-
 
35522
      }
-
 
35523
      throw new IllegalStateException();
-
 
35524
    }
-
 
35525
 
-
 
35526
    public boolean isSet(int fieldID) {
-
 
35527
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
35528
    }
-
 
35529
 
-
 
35530
    @Override
-
 
35531
    public boolean equals(Object that) {
-
 
35532
      if (that == null)
-
 
35533
        return false;
-
 
35534
      if (that instanceof getItemsByRiskyFlag_result)
-
 
35535
        return this.equals((getItemsByRiskyFlag_result)that);
-
 
35536
      return false;
-
 
35537
    }
-
 
35538
 
-
 
35539
    public boolean equals(getItemsByRiskyFlag_result that) {
-
 
35540
      if (that == null)
-
 
35541
        return false;
-
 
35542
 
-
 
35543
      boolean this_present_success = true && this.isSetSuccess();
-
 
35544
      boolean that_present_success = true && that.isSetSuccess();
-
 
35545
      if (this_present_success || that_present_success) {
-
 
35546
        if (!(this_present_success && that_present_success))
-
 
35547
          return false;
-
 
35548
        if (!this.success.equals(that.success))
-
 
35549
          return false;
-
 
35550
      }
-
 
35551
 
-
 
35552
      return true;
-
 
35553
    }
-
 
35554
 
-
 
35555
    @Override
-
 
35556
    public int hashCode() {
-
 
35557
      return 0;
-
 
35558
    }
-
 
35559
 
-
 
35560
    public void read(TProtocol iprot) throws TException {
-
 
35561
      TField field;
-
 
35562
      iprot.readStructBegin();
-
 
35563
      while (true)
-
 
35564
      {
-
 
35565
        field = iprot.readFieldBegin();
-
 
35566
        if (field.type == TType.STOP) { 
-
 
35567
          break;
-
 
35568
        }
-
 
35569
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
35570
        if (fieldId == null) {
-
 
35571
          TProtocolUtil.skip(iprot, field.type);
-
 
35572
        } else {
-
 
35573
          switch (fieldId) {
-
 
35574
            case SUCCESS:
-
 
35575
              if (field.type == TType.LIST) {
-
 
35576
                {
-
 
35577
                  TList _list87 = iprot.readListBegin();
-
 
35578
                  this.success = new ArrayList<Item>(_list87.size);
-
 
35579
                  for (int _i88 = 0; _i88 < _list87.size; ++_i88)
-
 
35580
                  {
-
 
35581
                    Item _elem89;
-
 
35582
                    _elem89 = new Item();
-
 
35583
                    _elem89.read(iprot);
-
 
35584
                    this.success.add(_elem89);
-
 
35585
                  }
-
 
35586
                  iprot.readListEnd();
-
 
35587
                }
-
 
35588
              } else { 
-
 
35589
                TProtocolUtil.skip(iprot, field.type);
-
 
35590
              }
-
 
35591
              break;
-
 
35592
          }
-
 
35593
          iprot.readFieldEnd();
-
 
35594
        }
-
 
35595
      }
-
 
35596
      iprot.readStructEnd();
-
 
35597
      validate();
-
 
35598
    }
-
 
35599
 
-
 
35600
    public void write(TProtocol oprot) throws TException {
-
 
35601
      oprot.writeStructBegin(STRUCT_DESC);
-
 
35602
 
-
 
35603
      if (this.isSetSuccess()) {
-
 
35604
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
35605
        {
-
 
35606
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
35607
          for (Item _iter90 : this.success)
-
 
35608
          {
-
 
35609
            _iter90.write(oprot);
-
 
35610
          }
-
 
35611
          oprot.writeListEnd();
-
 
35612
        }
-
 
35613
        oprot.writeFieldEnd();
-
 
35614
      }
-
 
35615
      oprot.writeFieldStop();
-
 
35616
      oprot.writeStructEnd();
-
 
35617
    }
-
 
35618
 
-
 
35619
    @Override
-
 
35620
    public String toString() {
-
 
35621
      StringBuilder sb = new StringBuilder("getItemsByRiskyFlag_result(");
-
 
35622
      boolean first = true;
-
 
35623
 
-
 
35624
      sb.append("success:");
-
 
35625
      if (this.success == null) {
-
 
35626
        sb.append("null");
-
 
35627
      } else {
-
 
35628
        sb.append(this.success);
-
 
35629
      }
-
 
35630
      first = false;
-
 
35631
      sb.append(")");
-
 
35632
      return sb.toString();
-
 
35633
    }
-
 
35634
 
-
 
35635
    public void validate() throws TException {
-
 
35636
      // check for required fields
-
 
35637
    }
-
 
35638
 
-
 
35639
  }
-
 
35640
 
-
 
35641
  public static class getItemsByVendorCategory_args implements TBase<getItemsByVendorCategory_args._Fields>, java.io.Serializable, Cloneable, Comparable<getItemsByVendorCategory_args>   {
-
 
35642
    private static final TStruct STRUCT_DESC = new TStruct("getItemsByVendorCategory_args");
-
 
35643
 
-
 
35644
    private static final TField VENDOR_CATEGORY_FIELD_DESC = new TField("vendorCategory", TType.STRING, (short)1);
-
 
35645
 
-
 
35646
    private String vendorCategory;
-
 
35647
 
-
 
35648
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
35649
    public enum _Fields implements TFieldIdEnum {
-
 
35650
      VENDOR_CATEGORY((short)1, "vendorCategory");
-
 
35651
 
-
 
35652
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
35653
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35654
 
-
 
35655
      static {
-
 
35656
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
35657
          byId.put((int)field._thriftId, field);
-
 
35658
          byName.put(field.getFieldName(), field);
-
 
35659
        }
-
 
35660
      }
-
 
35661
 
-
 
35662
      /**
-
 
35663
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35664
       */
-
 
35665
      public static _Fields findByThriftId(int fieldId) {
-
 
35666
        return byId.get(fieldId);
-
 
35667
      }
-
 
35668
 
-
 
35669
      /**
-
 
35670
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35671
       * if it is not found.
-
 
35672
       */
-
 
35673
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35674
        _Fields fields = findByThriftId(fieldId);
-
 
35675
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35676
        return fields;
-
 
35677
      }
-
 
35678
 
-
 
35679
      /**
-
 
35680
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35681
       */
-
 
35682
      public static _Fields findByName(String name) {
-
 
35683
        return byName.get(name);
-
 
35684
      }
-
 
35685
 
-
 
35686
      private final short _thriftId;
-
 
35687
      private final String _fieldName;
-
 
35688
 
-
 
35689
      _Fields(short thriftId, String fieldName) {
-
 
35690
        _thriftId = thriftId;
-
 
35691
        _fieldName = fieldName;
-
 
35692
      }
-
 
35693
 
-
 
35694
      public short getThriftFieldId() {
-
 
35695
        return _thriftId;
-
 
35696
      }
-
 
35697
 
-
 
35698
      public String getFieldName() {
-
 
35699
        return _fieldName;
-
 
35700
      }
-
 
35701
    }
-
 
35702
 
-
 
35703
    // isset id assignments
-
 
35704
 
-
 
35705
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
35706
      put(_Fields.VENDOR_CATEGORY, new FieldMetaData("vendorCategory", TFieldRequirementType.DEFAULT, 
-
 
35707
          new FieldValueMetaData(TType.STRING)));
-
 
35708
    }});
-
 
35709
 
-
 
35710
    static {
-
 
35711
      FieldMetaData.addStructMetaDataMap(getItemsByVendorCategory_args.class, metaDataMap);
-
 
35712
    }
-
 
35713
 
-
 
35714
    public getItemsByVendorCategory_args() {
-
 
35715
    }
-
 
35716
 
-
 
35717
    public getItemsByVendorCategory_args(
-
 
35718
      String vendorCategory)
-
 
35719
    {
-
 
35720
      this();
-
 
35721
      this.vendorCategory = vendorCategory;
-
 
35722
    }
-
 
35723
 
-
 
35724
    /**
-
 
35725
     * Performs a deep copy on <i>other</i>.
-
 
35726
     */
-
 
35727
    public getItemsByVendorCategory_args(getItemsByVendorCategory_args other) {
-
 
35728
      if (other.isSetVendorCategory()) {
-
 
35729
        this.vendorCategory = other.vendorCategory;
-
 
35730
      }
-
 
35731
    }
-
 
35732
 
-
 
35733
    public getItemsByVendorCategory_args deepCopy() {
-
 
35734
      return new getItemsByVendorCategory_args(this);
-
 
35735
    }
-
 
35736
 
-
 
35737
    @Deprecated
-
 
35738
    public getItemsByVendorCategory_args clone() {
-
 
35739
      return new getItemsByVendorCategory_args(this);
-
 
35740
    }
-
 
35741
 
-
 
35742
    public String getVendorCategory() {
-
 
35743
      return this.vendorCategory;
-
 
35744
    }
-
 
35745
 
-
 
35746
    public getItemsByVendorCategory_args setVendorCategory(String vendorCategory) {
-
 
35747
      this.vendorCategory = vendorCategory;
-
 
35748
      return this;
-
 
35749
    }
-
 
35750
 
-
 
35751
    public void unsetVendorCategory() {
-
 
35752
      this.vendorCategory = null;
-
 
35753
    }
-
 
35754
 
-
 
35755
    /** Returns true if field vendorCategory is set (has been asigned a value) and false otherwise */
-
 
35756
    public boolean isSetVendorCategory() {
-
 
35757
      return this.vendorCategory != null;
-
 
35758
    }
-
 
35759
 
-
 
35760
    public void setVendorCategoryIsSet(boolean value) {
-
 
35761
      if (!value) {
-
 
35762
        this.vendorCategory = null;
-
 
35763
      }
-
 
35764
    }
-
 
35765
 
-
 
35766
    public void setFieldValue(_Fields field, Object value) {
-
 
35767
      switch (field) {
-
 
35768
      case VENDOR_CATEGORY:
-
 
35769
        if (value == null) {
-
 
35770
          unsetVendorCategory();
-
 
35771
        } else {
-
 
35772
          setVendorCategory((String)value);
-
 
35773
        }
-
 
35774
        break;
-
 
35775
 
-
 
35776
      }
-
 
35777
    }
-
 
35778
 
-
 
35779
    public void setFieldValue(int fieldID, Object value) {
-
 
35780
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
35781
    }
-
 
35782
 
-
 
35783
    public Object getFieldValue(_Fields field) {
-
 
35784
      switch (field) {
-
 
35785
      case VENDOR_CATEGORY:
-
 
35786
        return getVendorCategory();
-
 
35787
 
-
 
35788
      }
-
 
35789
      throw new IllegalStateException();
-
 
35790
    }
-
 
35791
 
-
 
35792
    public Object getFieldValue(int fieldId) {
-
 
35793
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
35794
    }
-
 
35795
 
-
 
35796
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
35797
    public boolean isSet(_Fields field) {
-
 
35798
      switch (field) {
-
 
35799
      case VENDOR_CATEGORY:
-
 
35800
        return isSetVendorCategory();
-
 
35801
      }
-
 
35802
      throw new IllegalStateException();
-
 
35803
    }
-
 
35804
 
-
 
35805
    public boolean isSet(int fieldID) {
-
 
35806
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
35807
    }
-
 
35808
 
-
 
35809
    @Override
-
 
35810
    public boolean equals(Object that) {
-
 
35811
      if (that == null)
-
 
35812
        return false;
-
 
35813
      if (that instanceof getItemsByVendorCategory_args)
-
 
35814
        return this.equals((getItemsByVendorCategory_args)that);
-
 
35815
      return false;
-
 
35816
    }
-
 
35817
 
-
 
35818
    public boolean equals(getItemsByVendorCategory_args that) {
-
 
35819
      if (that == null)
-
 
35820
        return false;
-
 
35821
 
-
 
35822
      boolean this_present_vendorCategory = true && this.isSetVendorCategory();
-
 
35823
      boolean that_present_vendorCategory = true && that.isSetVendorCategory();
-
 
35824
      if (this_present_vendorCategory || that_present_vendorCategory) {
-
 
35825
        if (!(this_present_vendorCategory && that_present_vendorCategory))
-
 
35826
          return false;
-
 
35827
        if (!this.vendorCategory.equals(that.vendorCategory))
-
 
35828
          return false;
-
 
35829
      }
-
 
35830
 
-
 
35831
      return true;
-
 
35832
    }
-
 
35833
 
-
 
35834
    @Override
-
 
35835
    public int hashCode() {
-
 
35836
      return 0;
-
 
35837
    }
-
 
35838
 
-
 
35839
    public int compareTo(getItemsByVendorCategory_args other) {
-
 
35840
      if (!getClass().equals(other.getClass())) {
-
 
35841
        return getClass().getName().compareTo(other.getClass().getName());
-
 
35842
      }
-
 
35843
 
-
 
35844
      int lastComparison = 0;
-
 
35845
      getItemsByVendorCategory_args typedOther = (getItemsByVendorCategory_args)other;
-
 
35846
 
-
 
35847
      lastComparison = Boolean.valueOf(isSetVendorCategory()).compareTo(isSetVendorCategory());
-
 
35848
      if (lastComparison != 0) {
-
 
35849
        return lastComparison;
-
 
35850
      }
-
 
35851
      lastComparison = TBaseHelper.compareTo(vendorCategory, typedOther.vendorCategory);
-
 
35852
      if (lastComparison != 0) {
-
 
35853
        return lastComparison;
-
 
35854
      }
-
 
35855
      return 0;
-
 
35856
    }
-
 
35857
 
-
 
35858
    public void read(TProtocol iprot) throws TException {
-
 
35859
      TField field;
-
 
35860
      iprot.readStructBegin();
-
 
35861
      while (true)
-
 
35862
      {
-
 
35863
        field = iprot.readFieldBegin();
-
 
35864
        if (field.type == TType.STOP) { 
-
 
35865
          break;
-
 
35866
        }
-
 
35867
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
35868
        if (fieldId == null) {
-
 
35869
          TProtocolUtil.skip(iprot, field.type);
-
 
35870
        } else {
-
 
35871
          switch (fieldId) {
-
 
35872
            case VENDOR_CATEGORY:
-
 
35873
              if (field.type == TType.STRING) {
-
 
35874
                this.vendorCategory = iprot.readString();
-
 
35875
              } else { 
-
 
35876
                TProtocolUtil.skip(iprot, field.type);
-
 
35877
              }
-
 
35878
              break;
-
 
35879
          }
-
 
35880
          iprot.readFieldEnd();
-
 
35881
        }
-
 
35882
      }
-
 
35883
      iprot.readStructEnd();
-
 
35884
      validate();
-
 
35885
    }
-
 
35886
 
-
 
35887
    public void write(TProtocol oprot) throws TException {
-
 
35888
      validate();
-
 
35889
 
-
 
35890
      oprot.writeStructBegin(STRUCT_DESC);
-
 
35891
      if (this.vendorCategory != null) {
-
 
35892
        oprot.writeFieldBegin(VENDOR_CATEGORY_FIELD_DESC);
-
 
35893
        oprot.writeString(this.vendorCategory);
-
 
35894
        oprot.writeFieldEnd();
-
 
35895
      }
-
 
35896
      oprot.writeFieldStop();
-
 
35897
      oprot.writeStructEnd();
-
 
35898
    }
-
 
35899
 
-
 
35900
    @Override
-
 
35901
    public String toString() {
-
 
35902
      StringBuilder sb = new StringBuilder("getItemsByVendorCategory_args(");
-
 
35903
      boolean first = true;
-
 
35904
 
-
 
35905
      sb.append("vendorCategory:");
-
 
35906
      if (this.vendorCategory == null) {
-
 
35907
        sb.append("null");
-
 
35908
      } else {
-
 
35909
        sb.append(this.vendorCategory);
-
 
35910
      }
-
 
35911
      first = false;
-
 
35912
      sb.append(")");
-
 
35913
      return sb.toString();
-
 
35914
    }
-
 
35915
 
-
 
35916
    public void validate() throws TException {
-
 
35917
      // check for required fields
-
 
35918
    }
-
 
35919
 
-
 
35920
  }
-
 
35921
 
-
 
35922
  public static class getItemsByVendorCategory_result implements TBase<getItemsByVendorCategory_result._Fields>, java.io.Serializable, Cloneable   {
-
 
35923
    private static final TStruct STRUCT_DESC = new TStruct("getItemsByVendorCategory_result");
-
 
35924
 
-
 
35925
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
35926
 
-
 
35927
    private List<Item> success;
-
 
35928
 
-
 
35929
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
35930
    public enum _Fields implements TFieldIdEnum {
-
 
35931
      SUCCESS((short)0, "success");
-
 
35932
 
-
 
35933
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
35934
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35935
 
-
 
35936
      static {
-
 
35937
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
35938
          byId.put((int)field._thriftId, field);
-
 
35939
          byName.put(field.getFieldName(), field);
-
 
35940
        }
-
 
35941
      }
-
 
35942
 
-
 
35943
      /**
-
 
35944
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35945
       */
-
 
35946
      public static _Fields findByThriftId(int fieldId) {
-
 
35947
        return byId.get(fieldId);
-
 
35948
      }
-
 
35949
 
-
 
35950
      /**
-
 
35951
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35952
       * if it is not found.
-
 
35953
       */
-
 
35954
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35955
        _Fields fields = findByThriftId(fieldId);
-
 
35956
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35957
        return fields;
-
 
35958
      }
-
 
35959
 
-
 
35960
      /**
-
 
35961
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35962
       */
-
 
35963
      public static _Fields findByName(String name) {
-
 
35964
        return byName.get(name);
-
 
35965
      }
-
 
35966
 
-
 
35967
      private final short _thriftId;
-
 
35968
      private final String _fieldName;
-
 
35969
 
-
 
35970
      _Fields(short thriftId, String fieldName) {
-
 
35971
        _thriftId = thriftId;
-
 
35972
        _fieldName = fieldName;
-
 
35973
      }
-
 
35974
 
-
 
35975
      public short getThriftFieldId() {
-
 
35976
        return _thriftId;
-
 
35977
      }
-
 
35978
 
-
 
35979
      public String getFieldName() {
-
 
35980
        return _fieldName;
-
 
35981
      }
-
 
35982
    }
-
 
35983
 
-
 
35984
    // isset id assignments
-
 
35985
 
-
 
35986
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
35987
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
35988
          new ListMetaData(TType.LIST, 
-
 
35989
              new StructMetaData(TType.STRUCT, Item.class))));
-
 
35990
    }});
-
 
35991
 
-
 
35992
    static {
-
 
35993
      FieldMetaData.addStructMetaDataMap(getItemsByVendorCategory_result.class, metaDataMap);
-
 
35994
    }
-
 
35995
 
-
 
35996
    public getItemsByVendorCategory_result() {
-
 
35997
    }
-
 
35998
 
-
 
35999
    public getItemsByVendorCategory_result(
-
 
36000
      List<Item> success)
-
 
36001
    {
-
 
36002
      this();
-
 
36003
      this.success = success;
-
 
36004
    }
-
 
36005
 
-
 
36006
    /**
-
 
36007
     * Performs a deep copy on <i>other</i>.
-
 
36008
     */
-
 
36009
    public getItemsByVendorCategory_result(getItemsByVendorCategory_result other) {
-
 
36010
      if (other.isSetSuccess()) {
-
 
36011
        List<Item> __this__success = new ArrayList<Item>();
-
 
36012
        for (Item other_element : other.success) {
-
 
36013
          __this__success.add(new Item(other_element));
-
 
36014
        }
-
 
36015
        this.success = __this__success;
-
 
36016
      }
-
 
36017
    }
-
 
36018
 
-
 
36019
    public getItemsByVendorCategory_result deepCopy() {
-
 
36020
      return new getItemsByVendorCategory_result(this);
-
 
36021
    }
-
 
36022
 
-
 
36023
    @Deprecated
-
 
36024
    public getItemsByVendorCategory_result clone() {
-
 
36025
      return new getItemsByVendorCategory_result(this);
-
 
36026
    }
-
 
36027
 
-
 
36028
    public int getSuccessSize() {
-
 
36029
      return (this.success == null) ? 0 : this.success.size();
-
 
36030
    }
-
 
36031
 
-
 
36032
    public java.util.Iterator<Item> getSuccessIterator() {
-
 
36033
      return (this.success == null) ? null : this.success.iterator();
-
 
36034
    }
-
 
36035
 
-
 
36036
    public void addToSuccess(Item elem) {
-
 
36037
      if (this.success == null) {
-
 
36038
        this.success = new ArrayList<Item>();
-
 
36039
      }
-
 
36040
      this.success.add(elem);
-
 
36041
    }
-
 
36042
 
-
 
36043
    public List<Item> getSuccess() {
-
 
36044
      return this.success;
-
 
36045
    }
-
 
36046
 
-
 
36047
    public getItemsByVendorCategory_result setSuccess(List<Item> success) {
-
 
36048
      this.success = success;
-
 
36049
      return this;
-
 
36050
    }
-
 
36051
 
-
 
36052
    public void unsetSuccess() {
-
 
36053
      this.success = null;
-
 
36054
    }
-
 
36055
 
-
 
36056
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
36057
    public boolean isSetSuccess() {
-
 
36058
      return this.success != null;
-
 
36059
    }
-
 
36060
 
-
 
36061
    public void setSuccessIsSet(boolean value) {
-
 
36062
      if (!value) {
-
 
36063
        this.success = null;
-
 
36064
      }
-
 
36065
    }
-
 
36066
 
-
 
36067
    public void setFieldValue(_Fields field, Object value) {
-
 
36068
      switch (field) {
-
 
36069
      case SUCCESS:
-
 
36070
        if (value == null) {
-
 
36071
          unsetSuccess();
-
 
36072
        } else {
-
 
36073
          setSuccess((List<Item>)value);
-
 
36074
        }
-
 
36075
        break;
-
 
36076
 
-
 
36077
      }
-
 
36078
    }
-
 
36079
 
-
 
36080
    public void setFieldValue(int fieldID, Object value) {
-
 
36081
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
36082
    }
-
 
36083
 
-
 
36084
    public Object getFieldValue(_Fields field) {
-
 
36085
      switch (field) {
-
 
36086
      case SUCCESS:
-
 
36087
        return getSuccess();
-
 
36088
 
-
 
36089
      }
-
 
36090
      throw new IllegalStateException();
-
 
36091
    }
-
 
36092
 
-
 
36093
    public Object getFieldValue(int fieldId) {
-
 
36094
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
36095
    }
-
 
36096
 
-
 
36097
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
36098
    public boolean isSet(_Fields field) {
-
 
36099
      switch (field) {
-
 
36100
      case SUCCESS:
-
 
36101
        return isSetSuccess();
-
 
36102
      }
-
 
36103
      throw new IllegalStateException();
-
 
36104
    }
-
 
36105
 
-
 
36106
    public boolean isSet(int fieldID) {
-
 
36107
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
36108
    }
-
 
36109
 
-
 
36110
    @Override
-
 
36111
    public boolean equals(Object that) {
-
 
36112
      if (that == null)
-
 
36113
        return false;
-
 
36114
      if (that instanceof getItemsByVendorCategory_result)
-
 
36115
        return this.equals((getItemsByVendorCategory_result)that);
-
 
36116
      return false;
-
 
36117
    }
-
 
36118
 
-
 
36119
    public boolean equals(getItemsByVendorCategory_result that) {
-
 
36120
      if (that == null)
-
 
36121
        return false;
-
 
36122
 
-
 
36123
      boolean this_present_success = true && this.isSetSuccess();
-
 
36124
      boolean that_present_success = true && that.isSetSuccess();
-
 
36125
      if (this_present_success || that_present_success) {
-
 
36126
        if (!(this_present_success && that_present_success))
-
 
36127
          return false;
-
 
36128
        if (!this.success.equals(that.success))
-
 
36129
          return false;
-
 
36130
      }
-
 
36131
 
-
 
36132
      return true;
-
 
36133
    }
-
 
36134
 
-
 
36135
    @Override
-
 
36136
    public int hashCode() {
-
 
36137
      return 0;
-
 
36138
    }
-
 
36139
 
-
 
36140
    public void read(TProtocol iprot) throws TException {
-
 
36141
      TField field;
-
 
36142
      iprot.readStructBegin();
-
 
36143
      while (true)
-
 
36144
      {
-
 
36145
        field = iprot.readFieldBegin();
-
 
36146
        if (field.type == TType.STOP) { 
-
 
36147
          break;
-
 
36148
        }
-
 
36149
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
36150
        if (fieldId == null) {
-
 
36151
          TProtocolUtil.skip(iprot, field.type);
-
 
36152
        } else {
-
 
36153
          switch (fieldId) {
-
 
36154
            case SUCCESS:
-
 
36155
              if (field.type == TType.LIST) {
-
 
36156
                {
-
 
36157
                  TList _list91 = iprot.readListBegin();
-
 
36158
                  this.success = new ArrayList<Item>(_list91.size);
-
 
36159
                  for (int _i92 = 0; _i92 < _list91.size; ++_i92)
-
 
36160
                  {
-
 
36161
                    Item _elem93;
-
 
36162
                    _elem93 = new Item();
-
 
36163
                    _elem93.read(iprot);
-
 
36164
                    this.success.add(_elem93);
-
 
36165
                  }
-
 
36166
                  iprot.readListEnd();
-
 
36167
                }
-
 
36168
              } else { 
-
 
36169
                TProtocolUtil.skip(iprot, field.type);
-
 
36170
              }
-
 
36171
              break;
-
 
36172
          }
-
 
36173
          iprot.readFieldEnd();
-
 
36174
        }
-
 
36175
      }
-
 
36176
      iprot.readStructEnd();
-
 
36177
      validate();
-
 
36178
    }
-
 
36179
 
-
 
36180
    public void write(TProtocol oprot) throws TException {
-
 
36181
      oprot.writeStructBegin(STRUCT_DESC);
-
 
36182
 
-
 
36183
      if (this.isSetSuccess()) {
-
 
36184
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
36185
        {
-
 
36186
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
36187
          for (Item _iter94 : this.success)
-
 
36188
          {
-
 
36189
            _iter94.write(oprot);
-
 
36190
          }
-
 
36191
          oprot.writeListEnd();
-
 
36192
        }
-
 
36193
        oprot.writeFieldEnd();
-
 
36194
      }
-
 
36195
      oprot.writeFieldStop();
-
 
36196
      oprot.writeStructEnd();
-
 
36197
    }
-
 
36198
 
-
 
36199
    @Override
-
 
36200
    public String toString() {
-
 
36201
      StringBuilder sb = new StringBuilder("getItemsByVendorCategory_result(");
-
 
36202
      boolean first = true;
-
 
36203
 
-
 
36204
      sb.append("success:");
-
 
36205
      if (this.success == null) {
-
 
36206
        sb.append("null");
-
 
36207
      } else {
-
 
36208
        sb.append(this.success);
-
 
36209
      }
-
 
36210
      first = false;
-
 
36211
      sb.append(")");
-
 
36212
      return sb.toString();
-
 
36213
    }
-
 
36214
 
-
 
36215
    public void validate() throws TException {
34948
      // check for required fields
36216
      // check for required fields
34949
    }
36217
    }
34950
 
36218
 
34951
  }
36219
  }
34952
 
36220