Subversion Repositories SmartDukaan

Rev

Rev 9495 | Rev 9665 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9495 Rev 9640
Line 349... Line 349...
349
 
349
 
350
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem) throws org.apache.thrift.TException;
350
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem) throws org.apache.thrift.TException;
351
 
351
 
352
    public double getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException;
352
    public double getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException;
353
 
353
 
-
 
354
    public Map<Integer,Long> getHeldInventoryMapForItem(long item_id, long warehouse_id) throws org.apache.thrift.TException;
-
 
355
 
354
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException;
356
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException;
355
 
357
 
356
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot) throws org.apache.thrift.TException;
358
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot) throws org.apache.thrift.TException;
357
 
359
 
358
    public List<SnapdealInventoryItem> getSnapdealInventorySnapshot() throws org.apache.thrift.TException;
360
    public List<SnapdealInventoryItem> getSnapdealInventorySnapshot() throws org.apache.thrift.TException;
Line 489... Line 491...
489
 
491
 
490
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
492
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
491
 
493
 
492
    public void getNlcForWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNlcForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
494
    public void getNlcForWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNlcForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
493
 
495
 
-
 
496
    public void getHeldInventoryMapForItem(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHeldInventoryMapForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
497
 
494
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAllAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException;
498
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAllAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException;
495
 
499
 
496
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAllSnapdealInventory_call> resultHandler) throws org.apache.thrift.TException;
500
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAllSnapdealInventory_call> resultHandler) throws org.apache.thrift.TException;
497
 
501
 
498
    public void getSnapdealInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
502
    public void getSnapdealInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
Line 2068... Line 2072...
2068
        return result.success;
2072
        return result.success;
2069
      }
2073
      }
2070
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2074
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2071
    }
2075
    }
2072
 
2076
 
-
 
2077
    public Map<Integer,Long> getHeldInventoryMapForItem(long item_id, long warehouse_id) throws org.apache.thrift.TException
-
 
2078
    {
-
 
2079
      send_getHeldInventoryMapForItem(item_id, warehouse_id);
-
 
2080
      return recv_getHeldInventoryMapForItem();
-
 
2081
    }
-
 
2082
 
-
 
2083
    public void send_getHeldInventoryMapForItem(long item_id, long warehouse_id) throws org.apache.thrift.TException
-
 
2084
    {
-
 
2085
      getHeldInventoryMapForItem_args args = new getHeldInventoryMapForItem_args();
-
 
2086
      args.setItem_id(item_id);
-
 
2087
      args.setWarehouse_id(warehouse_id);
-
 
2088
      sendBase("getHeldInventoryMapForItem", args);
-
 
2089
    }
-
 
2090
 
-
 
2091
    public Map<Integer,Long> recv_getHeldInventoryMapForItem() throws org.apache.thrift.TException
-
 
2092
    {
-
 
2093
      getHeldInventoryMapForItem_result result = new getHeldInventoryMapForItem_result();
-
 
2094
      receiveBase(result, "getHeldInventoryMapForItem");
-
 
2095
      if (result.isSetSuccess()) {
-
 
2096
        return result.success;
-
 
2097
      }
-
 
2098
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
-
 
2099
    }
-
 
2100
 
2073
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException
2101
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException
2074
    {
2102
    {
2075
      send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot);
2103
      send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot);
2076
      recv_addOrUpdateAllAmazonFbaInventory();
2104
      recv_addOrUpdateAllAmazonFbaInventory();
2077
    }
2105
    }
Line 4360... Line 4388...
4360
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4388
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4361
        return (new Client(prot)).recv_getNlcForWarehouse();
4389
        return (new Client(prot)).recv_getNlcForWarehouse();
4362
      }
4390
      }
4363
    }
4391
    }
4364
 
4392
 
-
 
4393
    public void getHeldInventoryMapForItem(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getHeldInventoryMapForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
4394
      checkReady();
-
 
4395
      getHeldInventoryMapForItem_call method_call = new getHeldInventoryMapForItem_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
4396
      this.___currentMethod = method_call;
-
 
4397
      ___manager.call(method_call);
-
 
4398
    }
-
 
4399
 
-
 
4400
    public static class getHeldInventoryMapForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4401
      private long item_id;
-
 
4402
      private long warehouse_id;
-
 
4403
      public getHeldInventoryMapForItem_call(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getHeldInventoryMapForItem_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 {
-
 
4404
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4405
        this.item_id = item_id;
-
 
4406
        this.warehouse_id = warehouse_id;
-
 
4407
      }
-
 
4408
 
-
 
4409
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4410
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHeldInventoryMapForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4411
        getHeldInventoryMapForItem_args args = new getHeldInventoryMapForItem_args();
-
 
4412
        args.setItem_id(item_id);
-
 
4413
        args.setWarehouse_id(warehouse_id);
-
 
4414
        args.write(prot);
-
 
4415
        prot.writeMessageEnd();
-
 
4416
      }
-
 
4417
 
-
 
4418
      public Map<Integer,Long> getResult() throws org.apache.thrift.TException {
-
 
4419
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4420
          throw new IllegalStateException("Method call not finished!");
-
 
4421
        }
-
 
4422
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4423
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4424
        return (new Client(prot)).recv_getHeldInventoryMapForItem();
-
 
4425
      }
-
 
4426
    }
-
 
4427
 
