Subversion Repositories SmartDukaan

Rev

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

Rev 5336 Rev 5437
Line 470... Line 470...
470
     * @param warehouseId
470
     * @param warehouseId
471
     */
471
     */
472
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException;
472
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException;
473
 
473
 
474
    /**
474
    /**
-
 
475
     * Resets availability of a warehouse to zero.
-
 
476
     * 
-
 
477
     * @param warehouseId
-
 
478
     */
-
 
479
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException;
-
 
480
 
-
 
481
    /**
475
     * Returns the list of item keys which need to be processed for a given warehouse.
482
     * Returns the list of item keys which need to be processed for a given warehouse.
476
     * This is currently used by Support application to send item keys whose inventory needs
483
     * This is currently used by Support application to send item keys whose inventory needs
477
     * to be updated from PLB
484
     * to be updated from PLB
478
     * 
485
     * 
479
     * @param warehouseId
486
     * @param warehouseId
Line 685... Line 692...
685
 
692
 
686
    public void getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouses_call> resultHandler) throws org.apache.thrift.TException;
693
    public void getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouses_call> resultHandler) throws org.apache.thrift.TException;
687
 
694
 
688
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailability_call> resultHandler) throws org.apache.thrift.TException;
695
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailability_call> resultHandler) throws org.apache.thrift.TException;
689
 
696
 
-
 
697
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
-
 
698
 
690
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
699
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
691
 
700
 
692
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
701
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
693
 
702
 
694
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException;
703
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException;
Line 2691... Line 2700...
2691
        throw result.cex;
2700
        throw result.cex;
2692
      }
2701
      }
2693
      return;
2702
      return;
2694
    }
2703
    }
2695
 
2704
 
-
 
2705
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
-
 
2706
    {
-
 
2707
      send_resetAvailabilityForWarehouse(warehouseId);
-
 
2708
      recv_resetAvailabilityForWarehouse();
-
 
2709
    }
-
 
2710
 
-
 
2711
    public void send_resetAvailabilityForWarehouse(long warehouseId) throws org.apache.thrift.TException
-
 
2712
    {
-
 
2713
      resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
-
 
2714
      args.setWarehouseId(warehouseId);
-
 
2715
      sendBase("resetAvailabilityForWarehouse", args);
-
 
2716
    }
-
 
2717
 
-
 
2718
    public void recv_resetAvailabilityForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
-
 
2719
    {
-
 
2720
      resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
-
 
2721
      receiveBase(result, "resetAvailabilityForWarehouse");
-
 
2722
      if (result.cex != null) {
-
 
2723
        throw result.cex;
-
 
2724
      }
-
 
2725
      return;
-
 
2726
    }
-
 
2727
 
2696
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
2728
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
2697
    {
2729
    {
2698
      send_getItemKeysToBeProcessed(warehouseId);
2730
      send_getItemKeysToBeProcessed(warehouseId);
2699
      return recv_getItemKeysToBeProcessed();
2731
      return recv_getItemKeysToBeProcessed();
2700
    }
2732
    }
Line 5517... Line 5549...
5517
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5549
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5518
        (new Client(prot)).recv_resetAvailability();
5550
        (new Client(prot)).recv_resetAvailability();
5519
      }
5551
      }
5520
    }
5552
    }
5521
 
5553
 
-
 
5554
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
-
 
5555
      checkReady();
-
 
5556
      resetAvailabilityForWarehouse_call method_call = new resetAvailabilityForWarehouse_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5557
      this.___currentMethod = method_call;
-
 
5558
      ___manager.call(method_call);
-
 
5559
    }
-
 
5560
 
-
 
5561
    public static class resetAvailabilityForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5562
      private long warehouseId;
-
 
5563
      public resetAvailabilityForWarehouse_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailabilityForWarehouse_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 {
-
 
5564
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5565
        this.warehouseId = warehouseId;
-
 
5566
      }
-
 
5567
 
-
 
5568
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5569
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailabilityForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5570
        resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
-
 
5571
        args.setWarehouseId(warehouseId);
-
 
5572
        args.write(prot);
-
 
5573
        prot.writeMessageEnd();
-
 
5574
      }
-
 
5575
 
-
 
5576
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
5577
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5578
          throw new IllegalStateException("Method call not finished!");
-
 
5579
        }
-
 
5580
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5581
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5582
        (new Client(prot)).recv_resetAvailabilityForWarehouse();
-
 
5583
      }
-
 
5584
    }
-
 
5585
 
5522
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException {
5586
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException {
5523
      checkReady();
5587
      checkReady();
5524
      getItemKeysToBeProcessed_call method_call = new getItemKeysToBeProcessed_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
5588
      getItemKeysToBeProcessed_call method_call = new getItemKeysToBeProcessed_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
5525
      this.___currentMethod = method_call;
5589
      this.___currentMethod = method_call;
5526
      ___manager.call(method_call);
5590
      ___manager.call(method_call);
Line 5861... Line 5925...
5861
      processMap.put("getProductNotifications", new getProductNotifications());
5925
      processMap.put("getProductNotifications", new getProductNotifications());
5862
      processMap.put("getProductNotificationRequestCount", new getProductNotificationRequestCount());
5926
      processMap.put("getProductNotificationRequestCount", new getProductNotificationRequestCount());
5863
      processMap.put("addAuthorizationLog", new addAuthorizationLog());
5927
      processMap.put("addAuthorizationLog", new addAuthorizationLog());
5864
      processMap.put("getWarehouses", new getWarehouses());
5928
      processMap.put("getWarehouses", new getWarehouses());
5865
      processMap.put("resetAvailability", new resetAvailability());
5929
      processMap.put("resetAvailability", new resetAvailability());
-
 
5930
      processMap.put("resetAvailabilityForWarehouse", new resetAvailabilityForWarehouse());
5866
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
5931
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
5867
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
5932
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
5868
      processMap.put("getIgnoredItemKeys", new getIgnoredItemKeys());
5933
      processMap.put("getIgnoredItemKeys", new getIgnoredItemKeys());
5869
      processMap.put("addBadInventory", new addBadInventory());
5934
      processMap.put("addBadInventory", new addBadInventory());
5870
      processMap.put("getShippingLocations", new getShippingLocations());
5935
      processMap.put("getShippingLocations", new getShippingLocations());
Line 7361... Line 7426...
7361
        }
7426
        }
7362
        return result;
7427
        return result;
7363
      }
7428
      }
7364
    }
7429
    }
7365
 
7430
 
-
 
7431
    private static class resetAvailabilityForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailabilityForWarehouse_args> {
-
 
7432
      public resetAvailabilityForWarehouse() {
-
 
7433
        super("resetAvailabilityForWarehouse");
-
 
7434
      }
-
 
7435
 
-
 
7436
      protected resetAvailabilityForWarehouse_args getEmptyArgsInstance() {
-
 
7437
        return new resetAvailabilityForWarehouse_args();
-
 
7438
      }
-
 
7439
 
-
 
7440
      protected resetAvailabilityForWarehouse_result getResult(I iface, resetAvailabilityForWarehouse_args args) throws org.apache.thrift.TException {
-
 
7441
        resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
-
 
7442
        try {
-
 
7443
          iface.resetAvailabilityForWarehouse(args.warehouseId);
-
 
7444
        } catch (InventoryServiceException cex) {
-
 
7445
          result.cex = cex;
-
 
7446
        }
-
 
7447
        return result;
-
 
7448
      }
-
 
7449
    }
-
 
7450
 
7366
    private static class getItemKeysToBeProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemKeysToBeProcessed_args> {
7451
    private static class getItemKeysToBeProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemKeysToBeProcessed_args> {
7367
      public getItemKeysToBeProcessed() {
7452
      public getItemKeysToBeProcessed() {
7368
        super("getItemKeysToBeProcessed");
7453
        super("getItemKeysToBeProcessed");
7369
      }
7454
      }
7370
 
7455
 
Line 62321... Line 62406...
62321
      boolean first = true;
62406
      boolean first = true;
62322
 
62407
 
62323
      sb.append("cex:");
62408
      sb.append("cex:");
62324
      if (this.cex == null) {
62409
      if (this.cex == null) {
62325
        sb.append("null");
62410
        sb.append("null");
-
 
62411
      } else {
-
 
62412
        sb.append(this.cex);
-
 
62413
      }
-
 
62414
      first = false;
-
 
62415
      sb.append(")");
-
 
62416
      return sb.toString();
-
 
62417
    }
-
 
62418
 
-
 
62419
    public void validate() throws org.apache.thrift.TException {
-
 
62420
      // check for required fields
-
 
62421
    }
-
 
62422
 
-
 
62423
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
62424
      try {
-
 
62425
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
62426
      } catch (org.apache.thrift.TException te) {
-
 
62427
        throw new java.io.IOException(te);
-
 
62428
      }
-
 
62429
    }
-
 
62430
 
-
 
62431
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
62432
      try {
-
 
62433
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
62434
      } catch (org.apache.thrift.TException te) {
-
 
62435
        throw new java.io.IOException(te);
-
 
62436
      }
-
 
62437
    }
-
 
62438
 
-
 
62439
  }
-
 
62440
 
-
 
62441
  public static class resetAvailabilityForWarehouse_args implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_args, resetAvailabilityForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
-
 
62442
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_args");
-
 
62443
 
-
 
62444
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
62445
 
-
 
62446
    private long warehouseId; // required
-
 
62447
 
-
 
62448
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
62449
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
62450
      WAREHOUSE_ID((short)1, "warehouseId");
-
 
62451
 
-
 
62452
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
62453
 
-
 
62454
      static {
-
 
62455
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
62456
          byName.put(field.getFieldName(), field);
-
 
62457
        }
-
 
62458
      }
-
 
62459
 
-
 
62460
      /**
-
 
62461
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
62462
       */
