Subversion Repositories SmartDukaan

Rev

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

Rev 8282 Rev 8363
Line 337... Line 337...
337
 
337
 
338
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws org.apache.thrift.TException;
338
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws org.apache.thrift.TException;
339
 
339
 
340
    public long getAmazonFbaItemInventory(long itemId) throws org.apache.thrift.TException;
340
    public long getAmazonFbaItemInventory(long itemId) throws org.apache.thrift.TException;
341
 
341
 
342
    public List<AmazonFbaInventorySnapshot> getAllNonzeroAmazonFbaItemInventory() throws org.apache.thrift.TException;
342
    public List<AmazonFbaInventorySnapshot> getAllAmazonFbaItemInventory() throws org.apache.thrift.TException;
-
 
343
 
-
 
344
    public List<Long> getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException;
343
 
345
 
344
  }
346
  }
345
 
347
 
346
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
348
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
347
 
349
 
Line 461... Line 463...
461
 
463
 
462
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUpdateHoldInventory_call> resultHandler) throws org.apache.thrift.TException;
464
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUpdateHoldInventory_call> resultHandler) throws org.apache.thrift.TException;
463
 
465
 
464
    public void getAmazonFbaItemInventory(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
466
    public void getAmazonFbaItemInventory(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
465
 
467
 
466
    public void getAllNonzeroAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllNonzeroAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
468
    public void getAllAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
-
 
469
 
-
 
470
    public void getOursGoodWarehouseIdsForLocation(long state_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOursGoodWarehouseIdsForLocation_call> resultHandler) throws org.apache.thrift.TException;
467
 
471
 
468
  }
472
  }
469
 
473
 
470
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
474
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
471
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
475
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 1899... Line 1903...
1899
        return result.success;
1903
        return result.success;
1900
      }
1904
      }
1901
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
1905
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
1902
    }
1906
    }
1903
 
1907
 
1904
    public List<AmazonFbaInventorySnapshot> getAllNonzeroAmazonFbaItemInventory() throws org.apache.thrift.TException
1908
    public List<AmazonFbaInventorySnapshot> getAllAmazonFbaItemInventory() throws org.apache.thrift.TException
1905
    {
1909
    {
1906
      send_getAllNonzeroAmazonFbaItemInventory();
1910
      send_getAllAmazonFbaItemInventory();
1907
      return recv_getAllNonzeroAmazonFbaItemInventory();
1911
      return recv_getAllAmazonFbaItemInventory();
1908
    }
1912
    }
1909
 
1913
 
1910
    public void send_getAllNonzeroAmazonFbaItemInventory() throws org.apache.thrift.TException
1914
    public void send_getAllAmazonFbaItemInventory() throws org.apache.thrift.TException
1911
    {
1915
    {
1912
      getAllNonzeroAmazonFbaItemInventory_args args = new getAllNonzeroAmazonFbaItemInventory_args();
1916
      getAllAmazonFbaItemInventory_args args = new getAllAmazonFbaItemInventory_args();
1913
      sendBase("getAllNonzeroAmazonFbaItemInventory", args);
1917
      sendBase("getAllAmazonFbaItemInventory", args);
1914
    }
1918
    }
1915
 
1919
 
1916
    public List<AmazonFbaInventorySnapshot> recv_getAllNonzeroAmazonFbaItemInventory() throws org.apache.thrift.TException
1920
    public List<AmazonFbaInventorySnapshot> recv_getAllAmazonFbaItemInventory() throws org.apache.thrift.TException
1917
    {
1921
    {
1918
      getAllNonzeroAmazonFbaItemInventory_result result = new getAllNonzeroAmazonFbaItemInventory_result();
1922
      getAllAmazonFbaItemInventory_result result = new getAllAmazonFbaItemInventory_result();
1919
      receiveBase(result, "getAllNonzeroAmazonFbaItemInventory");
1923
      receiveBase(result, "getAllAmazonFbaItemInventory");
1920
      if (result.isSetSuccess()) {
1924
      if (result.isSetSuccess()) {
1921
        return result.success;
1925
        return result.success;
1922
      }
1926
      }
1923
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllNonzeroAmazonFbaItemInventory failed: unknown result");
1927
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
-
 
1928
    }
-
 
1929
 
-
 
1930
    public List<Long> getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException
-
 
1931
    {
-
 
1932
      send_getOursGoodWarehouseIdsForLocation(state_id);
-
 
1933
      return recv_getOursGoodWarehouseIdsForLocation();
-
 
1934
    }
-
 
1935
 
-
 
1936
    public void send_getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException
-
 
1937
    {
-
 
1938
      getOursGoodWarehouseIdsForLocation_args args = new getOursGoodWarehouseIdsForLocation_args();
-
 
1939
      args.setState_id(state_id);
-
 
1940
      sendBase("getOursGoodWarehouseIdsForLocation", args);
-
 
1941
    }
-
 
1942
 
-
 
1943
    public List<Long> recv_getOursGoodWarehouseIdsForLocation() throws org.apache.thrift.TException
-
 
1944
    {
-
 
1945
      getOursGoodWarehouseIdsForLocation_result result = new getOursGoodWarehouseIdsForLocation_result();
-
 
1946
      receiveBase(result, "getOursGoodWarehouseIdsForLocation");
-
 
1947
      if (result.isSetSuccess()) {
-
 
1948
        return result.success;
-
 
1949
      }
-
 
1950
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
1924
    }
1951
    }
1925
 
1952
 
1926
  }
1953
  }
1927
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1954
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1928
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1955
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
Line 3953... Line 3980...
3953
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3980
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3954
        return (new Client(prot)).recv_getAmazonFbaItemInventory();
3981
        return (new Client(prot)).recv_getAmazonFbaItemInventory();
3955
      }
3982
      }
3956
    }
3983
    }
3957
 
3984
 
3958
    public void getAllNonzeroAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<getAllNonzeroAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException {
3985
    public void getAllAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException {
3959
      checkReady();
3986
      checkReady();
3960
      getAllNonzeroAmazonFbaItemInventory_call method_call = new getAllNonzeroAmazonFbaItemInventory_call(resultHandler, this, ___protocolFactory, ___transport);
3987
      getAllAmazonFbaItemInventory_call method_call = new getAllAmazonFbaItemInventory_call(resultHandler, this, ___protocolFactory, ___transport);
3961
      this.___currentMethod = method_call;
3988
      this.___currentMethod = method_call;
3962
      ___manager.call(method_call);
3989
      ___manager.call(method_call);
3963
    }
3990
    }
