Subversion Repositories SmartDukaan

Rev

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

Rev 4283 Rev 4295
Line 387... Line 387...
387
     * 
387
     * 
388
     * @param vendorid
388
     * @param vendorid
389
     */
389
     */
390
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException;
390
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException;
391
 
391
 
-
 
392
    /**
-
 
393
     * Returns a list of product notifications added after a supplied datetime
-
 
394
     * 
-
 
395
     * @param startDateTime
-
 
396
     */
-
 
397
    public List<ProductNotificationRequest> getProductNotifications(long startDateTime) throws org.apache.thrift.TException;
-
 
398
 
-
 
399
    /**
-
 
400
     * Returns a list of count of requests for product notification against each item
-
 
401
     * 
-
 
402
     * @param startDateTime
-
 
403
     */
-
 
404
    public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException;
-
 
405
 
392
  }
406
  }
393
 
407
 
394
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
408
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
395
 
409
 
396
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
410
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 521... Line 535...
521
 
535
 
522
    public void getSearchResultCount(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
536
    public void getSearchResultCount(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
523
 
537
 
524
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException;
538
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException;
525
 
539
 
-
 
540
    public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotifications_call> resultHandler) throws org.apache.thrift.TException;
-
 
541
 
-
 
542
    public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException;
-
 
543
 
526
  }
544
  }
527
 
545
 
528
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
546
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
529
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
547
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
530
      public Factory() {}
548
      public Factory() {}
Line 2183... Line 2201...
2183
        return result.success;
2201
        return result.success;
2184
      }
2202
      }
2185
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
2203
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
2186
    }
2204
    }
2187
 
2205
 
-
 
2206
    public List<ProductNotificationRequest> getProductNotifications(long startDateTime) throws org.apache.thrift.TException
-
 
2207
    {
-
 
2208
      send_getProductNotifications(startDateTime);
-
 
2209
      return recv_getProductNotifications();
-
 
2210
    }
-
 
2211
 
-
 
2212
    public void send_getProductNotifications(long startDateTime) throws org.apache.thrift.TException
-
 
2213
    {
-
 
2214
      getProductNotifications_args args = new getProductNotifications_args();
-
 
2215
      args.setStartDateTime(startDateTime);
-
 
2216
      sendBase("getProductNotifications", args);
-
 
2217
    }
-
 
2218
 
-
 
2219
    public List<ProductNotificationRequest> recv_getProductNotifications() throws org.apache.thrift.TException
-
 
2220
    {
-
 
2221
      getProductNotifications_result result = new getProductNotifications_result();
-
 
2222
      receiveBase(result, "getProductNotifications");
-
 
2223
      if (result.isSetSuccess()) {
-
 
2224
        return result.success;
-
 
2225
      }
-
 
2226
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
-
 
2227
    }
-
 
2228
 
-
 
2229
    public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException
-
 
2230
    {
-
 
2231
      send_getProductNotificationRequestCount(startDateTime);
-
 
2232
      return recv_getProductNotificationRequestCount();
-
 
2233
    }
-
 
2234
 
-
 
2235
    public void send_getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException
-
 
2236
    {
-
 
2237
      getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();
-
 
2238
      args.setStartDateTime(startDateTime);
-
 
2239
      sendBase("getProductNotificationRequestCount", args);
-
 
2240
    }
-
 
2241
 
-
 
2242
    public List<ProductNotificationRequestCount> recv_getProductNotificationRequestCount() throws org.apache.thrift.TException
-
 
2243
    {
-
 
2244
      getProductNotificationRequestCount_result result = new getProductNotificationRequestCount_result();
-
 
2245
      receiveBase(result, "getProductNotificationRequestCount");
-
 
2246
      if (result.isSetSuccess()) {
-
 
2247
        return result.success;
-
 
2248
      }
-
 
2249
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
-
 
2250
    }
-
 
2251
 
2188
  }
2252
  }
2189
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2253
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2190
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2254
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2191
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2255
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2192
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2256
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4392... Line 4456...
4392
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4456
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4393
        return (new Client(prot)).recv_getPendingOrdersInventory();
4457
        return (new Client(prot)).recv_getPendingOrdersInventory();
4394
      }
4458
      }
4395
    }
4459
    }
4396
 
4460
 
-
 
4461
    public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotifications_call> resultHandler) throws org.apache.thrift.TException {
-
 
4462
      checkReady();
-
 
4463
      getProductNotifications_call method_call = new getProductNotifications_call(startDateTime, resultHandler, this, ___protocolFactory, ___transport);
-
 
4464
      this.___currentMethod = method_call;
-
 
4465
      ___manager.call(method_call);
-
 
4466
    }
-
 
4467
 
-
 
4468
    public static class getProductNotifications_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4469
      private long startDateTime;
-
 
4470
      public getProductNotifications_call(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotifications_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4471
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4472
        this.startDateTime = startDateTime;
-
 
4473
      }
-
 
4474
 
-
 
4475
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4476
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductNotifications", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4477
        getProductNotifications_args args = new getProductNotifications_args();
-
 
4478
        args.setStartDateTime(startDateTime);
-
 
4479
        args.write(prot);
-
 
4480
        prot.writeMessageEnd();
-
 
4481
      }
-
 
4482
 
-
 
4483
      public List<ProductNotificationRequest> getResult() throws org.apache.thrift.TException {
-
 
4484
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4485
          throw new IllegalStateException("Method call not finished!");
-
 
4486
        }
-
 
4487
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4488
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4489
        return (new Client(prot)).recv_getProductNotifications();
-
 
4490
      }
-
 
4491
    }
-
 
4492
 
-
 
4493
    public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException {
-
 
4494
      checkReady();
-
 
4495
      getProductNotificationRequestCount_call method_call = new getProductNotificationRequestCount_call(startDateTime, resultHandler, this, ___protocolFactory, ___transport);
-
 
4496
      this.___currentMethod = method_call;
-
 
4497
      ___manager.call(method_call);
-
 
4498
    }
-
 
4499
 
-
 
4500
    public static class getProductNotificationRequestCount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4501
      private long startDateTime;
-
 
4502
      public getProductNotificationRequestCount_call(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotificationRequestCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4503
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4504
        this.startDateTime = startDateTime;
-
 
4505
      }
-
 
4506
 
-
 
4507
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4508
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductNotificationRequestCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4509
        getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();
-
 
4510
        args.setStartDateTime(startDateTime);
-
 
4511
        args.write(prot);
-
 
4512
        prot.writeMessageEnd();
-
 
4513
      }
-
 
4514
 
-
 
4515
      public List<ProductNotificationRequestCount> getResult() throws org.apache.thrift.TException {
-
 
4516
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4517
          throw new IllegalStateException("Method call not finished!");
-
 
4518
        }
-
 
4519
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4520
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4521
        return (new Client(prot)).recv_getProductNotificationRequestCount();
-
 
4522
      }
-
 
4523
    }
-
 
4524
 
4397
  }
4525
  }
4398
 
4526
 