-
 
62463
      public static _Fields findByThriftId(int fieldId) {
-
 
62464
        switch(fieldId) {
-
 
62465
          case 1: // WAREHOUSE_ID
-
 
62466
            return WAREHOUSE_ID;
-
 
62467
          default:
-
 
62468
            return null;
-
 
62469
        }
-
 
62470
      }
-
 
62471
 
-
 
62472
      /**
-
 
62473
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
62474
       * if it is not found.
-
 
62475
       */
-
 
62476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
62477
        _Fields fields = findByThriftId(fieldId);
-
 
62478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
62479
        return fields;
-
 
62480
      }
-
 
62481
 
-
 
62482
      /**
-
 
62483
       * Find the _Fields constant that matches name, or null if its not found.
-
 
62484
       */
-
 
62485
      public static _Fields findByName(String name) {
-
 
62486
        return byName.get(name);
-
 
62487
      }
-
 
62488
 
-
 
62489
      private final short _thriftId;
-
 
62490
      private final String _fieldName;
-
 
62491
 
-
 
62492
      _Fields(short thriftId, String fieldName) {
-
 
62493
        _thriftId = thriftId;
-
 
62494
        _fieldName = fieldName;
-
 
62495
      }
-
 
62496
 
-
 
62497
      public short getThriftFieldId() {
-
 
62498
        return _thriftId;
-
 
62499
      }