4365
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAllAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException {
4428
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAllAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException {
4366
      checkReady();
4429
      checkReady();
4367
      addOrUpdateAllAmazonFbaInventory_call method_call = new addOrUpdateAllAmazonFbaInventory_call(allamazonfbainventorysnapshot, resultHandler, this, ___protocolFactory, ___transport);
4430
      addOrUpdateAllAmazonFbaInventory_call method_call = new addOrUpdateAllAmazonFbaInventory_call(allamazonfbainventorysnapshot, resultHandler, this, ___protocolFactory, ___transport);
4368
      this.___currentMethod = method_call;
4431
      this.___currentMethod = method_call;
4369
      ___manager.call(method_call);
4432
      ___manager.call(method_call);
Line 4531... Line 4594...
4531
      processMap.put("getOursGoodWarehouseIdsForLocation", new getOursGoodWarehouseIdsForLocation());
4594
      processMap.put("getOursGoodWarehouseIdsForLocation", new getOursGoodWarehouseIdsForLocation());
4532
      processMap.put("getHoldInventoryDetailForItemForWarehouseIdExceptSource", new getHoldInventoryDetailForItemForWarehouseIdExceptSource());
4595
      processMap.put("getHoldInventoryDetailForItemForWarehouseIdExceptSource", new getHoldInventoryDetailForItemForWarehouseIdExceptSource());
4533
      processMap.put("getSnapdealInventoryForItem", new getSnapdealInventoryForItem());
4596
      processMap.put("getSnapdealInventoryForItem", new getSnapdealInventoryForItem());
4534
      processMap.put("addOrUpdateSnapdealInventoryForItem", new addOrUpdateSnapdealInventoryForItem());
4597
      processMap.put("addOrUpdateSnapdealInventoryForItem", new addOrUpdateSnapdealInventoryForItem());
4535
      processMap.put("getNlcForWarehouse", new getNlcForWarehouse());
4598
      processMap.put("getNlcForWarehouse", new getNlcForWarehouse());
-
 
4599
      processMap.put("getHeldInventoryMapForItem", new getHeldInventoryMapForItem());
4536
      processMap.put("addOrUpdateAllAmazonFbaInventory", new addOrUpdateAllAmazonFbaInventory());
4600
      processMap.put("addOrUpdateAllAmazonFbaInventory", new addOrUpdateAllAmazonFbaInventory());
4537
      processMap.put("addOrUpdateAllSnapdealInventory", new addOrUpdateAllSnapdealInventory());
4601
      processMap.put("addOrUpdateAllSnapdealInventory", new addOrUpdateAllSnapdealInventory());
4538
      processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
4602
      processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
4539
      return processMap;
4603
      return processMap;
4540
    }
4604
    }
Line 5683... Line 5747...
5683
        result.setSuccessIsSet(true);
5747
        result.setSuccessIsSet(true);
5684
        return result;
5748
        return result;
5685
      }
5749
      }
5686
    }
5750
    }
5687
 
5751
 
-
 
5752
    private static class getHeldInventoryMapForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHeldInventoryMapForItem_args> {
-
 
5753
      public getHeldInventoryMapForItem() {
-
 
5754
        super("getHeldInventoryMapForItem");
-
 
5755
      }
-
 
5756
 
-
 
5757
      protected getHeldInventoryMapForItem_args getEmptyArgsInstance() {
-
 
5758
        return new getHeldInventoryMapForItem_args();
-
 
5759
      }
-
 
5760
 
-
 
5761
      protected getHeldInventoryMapForItem_result getResult(I iface, getHeldInventoryMapForItem_args args) throws org.apache.thrift.TException {
-
 
5762
        getHeldInventoryMapForItem_result result = new getHeldInventoryMapForItem_result();
-
 
5763
        result.success = iface.getHeldInventoryMapForItem(args.item_id, args.warehouse_id);
-
 
5764
        return result;
-
 
5765
      }
-
 
5766
    }
-
 
5767
 
5688
    private static class addOrUpdateAllAmazonFbaInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAllAmazonFbaInventory_args> {
5768
    private static class addOrUpdateAllAmazonFbaInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAllAmazonFbaInventory_args> {
5689
      public addOrUpdateAllAmazonFbaInventory() {
5769
      public addOrUpdateAllAmazonFbaInventory() {
5690
        super("addOrUpdateAllAmazonFbaInventory");
5770
        super("addOrUpdateAllAmazonFbaInventory");
5691
      }
5771
      }
5692
 
5772
 
Line 48921... Line 49001...
48921
      }
49001
      }
48922
    }
49002
    }
48923
 
49003
 
48924
  }
49004
  }
48925
 
49005
 
-
 
49006
  public static class getHeldInventoryMapForItem_args implements org.apache.thrift.TBase<getHeldInventoryMapForItem_args, getHeldInventoryMapForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
49007
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHeldInventoryMapForItem_args");
-
 
49008
 
-
 
49009
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
49010
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
49011
 
-
 
49012
    private long item_id; // required
-
 
49013
    private long warehouse_id; // required
-
 
49014
 
-
 
49015
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
49016
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
49017
      ITEM_ID((short)1, "item_id"),
-
 
49018
      WAREHOUSE_ID((short)2, "warehouse_id");
-
 
49019
 
-
 
49020
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
49021
 
-
 
49022
      static {
-
 
49023
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
49024
          byName.put(field.getFieldName(), field);
-
 
49025
        }
-
 
49026
      }
-
 
49027
 
-
 
49028
      /**
-
 
49029
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
49030
       */
-
 
49031
      public static _Fields findByThriftId(int fieldId) {
-
 
49032
        switch(fieldId) {
-
 
49033
          case 1: // ITEM_ID
-
 
49034
            return ITEM_ID;
-
 
49035
          case 2: // WAREHOUSE_ID
-
 
49036
            return WAREHOUSE_ID;
-
 
49037
          default:
-
 
49038
            return null;
-
 
49039
        }
-
 
49040
      }
-
 
49041
 
-
 