4399
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4527
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4400
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4528
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4401
    public Processor(I iface) {
4529
    public Processor(I iface) {
Line 4470... Line 4598...
4470
      processMap.put("getAllSourcePricing", new getAllSourcePricing());
4598
      processMap.put("getAllSourcePricing", new getAllSourcePricing());
4471
      processMap.put("getItemForSource", new getItemForSource());
4599
      processMap.put("getItemForSource", new getItemForSource());
4472
      processMap.put("searchItemsInRange", new searchItemsInRange());
4600
      processMap.put("searchItemsInRange", new searchItemsInRange());
4473
      processMap.put("getSearchResultCount", new getSearchResultCount());
4601
      processMap.put("getSearchResultCount", new getSearchResultCount());
4474
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
4602
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
-
 
4603
      processMap.put("getProductNotifications", new getProductNotifications());
-
 
4604
      processMap.put("getProductNotificationRequestCount", new getProductNotificationRequestCount());
4475
      return processMap;
4605
      return processMap;
4476
    }
4606
    }
4477
 
4607
 
4478
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
4608
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
4479
      public addItem() {
4609
      public addItem() {
Line 5715... Line 5845...
5715
        result.success = iface.getPendingOrdersInventory(args.vendorid);
5845
        result.success = iface.getPendingOrdersInventory(args.vendorid);
5716
        return result;
5846
        return result;
5717
      }
5847
      }
5718
    }
5848
    }
5719
 
5849
 
-
 
5850
    private static class getProductNotifications<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProductNotifications_args> {
-
 
5851
      public getProductNotifications() {
-
 
5852
        super("getProductNotifications");
-
 
5853
      }
-
 
5854
 
-
 
5855
      protected getProductNotifications_args getEmptyArgsInstance() {
-
 
5856
        return new getProductNotifications_args();
-
 
5857
      }
-
 
5858
 
-
 
5859
      protected getProductNotifications_result getResult(I iface, getProductNotifications_args args) throws org.apache.thrift.TException {
-
 
5860
        getProductNotifications_result result = new getProductNotifications_result();
-
 
5861
        result.success = iface.getProductNotifications(args.startDateTime);
-
 
5862
        return result;
-
 
5863
      }
-
 
5864
    }
-
 
5865
 
-
 
5866
    private static class getProductNotificationRequestCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProductNotificationRequestCount_args> {
-
 
5867
      public getProductNotificationRequestCount() {
-
 
5868
        super("getProductNotificationRequestCount");
-
 
5869
      }
-
 
5870
 
-
 
5871
      protected getProductNotificationRequestCount_args getEmptyArgsInstance() {
-
 
5872
        return new getProductNotificationRequestCount_args();
-
 
5873
      }
-
 
5874
 
-
 
5875
      protected getProductNotificationRequestCount_result getResult(I iface, getProductNotificationRequestCount_args args) throws org.apache.thrift.TException {
-
 
5876
        getProductNotificationRequestCount_result result = new getProductNotificationRequestCount_result();
-
 
5877
        result.success = iface.getProductNotificationRequestCount(args.startDateTime);
-
 
5878
        return result;
-
 
5879
      }
-
 
5880
    }
-
 
5881
 
5720
  }
5882
  }
5721
 
5883
 
5722
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
5884
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
5723
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
5885
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
5724
 
5886
 
Line 51326... Line 51488...
51326
      boolean first = true;
51488
      boolean first = true;
51327
 
51489
 
51328
      sb.append("success:");
51490
      sb.append("success:");
51329
      if (this.success == null) {
51491
      if (this.success == null) {
51330
        sb.append("null");
51492
        sb.append("null");
-
 
51493
      } else {
-
 
51494
        sb.append(this.success);
-
 
51495
      }
-
 
51496
      first = false;
-
 
51497
      sb.append(")");
-
 
51498
      return sb.toString();
-
 
51499
    }
-
 
51500
 
-
 
51501
    public void validate() throws org.apache.thrift.TException {
-
 
51502
      // check for required fields
-
 
51503
    }
-
 
51504
 
-
 
51505
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51506
      try {
-
 
51507
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51508
      } catch (org.apache.thrift.TException te) {
-
 
51509
        throw new java.io.IOException(te);
-
 
51510
      }
-
 
51511
    }
-
 
51512
 
-
 
51513
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51514
      try {
-
 
51515
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51516
      } catch (org.apache.thrift.TException te) {
-
 
51517
        throw new java.io.IOException(te);
-
 
51518
      }
-
 
51519
    }
-
 
51520
 
-
 
51521
  }
-
 
51522
 
-
 
51523
  public static class getProductNotifications_args implements org.apache.thrift.TBase<getProductNotifications_args, getProductNotifications_args._Fields>, java.io.Serializable, Cloneable   {
-
 
51524
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotifications_args");
-
 
51525
 
-
 
51526
    private static final org.apache.thrift.protocol.TField START_DATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDateTime", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
51527
 
-
 
51528
    private long startDateTime; // required
-
 
51529
 
-
 
51530
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51531
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51532
      START_DATE_TIME((short)1, "startDateTime");
-
 
51533
 
-
 
51534
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51535
 
-
 
51536
      static {
-
 
51537
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51538
          byName.put(field.getFieldName(), field);
-
 
51539
        }
-
 
51540
      }
-
 
51541
 
-
 
51542
      /**
-
 
51543
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51544
       */
-
 
51545
      public static _Fields findByThriftId(int fieldId) {
-
 
51546
        switch(fieldId) {
-
 
51547
          case 1: // START_DATE_TIME
-
 
51548
            return START_DATE_TIME;
-
 
51549
          default:
-
 
51550
            return null;
-
 
51551
        }
-
 
51552
      }
-
 
51553
 
-
 
51554
      /**
-
 
51555
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51556
       * if it is not found.
-
 
51557
       */
-
 
51558
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51559
        _Fields fields = findByThriftId(fieldId);
-
 
51560
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51561
        return fields;
-
 
51562
      }
-
 
51563
 
-
 
51564
      /**
-
 
51565
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51566
       */
-
 
51567
      public static _Fields findByName(String name) {
-
 
51568
        return byName.get(name);
-
 
51569
      }
-
 
51570
 
-
 
51571
      private final short _thriftId;
-
 
51572
      private final String _fieldName;
-
 
51573
 
-
 
51574
      _Fields(short thriftId, String fieldName) {
-
 
51575
        _thriftId = thriftId;
-
 
51576
        _fieldName = fieldName;
-
 
51577
      }
-
 
51578
 
-
 
51579
      public short getThriftFieldId() {
-
 
51580
        return _thriftId;
-
 
51581
      }
-
 
51582
 
-
 
51583
      public String getFieldName() {
-
 
51584
        return _fieldName;
-
 
51585
      }
-
 
51586
    }
-
 
51587
 
-
 
51588
    // isset id assignments
-
 
51589
    private static final int __STARTDATETIME_ISSET_ID = 0;
-
 
51590
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
51591
 
-
 