3964
 
3991
 
3965
    public static class getAllNonzeroAmazonFbaItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
3992
    public static class getAllAmazonFbaItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
3966
      public getAllNonzeroAmazonFbaItemInventory_call(org.apache.thrift.async.AsyncMethodCallback<getAllNonzeroAmazonFbaItemInventory_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 {
3993
      public getAllAmazonFbaItemInventory_call(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonFbaItemInventory_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 {
3967
        super(client, protocolFactory, transport, resultHandler, false);
3994
        super(client, protocolFactory, transport, resultHandler, false);
3968
      }
3995
      }
3969
 
3996
 
3970
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3997
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3971
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllNonzeroAmazonFbaItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3998
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAmazonFbaItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3972
        getAllNonzeroAmazonFbaItemInventory_args args = new getAllNonzeroAmazonFbaItemInventory_args();
3999
        getAllAmazonFbaItemInventory_args args = new getAllAmazonFbaItemInventory_args();
3973
        args.write(prot);
4000
        args.write(prot);
3974
        prot.writeMessageEnd();
4001
        prot.writeMessageEnd();
3975
      }
4002
      }
3976
 
4003
 
3977
      public List<AmazonFbaInventorySnapshot> getResult() throws org.apache.thrift.TException {
4004
      public List<AmazonFbaInventorySnapshot> getResult() throws org.apache.thrift.TException {
3978
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4005
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3979
          throw new IllegalStateException("Method call not finished!");
4006
          throw new IllegalStateException("Method call not finished!");
3980
        }
4007
        }
3981
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4008
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3982
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4009
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4010
        return (new Client(prot)).recv_getAllAmazonFbaItemInventory();
-
 
4011
      }
-
 
4012
    }
-
 
4013
 
-
 
4014
    public void getOursGoodWarehouseIdsForLocation(long state_id, org.apache.thrift.async.AsyncMethodCallback<getOursGoodWarehouseIdsForLocation_call> resultHandler) throws org.apache.thrift.TException {
-
 
4015
      checkReady();
-
 
4016
      getOursGoodWarehouseIdsForLocation_call method_call = new getOursGoodWarehouseIdsForLocation_call(state_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
4017
      this.___currentMethod = method_call;
-
 
4018
      ___manager.call(method_call);
-
 
4019
    }
-
 
4020
 
-
 
4021
    public static class getOursGoodWarehouseIdsForLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4022
      private long state_id;
3983
        return (new Client(prot)).recv_getAllNonzeroAmazonFbaItemInventory();
4023
      public getOursGoodWarehouseIdsForLocation_call(long state_id, org.apache.thrift.async.AsyncMethodCallback<getOursGoodWarehouseIdsForLocation_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 {
-
 
4024
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4025
        this.state_id = state_id;
-
 
4026
      }
-
 
4027
 
-
 
4028
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4029
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOursGoodWarehouseIdsForLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4030
        getOursGoodWarehouseIdsForLocation_args args = new getOursGoodWarehouseIdsForLocation_args();
-
 
4031
        args.setState_id(state_id);
-
 
4032
        args.write(prot);
-
 
4033
        prot.writeMessageEnd();
-
 
4034
      }
-
 
4035
 
-
 
4036
      public List<Long> getResult() throws org.apache.thrift.TException {
-
 
4037
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4038
          throw new IllegalStateException("Method call not finished!");
-
 
4039
        }
-
 
4040
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4041
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4042
        return (new Client(prot)).recv_getOursGoodWarehouseIdsForLocation();
3984
      }
4043
      }
3985
    }
4044
    }
3986
 
4045
 
3987
  }
4046
  }
3988
 
4047
 
Line 4054... Line 4113...
4054
      processMap.put("addOrUpdateAmazonInventoryForItem", new addOrUpdateAmazonInventoryForItem());
4113
      processMap.put("addOrUpdateAmazonInventoryForItem", new addOrUpdateAmazonInventoryForItem());
4055
      processMap.put("getLastNdaySaleForItem", new getLastNdaySaleForItem());
4114
      processMap.put("getLastNdaySaleForItem", new getLastNdaySaleForItem());
4056
      processMap.put("addOrUpdateAmazonFbaInventory", new addOrUpdateAmazonFbaInventory());
4115
      processMap.put("addOrUpdateAmazonFbaInventory", new addOrUpdateAmazonFbaInventory());
4057
      processMap.put("addUpdateHoldInventory", new addUpdateHoldInventory());
4116
      processMap.put("addUpdateHoldInventory", new addUpdateHoldInventory());
4058
      processMap.put("getAmazonFbaItemInventory", new getAmazonFbaItemInventory());
4117
      processMap.put("getAmazonFbaItemInventory", new getAmazonFbaItemInventory());
4059
      processMap.put("getAllNonzeroAmazonFbaItemInventory", new getAllNonzeroAmazonFbaItemInventory());
4118
      processMap.put("getAllAmazonFbaItemInventory", new getAllAmazonFbaItemInventory());
-
 
4119
      processMap.put("getOursGoodWarehouseIdsForLocation", new getOursGoodWarehouseIdsForLocation());
4060
      return processMap;
4120
      return processMap;
4061
    }
4121
    }
4062
 
4122
 
4063
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4123
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4064
      public addWarehouse() {
4124
      public addWarehouse() {
Line 5106... Line 5166...
5106
        result.setSuccessIsSet(true);
5166
        result.setSuccessIsSet(true);
5107
        return result;
5167
        return result;
5108
      }
5168
      }
5109
    }
5169
    }
5110
 
5170
 