49042
      /**
-
 
49043
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
49044
       * if it is not found.
-
 
49045
       */
-
 
49046
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
49047
        _Fields fields = findByThriftId(fieldId);
-
 
49048
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
49049
        return fields;
-
 
49050
      }
-
 
49051
 
-
 
49052
      /**
-
 
49053
       * Find the _Fields constant that matches name, or null if its not found.
-
 
49054
       */
-
 
49055
      public static _Fields findByName(String name) {
-
 
49056
        return byName.get(name);
-
 
49057
      }
-
 
49058
 
-
 
49059
      private final short _thriftId;
-
 
49060
      private final String _fieldName;
-
 
49061
 
-
 
49062
      _Fields(short thriftId, String fieldName) {
-
 
49063
        _thriftId = thriftId;
-
 
49064
        _fieldName = fieldName;
-
 
49065
      }
-
 
49066
 
-
 
49067
      public short getThriftFieldId() {
-
 
49068
        return _thriftId;
-
 
49069
      }
-
 
49070
 
-
 
49071
      public String getFieldName() {
-
 
49072
        return _fieldName;
-
 
49073
      }
-
 
49074
    }
-
 
49075
 
-
 
49076
    // isset id assignments
-
 
49077
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
49078
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
-
 
49079
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
49080
 
-
 
49081
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
49082
    static {
-
 
49083
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
49084
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
49086
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
49088
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
49089
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHeldInventoryMapForItem_args.class, metaDataMap);
-
 
49090
    }
-
 
49091
 
-
 
49092
    public getHeldInventoryMapForItem_args() {
-
 
49093
    }
-
 
49094
 
-
 
49095
    public getHeldInventoryMapForItem_args(
-
 
49096
      long item_id,
-
 
49097
      long warehouse_id)
-
 
49098
    {
-
 
49099
      this();
-
 
49100
      this.item_id = item_id;
-
 
49101
      setItem_idIsSet(true);
-
 
49102
      this.warehouse_id = warehouse_id;
-
 
49103
      setWarehouse_idIsSet(true);
-
 
49104
    }
-
 
49105
 
-
 
49106
    /**
-
 
49107
     * Performs a deep copy on <i>other</i>.
-
 
49108
     */
-
 
49109
    public getHeldInventoryMapForItem_args(getHeldInventoryMapForItem_args other) {
-
 
49110
      __isset_bit_vector.clear();
-
 
49111
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
49112
      this.item_id = other.item_id;
-
 
49113
      this.warehouse_id = other.warehouse_id;
-
 
49114
    }
-
 
49115
 
-
 
49116
    public getHeldInventoryMapForItem_args deepCopy() {
-
 
49117
      return new getHeldInventoryMapForItem_args(this);
-
 
49118
    }
-
 
49119
 
-
 
49120
    @Override
-
 
49121
    public void clear() {
-
 
49122
      setItem_idIsSet(false);
-
 
49123
      this.item_id = 0;
-
 
49124
      setWarehouse_idIsSet(false);
-
 
49125
      this.warehouse_id = 0;
-
 
49126
    }
-
 
49127
 
-
 
49128
    public long getItem_id() {
-
 
49129
      return this.item_id;
-
 
49130
    }
-
 
49131
 
-
 
49132
    public void setItem_id(long item_id) {
-
 
49133
      this.item_id = item_id;
-
 
49134
      setItem_idIsSet(true);
-
 
49135
    }
-
 
49136
 
-
 
49137
    public void unsetItem_id() {
-
 
49138
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
49139
    }
-
 
49140
 
-
 
49141
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
49142
    public boolean isSetItem_id() {
-
 
49143
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
49144
    }
-
 
49145
 
-
 
49146
    public void setItem_idIsSet(boolean value) {
-
 
49147
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
49148
    }
-
 
49149
 
-
 
49150
    public long getWarehouse_id() {
-
 
49151
      return this.warehouse_id;
-
 
49152
    }
-
 
49153
 
-
 
49154
    public void setWarehouse_id(long warehouse_id) {
-
 
49155
      this.warehouse_id = warehouse_id;
-
 
49156
      setWarehouse_idIsSet(true);
-
 
49157
    }
-
 
49158
 
-
 
49159
    public void unsetWarehouse_id() {
-
 
49160
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
49161
    }
-
 
49162
 
-
 
49163
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
-
 
49164
    public boolean isSetWarehouse_id() {
-
 
49165
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
49166
    }
-
 
49167
 
-
 
49168
    public void setWarehouse_idIsSet(boolean value) {
-
 
49169
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
49170
    }
-
 
49171
 
-
 
49172
    public void setFieldValue(_Fields field, Object value) {
-
 
49173
      switch (field) {
-
 
49174
      case ITEM_ID:
-
 
49175
        if (value == null) {
-
 
49176
          unsetItem_id();
-
 
49177
        } else {
-
 
49178
          setItem_id((Long)value);
-
 
49179
        }
-
 
49180
        break;
-
 
49181
 
-
 
49182
      case WAREHOUSE_ID:
-
 
49183
        if (value == null) {
-
 
49184
          unsetWarehouse_id();
-
 
49185
        } else {
-
 
49186
          setWarehouse_id((Long)value);
-
 
49187
        }
-
 
49188
        break;
-
 
49189
 
-
 
49190
      }
-
 
49191
    }
-
 
49192
 
-
 
49193
    public Object getFieldValue(_Fields field) {
-
 
49194
      switch (field) {
-
 
49195
      case ITEM_ID:
-
 
49196
        return Long.valueOf(getItem_id());
-
 
49197
 
-
 
49198
      case WAREHOUSE_ID:
-
 
49199
        return Long.valueOf(getWarehouse_id());
-
 
49200
 
-
 
49201
      }
-
 
49202
      throw new IllegalStateException();
-
 
49203
    }