-
 
62500
 
-
 
62501
      public String getFieldName() {
-
 
62502
        return _fieldName;
-
 
62503
      }
-
 
62504
    }
-
 
62505
 
-
 
62506
    // isset id assignments
-
 
62507
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
62508
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
62509
 
-
 
62510
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
62511
    static {
-
 
62512
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
62513
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
62514
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
62515
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
62516
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_args.class, metaDataMap);
-
 
62517
    }
-
 
62518
 
-
 
62519
    public resetAvailabilityForWarehouse_args() {
-
 
62520
    }
-
 
62521
 
-
 
62522
    public resetAvailabilityForWarehouse_args(
-
 
62523
      long warehouseId)
-
 
62524
    {
-
 
62525
      this();
-
 
62526
      this.warehouseId = warehouseId;
-
 
62527
      setWarehouseIdIsSet(true);
-
 
62528
    }
-
 
62529
 
-
 
62530
    /**
-
 
62531
     * Performs a deep copy on <i>other</i>.
-
 
62532
     */
-
 
62533
    public resetAvailabilityForWarehouse_args(resetAvailabilityForWarehouse_args other) {
-
 
62534
      __isset_bit_vector.clear();
-
 
62535
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
62536
      this.warehouseId = other.warehouseId;
-
 
62537
    }
-
 
62538
 
-
 