5111
    private static class getAllNonzeroAmazonFbaItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllNonzeroAmazonFbaItemInventory_args> {
5171
    private static class getAllAmazonFbaItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAmazonFbaItemInventory_args> {
5112
      public getAllNonzeroAmazonFbaItemInventory() {
5172
      public getAllAmazonFbaItemInventory() {
5113
        super("getAllNonzeroAmazonFbaItemInventory");
5173
        super("getAllAmazonFbaItemInventory");
-
 
5174
      }
-
 
5175
 
-
 
5176
      protected getAllAmazonFbaItemInventory_args getEmptyArgsInstance() {
-
 
5177
        return new getAllAmazonFbaItemInventory_args();
-
 
5178
      }
-
 
5179
 
-
 
5180
      protected getAllAmazonFbaItemInventory_result getResult(I iface, getAllAmazonFbaItemInventory_args args) throws org.apache.thrift.TException {
-
 
5181
        getAllAmazonFbaItemInventory_result result = new getAllAmazonFbaItemInventory_result();
-
 
5182
        result.success = iface.getAllAmazonFbaItemInventory();
-
 
5183
        return result;
-
 
5184
      }
-
 
5185
    }
-
 
5186
 
-
 
5187
    private static class getOursGoodWarehouseIdsForLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOursGoodWarehouseIdsForLocation_args> {
-
 
5188
      public getOursGoodWarehouseIdsForLocation() {
-
 
5189
        super("getOursGoodWarehouseIdsForLocation");
5114
      }
5190
      }
5115
 
5191
 
5116
      protected getAllNonzeroAmazonFbaItemInventory_args getEmptyArgsInstance() {
5192
      protected getOursGoodWarehouseIdsForLocation_args getEmptyArgsInstance() {
5117
        return new getAllNonzeroAmazonFbaItemInventory_args();
5193
        return new getOursGoodWarehouseIdsForLocation_args();
5118
      }
5194
      }
5119
 
5195
 
5120
      protected getAllNonzeroAmazonFbaItemInventory_result getResult(I iface, getAllNonzeroAmazonFbaItemInventory_args args) throws org.apache.thrift.TException {
5196
      protected getOursGoodWarehouseIdsForLocation_result getResult(I iface, getOursGoodWarehouseIdsForLocation_args args) throws org.apache.thrift.TException {
5121
        getAllNonzeroAmazonFbaItemInventory_result result = new getAllNonzeroAmazonFbaItemInventory_result();
5197
        getOursGoodWarehouseIdsForLocation_result result = new getOursGoodWarehouseIdsForLocation_result();
5122
        result.success = iface.getAllNonzeroAmazonFbaItemInventory();
5198
        result.success = iface.getOursGoodWarehouseIdsForLocation(args.state_id);
5123
        return result;
5199
        return result;
5124
      }
5200
      }
5125
    }
5201
    }
5126
 
5202
 
5127
  }
5203
  }
Line 29423... Line 29499...
29423
      }
29499
      }
29424
    }
29500
    }
29425
 
29501
 
29426
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29502
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29427
      try {
29503
      try {
-
 
29504
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
29505
        __isset_bit_vector = new BitSet(1);
29428
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29506
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29429
      } catch (org.apache.thrift.TException te) {
29507
      } catch (org.apache.thrift.TException te) {
29430
        throw new java.io.IOException(te);
29508
        throw new java.io.IOException(te);
29431
      }
29509
      }
29432
    }
29510
    }
Line 44650... Line 44728...
44650
      }
44728
      }
44651
    }
44729
    }
44652
 
44730
 
44653
  }
44731
  }
44654
 
44732
 
44655
  public static class getAllNonzeroAmazonFbaItemInventory_args implements org.apache.thrift.TBase<getAllNonzeroAmazonFbaItemInventory_args, getAllNonzeroAmazonFbaItemInventory_args._Fields>, java.io.Serializable, Cloneable   {
44733
  public static class getAllAmazonFbaItemInventory_args implements org.apache.thrift.TBase<getAllAmazonFbaItemInventory_args, getAllAmazonFbaItemInventory_args._Fields>, java.io.Serializable, Cloneable   {
44656
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllNonzeroAmazonFbaItemInventory_args");
44734
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonFbaItemInventory_args");
44657
 
44735
 
44658
 
44736
 
44659
 
44737
 
44660
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44738
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44661
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44739
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
Line 44714... Line 44792...
44714
    }
44792
    }
44715
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44793
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44716
    static {
44794
    static {
44717
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44795
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44718
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44796
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44719
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllNonzeroAmazonFbaItemInventory_args.class, metaDataMap);
44797
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonFbaItemInventory_args.class, metaDataMap);
44720
    }
44798
    }
44721
 
44799
 
44722
    public getAllNonzeroAmazonFbaItemInventory_args() {
44800
    public getAllAmazonFbaItemInventory_args() {
44723
    }
44801
    }
44724
 
44802
 
44725
    /**
44803
    /**
44726
     * Performs a deep copy on <i>other</i>.
44804
     * Performs a deep copy on <i>other</i>.
44727
     */
44805
     */
44728
    public getAllNonzeroAmazonFbaItemInventory_args(getAllNonzeroAmazonFbaItemInventory_args other) {
44806
    public getAllAmazonFbaItemInventory_args(getAllAmazonFbaItemInventory_args other) {
44729
    }
44807
    }
44730
 
44808
 
44731
    public getAllNonzeroAmazonFbaItemInventory_args deepCopy() {
44809
    public getAllAmazonFbaItemInventory_args deepCopy() {
44732
      return new getAllNonzeroAmazonFbaItemInventory_args(this);
44810
      return new getAllAmazonFbaItemInventory_args(this);
44733
    }
44811
    }
44734
 
44812
 
44735
    @Override
44813
    @Override
44736
    public void clear() {
44814
    public void clear() {
44737
    }
44815
    }
Line 44760... Line 44838...
44760
 
44838
 
44761
    @Override
44839
    @Override
44762
    public boolean equals(Object that) {
44840
    public boolean equals(Object that) {
44763
      if (that == null)
44841
      if (that == null)
44764
        return false;
44842
        return false;
44765
      if (that instanceof getAllNonzeroAmazonFbaItemInventory_args)
44843
      if (that instanceof getAllAmazonFbaItemInventory_args)
44766
        return this.equals((getAllNonzeroAmazonFbaItemInventory_args)that);
44844
        return this.equals((getAllAmazonFbaItemInventory_args)that);
44767
      return false;
44845
      return false;
44768
    }
44846
    }
44769
 
44847
 
44770
    public boolean equals(getAllNonzeroAmazonFbaItemInventory_args that) {
44848
    public boolean equals(getAllAmazonFbaItemInventory_args that) {
44771
      if (that == null)
44849
      if (that == null)
44772
        return false;
44850
        return false;
44773
 
44851
 
44774
      return true;
44852
      return true;
44775
    }
44853
    }
Line 44777... Line 44855...
44777
    @Override
44855
    @Override
44778
    public int hashCode() {
44856
    public int hashCode() {
44779
      return 0;
44857
      return 0;
44780
    }
44858
    }
44781
 
44859
 