-
 
49204
 
-
 
49205
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
49206
    public boolean isSet(_Fields field) {
-
 
49207
      if (field == null) {
-
 
49208
        throw new IllegalArgumentException();
-
 
49209
      }
-
 
49210
 
-
 
49211
      switch (field) {
-
 
49212
      case ITEM_ID:
-
 
49213
        return isSetItem_id();
-
 
49214
      case WAREHOUSE_ID:
-
 
49215
        return isSetWarehouse_id();
-
 
49216
      }
-
 
49217
      throw new IllegalStateException();
-
 
49218
    }
-
 
49219
 
-
 
49220
    @Override
-
 
49221
    public boolean equals(Object that) {
-
 
49222
      if (that == null)
-
 
49223
        return false;
-
 
49224
      if (that instanceof getHeldInventoryMapForItem_args)
-
 
49225
        return this.equals((getHeldInventoryMapForItem_args)that);
-
 
49226
      return false;
-
 
49227
    }
-
 
49228
 
-
 
49229
    public boolean equals(getHeldInventoryMapForItem_args that) {
-
 
49230
      if (that == null)
-
 
49231
        return false;
-
 
49232
 
-
 
49233
      boolean this_present_item_id = true;
-
 
49234
      boolean that_present_item_id = true;
-
 
49235
      if (this_present_item_id || that_present_item_id) {
-
 
49236
        if (!(this_present_item_id && that_present_item_id))
-
 
49237
          return false;
-
 
49238
        if (this.item_id != that.item_id)
-
 
49239
          return false;
-
 
49240
      }
-
 
49241
 
-
 
49242
      boolean this_present_warehouse_id = true;
-
 
49243
      boolean that_present_warehouse_id = true;
-
 
49244
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
49245
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
49246
          return false;
-
 
49247
        if (this.warehouse_id != that.warehouse_id)
-
 
49248
          return false;
-
 
49249
      }
-
 
49250
 
-
 
49251
      return true;
-
 
49252
    }
-
 
49253
 
-
 
49254
    @Override
-
 
49255
    public int hashCode() {
-
 
49256
      return 0;
-
 
49257
    }
-
 
49258
 
-
 
49259
    public int compareTo(getHeldInventoryMapForItem_args other) {
-
 
49260
      if (!getClass().equals(other.getClass())) {
-
 
49261
        return getClass().getName().compareTo(other.getClass().getName());
-
 
49262
      }
-
 
49263
 
-
 
49264
      int lastComparison = 0;
-
 
49265
      getHeldInventoryMapForItem_args typedOther = (getHeldInventoryMapForItem_args)other;
-
 
49266
 
-
 
49267
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
49268
      if (lastComparison != 0) {
-
 
49269
        return lastComparison;
-
 
49270
      }
-
 
49271
      if (isSetItem_id()) {
-
 
49272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
49273
        if (lastComparison != 0) {
-
 
49274
          return lastComparison;
-
 
49275
        }
-
 
49276
      }
-
 
49277
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
-
 
49278
      if (lastComparison != 0) {
-
 
49279
        return lastComparison;
-
 
49280
      }
-
 
49281
      if (isSetWarehouse_id()) {
-
 
49282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
-
 
49283
        if (lastComparison != 0) {
-
 
49284
          return lastComparison;
-
 
49285
        }
-
 
49286
      }
-
 
49287
      return 0;
-
 
49288
    }
-
 
49289
 
-
 
49290
    public _Fields fieldForId(int fieldId) {
-
 
49291
      return _Fields.findByThriftId(fieldId);
-
 
49292
    }
-
 
49293
 
-
 
49294
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
49295
      org.apache.thrift.protocol.TField field;
-
 
49296
      iprot.readStructBegin();
-
 
49297
      while (true)
-
 
49298
      {
-
 
49299
        field = iprot.readFieldBegin();
-
 
49300
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
49301
          break;
-
 
49302
        }
-
 
49303
        switch (field.id) {
-
 
49304
          case 1: // ITEM_ID
-
 
49305
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
49306
              this.item_id = iprot.readI64();
-
 
49307
              setItem_idIsSet(true);
-
 
49308
            } else { 
-
 
49309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49310
            }
-
 
49311
            break;
-
 
49312
          case 2: // WAREHOUSE_ID
-
 
49313
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
49314
              this.warehouse_id = iprot.readI64();
-
 
49315
              setWarehouse_idIsSet(true);
-
 
49316
            } else { 
-
 
49317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49318
            }
-
 
49319
            break;
-
 
49320
          default:
-
 
49321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49322
        }
-
 
49323
        iprot.readFieldEnd();
-
 
49324
      }
-
 
49325
      iprot.readStructEnd();
-
 
49326
      validate();
-
 
49327
    }
-
 
49328
 
-
 
49329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
49330
      validate();
-
 
49331
 
-
 
49332
      oprot.writeStructBegin(STRUCT_DESC);
-
 
49333
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
49334
      oprot.writeI64(this.item_id);
-
 
49335
      oprot.writeFieldEnd();
-
 
49336
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
49337
      oprot.writeI64(this.warehouse_id);
-
 
49338
      oprot.writeFieldEnd();
-
 
49339
      oprot.writeFieldStop();
-
 
49340
      oprot.writeStructEnd();
-
 
49341
    }
-
 
49342
 
-
 
49343
    @Override
-
 