51592
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
51593
    static {
-
 
51594
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
51595
      tmpMap.put(_Fields.START_DATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("startDateTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
51597
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
51598
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotifications_args.class, metaDataMap);
-
 
51599
    }
-
 
51600
 
-
 
51601
    public getProductNotifications_args() {
-
 
51602
    }
-
 
51603
 
-
 
51604
    public getProductNotifications_args(
-
 
51605
      long startDateTime)
-
 
51606
    {
-
 
51607
      this();
-
 
51608
      this.startDateTime = startDateTime;
-
 
51609
      setStartDateTimeIsSet(true);
-
 
51610
    }
-
 
51611
 
-
 
51612
    /**
-
 
51613
     * Performs a deep copy on <i>other</i>.
-
 
51614
     */
-
 
51615
    public getProductNotifications_args(getProductNotifications_args other) {
-
 
51616
      __isset_bit_vector.clear();
-
 
51617
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
51618
      this.startDateTime = other.startDateTime;
-
 
51619
    }
-
 
51620
 
-
 
51621
    public getProductNotifications_args deepCopy() {
-
 
51622
      return new getProductNotifications_args(this);
-
 
51623
    }
-
 
51624
 
-
 
51625
    @Override
-
 
51626
    public void clear() {
-
 
51627
      setStartDateTimeIsSet(false);
-
 
51628
      this.startDateTime = 0;
-
 
51629
    }
-
 
51630
 
-
 
51631
    public long getStartDateTime() {
-
 
51632
      return this.startDateTime;
-
 
51633
    }
-
 
51634
 
-
 
51635
    public void setStartDateTime(long startDateTime) {
-
 
51636
      this.startDateTime = startDateTime;
-
 
51637
      setStartDateTimeIsSet(true);
-
 
51638
    }
-
 
51639
 
-
 
51640
    public void unsetStartDateTime() {
-
 
51641
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
-
 
51642
    }
-
 
51643
 
-
 
51644
    /** Returns true if field startDateTime is set (has been assigned a value) and false otherwise */
-
 
51645
    public boolean isSetStartDateTime() {
-
 
51646
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
-
 
51647
    }
-
 
51648
 
-
 
51649
    public void setStartDateTimeIsSet(boolean value) {
-
 
51650
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
-
 
51651
    }
-
 
51652
 
-
 
51653
    public void setFieldValue(_Fields field, Object value) {
-
 
51654
      switch (field) {
-
 
51655
      case START_DATE_TIME:
-
 
51656
        if (value == null) {
-
 
51657
          unsetStartDateTime();
-
 
51658
        } else {
-
 
51659
          setStartDateTime((Long)value);
-
 
51660
        }
-
 
51661
        break;
-
 
51662
 
-
 
51663
      }
-
 
51664
    }
-
 
51665
 
-
 
51666
    public Object getFieldValue(_Fields field) {
-
 
51667
      switch (field) {
-
 
51668
      case START_DATE_TIME:
-
 
51669
        return Long.valueOf(getStartDateTime());
-
 
51670
 
-
 
51671
      }
-
 
51672
      throw new IllegalStateException();
-
 
51673
    }
-
 
51674
 
-
 
51675
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
51676
    public boolean isSet(_Fields field) {
-
 
51677
      if (field == null) {
-
 
51678
        throw new IllegalArgumentException();
-
 
51679
      }
-
 
51680
 
-
 
51681
      switch (field) {
-
 
51682
      case START_DATE_TIME:
-
 
51683
        return isSetStartDateTime();
-
 
51684
      }
-
 
51685
      throw new IllegalStateException();
-
 
51686
    }
-
 
51687
 
-
 
51688
    @Override
-
 
51689
    public boolean equals(Object that) {
-
 
51690
      if (that == null)
-
 
51691
        return false;
-
 
51692
      if (that instanceof getProductNotifications_args)
-
 
51693
        return this.equals((getProductNotifications_args)that);
-
 
51694
      return false;
-
 
51695
    }
-
 
51696
 
-
 
51697
    public boolean equals(getProductNotifications_args that) {
-
 
51698
      if (that == null)
-
 
51699
        return false;
-
 
51700
 
-
 
51701
      boolean this_present_startDateTime = true;
-
 
51702
      boolean that_present_startDateTime = true;
-
 
51703
      if (this_present_startDateTime || that_present_startDateTime) {
-
 
51704
        if (!(this_present_startDateTime && that_present_startDateTime))
-
 
51705
          return false;
-
 
51706
        if (this.startDateTime != that.startDateTime)
-
 
51707
          return false;
-
 
51708
      }
-
 
51709
 
-
 
51710
      return true;
-
 
51711
    }
-
 
51712
 
-
 
51713
    @Override
-
 
51714
    public int hashCode() {
-
 
51715
      return 0;
-
 
51716
    }
-
 
51717
 
-
 
51718
    public int compareTo(getProductNotifications_args other) {
-
 
51719
      if (!getClass().equals(other.getClass())) {
-
 
51720
        return getClass().getName().compareTo(other.getClass().getName());
-
 
51721
      }
-
 
51722
 
-
 
51723
      int lastComparison = 0;
-
 
51724
      getProductNotifications_args typedOther = (getProductNotifications_args)other;
-
 
51725
 
-
 
51726
      lastComparison = Boolean.valueOf(isSetStartDateTime()).compareTo(typedOther.isSetStartDateTime());
-
 
51727
      if (lastComparison != 0) {
-
 
51728
        return lastComparison;
-
 
51729
      }
-
 
51730
      if (isSetStartDateTime()) {
-
 
51731
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDateTime, typedOther.startDateTime);
-
 
51732
        if (lastComparison != 0) {
-
 
51733
          return lastComparison;
-
 
51734
        }
-
 
51735
      }
-
 
51736
      return 0;
-
 
51737
    }
-
 
51738
 
-
 
51739
    public _Fields fieldForId(int fieldId) {
-
 
51740
      return _Fields.findByThriftId(fieldId);
-
 
51741
    }
-
 
51742
 
-
 
51743
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
51744
      org.apache.thrift.protocol.TField field;
-
 
51745
      iprot.readStructBegin();
-
 
51746
      while (true)
-
 
51747
      {
-
 
51748
        field = iprot.readFieldBegin();
-
 
51749
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
51750
          break;
-
 
51751
        }
-
 
51752
        switch (field.id) {
-
 
51753
          case 1: // START_DATE_TIME
-
 
51754
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
51755
              this.startDateTime = iprot.readI64();
-
 
51756
              setStartDateTimeIsSet(true);
-
 
51757
            } else { 
-
 
51758
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51759
            }
-
 
51760
            break;
-
 
51761
          default:
-
 
51762
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51763
        }
-
 
51764
        iprot.readFieldEnd();
-
 
51765
      }
-
 
51766
      iprot.readStructEnd();
-
 
51767
      validate();
-
 
51768
    }
-
 
51769
 
-
 
51770
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
51771
      validate();
-
 
51772
 
-
 
51773
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51774
      oprot.writeFieldBegin(START_DATE_TIME_FIELD_DESC);
-
 
51775
      oprot.writeI64(this.startDateTime);
-
 
51776
      oprot.writeFieldEnd();
-
 
51777
      oprot.writeFieldStop();
-
 
51778
      oprot.writeStructEnd();
-
 
51779
    }
-
 
51780
 
-
 
51781
    @Override
-
 
51782
    public String toString() {
-
 
51783
      StringBuilder sb = new StringBuilder("getProductNotifications_args(");
-
 
51784
      boolean first = true;
-
 
51785
 
-
 
51786
      sb.append("startDateTime:");
-
 
51787
      sb.append(this.startDateTime);
-
 
51788
      first = false;
-
 
51789
      sb.append(")");
-
 
51790
      return sb.toString();
-
 
51791
    }