62539
    public resetAvailabilityForWarehouse_args deepCopy() {
-
 
62540
      return new resetAvailabilityForWarehouse_args(this);
-
 
62541
    }
-
 
62542
 
-
 
62543
    @Override
-
 
62544
    public void clear() {
-
 
62545
      setWarehouseIdIsSet(false);
-
 
62546
      this.warehouseId = 0;
-
 
62547
    }
-
 
62548
 
-
 
62549
    public long getWarehouseId() {
-
 
62550
      return this.warehouseId;
-
 
62551
    }
-
 
62552
 
-
 
62553
    public void setWarehouseId(long warehouseId) {
-
 
62554
      this.warehouseId = warehouseId;
-
 
62555
      setWarehouseIdIsSet(true);
-
 
62556
    }
-
 
62557
 
-
 
62558
    public void unsetWarehouseId() {
-
 
62559
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
62560
    }
-
 
62561
 
-
 
62562
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
62563
    public boolean isSetWarehouseId() {
-
 
62564
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
62565
    }
-
 
62566
 
-
 
62567
    public void setWarehouseIdIsSet(boolean value) {
-
 
62568
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
62569
    }
-
 
62570
 
-
 
62571
    public void setFieldValue(_Fields field, Object value) {
-
 
62572
      switch (field) {
-
 
62573
      case WAREHOUSE_ID:
-
 
62574
        if (value == null) {
-
 
62575
          unsetWarehouseId();
-
 
62576
        } else {
-
 
62577
          setWarehouseId((Long)value);
-
 
62578
        }
-
 
62579
        break;
-
 
62580
 
-
 
62581
      }
-
 
62582
    }
-
 
62583
 
-
 
62584
    public Object getFieldValue(_Fields field) {
-
 
62585
      switch (field) {
-
 
62586
      case WAREHOUSE_ID:
-
 
62587
        return Long.valueOf(getWarehouseId());
-
 
62588
 
-
 
62589
      }
-
 
62590
      throw new IllegalStateException();
-
 
62591
    }
-
 
62592
 
-
 
62593
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
62594
    public boolean isSet(_Fields field) {
-
 
62595
      if (field == null) {
-
 
62596
        throw new IllegalArgumentException();
-
 
62597
      }
-
 
62598
 
-
 
62599
      switch (field) {
-
 
62600
      case WAREHOUSE_ID:
-
 
62601
        return isSetWarehouseId();
-
 
62602
      }
-
 
62603
      throw new IllegalStateException();
-
 
62604
    }
-
 
62605
 
-
 
62606
    @Override
-
 
62607
    public boolean equals(Object that) {
-
 
62608
      if (that == null)
-
 
62609
        return false;
-
 
62610
      if (that instanceof resetAvailabilityForWarehouse_args)
-
 
62611
        return this.equals((resetAvailabilityForWarehouse_args)that);
-
 
62612
      return false;
-
 
62613
    }
-
 
62614
 
-
 
62615
    public boolean equals(resetAvailabilityForWarehouse_args that) {
-
 
62616
      if (that == null)
-
 
62617
        return false;
-
 
62618
 
-
 
62619
      boolean this_present_warehouseId = true;
-
 
62620
      boolean that_present_warehouseId = true;
-
 
62621
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
62622
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
62623
          return false;
-
 
62624
        if (this.warehouseId != that.warehouseId)
-
 
62625
          return false;
-
 
62626
      }
-
 
62627
 
-
 
62628
      return true;
-
 
62629
    }
-
 
62630
 
-
 
62631
    @Override
-
 
62632
    public int hashCode() {
-
 
62633
      return 0;
-
 
62634
    }
-
 
62635
 
-
 
62636
    public int compareTo(resetAvailabilityForWarehouse_args other) {
-
 
62637
      if (!getClass().equals(other.getClass())) {
-
 
62638
        return getClass().getName().compareTo(other.getClass().getName());
-
 
62639
      }
-
 
62640
 
-
 
62641
      int lastComparison = 0;
-
 
62642
      resetAvailabilityForWarehouse_args typedOther = (resetAvailabilityForWarehouse_args)other;
-
 
62643
 
-
 
62644
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
62645
      if (lastComparison != 0) {
-
 
62646
        return lastComparison;
-
 
62647
      }
-
 
62648
      if (isSetWarehouseId()) {
-
 
62649
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
62650
        if (lastComparison != 0) {
-
 
62651
          return lastComparison;
-
 
62652
        }
-
 
62653
      }
-
 
62654
      return 0;
-
 
62655
    }