49344
    public String toString() {
-
 
49345
      StringBuilder sb = new StringBuilder("getHeldInventoryMapForItem_args(");
-
 
49346
      boolean first = true;
-
 
49347
 
-
 
49348
      sb.append("item_id:");
-
 
49349
      sb.append(this.item_id);
-
 
49350
      first = false;
-
 
49351
      if (!first) sb.append(", ");
-
 
49352
      sb.append("warehouse_id:");
-
 
49353
      sb.append(this.warehouse_id);
-
 
49354
      first = false;
-
 
49355
      sb.append(")");
-
 
49356
      return sb.toString();
-
 
49357
    }
-
 
49358
 
-
 
49359
    public void validate() throws org.apache.thrift.TException {
-
 
49360
      // check for required fields
-
 
49361
    }
-
 
49362
 
-
 
49363
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
49364
      try {
-
 
49365
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
49366
      } catch (org.apache.thrift.TException te) {
-
 
49367
        throw new java.io.IOException(te);
-
 
49368
      }
-
 
49369
    }
-
 
49370
 
-
 
49371
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
49372
      try {
-
 
49373
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
49374
      } catch (org.apache.thrift.TException te) {
-
 
49375
        throw new java.io.IOException(te);
-
 
49376
      }
-
 
49377
    }
-
 
49378
 
-
 
49379
  }
-
 
49380
 
-
 
49381
  public static class getHeldInventoryMapForItem_result implements org.apache.thrift.TBase<getHeldInventoryMapForItem_result, getHeldInventoryMapForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
49382
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHeldInventoryMapForItem_result");
-
 
49383
 
-
 
49384
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
49385
 
-
 
49386
    private Map<Integer,Long> success; // required
-
 
49387
 
-
 
49388
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
49389
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
49390
      SUCCESS((short)0, "success");
-
 
49391
 
-
 
49392
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
49393
 
-
 
49394
      static {
-
 
49395
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
49396
          byName.put(field.getFieldName(), field);
-
 
49397
        }
-
 
49398
      }
-
 
49399
 
-
 
49400
      /**
-
 
49401
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
49402
       */
-
 
49403
      public static _Fields findByThriftId(int fieldId) {
-
 
49404
        switch(fieldId) {
-
 
49405
          case 0: // SUCCESS
-
 
49406
            return SUCCESS;
-
 
49407
          default:
-
 
49408
            return null;
-
 
49409
        }
-
 
49410
      }
-
 
49411
 
-
 
49412
      /**
-
 
49413
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
49414
       * if it is not found.
-
 
49415
       */
-
 
49416
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
49417
        _Fields fields = findByThriftId(fieldId);
-
 
49418
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
49419
        return fields;
-
 
49420
      }
-
 
49421
 
-
 
49422
      /**
-
 
49423
       * Find the _Fields constant that matches name, or null if its not found.
-
 
49424
       */
-
 
49425
      public static _Fields findByName(String name) {
-
 
49426
        return byName.get(name);
-
 
49427
      }
-
 
49428
 
-
 
49429
      private final short _thriftId;
-
 
49430
      private final String _fieldName;
-
 
49431
 
-
 
49432
      _Fields(short thriftId, String fieldName) {
-
 
49433
        _thriftId = thriftId;
-
 
49434
        _fieldName = fieldName;
-
 
49435
      }
-
 
49436
 
-
 
49437
      public short getThriftFieldId() {
-
 
49438
        return _thriftId;
-
 
49439
      }
-
 
49440
 
-
 
49441
      public String getFieldName() {
-
 
49442
        return _fieldName;
-
 
49443
      }
-
 
49444
    }
-
 
49445
 
-
 
49446
    // isset id assignments
-
 
49447
 
-
 
49448
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
49449
    static {
-
 
49450
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
49451
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49452
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
49453
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32), 
-
 
49454
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
49455
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
49456
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHeldInventoryMapForItem_result.class, metaDataMap);
-
 
49457
    }
-
 
49458
 
-
 
49459
    public getHeldInventoryMapForItem_result() {
-
 
49460
    }
-
 
49461
 
-
 
49462
    public getHeldInventoryMapForItem_result(
-
 
49463
      Map<Integer,Long> success)
-
 
49464
    {
-
 
49465
      this();
-
 
49466
      this.success = success;
-
 
49467
    }
-
 
49468
 
-
 
49469
    /**
-
 
49470
     * Performs a deep copy on <i>other</i>.
-
 
49471
     */
-
 
49472
    public getHeldInventoryMapForItem_result(getHeldInventoryMapForItem_result other) {
-
 
49473
      if (other.isSetSuccess()) {
-
 
49474
        Map<Integer,Long> __this__success = new HashMap<Integer,Long>();
-
 
49475
        for (Map.Entry<Integer, Long> other_element : other.success.entrySet()) {
-
 
49476
 
-
 
49477
          Integer other_element_key = other_element.getKey();
-
 
49478
          Long other_element_value = other_element.getValue();
-
 
49479
 
-
 
49480
          Integer __this__success_copy_key = other_element_key;
-
 
49481
 
-
 
49482
          Long __this__success_copy_value = other_element_value;
-
 
49483
 
-
 
49484
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
49485
        }
-
 
49486
        this.success = __this__success;
-
 
49487
      }
-
 
49488
    }
-
 
49489
 
-
 
49490
    public getHeldInventoryMapForItem_result deepCopy() {
-
 
49491
      return new getHeldInventoryMapForItem_result(this);
-
 
49492
    }
-
 
49493
 
-
 
49494
    @Override
-
 
49495
    public void clear() {
-
 
49496
      this.success = null;
-
 
49497
    }
-
 
49498
 
-
 
49499
    public int getSuccessSize() {
-
 
49500
      return (this.success == null) ? 0 : this.success.size();
-
 
49501
    }
-
 
49502
 
-
 
49503
    public void putToSuccess(int key, long val) {
-
 
49504
      if (this.success == null) {
-
 
49505
        this.success = new HashMap<Integer,Long>();
-
 
49506
      }
-
 
49507
      this.success.put(key, val);
-
 
49508
    }