-
 
51792
 
-
 
51793
    public void validate() throws org.apache.thrift.TException {
-
 
51794
      // check for required fields
-
 
51795
    }
-
 
51796
 
-
 
51797
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51798
      try {
-
 
51799
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51800
      } catch (org.apache.thrift.TException te) {
-
 
51801
        throw new java.io.IOException(te);
-
 
51802
      }
-
 
51803
    }
-
 
51804
 
-
 
51805
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51806
      try {
-
 
51807
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
51808
        __isset_bit_vector = new BitSet(1);
-
 
51809
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51810
      } catch (org.apache.thrift.TException te) {
-
 
51811
        throw new java.io.IOException(te);
-
 
51812
      }
-
 
51813
    }
-
 
51814
 
-
 
51815
  }
-
 
51816
 
-
 
51817
  public static class getProductNotifications_result implements org.apache.thrift.TBase<getProductNotifications_result, getProductNotifications_result._Fields>, java.io.Serializable, Cloneable   {
-
 
51818
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotifications_result");
-
 
51819
 
-
 
51820
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
51821
 
-
 
51822
    private List<ProductNotificationRequest> success; // required
-
 
51823
 
-
 
51824
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51825
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51826
      SUCCESS((short)0, "success");
-
 
51827
 
-
 
51828
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51829
 
-
 
51830
      static {
-
 
51831
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51832
          byName.put(field.getFieldName(), field);
-
 
51833
        }
-
 
51834
      }
-
 
51835
 
-
 
51836
      /**
-
 
51837
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51838
       */
-
 
51839
      public static _Fields findByThriftId(int fieldId) {
-
 
51840
        switch(fieldId) {
-
 
51841
          case 0: // SUCCESS
-
 
51842
            return SUCCESS;
-
 
51843
          default:
-
 
51844
            return null;
-
 
51845
        }
-
 
51846
      }
-
 
51847
 
-
 
51848
      /**
-
 
51849
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51850
       * if it is not found.
-
 
51851
       */
-
 
51852
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51853
        _Fields fields = findByThriftId(fieldId);
-
 
51854
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51855
        return fields;
-
 
51856
      }
-
 
51857
 
-
 
51858
      /**
-
 
51859
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51860
       */
-
 
51861
      public static _Fields findByName(String name) {
-
 
51862
        return byName.get(name);
-
 
51863
      }
-
 
51864
 
-
 
51865
      private final short _thriftId;
-
 
51866
      private final String _fieldName;
-
 
51867
 
-
 
51868
      _Fields(short thriftId, String fieldName) {
-
 
51869
        _thriftId = thriftId;
-
 
51870
        _fieldName = fieldName;
-
 
51871
      }
-
 
51872
 
-
 
51873
      public short getThriftFieldId() {
-
 
51874
        return _thriftId;
-
 
51875
      }
-
 
51876
 
-
 
51877
      public String getFieldName() {
-
 
51878
        return _fieldName;
-
 
51879
      }
-
 
51880
    }
-
 
51881
 
-
 
51882
    // isset id assignments
-
 
51883
 
-
 
51884
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
51885
    static {
-
 
51886
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
51887
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51888
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
51889
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductNotificationRequest.class))));
-
 
51890
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
51891
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotifications_result.class, metaDataMap);
-
 
51892
    }
-
 
51893
 
-
 
51894
    public getProductNotifications_result() {
-
 
51895
    }
-
 
51896
 
-
 
51897
    public getProductNotifications_result(
-
 
51898
      List<ProductNotificationRequest> success)
-
 
51899
    {
-
 
51900
      this();
-
 
51901
      this.success = success;
-
 
51902
    }
-
 
51903
 
-
 
51904
    /**
-
 
51905
     * Performs a deep copy on <i>other</i>.
-
 
51906
     */
-
 
51907
    public getProductNotifications_result(getProductNotifications_result other) {
-
 
51908
      if (other.isSetSuccess()) {
-
 
51909
        List<ProductNotificationRequest> __this__success = new ArrayList<ProductNotificationRequest>();
-
 
51910
        for (ProductNotificationRequest other_element : other.success) {
-
 
51911
          __this__success.add(new ProductNotificationRequest(other_element));
-
 
51912
        }
-
 
51913
        this.success = __this__success;
-
 
51914
      }
-
 
51915
    }
-
 
51916
 
-
 
51917
    public getProductNotifications_result deepCopy() {
-
 
51918
      return new getProductNotifications_result(this);
-
 
51919
    }
-
 
51920
 
-
 
51921
    @Override
-
 
51922
    public void clear() {
-
 
51923
      this.success = null;
-
 
51924
    }
-
 
51925
 
-
 
51926
    public int getSuccessSize() {
-
 
51927
      return (this.success == null) ? 0 : this.success.size();
-
 
51928
    }
-
 
51929
 
-
 
51930
    public java.util.Iterator<ProductNotificationRequest> getSuccessIterator() {
-
 
51931
      return (this.success == null) ? null : this.success.iterator();
-
 
51932
    }
-
 
51933
 
-
 
51934
    public void addToSuccess(ProductNotificationRequest elem) {
-
 
51935
      if (this.success == null) {
-
 
51936
        this.success = new ArrayList<ProductNotificationRequest>();
-
 
51937
      }
-
 
51938
      this.success.add(elem);
-
 
51939
    }
-
 
51940
 
-
 
51941
    public List<ProductNotificationRequest> getSuccess() {
-
 
51942
      return this.success;
-
 
51943
    }
-
 
51944
 
-
 
51945
    public void setSuccess(List<ProductNotificationRequest> success) {
-
 
51946
      this.success = success;
-
 
51947
    }
-
 
51948
 
-
 
51949
    public void unsetSuccess() {
-
 
51950
      this.success = null;
-
 
51951
    }
-
 
51952
 
-
 
51953
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
51954
    public boolean isSetSuccess() {
-
 
51955
      return this.success != null;
-
 
51956
    }
-
 
51957
 
-
 
51958
    public void setSuccessIsSet(boolean value) {
-
 
51959
      if (!value) {
-
 
51960
        this.success = null;
-
 
51961
      }
-
 
51962
    }
-
 
51963
 
-
 
51964
    public void setFieldValue(_Fields field, Object value) {
-
 
51965
      switch (field) {
-
 
51966
      case SUCCESS:
-
 
51967
        if (value == null) {
-
 
51968
          unsetSuccess();
-
 
51969
        } else {
-
 
51970
          setSuccess((List<ProductNotificationRequest>)value);
-
 
51971
        }
-
 
51972
        break;
-
 
51973
 
-
 
51974
      }
-
 
51975
    }
-
 
51976
 
-
 
51977
    public Object getFieldValue(_Fields field) {
-
 
51978
      switch (field) {
-
 
51979
      case SUCCESS:
-
 
51980
        return getSuccess();
-
 
51981
 
-
 
51982
      }
-
 
51983
      throw new IllegalStateException();
-
 
51984
    }
-
 
51985
 
-
 
51986
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
51987
    public boolean isSet(_Fields field) {
-
 
51988
      if (field == null) {
-
 
51989
        throw new IllegalArgumentException();
-
 
51990
      }
-
 
51991
 
-
 
51992
      switch (field) {
-
 
51993
      case SUCCESS:
-
 
51994
        return isSetSuccess();
-
 
51995
      }
-
 
51996
      throw new IllegalStateException();
-
 
51997
    }