-
 
62656
 
-
 
62657
    public _Fields fieldForId(int fieldId) {
-
 
62658
      return _Fields.findByThriftId(fieldId);
-
 
62659
    }
-
 
62660
 
-
 
62661
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
62662
      org.apache.thrift.protocol.TField field;
-
 
62663
      iprot.readStructBegin();
-
 
62664
      while (true)
-
 
62665
      {
-
 
62666
        field = iprot.readFieldBegin();
-
 
62667
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
62668
          break;
-
 
62669
        }
-
 
62670
        switch (field.id) {
-
 
62671
          case 1: // WAREHOUSE_ID
-
 
62672
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
62673
              this.warehouseId = iprot.readI64();
-
 
62674
              setWarehouseIdIsSet(true);
-
 
62675
            } else { 
-
 
62676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62677
            }
-
 
62678
            break;
-
 
62679
          default:
-
 
62680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62681
        }
-
 
62682
        iprot.readFieldEnd();
-
 
62683
      }
-
 
62684
      iprot.readStructEnd();
-
 
62685
      validate();
-
 
62686
    }
-
 
62687
 
-
 
62688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
62689
      validate();
-
 
62690
 
-
 
62691
      oprot.writeStructBegin(STRUCT_DESC);
-
 
62692
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
62693
      oprot.writeI64(this.warehouseId);
-
 
62694
      oprot.writeFieldEnd();
-
 
62695
      oprot.writeFieldStop();
-
 
62696
      oprot.writeStructEnd();
-
 
62697
    }
-
 
62698
 
-
 
62699
    @Override
-
 
62700
    public String toString() {
-
 
62701
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_args(");
-
 
62702
      boolean first = true;
-
 
62703
 
-
 
62704
      sb.append("warehouseId:");
-
 
62705
      sb.append(this.warehouseId);
-
 
62706
      first = false;
-
 
62707
      sb.append(")");
-
 
62708
      return sb.toString();
-
 
62709
    }
-
 
62710
 
-
 
62711
    public void validate() throws org.apache.thrift.TException {
-
 
62712
      // check for required fields
-
 
62713
    }
-
 
62714
 
-
 
62715
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
62716
      try {
-
 
62717
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
62718
      } catch (org.apache.thrift.TException te) {
-
 
62719
        throw new java.io.IOException(te);
-
 
62720
      }
-
 
62721
    }
-
 
62722
 
-
 
62723
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
62724
      try {
-
 
62725
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
62726
        __isset_bit_vector = new BitSet(1);
-
 
62727
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
62728
      } catch (org.apache.thrift.TException te) {
-
 
62729
        throw new java.io.IOException(te);
-
 
62730
      }
-
 
62731
    }
-
 
62732
 
-
 
62733
  }
-
 
62734
 
-
 
62735
  public static class resetAvailabilityForWarehouse_result implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_result, resetAvailabilityForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
-
 
62736
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_result");
-
 
62737
 
-
 
62738
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
62739
 
-
 
62740
    private InventoryServiceException cex; // required
-
 
62741
 
-
 
62742
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
62743
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
62744
      CEX((short)1, "cex");
-
 
62745
 
-
 
62746
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
62747
 
-
 
62748
      static {
-
 
62749
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
62750
          byName.put(field.getFieldName(), field);
-
 
62751
        }
-
 
62752
      }
-
 
62753
 
-
 
62754
      /**
-
 
62755
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
62756
       */
-
 
62757
      public static _Fields findByThriftId(int fieldId) {
-
 
62758
        switch(fieldId) {
-
 
62759
          case 1: // CEX
-
 
62760
            return CEX;
-
 
62761
          default:
-
 
62762
            return null;
-
 
62763
        }
-
 
62764
      }
-
 
62765
 
-
 
62766
      /**
-
 
62767
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
62768
       * if it is not found.
-
 
62769
       */
-
 
62770
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
62771
        _Fields fields = findByThriftId(fieldId);
-
 
62772
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
62773
        return fields;
-
 
62774
      }
-
 
62775
 
-
 