-
 
49509
 
-
 
49510
    public Map<Integer,Long> getSuccess() {
-
 
49511
      return this.success;
-
 
49512
    }
-
 
49513
 
-
 
49514
    public void setSuccess(Map<Integer,Long> success) {
-
 
49515
      this.success = success;
-
 
49516
    }
-
 
49517
 
-
 
49518
    public void unsetSuccess() {
-
 
49519
      this.success = null;
-
 
49520
    }
-
 
49521
 
-
 
49522
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
49523
    public boolean isSetSuccess() {
-
 
49524
      return this.success != null;
-
 
49525
    }
-
 
49526
 
-
 
49527
    public void setSuccessIsSet(boolean value) {
-
 
49528
      if (!value) {
-
 
49529
        this.success = null;
-
 
49530
      }
-
 
49531
    }
-
 
49532
 
-
 
49533
    public void setFieldValue(_Fields field, Object value) {
-
 
49534
      switch (field) {
-
 
49535
      case SUCCESS:
-
 
49536
        if (value == null) {
-
 
49537
          unsetSuccess();
-
 
49538
        } else {
-
 
49539
          setSuccess((Map<Integer,Long>)value);
-
 
49540
        }
-
 
49541
        break;
-
 
49542
 
-
 
49543
      }
-
 
49544
    }
-
 
49545
 
-
 
49546
    public Object getFieldValue(_Fields field) {
-
 
49547
      switch (field) {
-
 
49548
      case SUCCESS:
-
 
49549
        return getSuccess();
-
 
49550
 
-
 
49551
      }
-
 
49552
      throw new IllegalStateException();
-
 
49553
    }
-
 
49554
 
-
 
49555
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
49556
    public boolean isSet(_Fields field) {
-
 
49557
      if (field == null) {
-
 
49558
        throw new IllegalArgumentException();
-
 
49559
      }
-
 
49560
 
-
 
49561
      switch (field) {
-
 
49562
      case SUCCESS:
-
 
49563
        return isSetSuccess();
-
 
49564
      }
-
 
49565
      throw new IllegalStateException();
-
 
49566
    }
-
 
49567
 
-
 
49568
    @Override
-
 
49569
    public boolean equals(Object that) {
-
 
49570
      if (that == null)
-
 
49571
        return false;
-
 
49572
      if (that instanceof getHeldInventoryMapForItem_result)
-
 
49573
        return this.equals((getHeldInventoryMapForItem_result)that);
-
 
49574
      return false;
-
 
49575
    }
-
 
49576
 
-
 
49577
    public boolean equals(getHeldInventoryMapForItem_result that) {
-
 
49578
      if (that == null)
-
 
49579
        return false;
-
 
49580
 
-
 
49581
      boolean this_present_success = true && this.isSetSuccess();
-
 
49582
      boolean that_present_success = true && that.isSetSuccess();
-
 
49583
      if (this_present_success || that_present_success) {
-
 
49584
        if (!(this_present_success && that_present_success))
-
 
49585
          return false;
-
 
49586
        if (!this.success.equals(that.success))
-
 
49587
          return false;
-
 
49588
      }
-
 
49589
 
-
 
49590
      return true;
-
 
49591
    }
-
 
49592
 
-
 
49593
    @Override
-
 
49594
    public int hashCode() {
-
 
49595
      return 0;
-
 
49596
    }
-
 
49597
 
-
 
49598
    public int compareTo(getHeldInventoryMapForItem_result other) {
-
 
49599
      if (!getClass().equals(other.getClass())) {
-
 
49600
        return getClass().getName().compareTo(other.getClass().getName());
-
 
49601
      }
-
 
49602
 
-
 
49603
      int lastComparison = 0;
-
 
49604
      getHeldInventoryMapForItem_result typedOther = (getHeldInventoryMapForItem_result)other;
-
 
49605
 
-
 
49606
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
49607
      if (lastComparison != 0) {
-
 
49608
        return lastComparison;
-
 
49609
      }
-
 
49610
      if (isSetSuccess()) {
-
 
49611
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
49612
        if (lastComparison != 0) {
-
 
49613
          return lastComparison;
-
 
49614
        }
-
 
49615
      }
-
 
49616
      return 0;
-
 
49617
    }
-
 
49618
 
-
 
49619
    public _Fields fieldForId(int fieldId) {
-
 
49620
      return _Fields.findByThriftId(fieldId);
-
 
49621
    }
-
 
49622
 
-
 
49623
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
49624
      org.apache.thrift.protocol.TField field;
-
 
49625
      iprot.readStructBegin();
-
 
49626
      while (true)
-
 
49627
      {
-
 
49628
        field = iprot.readFieldBegin();
-
 
49629
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
49630
          break;
-
 
49631
        }
-
 
49632
        switch (field.id) {
-
 
49633
          case 0: // SUCCESS
-
 
49634
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
49635
              {
-
 
49636
                org.apache.thrift.protocol.TMap _map138 = iprot.readMapBegin();
-
 
49637
                this.success = new HashMap<Integer,Long>(2*_map138.size);
-
 
49638
                for (int _i139 = 0; _i139 < _map138.size; ++_i139)
-
 
49639
                {
-
 
49640
                  int _key140; // required
-
 
49641
                  long _val141; // required
-
 
49642
                  _key140 = iprot.readI32();
-
 
49643
                  _val141 = iprot.readI64();
-
 
49644
                  this.success.put(_key140, _val141);
-
 
49645
                }
-
 
49646
                iprot.readMapEnd();
-
 
49647
              }
-
 
49648
            } else { 
-
 
49649
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49650
            }