44782
    public int compareTo(getAllNonzeroAmazonFbaItemInventory_args other) {
44860
    public int compareTo(getAllAmazonFbaItemInventory_args other) {
44783
      if (!getClass().equals(other.getClass())) {
44861
      if (!getClass().equals(other.getClass())) {
44784
        return getClass().getName().compareTo(other.getClass().getName());
44862
        return getClass().getName().compareTo(other.getClass().getName());
44785
      }
44863
      }
44786
 
44864
 
44787
      int lastComparison = 0;
44865
      int lastComparison = 0;
44788
      getAllNonzeroAmazonFbaItemInventory_args typedOther = (getAllNonzeroAmazonFbaItemInventory_args)other;
44866
      getAllAmazonFbaItemInventory_args typedOther = (getAllAmazonFbaItemInventory_args)other;
44789
 
44867
 
44790
      return 0;
44868
      return 0;
44791
    }
44869
    }
44792
 
44870
 
44793
    public _Fields fieldForId(int fieldId) {
44871
    public _Fields fieldForId(int fieldId) {
Line 44821... Line 44899...
44821
      oprot.writeStructEnd();
44899
      oprot.writeStructEnd();
44822
    }
44900
    }
44823
 
44901
 
44824
    @Override
44902
    @Override
44825
    public String toString() {
44903
    public String toString() {
44826
      StringBuilder sb = new StringBuilder("getAllNonzeroAmazonFbaItemInventory_args(");
44904
      StringBuilder sb = new StringBuilder("getAllAmazonFbaItemInventory_args(");
44827
      boolean first = true;
44905
      boolean first = true;
44828
 
44906
 
44829
      sb.append(")");
44907
      sb.append(")");
44830
      return sb.toString();
44908
      return sb.toString();
44831
    }
44909
    }
Line 44850... Line 44928...
44850
      }
44928
      }
44851
    }
44929
    }
44852
 
44930
 
44853
  }
44931
  }
44854
 
44932
 
44855
  public static class getAllNonzeroAmazonFbaItemInventory_result implements org.apache.thrift.TBase<getAllNonzeroAmazonFbaItemInventory_result, getAllNonzeroAmazonFbaItemInventory_result._Fields>, java.io.Serializable, Cloneable   {
44933
  public static class getAllAmazonFbaItemInventory_result implements org.apache.thrift.TBase<getAllAmazonFbaItemInventory_result, getAllAmazonFbaItemInventory_result._Fields>, java.io.Serializable, Cloneable   {
44856
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllNonzeroAmazonFbaItemInventory_result");
44934
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonFbaItemInventory_result");
44857
 
44935
 
44858
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
44936
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
44859
 
44937
 
44860
    private List<AmazonFbaInventorySnapshot> success; // required
44938
    private List<AmazonFbaInventorySnapshot> success; // required
44861
 
44939
 
Line 44924... Line 45002...
44924
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45002
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44925
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45003
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44926
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
45004
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
44927
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
45005
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
44928
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45006
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44929
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllNonzeroAmazonFbaItemInventory_result.class, metaDataMap);
45007
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonFbaItemInventory_result.class, metaDataMap);
44930
    }
45008
    }
44931
 
45009
 
44932
    public getAllNonzeroAmazonFbaItemInventory_result() {
45010
    public getAllAmazonFbaItemInventory_result() {
44933
    }
45011
    }
44934
 
45012
 
44935
    public getAllNonzeroAmazonFbaItemInventory_result(
45013
    public getAllAmazonFbaItemInventory_result(
44936
      List<AmazonFbaInventorySnapshot> success)
45014
      List<AmazonFbaInventorySnapshot> success)
44937
    {
45015
    {
44938
      this();
45016
      this();
44939
      this.success = success;
45017
      this.success = success;
44940
    }
45018
    }
44941
 
45019
 
44942
    /**
45020
    /**
44943
     * Performs a deep copy on <i>other</i>.
45021
     * Performs a deep copy on <i>other</i>.
44944
     */
45022
     */
44945
    public getAllNonzeroAmazonFbaItemInventory_result(getAllNonzeroAmazonFbaItemInventory_result other) {
45023
    public getAllAmazonFbaItemInventory_result(getAllAmazonFbaItemInventory_result other) {
44946
      if (other.isSetSuccess()) {
45024
      if (other.isSetSuccess()) {
44947
        List<AmazonFbaInventorySnapshot> __this__success = new ArrayList<AmazonFbaInventorySnapshot>();
45025
        List<AmazonFbaInventorySnapshot> __this__success = new ArrayList<AmazonFbaInventorySnapshot>();
44948
        for (AmazonFbaInventorySnapshot other_element : other.success) {
45026
        for (AmazonFbaInventorySnapshot other_element : other.success) {
44949
          __this__success.add(new AmazonFbaInventorySnapshot(other_element));
45027
          __this__success.add(new AmazonFbaInventorySnapshot(other_element));
44950
        }
45028
        }
44951
        this.success = __this__success;
45029
        this.success = __this__success;
44952
      }
45030
      }
44953
    }
45031
    }
44954
 
45032
 
44955
    public getAllNonzeroAmazonFbaItemInventory_result deepCopy() {
45033
    public getAllAmazonFbaItemInventory_result deepCopy() {
44956
      return new getAllNonzeroAmazonFbaItemInventory_result(this);
45034
      return new getAllAmazonFbaItemInventory_result(this);
44957
    }
45035
    }
44958
 
45036
 
44959
    @Override
45037
    @Override