62776
      /**
-
 
62777
       * Find the _Fields constant that matches name, or null if its not found.
-
 
62778
       */
-
 
62779
      public static _Fields findByName(String name) {
-
 
62780
        return byName.get(name);
-
 
62781
      }
-
 
62782
 
-
 
62783
      private final short _thriftId;
-
 
62784
      private final String _fieldName;
-
 
62785
 
-
 
62786
      _Fields(short thriftId, String fieldName) {
-
 
62787
        _thriftId = thriftId;
-
 
62788
        _fieldName = fieldName;
-
 
62789
      }
-
 
62790
 
-
 
62791
      public short getThriftFieldId() {
-
 
62792
        return _thriftId;
-
 
62793
      }
-
 
62794
 
-
 
62795
      public String getFieldName() {
-
 
62796
        return _fieldName;
-
 
62797
      }
-
 
62798
    }
-
 
62799
 
-
 
62800
    // isset id assignments
-
 
62801
 
-
 
62802
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
62803
    static {
-
 
62804
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
62805
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
62806
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
62807
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
62808
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_result.class, metaDataMap);
-
 
62809
    }
-
 
62810
 
-
 
62811
    public resetAvailabilityForWarehouse_result() {
-
 
62812
    }
-
 
62813
 
-
 
62814
    public resetAvailabilityForWarehouse_result(
-
 
62815
      InventoryServiceException cex)
-
 
62816
    {
-
 
62817
      this();
-
 
62818
      this.cex = cex;
-
 
62819
    }
-
 
62820
 
-
 
62821
    /**
-
 
62822
     * Performs a deep copy on <i>other</i>.
-
 
62823
     */
-
 
62824
    public resetAvailabilityForWarehouse_result(resetAvailabilityForWarehouse_result other) {
-
 
62825
      if (other.isSetCex()) {
-
 
62826
        this.cex = new InventoryServiceException(other.cex);
-
 
62827
      }
-
 
62828
    }
-
 
62829
 
-
 
62830
    public resetAvailabilityForWarehouse_result deepCopy() {
-
 
62831
      return new resetAvailabilityForWarehouse_result(this);
-
 
62832
    }
-
 
62833
 
-
 
62834
    @Override
-
 
62835
    public void clear() {
-
 
62836
      this.cex = null;
-
 
62837
    }
-
 
62838
 
-
 
62839
    public InventoryServiceException getCex() {
-
 
62840
      return this.cex;
-
 
62841
    }
-
 
62842
 
-
 
62843
    public void setCex(InventoryServiceException cex) {
-
 
62844
      this.cex = cex;
-
 
62845
    }
-
 
62846
 
-
 
62847
    public void unsetCex() {
-
 
62848
      this.cex = null;
-
 
62849
    }
-
 
62850
 
-
 
62851
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
62852
    public boolean isSetCex() {
-
 
62853
      return this.cex != null;
-
 
62854
    }
-
 
62855
 
-
 
62856
    public void setCexIsSet(boolean value) {
-
 
62857
      if (!value) {
-
 
62858
        this.cex = null;
-
 
62859
      }
-
 
62860
    }
-
 
62861
 
-
 
62862
    public void setFieldValue(_Fields field, Object value) {
-
 
62863
      switch (field) {
-
 
62864
      case CEX:
-
 
62865
        if (value == null) {
-
 
62866
          unsetCex();
-
 
62867
        } else {
-
 
62868
          setCex((InventoryServiceException)value);
-
 
62869
        }
-
 
62870
        break;
-
 
62871
 
-
 
62872
      }
-
 
62873
    }
-
 
62874
 
-
 
62875
    public Object getFieldValue(_Fields field) {
-
 
62876
      switch (field) {
-
 
62877
      case CEX:
-
 
62878
        return getCex();
-
 
62879
 
-
 
62880
      }
-
 
62881
      throw new IllegalStateException();
-
 
62882
    }
-
 
62883
 
-
 
62884
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
62885
    public boolean isSet(_Fields field) {
-
 
62886
      if (field == null) {
-
 
62887
        throw new IllegalArgumentException();
-
 
62888
      }
-
 
62889
 
-
 
62890
      switch (field) {
-
 
62891
      case CEX:
-
 
62892
        return isSetCex();
-
 
62893
      }
-
 
62894
      throw new IllegalStateException();
-
 
62895
    }