-
 
51998
 
-
 
51999
    @Override
-
 
52000
    public boolean equals(Object that) {
-
 
52001
      if (that == null)
-
 
52002
        return false;
-
 
52003
      if (that instanceof getProductNotifications_result)
-
 
52004
        return this.equals((getProductNotifications_result)that);
-
 
52005
      return false;
-
 
52006
    }
-
 
52007
 
-
 
52008
    public boolean equals(getProductNotifications_result that) {
-
 
52009
      if (that == null)
-
 
52010
        return false;
-
 
52011
 
-
 
52012
      boolean this_present_success = true && this.isSetSuccess();
-
 
52013
      boolean that_present_success = true && that.isSetSuccess();
-
 
52014
      if (this_present_success || that_present_success) {
-
 
52015
        if (!(this_present_success && that_present_success))
-
 
52016
          return false;
-
 
52017
        if (!this.success.equals(that.success))
-
 
52018
          return false;
-
 
52019
      }
-
 
52020
 
-
 
52021
      return true;
-
 
52022
    }
-
 
52023
 
-
 
52024
    @Override
-
 
52025
    public int hashCode() {
-
 
52026
      return 0;
-
 
52027
    }
-
 
52028
 
-
 
52029
    public int compareTo(getProductNotifications_result other) {
-
 
52030
      if (!getClass().equals(other.getClass())) {
-
 
52031
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52032
      }
-
 
52033
 
-
 
52034
      int lastComparison = 0;
-
 
52035
      getProductNotifications_result typedOther = (getProductNotifications_result)other;
-
 
52036
 
-
 
52037
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
52038
      if (lastComparison != 0) {
-
 
52039
        return lastComparison;
-
 
52040
      }
-
 
52041
      if (isSetSuccess()) {
-
 
52042
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
52043
        if (lastComparison != 0) {
-
 
52044
          return lastComparison;
-
 
52045
        }
-
 
52046
      }
-
 
52047
      return 0;
-
 
52048
    }
-
 
52049
 
-
 
52050
    public _Fields fieldForId(int fieldId) {
-
 
52051
      return _Fields.findByThriftId(fieldId);
-
 
52052
    }
-
 
52053
 
-
 
52054
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
52055
      org.apache.thrift.protocol.TField field;
-
 
52056
      iprot.readStructBegin();
-
 
52057
      while (true)
-
 
52058
      {
-
 
52059
        field = iprot.readFieldBegin();
-
 
52060
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
52061
          break;
-
 
52062
        }
-
 
52063
        switch (field.id) {
-
 
52064
          case 0: // SUCCESS
-
 
52065
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
52066
              {
-
 
52067
                org.apache.thrift.protocol.TList _list144 = iprot.readListBegin();
-
 
52068
                this.success = new ArrayList<ProductNotificationRequest>(_list144.size);
-
 
52069
                for (int _i145 = 0; _i145 < _list144.size; ++_i145)
-
 
52070
                {
-
 
52071
                  ProductNotificationRequest _elem146; // required
-
 
52072
                  _elem146 = new ProductNotificationRequest();
-
 
52073
                  _elem146.read(iprot);
-
 
52074
                  this.success.add(_elem146);
-
 
52075
                }
-
 
52076
                iprot.readListEnd();
-
 
52077
              }
-
 
52078
            } else { 
-
 
52079
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52080
            }
-
 
52081
            break;
-
 
52082
          default:
-
 
52083
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52084
        }
-
 
52085
        iprot.readFieldEnd();
-
 
52086
      }
-
 
52087
      iprot.readStructEnd();
-
 
52088
      validate();
-
 
52089
    }
-
 
52090
 
-
 
52091
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
52092
      oprot.writeStructBegin(STRUCT_DESC);
-
 
52093
 
-
 
52094
      if (this.isSetSuccess()) {
-
 
52095
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
52096
        {
-
 
52097
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
52098
          for (ProductNotificationRequest _iter147 : this.success)
-
 
52099
          {
-
 
52100
            _iter147.write(oprot);
-
 
52101
          }
-
 
52102
          oprot.writeListEnd();
-
 
52103
        }
-
 
52104
        oprot.writeFieldEnd();
-
 
52105
      }
-
 
52106
      oprot.writeFieldStop();
-
 
52107
      oprot.writeStructEnd();
-
 
52108
    }
-
 
52109
 
-
 
52110
    @Override
-
 
52111
    public String toString() {
-
 
52112
      StringBuilder sb = new StringBuilder("getProductNotifications_result(");
-
 
52113
      boolean first = true;
-
 
52114
 
-
 
52115
      sb.append("success:");
-
 
52116
      if (this.success == null) {
-
 
52117
        sb.append("null");
-
 
52118
      } else {
-
 
52119
        sb.append(this.success);
-
 
52120
      }
-
 
52121
      first = false;
-
 
52122
      sb.append(")");
-
 
52123
      return sb.toString();
-
 
52124
    }
-
 
52125
 
-
 
52126
    public void validate() throws org.apache.thrift.TException {
-
 
52127
      // check for required fields
-
 
52128
    }
-
 
52129
 
-
 
52130
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
52131
      try {
-
 
52132
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
52133
      } catch (org.apache.thrift.TException te) {
-
 
52134
        throw new java.io.IOException(te);
-
 
52135
      }
-
 
52136
    }
-
 
52137
 
-
 
52138
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
52139
      try {
-
 
52140
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
52141
      } catch (org.apache.thrift.TException te) {
-
 
52142
        throw new java.io.IOException(te);
-
 
52143
      }
-
 
52144
    }
-
 
52145
 
-
 
52146
  }
-
 
52147
 
-
 
52148
  public static class getProductNotificationRequestCount_args implements org.apache.thrift.TBase<getProductNotificationRequestCount_args, getProductNotificationRequestCount_args._Fields>, java.io.Serializable, Cloneable   {
-
 
52149
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotificationRequestCount_args");
-
 
52150
 
-
 
52151
    private static final org.apache.thrift.protocol.TField START_DATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDateTime", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
52152
 
-
 
52153
    private long startDateTime; // required
-
 
52154
 
-
 
52155
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
52156
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
52157
      START_DATE_TIME((short)1, "startDateTime");
-
 
52158
 
-
 
52159
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
52160
 
-
 
52161
      static {
-
 
52162
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
52163
          byName.put(field.getFieldName(), field);
-
 
52164
        }
-
 
52165
      }
-
 
52166
 
-
 
52167
      /**
-
 
52168
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
52169
       */
-
 
52170
      public static _Fields findByThriftId(int fieldId) {
-
 
52171
        switch(fieldId) {
-
 
52172
          case 1: // START_DATE_TIME
-
 
52173
            return START_DATE_TIME;
-
 
52174
          default:
-
 
52175
            return null;
-
 
52176
        }
-
 
52177
      }
-
 
52178
 
-
 
52179
      /**
-
 
52180
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
52181
       * if it is not found.
-
 
52182
       */
-
 
52183
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
52184
        _Fields fields = findByThriftId(fieldId);
-
 
52185
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
52186
        return fields;
-
 
52187
      }