44960
    public void clear() {
45038
    public void clear() {
44961
      this.success = null;
45039
      this.success = null;
Line 45036... Line 45114...
45036
 
45114
 
45037
    @Override
45115
    @Override
45038
    public boolean equals(Object that) {
45116
    public boolean equals(Object that) {
45039
      if (that == null)
45117
      if (that == null)
45040
        return false;
45118
        return false;
45041
      if (that instanceof getAllNonzeroAmazonFbaItemInventory_result)
45119
      if (that instanceof getAllAmazonFbaItemInventory_result)
45042
        return this.equals((getAllNonzeroAmazonFbaItemInventory_result)that);
45120
        return this.equals((getAllAmazonFbaItemInventory_result)that);
45043
      return false;
45121
      return false;
45044
    }
45122
    }
45045
 
45123
 
45046
    public boolean equals(getAllNonzeroAmazonFbaItemInventory_result that) {
45124
    public boolean equals(getAllAmazonFbaItemInventory_result that) {
45047
      if (that == null)
45125
      if (that == null)
45048
        return false;
45126
        return false;
45049
 
45127
 
45050
      boolean this_present_success = true && this.isSetSuccess();
45128
      boolean this_present_success = true && this.isSetSuccess();
45051
      boolean that_present_success = true && that.isSetSuccess();
45129
      boolean that_present_success = true && that.isSetSuccess();
Line 45062... Line 45140...
45062
    @Override
45140
    @Override
45063
    public int hashCode() {
45141
    public int hashCode() {
45064
      return 0;
45142
      return 0;
45065
    }
45143
    }
45066
 
45144
 
45067
    public int compareTo(getAllNonzeroAmazonFbaItemInventory_result other) {
45145
    public int compareTo(getAllAmazonFbaItemInventory_result other) {
45068
      if (!getClass().equals(other.getClass())) {
45146
      if (!getClass().equals(other.getClass())) {
45069
        return getClass().getName().compareTo(other.getClass().getName());
45147
        return getClass().getName().compareTo(other.getClass().getName());
45070
      }
45148
      }
45071
 
45149
 
45072
      int lastComparison = 0;
45150
      int lastComparison = 0;
45073
      getAllNonzeroAmazonFbaItemInventory_result typedOther = (getAllNonzeroAmazonFbaItemInventory_result)other;
45151
      getAllAmazonFbaItemInventory_result typedOther = (getAllAmazonFbaItemInventory_result)other;
45074
 
45152
 
45075
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
45153
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
45076
      if (lastComparison != 0) {
45154
      if (lastComparison != 0) {
45077
        return lastComparison;
45155
        return lastComparison;
45078
      }
45156
      }
Line 45145... Line 45223...
45145
      oprot.writeStructEnd();
45223
      oprot.writeStructEnd();
45146
    }
45224
    }
45147
 
45225
 
45148
    @Override
45226
    @Override
45149
    public String toString() {
45227
    public String toString() {
45150
      StringBuilder sb = new StringBuilder("getAllNonzeroAmazonFbaItemInventory_result(");
45228
      StringBuilder sb = new StringBuilder("getAllAmazonFbaItemInventory_result(");
-
 
45229
      boolean first = true;
-
 
45230
 
-
 
45231
      sb.append("success:");
-
 
45232
      if (this.success == null) {
-
 
45233
        sb.append("null");
-
 
45234
      } else {
-
 
45235
        sb.append(this.success);
-
 
45236
      }
-
 
45237
      first = false;
-
 
45238
      sb.append(")");
-
 
45239
      return sb.toString();
-
 
45240
    }
-
 
45241
 
-
 
45242
    public void validate() throws org.apache.thrift.TException {
-
 
45243
      // check for required fields
-
 
45244
    }
-
 
45245
 
-
 
45246
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45247
      try {
-
 
45248
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45249
      } catch (org.apache.thrift.TException te) {
-
 
45250
        throw new java.io.IOException(te);
-
 
45251
      }
-
 
45252
    }
-
 
45253
 
-
 
45254
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45255
      try {
-
 
45256
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45257
      } catch (org.apache.thrift.TException te) {
-
 
45258
        throw new java.io.IOException(te);
-
 
45259
      }
-
 
45260
    }
-
 
45261
 
-
 
45262
  }
-
 
45263
 
-
 
45264
  public static class getOursGoodWarehouseIdsForLocation_args implements org.apache.thrift.TBase<getOursGoodWarehouseIdsForLocation_args, getOursGoodWarehouseIdsForLocation_args._Fields>, java.io.Serializable, Cloneable   {
-
 
45265
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOursGoodWarehouseIdsForLocation_args");
-
 
45266
 
-
 
45267
    private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("state_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
45268
 
-
 
45269
    private long state_id; // required
-
 
45270
 
-
 
45271
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45272
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45273
      STATE_ID((short)1, "state_id");
-
 
45274
 
-
 
45275
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45276
 
-
 
45277
      static {
-
 
45278
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45279
          byName.put(field.getFieldName(), field);
-
 
45280
        }
-
 
45281
      }
-
 
45282
 
-
 
45283
      /**
-
 
45284
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45285
       */
-
 
45286
      public static _Fields findByThriftId(int fieldId) {
-
 
45287
        switch(fieldId) {
-
 
45288
          case 1: // STATE_ID
-
 
45289
            return STATE_ID;
-
 
45290
          default:
-
 
45291
            return null;
-
 
45292
        }
-
 
45293
      }
-
 
45294
 
-
 
45295
      /**
-
 
45296
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45297
       * if it is not found.
-
 
45298
       */
-
 
45299
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45300
        _Fields fields = findByThriftId(fieldId);
-
 
45301
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45302
        return fields;
-
 
45303
      }
-
 
45304
 
-
 
45305
      /**
-
 
45306
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45307
       */
-
 
45308
      public static _Fields findByName(String name) {
-
 
45309
        return byName.get(name);
-
 
45310
      }
-
 
45311
 
-
 
45312
      private final short _thriftId;
-
 
45313
      private final String _fieldName;
-
 
45314
 
-
 
45315
      _Fields(short thriftId, String fieldName) {
-
 
45316
        _thriftId = thriftId;
-
 
45317
        _fieldName = fieldName;
-
 
45318
      }
-
 
45319
 
-
 
45320
      public short getThriftFieldId() {
-
 
45321
        return _thriftId;
-
 
45322
      }
-
 
45323
 
-
 
45324
      public String getFieldName() {
-
 
45325
        return _fieldName;
-
 
45326
      }
-
 
45327
    }
-
 
45328
 
-
 
45329
    // isset id assignments
-
 
45330
    private static final int __STATE_ID_ISSET_ID = 0;
-
 
45331
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
45332
 
-
 
45333
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45334
    static {
-
 
45335
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45336
      tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("state_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45337
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
45338
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45339
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOursGoodWarehouseIdsForLocation_args.class, metaDataMap);
-
 
45340
    }
-
 
45341
 
-
 
45342
    public getOursGoodWarehouseIdsForLocation_args() {
-
 
45343
    }
-
 
45344
 
-
 
45345
    public getOursGoodWarehouseIdsForLocation_args(
-
 
45346
      long state_id)
-
 
45347
    {
-
 
45348
      this();
-
 
45349
      this.state_id = state_id;
-
 
45350
      setState_idIsSet(true);
-
 
45351
    }
-
 
45352
 
-
 
45353
    /**
-
 
45354
     * Performs a deep copy on <i>other</i>.
-
 
45355
     */
-
 
45356
    public getOursGoodWarehouseIdsForLocation_args(getOursGoodWarehouseIdsForLocation_args other) {
-
 
45357
      __isset_bit_vector.clear();
-
 
45358
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
45359
      this.state_id = other.state_id;
-
 
45360
    }
-
 
45361
 
-
 
45362
    public getOursGoodWarehouseIdsForLocation_args deepCopy() {
-
 
45363
      return new getOursGoodWarehouseIdsForLocation_args(this);
-
 
45364
    }
-
 
45365
 
-
 
45366
    @Override
-
 
45367
    public void clear() {
-
 
45368
      setState_idIsSet(false);
-
 
45369
      this.state_id = 0;
-
 
45370
    }
-
 
45371
 
-
 
45372
    public long getState_id() {
-
 
45373
      return this.state_id;
-
 
45374
    }
-
 
45375
 
-
 
45376
    public void setState_id(long state_id) {
-
 
45377
      this.state_id = state_id;
-
 
45378
      setState_idIsSet(true);
-
 
45379
    }
-
 
45380
 
-
 
45381
    public void unsetState_id() {
-
 
45382
      __isset_bit_vector.clear(__STATE_ID_ISSET_ID);
-
 
45383
    }
-
 
45384
 
-
 
45385
    /** Returns true if field state_id is set (has been assigned a value) and false otherwise */
-
 
45386
    public boolean isSetState_id() {
-
 
45387
      return __isset_bit_vector.get(__STATE_ID_ISSET_ID);
-
 
45388
    }
-
 
45389
 
-
 
45390
    public void setState_idIsSet(boolean value) {
-
 
45391
      __isset_bit_vector.set(__STATE_ID_ISSET_ID, value);
-
 
45392
    }
-
 
45393
 
-
 
45394
    public void setFieldValue(_Fields field, Object value) {
-
 
45395
      switch (field) {
-
 
45396
      case STATE_ID:
-
 
45397
        if (value == null) {
-
 
45398
          unsetState_id();
-
 
45399
        } else {
-
 
45400
          setState_id((Long)value);
-
 
45401
        }
-
 
45402
        break;
-
 
45403
 
-
 
45404
      }
-
 
45405
    }
-
 
45406
 
-
 
45407
    public Object getFieldValue(_Fields field) {
-
 
45408
      switch (field) {
-
 
45409
      case STATE_ID:
-
 
45410
        return Long.valueOf(getState_id());
-
 
45411
 
-
 
45412
      }
-
 
45413
      throw new IllegalStateException();
-
 
45414
    }
-
 
45415
 
-
 
45416
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45417
    public boolean isSet(_Fields field) {
-
 
45418
      if (field == null) {
-
 
45419
        throw new IllegalArgumentException();
-
 
45420
      }
-
 
45421
 
-
 
45422
      switch (field) {
-
 
45423
      case STATE_ID:
-
 
45424
        return isSetState_id();
-
 
45425
      }
-
 
45426
      throw new IllegalStateException();
-
 
45427
    }
-
 
45428
 
-
 
45429
    @Override
-
 
45430
    public boolean equals(Object that) {
-
 
45431
      if (that == null)
-
 
45432
        return false;
-
 
45433
      if (that instanceof getOursGoodWarehouseIdsForLocation_args)
-
 
45434
        return this.equals((getOursGoodWarehouseIdsForLocation_args)that);
-
 
45435
      return false;
-
 
45436
    }
-
 
45437
 
-
 
45438
    public boolean equals(getOursGoodWarehouseIdsForLocation_args that) {
-
 
45439
      if (that == null)
-
 
45440
        return false;
-
 
45441
 
-
 
45442
      boolean this_present_state_id = true;
-
 
45443
      boolean that_present_state_id = true;
-
 
45444
      if (this_present_state_id || that_present_state_id) {
-
 
45445
        if (!(this_present_state_id && that_present_state_id))
-
 
45446
          return false;
-
 
45447
        if (this.state_id != that.state_id)
-
 
45448
          return false;
-
 
45449
      }
-
 
45450
 
-
 
45451
      return true;
-
 
45452
    }
-
 
45453
 
-
 
45454
    @Override
-
 
45455
    public int hashCode() {
-
 
45456
      return 0;
-
 
45457
    }
-
 
45458
 
-
 
45459
    public int compareTo(getOursGoodWarehouseIdsForLocation_args other) {
-
 
45460
      if (!getClass().equals(other.getClass())) {
-
 
45461
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45462
      }
-
 
45463
 
-
 
45464
      int lastComparison = 0;
-
 
45465
      getOursGoodWarehouseIdsForLocation_args typedOther = (getOursGoodWarehouseIdsForLocation_args)other;
-
 
45466
 
-
 
45467
      lastComparison = Boolean.valueOf(isSetState_id()).compareTo(typedOther.isSetState_id());
-
 
45468
      if (lastComparison != 0) {
-
 
45469
        return lastComparison;
-
 
45470
      }
-
 
45471
      if (isSetState_id()) {
-
 
45472
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state_id, typedOther.state_id);
-
 
45473
        if (lastComparison != 0) {
-
 
45474
          return lastComparison;
-
 
45475
        }
-
 
45476
      }
-
 
45477
      return 0;
-
 
45478
    }