-
 
49651
            break;
-
 
49652
          default:
-
 
49653
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49654
        }
-
 
49655
        iprot.readFieldEnd();
-
 
49656
      }
-
 
49657
      iprot.readStructEnd();
-
 
49658
      validate();
-
 
49659
    }
-
 
49660
 
-
 
49661
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
49662
      oprot.writeStructBegin(STRUCT_DESC);
-
 
49663
 
-
 
49664
      if (this.isSetSuccess()) {
-
 
49665
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
49666
        {
-
 
49667
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
49668
          for (Map.Entry<Integer, Long> _iter142 : this.success.entrySet())
-
 
49669
          {
-
 
49670
            oprot.writeI32(_iter142.getKey());
-
 
49671
            oprot.writeI64(_iter142.getValue());
-
 
49672
          }
-
 
49673
          oprot.writeMapEnd();
-
 
49674
        }
-
 
49675
        oprot.writeFieldEnd();
-
 
49676
      }
-
 
49677
      oprot.writeFieldStop();
-
 
49678
      oprot.writeStructEnd();
-
 
49679
    }
-
 
49680
 
-
 
49681
    @Override
-
 
49682
    public String toString() {
-
 
49683
      StringBuilder sb = new StringBuilder("getHeldInventoryMapForItem_result(");
-
 
49684
      boolean first = true;
-
 
49685
 
-
 
49686
      sb.append("success:");
-
 
49687
      if (this.success == null) {
-
 
49688
        sb.append("null");
-
 
49689
      } else {
-
 
49690
        sb.append(this.success);
-
 
49691
      }
-
 
49692
      first = false;
-
 
49693
      sb.append(")");
-
 
49694
      return sb.toString();
-
 
49695
    }
-
 
49696
 
-
 
49697
    public void validate() throws org.apache.thrift.TException {
-
 
49698
      // check for required fields
-
 
49699
    }
-
 
49700
 
-
 
49701
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
49702
      try {
-
 
49703
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
49704
      } catch (org.apache.thrift.TException te) {
-
 
49705
        throw new java.io.IOException(te);
-
 
49706
      }
-
 
49707
    }
-
 
49708
 
-
 
49709
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
49710
      try {
-
 
49711
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
49712
      } catch (org.apache.thrift.TException te) {
-
 
49713
        throw new java.io.IOException(te);
-
 
49714
      }
-
 
49715
    }
-
 
49716
 
-
 
49717
  }
-
 
49718
 
48926
  public static class addOrUpdateAllAmazonFbaInventory_args implements org.apache.thrift.TBase<addOrUpdateAllAmazonFbaInventory_args, addOrUpdateAllAmazonFbaInventory_args._Fields>, java.io.Serializable, Cloneable   {
49719
  public static class addOrUpdateAllAmazonFbaInventory_args implements org.apache.thrift.TBase<addOrUpdateAllAmazonFbaInventory_args, addOrUpdateAllAmazonFbaInventory_args._Fields>, java.io.Serializable, Cloneable   {
48927
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllAmazonFbaInventory_args");
49720
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllAmazonFbaInventory_args");
48928
 
49721
 
48929
    private static final org.apache.thrift.protocol.TField ALLAMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("allamazonfbainventorysnapshot", org.apache.thrift.protocol.TType.LIST, (short)-1);
49722
    private static final org.apache.thrift.protocol.TField ALLAMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("allamazonfbainventorysnapshot", org.apache.thrift.protocol.TType.LIST, (short)-1);
48930
 
49723
 
Line 49171... Line 49964...
49171
        }
49964
        }
49172
        switch (field.id) {
49965
        switch (field.id) {
49173
          case -1: // ALLAMAZONFBAINVENTORYSNAPSHOT
49966
          case -1: // ALLAMAZONFBAINVENTORYSNAPSHOT
49174
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49967
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49175
              {
49968
              {
49176
                org.apache.thrift.protocol.TList _list138 = iprot.readListBegin();
49969
                org.apache.thrift.protocol.TList _list143 = iprot.readListBegin();
49177
                this.allamazonfbainventorysnapshot = new ArrayList<AmazonFbaInventorySnapshot>(_list138.size);
49970
                this.allamazonfbainventorysnapshot = new ArrayList<AmazonFbaInventorySnapshot>(_list143.size);
49178
                for (int _i139 = 0; _i139 < _list138.size; ++_i139)
49971
                for (int _i144 = 0; _i144 < _list143.size; ++_i144)
49179
                {
49972
                {
49180
                  AmazonFbaInventorySnapshot _elem140; // required
49973
                  AmazonFbaInventorySnapshot _elem145; // required
49181
                  _elem140 = new AmazonFbaInventorySnapshot();
49974
                  _elem145 = new AmazonFbaInventorySnapshot();
49182
                  _elem140.read(iprot);
49975
                  _elem145.read(iprot);
49183
                  this.allamazonfbainventorysnapshot.add(_elem140);
49976
                  this.allamazonfbainventorysnapshot.add(_elem145);
49184
                }
49977
                }
49185
                iprot.readListEnd();
49978
                iprot.readListEnd();
49186
              }
49979
              }
49187
            } else { 
49980
            } else { 
49188
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 49203... Line 49996...
49203
      oprot.writeStructBegin(STRUCT_DESC);
49996
      oprot.writeStructBegin(STRUCT_DESC);
49204
      if (this.allamazonfbainventorysnapshot != null) {
49997
      if (this.allamazonfbainventorysnapshot != null) {
49205
        oprot.writeFieldBegin(ALLAMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC);
49998
        oprot.writeFieldBegin(ALLAMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC);
49206
        {
49999
        {
49207
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allamazonfbainventorysnapshot.size()));
50000
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allamazonfbainventorysnapshot.size()));
49208
          for (AmazonFbaInventorySnapshot _iter141 : this.allamazonfbainventorysnapshot)
50001
          for (AmazonFbaInventorySnapshot _iter146 : this.allamazonfbainventorysnapshot)
49209
          {
50002
          {
49210
            _iter141.write(oprot);
50003
            _iter146.write(oprot);
49211
          }
50004
          }
49212
          oprot.writeListEnd();
50005
          oprot.writeListEnd();
49213
        }
50006
        }