-
 
52188
 
-
 
52189
      /**
-
 
52190
       * Find the _Fields constant that matches name, or null if its not found.
-
 
52191
       */
-
 
52192
      public static _Fields findByName(String name) {
-
 
52193
        return byName.get(name);
-
 
52194
      }
-
 
52195
 
-
 
52196
      private final short _thriftId;
-
 
52197
      private final String _fieldName;
-
 
52198
 
-
 
52199
      _Fields(short thriftId, String fieldName) {
-
 
52200
        _thriftId = thriftId;
-
 
52201
        _fieldName = fieldName;
-
 
52202
      }
-
 
52203
 
-
 
52204
      public short getThriftFieldId() {
-
 
52205
        return _thriftId;
-
 
52206
      }
-
 
52207
 
-
 
52208
      public String getFieldName() {
-
 
52209
        return _fieldName;
-
 
52210
      }
-
 
52211
    }
-
 
52212
 
-
 
52213
    // isset id assignments
-
 
52214
    private static final int __STARTDATETIME_ISSET_ID = 0;
-
 
52215
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
52216
 
-
 
52217
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
52218
    static {
-
 
52219
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
52220
      tmpMap.put(_Fields.START_DATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("startDateTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52221
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
52222
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
52223
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotificationRequestCount_args.class, metaDataMap);
-
 
52224
    }
-
 
52225
 
-
 
52226
    public getProductNotificationRequestCount_args() {
-
 
52227
    }
-
 
52228
 
-
 
52229
    public getProductNotificationRequestCount_args(
-
 
52230
      long startDateTime)
-
 
52231
    {
-
 
52232
      this();
-
 
52233
      this.startDateTime = startDateTime;
-
 
52234
      setStartDateTimeIsSet(true);
-
 
52235
    }
-
 
52236
 
-
 
52237
    /**
-
 
52238
     * Performs a deep copy on <i>other</i>.
-
 
52239
     */
-
 
52240
    public getProductNotificationRequestCount_args(getProductNotificationRequestCount_args other) {
-
 
52241
      __isset_bit_vector.clear();
-
 
52242
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
52243
      this.startDateTime = other.startDateTime;
-
 
52244
    }
-
 
52245
 
-
 
52246
    public getProductNotificationRequestCount_args deepCopy() {
-
 
52247
      return new getProductNotificationRequestCount_args(this);
-
 
52248
    }
-
 
52249
 
-
 
52250
    @Override
-
 
52251
    public void clear() {
-
 
52252
      setStartDateTimeIsSet(false);
-
 
52253
      this.startDateTime = 0;
-
 
52254
    }
-
 
52255
 
-
 
52256
    public long getStartDateTime() {
-
 
52257
      return this.startDateTime;
-
 
52258
    }
-
 
52259
 
-
 
52260
    public void setStartDateTime(long startDateTime) {
-
 
52261
      this.startDateTime = startDateTime;
-
 
52262
      setStartDateTimeIsSet(true);
-
 
52263
    }
-
 
52264
 
-
 
52265
    public void unsetStartDateTime() {
-
 
52266
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
-
 
52267
    }
-
 
52268
 
-
 
52269
    /** Returns true if field startDateTime is set (has been assigned a value) and false otherwise */
-
 
52270
    public boolean isSetStartDateTime() {
-
 
52271
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
-
 
52272
    }
-
 
52273
 
-
 
52274
    public void setStartDateTimeIsSet(boolean value) {
-
 
52275
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
-
 
52276
    }
-
 
52277
 
-
 
52278
    public void setFieldValue(_Fields field, Object value) {
-
 
52279
      switch (field) {
-
 
52280
      case START_DATE_TIME:
-
 
52281
        if (value == null) {
-
 
52282
          unsetStartDateTime();
-
 
52283
        } else {
-
 
52284
          setStartDateTime((Long)value);
-
 
52285
        }
-
 
52286
        break;
-
 
52287
 
-
 
52288
      }
-
 
52289
    }
-
 
52290
 
-
 
52291
    public Object getFieldValue(_Fields field) {
-
 
52292
      switch (field) {
-
 
52293
      case START_DATE_TIME:
-
 
52294
        return Long.valueOf(getStartDateTime());
-
 
52295
 
-
 
52296
      }
-
 
52297
      throw new IllegalStateException();
-
 
52298
    }
-
 
52299
 
-
 
52300
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
52301
    public boolean isSet(_Fields field) {
-
 
52302
      if (field == null) {
-
 
52303
        throw new IllegalArgumentException();
-
 
52304
      }
-
 
52305
 
-
 
52306
      switch (field) {
-
 
52307
      case START_DATE_TIME:
-
 
52308
        return isSetStartDateTime();
-
 
52309
      }
-
 
52310
      throw new IllegalStateException();
-
 
52311
    }
-
 
52312
 
-
 
52313
    @Override
-
 
52314
    public boolean equals(Object that) {
-
 
52315
      if (that == null)
-
 
52316
        return false;
-
 
52317
      if (that instanceof getProductNotificationRequestCount_args)
-
 
52318
        return this.equals((getProductNotificationRequestCount_args)that);
-
 
52319
      return false;
-
 
52320
    }
-
 
52321
 
-
 
52322
    public boolean equals(getProductNotificationRequestCount_args that) {
-
 
52323
      if (that == null)
-
 
52324
        return false;
-
 
52325
 
-
 
52326
      boolean this_present_startDateTime = true;
-
 
52327
      boolean that_present_startDateTime = true;
-
 
52328
      if (this_present_startDateTime || that_present_startDateTime) {
-
 
52329
        if (!(this_present_startDateTime && that_present_startDateTime))
-
 
52330
          return false;
-
 
52331
        if (this.startDateTime != that.startDateTime)
-
 
52332
          return false;
-
 
52333
      }
-
 
52334
 
-
 
52335
      return true;
-
 
52336
    }
-
 
52337
 
-
 
52338
    @Override
-
 
52339
    public int hashCode() {
-
 
52340
      return 0;
-
 
52341
    }
-
 
52342
 
-
 
52343
    public int compareTo(getProductNotificationRequestCount_args other) {
-
 
52344
      if (!getClass().equals(other.getClass())) {
-
 
52345
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52346
      }
-
 
52347
 
-
 
52348
      int lastComparison = 0;
-
 
52349
      getProductNotificationRequestCount_args typedOther = (getProductNotificationRequestCount_args)other;
-
 
52350
 
-
 
52351
      lastComparison = Boolean.valueOf(isSetStartDateTime()).compareTo(typedOther.isSetStartDateTime());
-
 
52352
      if (lastComparison != 0) {
-
 
52353
        return lastComparison;
-
 
52354
      }
-
 
52355
      if (isSetStartDateTime()) {
-
 
52356
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDateTime, typedOther.startDateTime);
-
 
52357
        if (lastComparison != 0) {
-
 
52358
          return lastComparison;
-
 
52359
        }
-
 
52360
      }
-
 
52361
      return 0;
-
 
52362
    }
-
 
52363
 
-
 
52364
    public _Fields fieldForId(int fieldId) {
-
 
52365
      return _Fields.findByThriftId(fieldId);
-
 
52366
    }
-
 
52367
 
-
 
52368
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
52369
      org.apache.thrift.protocol.TField field;