-
 
45479
 
-
 
45480
    public _Fields fieldForId(int fieldId) {
-
 
45481
      return _Fields.findByThriftId(fieldId);
-
 
45482
    }
-
 
45483
 
-
 
45484
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
45485
      org.apache.thrift.protocol.TField field;
-
 
45486
      iprot.readStructBegin();
-
 
45487
      while (true)
-
 
45488
      {
-
 
45489
        field = iprot.readFieldBegin();
-
 
45490
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
45491
          break;
-
 
45492
        }
-
 
45493
        switch (field.id) {
-
 
45494
          case 1: // STATE_ID
-
 
45495
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
45496
              this.state_id = iprot.readI64();
-
 
45497
              setState_idIsSet(true);
-
 
45498
            } else { 
-
 
45499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45500
            }
-
 
45501
            break;
-
 
45502
          default:
-
 
45503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45504
        }
-
 
45505
        iprot.readFieldEnd();
-
 
45506
      }
-
 
45507
      iprot.readStructEnd();
-
 
45508
      validate();
-
 
45509
    }
-
 
45510
 
-
 
45511
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
45512
      validate();
-
 
45513
 
-
 
45514
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45515
      oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
-
 
45516
      oprot.writeI64(this.state_id);
-
 
45517
      oprot.writeFieldEnd();