49214
        oprot.writeFieldEnd();
50007
        oprot.writeFieldEnd();
49215
      }
50008
      }
Line 49702... Line 50495...
49702
        }
50495
        }
49703
        switch (field.id) {
50496
        switch (field.id) {
49704
          case -1: // ALLSNAPDEALINVENTORYSNAPSHOT
50497
          case -1: // ALLSNAPDEALINVENTORYSNAPSHOT
49705
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50498
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49706
              {
50499
              {
49707
                org.apache.thrift.protocol.TList _list142 = iprot.readListBegin();
50500
                org.apache.thrift.protocol.TList _list147 = iprot.readListBegin();
49708
                this.allsnapdealinventorysnapshot = new ArrayList<SnapdealInventoryItem>(_list142.size);
50501
                this.allsnapdealinventorysnapshot = new ArrayList<SnapdealInventoryItem>(_list147.size);
49709
                for (int _i143 = 0; _i143 < _list142.size; ++_i143)
50502
                for (int _i148 = 0; _i148 < _list147.size; ++_i148)
49710
                {
50503
                {
49711
                  SnapdealInventoryItem _elem144; // required
50504
                  SnapdealInventoryItem _elem149; // required
49712
                  _elem144 = new SnapdealInventoryItem();
50505
                  _elem149 = new SnapdealInventoryItem();
49713
                  _elem144.read(iprot);
50506
                  _elem149.read(iprot);
49714
                  this.allsnapdealinventorysnapshot.add(_elem144);
50507
                  this.allsnapdealinventorysnapshot.add(_elem149);
49715
                }
50508
                }
49716
                iprot.readListEnd();
50509
                iprot.readListEnd();
49717
              }
50510
              }
49718
            } else { 
50511
            } else { 
49719
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50512
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 49734... Line 50527...
49734
      oprot.writeStructBegin(STRUCT_DESC);
50527
      oprot.writeStructBegin(STRUCT_DESC);
49735
      if (this.allsnapdealinventorysnapshot != null) {
50528
      if (this.allsnapdealinventorysnapshot != null) {
49736
        oprot.writeFieldBegin(ALLSNAPDEALINVENTORYSNAPSHOT_FIELD_DESC);
50529
        oprot.writeFieldBegin(ALLSNAPDEALINVENTORYSNAPSHOT_FIELD_DESC);
49737
        {
50530
        {
49738
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allsnapdealinventorysnapshot.size()));
50531
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allsnapdealinventorysnapshot.size()));
49739
          for (SnapdealInventoryItem _iter145 : this.allsnapdealinventorysnapshot)
50532
          for (SnapdealInventoryItem _iter150 : this.allsnapdealinventorysnapshot)
49740
          {
50533
          {
49741
            _iter145.write(oprot);
50534
            _iter150.write(oprot);
49742
          }
50535
          }
49743
          oprot.writeListEnd();
50536
          oprot.writeListEnd();
49744
        }
50537
        }
49745
        oprot.writeFieldEnd();
50538
        oprot.writeFieldEnd();
49746
      }
50539
      }
Line 50433... Line 51226...
50433
        }
51226
        }
50434
        switch (field.id) {
51227
        switch (field.id) {
50435
          case 0: // SUCCESS
51228
          case 0: // SUCCESS
50436
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51229
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50437
              {
51230
              {
50438
                org.apache.thrift.protocol.TList _list146 = iprot.readListBegin();
51231
                org.apache.thrift.protocol.TList _list151 = iprot.readListBegin();
50439
                this.success = new ArrayList<SnapdealInventoryItem>(_list146.size);
51232
                this.success = new ArrayList<SnapdealInventoryItem>(_list151.size);
50440
                for (int _i147 = 0; _i147 < _list146.size; ++_i147)
51233
                for (int _i152 = 0; _i152 < _list151.size; ++_i152)
50441
                {
51234
                {
50442
                  SnapdealInventoryItem _elem148; // required
51235
                  SnapdealInventoryItem _elem153; // required
50443
                  _elem148 = new SnapdealInventoryItem();
51236
                  _elem153 = new SnapdealInventoryItem();
50444
                  _elem148.read(iprot);
51237
                  _elem153.read(iprot);
50445
                  this.success.add(_elem148);
51238
                  this.success.add(_elem153);
50446
                }
51239
                }
50447
                iprot.readListEnd();
51240
                iprot.readListEnd();
50448
              }
51241
              }
50449
            } else { 
51242
            } else { 
50450
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 50464... Line 51257...
50464
 
51257
 
50465
      if (this.isSetSuccess()) {
51258
      if (this.isSetSuccess()) {
50466
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51259
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50467
        {
51260
        {
50468
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
51261
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
50469
          for (SnapdealInventoryItem _iter149 : this.success)
51262
          for (SnapdealInventoryItem _iter154 : this.success)
50470
          {
51263
          {
50471
            _iter149.write(oprot);
51264
            _iter154.write(oprot);
50472
          }
51265
          }
50473
          oprot.writeListEnd();
51266
          oprot.writeListEnd();
50474
        }
51267
        }
50475
        oprot.writeFieldEnd();
51268
        oprot.writeFieldEnd();
50476
      }
51269
      }