-
 
52370
      iprot.readStructBegin();
-
 
52371
      while (true)
-
 
52372
      {
-
 
52373
        field = iprot.readFieldBegin();
-
 
52374
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
52375
          break;
-
 
52376
        }
-
 
52377
        switch (field.id) {
-
 
52378
          case 1: // START_DATE_TIME
-
 
52379
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
52380
              this.startDateTime = iprot.readI64();
-
 
52381
              setStartDateTimeIsSet(true);
-
 
52382
            } else { 
-
 
52383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52384
            }
-
 
52385
            break;
-
 
52386
          default:
-
 
52387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52388
        }
-
 
52389
        iprot.readFieldEnd();
-
 
52390
      }
-
 
52391
      iprot.readStructEnd();
-
 
52392
      validate();
-
 
52393
    }
-
 
52394
 
-
 
52395
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
52396
      validate();
-
 
52397
 
-
 
52398
      oprot.writeStructBegin(STRUCT_DESC);
-
 
52399
      oprot.writeFieldBegin(START_DATE_TIME_FIELD_DESC);
-
 
52400
      oprot.writeI64(this.startDateTime);
-
 
52401
      oprot.writeFieldEnd();
-
 
52402
      oprot.writeFieldStop();
-
 
52403
      oprot.writeStructEnd();
-
 
52404
    }
-
 
52405
 
-
 
52406
    @Override
-
 
52407
    public String toString() {
-
 
52408
      StringBuilder sb = new StringBuilder("getProductNotificationRequestCount_args(");
-
 
52409
      boolean first = true;
-
 
52410
 
-
 
52411
      sb.append("startDateTime:");
-
 
52412
      sb.append(this.startDateTime);
-
 
52413
      first = false;
-
 
52414
      sb.append(")");
-
 
52415
      return sb.toString();
-
 
52416
    }
-
 
52417
 
-
 
52418
    public void validate() throws org.apache.thrift.TException {
-
 
52419
      // check for required fields
-
 
52420
    }
-
 
52421
 
-
 
52422
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
52423
      try {
-
 
52424
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
52425
      } catch (org.apache.thrift.TException te) {
-
 
52426
        throw new java.io.IOException(te);
-
 
52427
      }
-
 
52428
    }
-
 
52429
 
-
 
52430
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
52431
      try {
-
 
52432
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
52433
        __isset_bit_vector = new BitSet(1);
-
 
52434
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
52435
      } catch (org.apache.thrift.TException te) {
-
 
52436
        throw new java.io.IOException(te);
-
 
52437
      }
-
 
52438
    }
-
 
52439
 
-
 
52440
  }
-
 
52441
 
-
 
52442
  public static class getProductNotificationRequestCount_result implements org.apache.thrift.TBase<getProductNotificationRequestCount_result, getProductNotificationRequestCount_result._Fields>, java.io.Serializable, Cloneable   {
-
 
52443
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotificationRequestCount_result");
-
 
52444
 
-
 
52445
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
52446
 
-
 
52447
    private List<ProductNotificationRequestCount> success; // required
-
 
52448
 
-
 
52449
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
52450
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
52451
      SUCCESS((short)0, "success");
-
 
52452
 
-
 
52453
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
52454
 
-
 
52455
      static {
-
 
52456
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
52457
          byName.put(field.getFieldName(), field);
-
 
52458
        }
-
 
52459
      }
-
 
52460
 
-
 
52461
      /**
-
 
52462
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
52463
       */
-
 
52464
      public static _Fields findByThriftId(int fieldId) {
-
 
52465
        switch(fieldId) {
-
 
52466
          case 0: // SUCCESS
-
 
52467
            return SUCCESS;
-
 
52468
          default:
-
 
52469
            return null;
-
 
52470
        }
-
 
52471
      }
-
 
52472
 
-
 
52473
      /**
-
 
52474
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
52475
       * if it is not found.
-
 
52476
       */
-
 
52477
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
52478
        _Fields fields = findByThriftId(fieldId);
-
 
52479
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
52480
        return fields;
-
 
52481
      }
-
 
52482
 
-
 
52483
      /**
-
 
52484
       * Find the _Fields constant that matches name, or null if its not found.
-
 
52485
       */
-
 
52486
      public static _Fields findByName(String name) {
-
 
52487
        return byName.get(name);
-
 
52488
      }
-
 
52489
 
-
 
52490
      private final short _thriftId;
-
 
52491
      private final String _fieldName;
-
 
52492
 
-
 
52493
      _Fields(short thriftId, String fieldName) {
-
 
52494
        _thriftId = thriftId;
-
 
52495
        _fieldName = fieldName;
-
 
52496
      }
-
 
52497
 
-
 
52498
      public short getThriftFieldId() {
-
 
52499
        return _thriftId;
-
 
52500
      }
-
 
52501
 
-
 
52502
      public String getFieldName() {
-
 
52503
        return _fieldName;
-
 
52504
      }
-
 
52505
    }
-
 
52506
 
-
 
52507
    // isset id assignments
-
 
52508
 
-
 
52509
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
52510
    static {
-
 
52511
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
52512
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52513
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
52514
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductNotificationRequestCount.class))));
-
 
52515
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
52516
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotificationRequestCount_result.class, metaDataMap);
-
 
52517
    }
-
 
52518
 
-
 
52519
    public getProductNotificationRequestCount_result() {
-
 
52520
    }
-
 
52521
 
-
 
52522
    public getProductNotificationRequestCount_result(
-
 
52523
      List<ProductNotificationRequestCount> success)
-
 
52524
    {
-
 
52525
      this();
-
 
52526
      this.success = success;
-
 
52527
    }
-
 
52528
 
-
 
52529
    /**
-
 
52530
     * Performs a deep copy on <i>other</i>.
-
 
52531
     */
-
 
52532
    public getProductNotificationRequestCount_result(getProductNotificationRequestCount_result other) {
-
 
52533
      if (other.isSetSuccess()) {
-
 
52534
        List<ProductNotificationRequestCount> __this__success = new ArrayList<ProductNotificationRequestCount>();
-
 
52535
        for (ProductNotificationRequestCount other_element : other.success) {
-
 
52536
          __this__success.add(new ProductNotificationRequestCount(other_element));
-
 
52537
        }
-
 
52538
        this.success = __this__success;
-
 
52539
      }
-
 
52540
    }
-
 
52541
 
-
 
52542
    public getProductNotificationRequestCount_result deepCopy() {
-
 
52543
      return new getProductNotificationRequestCount_result(this);
-
 
52544
    }
-
 
52545
 
-
 
52546
    @Override
-
 
52547
    public void clear() {
-
 
52548
      this.success = null;
-
 
52549
    }
-
 
52550
 
-
 
52551
    public int getSuccessSize() {
-
 
52552
      return (this.success == null) ? 0 : this.success.size();
-
 
52553
    }
-
 
52554
 
-
 
52555
    public java.util.Iterator<ProductNotificationRequestCount> getSuccessIterator() {
-
 
52556
      return (this.success == null) ? null : this.success.iterator();
-
 
52557
    }
-
 
52558
 
-
 
52559
    public void addToSuccess(ProductNotificationRequestCount elem) {
-
 
52560
      if (this.success == null) {
-
 
52561
        this.success = new ArrayList<ProductNotificationRequestCount>();
-
 
52562
      }
-
 
52563
      this.success.add(elem);
-
 
52564
    }