-
 
45518
      oprot.writeFieldStop();
-
 
45519
      oprot.writeStructEnd();
-
 
45520
    }
-
 
45521
 
-
 
45522
    @Override
-
 
45523
    public String toString() {
-
 
45524
      StringBuilder sb = new StringBuilder("getOursGoodWarehouseIdsForLocation_args(");
-
 
45525
      boolean first = true;
-
 
45526
 
-
 
45527
      sb.append("state_id:");
-
 
45528
      sb.append(this.state_id);
-
 
45529
      first = false;
-
 
45530
      sb.append(")");
-
 
45531
      return sb.toString();
-
 
45532
    }
-
 
45533
 
-
 
45534
    public void validate() throws org.apache.thrift.TException {
-
 
45535
      // check for required fields
-
 
45536
    }
-
 
45537
 
-
 
45538
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45539
      try {
-
 
45540
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45541
      } catch (org.apache.thrift.TException te) {
-
 
45542
        throw new java.io.IOException(te);
-
 
45543
      }
-
 
45544
    }
-
 
45545
 
-
 
45546
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45547
      try {
-
 
45548
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
45549
        __isset_bit_vector = new BitSet(1);
-
 
45550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45551
      } catch (org.apache.thrift.TException te) {
-
 
45552
        throw new java.io.IOException(te);
-
 
45553
      }
-
 
45554
    }
-
 
45555
 
-
 
45556
  }
-
 
45557
 
-
 
45558
  public static class getOursGoodWarehouseIdsForLocation_result implements org.apache.thrift.TBase<getOursGoodWarehouseIdsForLocation_result, getOursGoodWarehouseIdsForLocation_result._Fields>, java.io.Serializable, Cloneable   {
-
 
45559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOursGoodWarehouseIdsForLocation_result");
-
 
45560
 
-
 
45561
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
45562
 
-
 
45563
    private List<Long> success; // required
-
 
45564
 
-
 
45565
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45566
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45567
      SUCCESS((short)0, "success");
-
 
45568
 
-
 
45569
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45570
 
-
 
45571
      static {
-
 
45572
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45573
          byName.put(field.getFieldName(), field);
-
 
45574
        }
-
 
45575
      }
-
 
45576
 
-
 
45577
      /**
-
 
45578
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45579
       */
-
 
45580
      public static _Fields findByThriftId(int fieldId) {
-
 
45581
        switch(fieldId) {
-
 
45582
          case 0: // SUCCESS
-
 
45583
            return SUCCESS;
-
 
45584
          default:
-
 
45585
            return null;
-
 
45586
        }
-
 
45587
      }
-
 
45588
 
-
 
45589
      /**
-
 
45590
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45591
       * if it is not found.
-
 
45592
       */
-
 
45593
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45594
        _Fields fields = findByThriftId(fieldId);
-
 
45595
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45596
        return fields;
-
 
45597
      }
-
 
45598
 
-
 
45599
      /**
-
 
45600
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45601
       */
-
 
45602
      public static _Fields findByName(String name) {
-
 
45603
        return byName.get(name);
-
 
45604
      }
-
 
45605
 
-
 
45606
      private final short _thriftId;
-
 
45607
      private final String _fieldName;
-
 
45608
 
-
 
45609
      _Fields(short thriftId, String fieldName) {
-
 
45610
        _thriftId = thriftId;
-
 
45611
        _fieldName = fieldName;
-
 
45612
      }
-
 
45613
 
-
 
45614
      public short getThriftFieldId() {
-
 
45615
        return _thriftId;
-
 
45616
      }
-
 
45617
 
-
 
45618
      public String getFieldName() {
-
 
45619
        return _fieldName;
-
 
45620
      }
-
 
45621
    }
-
 
45622
 
-
 
45623
    // isset id assignments
-
 
45624
 
-
 
45625
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45626
    static {
-
 
45627
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45628
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45629
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
45630
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
45631
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45632
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOursGoodWarehouseIdsForLocation_result.class, metaDataMap);
-
 
45633
    }
-
 
45634
 
-
 
45635
    public getOursGoodWarehouseIdsForLocation_result() {
-
 
45636
    }
-
 
45637
 
-
 
45638
    public getOursGoodWarehouseIdsForLocation_result(
-
 
45639
      List<Long> success)
-
 
45640
    {
-
 
45641
      this();
-
 
45642
      this.success = success;
-
 
45643
    }
-
 
45644
 
-
 
45645
    /**
-
 
45646
     * Performs a deep copy on <i>other</i>.
-
 
45647
     */
-
 
45648
    public getOursGoodWarehouseIdsForLocation_result(getOursGoodWarehouseIdsForLocation_result other) {
-
 
45649
      if (other.isSetSuccess()) {
-
 
45650
        List<Long> __this__success = new ArrayList<Long>();
-
 
45651
        for (Long other_element : other.success) {
-
 
45652
          __this__success.add(other_element);
-
 
45653
        }
-
 
45654
        this.success = __this__success;
-
 
45655
      }
-
 
45656
    }
-
 
45657
 
-
 
45658
    public getOursGoodWarehouseIdsForLocation_result deepCopy() {
-
 
45659
      return new getOursGoodWarehouseIdsForLocation_result(this);
-
 
45660
    }
-
 
45661
 
-
 
45662
    @Override
-
 
45663
    public void clear() {
-
 
45664
      this.success = null;
-
 
45665
    }
-
 
45666
 
-
 
45667
    public int getSuccessSize() {
-
 
45668
      return (this.success == null) ? 0 : this.success.size();
-
 
45669
    }
-
 
45670
 
-
 
45671
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
45672
      return (this.success == null) ? null : this.success.iterator();
-
 
45673
    }
-
 
45674
 
-
 
45675
    public void addToSuccess(long elem) {
-
 
45676
      if (this.success == null) {
-
 
45677
        this.success = new ArrayList<Long>();
-
 
45678
      }
-
 
45679
      this.success.add(elem);
-
 
45680
    }
-
 
45681
 
-
 
45682
    public List<Long> getSuccess() {
-
 
45683
      return this.success;
-
 
45684
    }
-
 
45685
 
-
 
45686
    public void setSuccess(List<Long> success) {
-
 
45687
      this.success = success;
-
 
45688
    }
-
 
45689
 
-
 