-
 
62896
 
-
 
62897
    @Override
-
 
62898
    public boolean equals(Object that) {
-
 
62899
      if (that == null)
-
 
62900
        return false;
-
 
62901
      if (that instanceof resetAvailabilityForWarehouse_result)
-
 
62902
        return this.equals((resetAvailabilityForWarehouse_result)that);
-
 
62903
      return false;
-
 
62904
    }
-
 
62905
 
-
 
62906
    public boolean equals(resetAvailabilityForWarehouse_result that) {
-
 
62907
      if (that == null)
-
 
62908
        return false;
-
 
62909
 
-
 
62910
      boolean this_present_cex = true && this.isSetCex();
-
 
62911
      boolean that_present_cex = true && that.isSetCex();
-
 
62912
      if (this_present_cex || that_present_cex) {
-
 
62913
        if (!(this_present_cex && that_present_cex))
-
 
62914
          return false;
-
 
62915
        if (!this.cex.equals(that.cex))
-
 
62916
          return false;
-
 
62917
      }
-
 
62918
 
-
 
62919
      return true;
-
 
62920
    }
-
 
62921
 
-
 
62922
    @Override
-
 
62923
    public int hashCode() {
-
 
62924
      return 0;
-
 
62925
    }
-
 
62926
 
-
 
62927
    public int compareTo(resetAvailabilityForWarehouse_result other) {
-
 
62928
      if (!getClass().equals(other.getClass())) {
-
 
62929
        return getClass().getName().compareTo(other.getClass().getName());
-
 
62930
      }
-
 
62931
 
-
 
62932
      int lastComparison = 0;
-
 
62933
      resetAvailabilityForWarehouse_result typedOther = (resetAvailabilityForWarehouse_result)other;
-
 
62934
 
-
 
62935
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
62936
      if (lastComparison != 0) {
-
 
62937
        return lastComparison;
-
 
62938
      }
-
 
62939
      if (isSetCex()) {
-
 
62940
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
62941
        if (lastComparison != 0) {
-
 
62942
          return lastComparison;
-
 
62943
        }
-
 
62944
      }
-
 
62945
      return 0;
-
 
62946
    }
-
 
62947
 
-
 
62948
    public _Fields fieldForId(int fieldId) {
-
 
62949
      return _Fields.findByThriftId(fieldId);
-
 
62950
    }
-
 
62951
 
-
 
62952
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
62953
      org.apache.thrift.protocol.TField field;
-
 
62954
      iprot.readStructBegin();
-
 
62955
      while (true)
-
 
62956
      {
-
 
62957
        field = iprot.readFieldBegin();
-
 
62958
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
62959
          break;
-
 
62960
        }
-
 
62961
        switch (field.id) {
-
 
62962
          case 1: // CEX
-
 
62963
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
62964
              this.cex = new InventoryServiceException();
-
 
62965
              this.cex.read(iprot);
-
 
62966
            } else { 
-
 
62967
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62968
            }
-
 
62969
            break;
-
 
62970
          default:
-
 
62971
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62972
        }
-
 
62973
        iprot.readFieldEnd();
-
 
62974
      }
-
 
62975
      iprot.readStructEnd();
-
 
62976
      validate();
-
 
62977
    }
-
 
62978
 
-
 
62979
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
62980
      oprot.writeStructBegin(STRUCT_DESC);
-
 
62981
 
-
 
62982
      if (this.isSetCex()) {
-
 
62983
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
62984
        this.cex.write(oprot);
-
 
62985
        oprot.writeFieldEnd();
-
 
62986
      }
-
 
62987
      oprot.writeFieldStop();
-
 
62988
      oprot.writeStructEnd();
-
 
62989
    }
-
 
62990
 
-
 
62991
    @Override
-
 
62992
    public String toString() {
-
 
62993
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_result(");
-
 
62994
      boolean first = true;
-
 
62995
 
-
 
62996
      sb.append("cex:");
-
 
62997
      if (this.cex == null) {
-
 
62998
        sb.append("null");
62326
      } else {
62999
      } else {
62327
        sb.append(this.cex);
63000
        sb.append(this.cex);
62328
      }
63001
      }
62329
      first = false;
63002
      first = false;
62330
      sb.append(")");
63003
      sb.append(")");