-
 
52565
 
-
 
52566
    public List<ProductNotificationRequestCount> getSuccess() {
-
 
52567
      return this.success;
-
 
52568
    }
-
 
52569
 
-
 
52570
    public void setSuccess(List<ProductNotificationRequestCount> success) {
-
 
52571
      this.success = success;
-
 
52572
    }
-
 
52573
 
-
 
52574
    public void unsetSuccess() {
-
 
52575
      this.success = null;
-
 
52576
    }
-
 
52577
 
-
 
52578
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
52579
    public boolean isSetSuccess() {
-
 
52580
      return this.success != null;
-
 
52581
    }
-
 
52582
 
-
 
52583
    public void setSuccessIsSet(boolean value) {
-
 
52584
      if (!value) {
-
 
52585
        this.success = null;
-
 
52586
      }
-
 
52587
    }
-
 
52588
 
-
 
52589
    public void setFieldValue(_Fields field, Object value) {
-
 
52590
      switch (field) {
-
 
52591
      case SUCCESS:
-
 
52592
        if (value == null) {
-
 
52593
          unsetSuccess();
-
 
52594
        } else {
-
 
52595
          setSuccess((List<ProductNotificationRequestCount>)value);
-
 
52596
        }
-
 
52597
        break;
-
 
52598
 
-
 
52599
      }
-
 
52600
    }
-
 
52601
 
-
 
52602
    public Object getFieldValue(_Fields field) {
-
 
52603
      switch (field) {
-
 
52604
      case SUCCESS:
-
 
52605
        return getSuccess();
-
 
52606
 
-
 
52607
      }
-
 
52608
      throw new IllegalStateException();
-
 
52609
    }
-
 
52610
 
-
 
52611
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
52612
    public boolean isSet(_Fields field) {
-
 
52613
      if (field == null) {
-
 
52614
        throw new IllegalArgumentException();
-
 
52615
      }
-
 
52616
 
-
 
52617
      switch (field) {
-
 
52618
      case SUCCESS:
-
 
52619
        return isSetSuccess();
-
 
52620
      }
-
 
52621
      throw new IllegalStateException();
-
 
52622
    }
-
 
52623
 
-
 
52624
    @Override
-
 
52625
    public boolean equals(Object that) {
-
 
52626
      if (that == null)
-
 
52627
        return false;
-
 
52628
      if (that instanceof getProductNotificationRequestCount_result)
-
 
52629
        return this.equals((getProductNotificationRequestCount_result)that);
-
 
52630
      return false;
-
 
52631
    }
-
 
52632
 
-
 
52633
    public boolean equals(getProductNotificationRequestCount_result that) {
-
 
52634
      if (that == null)
-
 
52635
        return false;
-
 
52636
 
-
 
52637
      boolean this_present_success = true && this.isSetSuccess();
-
 
52638
      boolean that_present_success = true && that.isSetSuccess();
-
 
52639
      if (this_present_success || that_present_success) {
-
 
52640
        if (!(this_present_success && that_present_success))
-
 
52641
          return false;
-
 
52642
        if (!this.success.equals(that.success))
-
 
52643
          return false;
-
 
52644
      }
-
 
52645
 
-
 
52646
      return true;
-
 
52647
    }
-
 
52648
 
-
 
52649
    @Override
-
 
52650
    public int hashCode() {
-
 
52651
      return 0;
-
 
52652
    }
-
 
52653
 
-
 
52654
    public int compareTo(getProductNotificationRequestCount_result other) {
-
 
52655
      if (!getClass().equals(other.getClass())) {
-
 
52656
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52657
      }
-
 
52658
 
-
 
52659
      int lastComparison = 0;
-
 
52660
      getProductNotificationRequestCount_result typedOther = (getProductNotificationRequestCount_result)other;
-
 
52661
 
-
 
52662
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
52663
      if (lastComparison != 0) {
-
 
52664
        return lastComparison;
-
 
52665
      }
-
 
52666
      if (isSetSuccess()) {
-
 
52667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
52668
        if (lastComparison != 0) {
-
 
52669
          return lastComparison;
-
 
52670
        }
-
 
52671
      }
-
 
52672
      return 0;
-
 
52673
    }
-
 
52674
 
-
 
52675
    public _Fields fieldForId(int fieldId) {
-
 
52676
      return _Fields.findByThriftId(fieldId);
-
 
52677
    }
-
 
52678
 
-
 
52679
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
52680
      org.apache.thrift.protocol.TField field;
-
 
52681
      iprot.readStructBegin();
-
 
52682
      while (true)
-
 
52683
      {
-
 
52684
        field = iprot.readFieldBegin();
-
 
52685
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
52686
          break;
-
 
52687
        }
-
 
52688
        switch (field.id) {
-
 
52689
          case 0: // SUCCESS
-
 
52690
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
52691
              {
-
 
52692
                org.apache.thrift.protocol.TList _list148 = iprot.readListBegin();
-
 
52693
                this.success = new ArrayList<ProductNotificationRequestCount>(_list148.size);
-
 
52694
                for (int _i149 = 0; _i149 < _list148.size; ++_i149)
-
 
52695
                {
-
 
52696
                  ProductNotificationRequestCount _elem150; // required
-
 
52697
                  _elem150 = new ProductNotificationRequestCount();
-
 
52698
                  _elem150.read(iprot);
-
 
52699
                  this.success.add(_elem150);
-
 
52700
                }
-
 
52701
                iprot.readListEnd();
-
 
52702
              }
-
 
52703
            } else { 
-
 
52704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52705
            }
-
 
52706
            break;
-
 
52707
          default:
-
 
52708
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52709
        }
-
 
52710
        iprot.readFieldEnd();
-
 
52711
      }
-
 
52712
      iprot.readStructEnd();
-
 
52713
      validate();
-
 
52714
    }
-
 
52715
 
-
 
52716
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
52717
      oprot.writeStructBegin(STRUCT_DESC);
-
 
52718
 
-
 
52719
      if (this.isSetSuccess()) {
-
 
52720
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
52721
        {
-
 
52722
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
52723
          for (ProductNotificationRequestCount _iter151 : this.success)
-
 
52724
          {
-
 
52725
            _iter151.write(oprot);
-
 
52726
          }
-
 
52727
          oprot.writeListEnd();
-
 
52728
        }
-
 
52729
        oprot.writeFieldEnd();
-
 
52730
      }
-
 
52731
      oprot.writeFieldStop();
-
 
52732
      oprot.writeStructEnd();
-
 
52733
    }
-
 
52734
 
-
 
52735
    @Override
-
 
52736
    public String toString() {
-
 
52737
      StringBuilder sb = new StringBuilder("getProductNotificationRequestCount_result(");
-
 
52738
      boolean first = true;
-
 
52739
 
-
 
52740
      sb.append("success:");
-
 
52741
      if (this.success == null) {
-
 
52742
        sb.append("null");
51331
      } else {
52743
      } else {
51332
        sb.append(this.success);
52744
        sb.append(this.success);
51333
      }
52745
      }
51334
      first = false;
52746
      first = false;
51335
      sb.append(")");
52747
      sb.append(")");