45690
    public void unsetSuccess() {
-
 
45691
      this.success = null;
-
 
45692
    }
-
 
45693
 
-
 
45694
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
45695
    public boolean isSetSuccess() {
-
 
45696
      return this.success != null;
-
 
45697
    }
-
 
45698
 
-
 
45699
    public void setSuccessIsSet(boolean value) {
-
 
45700
      if (!value) {
-
 
45701
        this.success = null;
-
 
45702
      }
-
 
45703
    }
-
 
45704
 
-
 
45705
    public void setFieldValue(_Fields field, Object value) {
-
 
45706
      switch (field) {
-
 
45707
      case SUCCESS:
-
 
45708
        if (value == null) {
-
 
45709
          unsetSuccess();
-
 
45710
        } else {
-
 
45711
          setSuccess((List<Long>)value);
-
 
45712
        }
-
 
45713
        break;
-
 
45714
 
-
 
45715
      }
-
 
45716
    }
-
 
45717
 
-
 
45718
    public Object getFieldValue(_Fields field) {
-
 
45719
      switch (field) {
-
 
45720
      case SUCCESS:
-
 
45721
        return getSuccess();
-
 
45722
 
-
 
45723
      }
-
 
45724
      throw new IllegalStateException();
-
 
45725
    }
-
 
45726
 
-
 
45727
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45728
    public boolean isSet(_Fields field) {
-
 
45729
      if (field == null) {
-
 
45730
        throw new IllegalArgumentException();
-
 
45731
      }
-
 
45732
 
-
 
45733
      switch (field) {
-
 
45734
      case SUCCESS:
-
 
45735
        return isSetSuccess();
-
 
45736
      }
-
 
45737
      throw new IllegalStateException();
-
 
45738
    }
-
 
45739
 
-
 
45740
    @Override
-
 
45741
    public boolean equals(Object that) {
-
 
45742
      if (that == null)
-
 
45743
        return false;
-
 
45744
      if (that instanceof getOursGoodWarehouseIdsForLocation_result)
-
 
45745
        return this.equals((getOursGoodWarehouseIdsForLocation_result)that);
-
 
45746
      return false;
-
 
45747
    }
-
 
45748
 
-
 
45749
    public boolean equals(getOursGoodWarehouseIdsForLocation_result that) {
-
 
45750
      if (that == null)
-
 
45751
        return false;
-
 
45752
 
-
 
45753
      boolean this_present_success = true && this.isSetSuccess();
-
 
45754
      boolean that_present_success = true && that.isSetSuccess();
-
 
45755
      if (this_present_success || that_present_success) {
-
 
45756
        if (!(this_present_success && that_present_success))
-
 
45757
          return false;
-
 
45758
        if (!this.success.equals(that.success))
-
 
45759
          return false;
-
 
45760
      }
-
 
45761
 
-
 
45762
      return true;
-
 
45763
    }
-
 
45764
 
-
 
45765
    @Override
-
 
45766
    public int hashCode() {
-
 
45767
      return 0;
-
 
45768
    }
-
 
45769
 
-
 
45770
    public int compareTo(getOursGoodWarehouseIdsForLocation_result other) {
-
 
45771
      if (!getClass().equals(other.getClass())) {
-
 
45772
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45773
      }
-
 
45774
 
-
 
45775
      int lastComparison = 0;
-
 
45776
      getOursGoodWarehouseIdsForLocation_result typedOther = (getOursGoodWarehouseIdsForLocation_result)other;
-
 
45777
 
-
 
45778
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
45779
      if (lastComparison != 0) {
-
 
45780
        return lastComparison;
-
 
45781
      }
-
 
45782
      if (isSetSuccess()) {
-
 
45783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
45784
        if (lastComparison != 0) {
-
 
45785
          return lastComparison;
-
 
45786
        }
-
 
45787
      }
-
 
45788
      return 0;
-
 
45789
    }
-
 
45790
 
-
 
45791
    public _Fields fieldForId(int fieldId) {
-
 
45792
      return _Fields.findByThriftId(fieldId);
-
 
45793
    }
-
 
45794
 
-
 
45795
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
45796
      org.apache.thrift.protocol.TField field;
-
 
45797
      iprot.readStructBegin();
-
 
45798
      while (true)
-
 
45799
      {
-
 
45800
        field = iprot.readFieldBegin();
-
 
45801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
45802
          break;
-
 
45803
        }
-
 
45804
        switch (field.id) {
-
 
45805
          case 0: // SUCCESS
-
 
45806
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
45807
              {
-
 
45808
                org.apache.thrift.protocol.TList _list134 = iprot.readListBegin();
-
 
45809
                this.success = new ArrayList<Long>(_list134.size);
-
 
45810
                for (int _i135 = 0; _i135 < _list134.size; ++_i135)
-
 
45811
                {
-
 
45812
                  long _elem136; // required
-
 
45813
                  _elem136 = iprot.readI64();
-
 
45814
                  this.success.add(_elem136);
-
 
45815
                }
-
 
45816
                iprot.readListEnd();
-
 
45817
              }
-
 
45818
            } else { 
-
 
45819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45820
            }
-
 
45821
            break;
-
 
45822
          default:
-
 
45823
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45824
        }
-
 
45825
        iprot.readFieldEnd();
-
 
45826
      }
-
 
45827
      iprot.readStructEnd();
-
 
45828
      validate();
-
 
45829
    }
-
 
45830
 
-
 
45831
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
45832
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45833
 
-
 
45834
      if (this.isSetSuccess()) {
-
 
45835
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
45836
        {
-
 
45837
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
45838
          for (long _iter137 : this.success)
-
 
45839
          {
-
 
45840
            oprot.writeI64(_iter137);
-
 
45841
          }
-
 
45842
          oprot.writeListEnd();
-
 
45843
        }
-
 
45844
        oprot.writeFieldEnd();
-
 
45845
      }
-
 
45846
      oprot.writeFieldStop();
-
 
45847
      oprot.writeStructEnd();
-
 
45848
    }
-
 
45849
 
-
 
45850
    @Override
-
 
45851
    public String toString() {
-
 
45852
      StringBuilder sb = new StringBuilder("getOursGoodWarehouseIdsForLocation_result(");
45151
      boolean first = true;
45853
      boolean first = true;
45152
 
45854
 
45153
      sb.append("success:");
45855
      sb.append("success:");
45154
      if (this.success == null) {
45856
      if (this.success == null) {
45155
        sb.append("null");
45857
        sb.append("null");