Subversion Repositories SmartDukaan

Rev

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

Rev 8363 Rev 8958
Line 341... Line 341...
341
 
341
 
342
    public List<AmazonFbaInventorySnapshot> getAllAmazonFbaItemInventory() throws org.apache.thrift.TException;
342
    public List<AmazonFbaInventorySnapshot> getAllAmazonFbaItemInventory() throws org.apache.thrift.TException;
343
 
343
 
344
    public List<Long> getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException;
344
    public List<Long> getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException;
345
 
345
 
-
 
346
    public long getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source) throws org.apache.thrift.TException;
-
 
347
 
346
  }
348
  }
347
 
349
 
348
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
350
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
349
 
351
 
350
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
352
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 467... Line 469...
467
 
469
 
468
    public void getAllAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
470
    public void getAllAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
469
 
471
 
470
    public void getOursGoodWarehouseIdsForLocation(long state_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOursGoodWarehouseIdsForLocation_call> resultHandler) throws org.apache.thrift.TException;
472
    public void getOursGoodWarehouseIdsForLocation(long state_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOursGoodWarehouseIdsForLocation_call> resultHandler) throws org.apache.thrift.TException;
471
 
473
 
-
 
474
    public void getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHoldInventoryDetailForItemForWarehouseIdExceptSource_call> resultHandler) throws org.apache.thrift.TException;
-
 
475
 
472
  }
476
  }
473
 
477
 
474
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
478
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
475
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
479
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
476
      public Factory() {}
480
      public Factory() {}
Line 1948... Line 1952...
1948
        return result.success;
1952
        return result.success;
1949
      }
1953
      }
1950
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
1954
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
1951
    }
1955
    }
1952
 
1956
 
-
 
1957
    public long getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source) throws org.apache.thrift.TException
-
 
1958
    {
-
 
1959
      send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source);
-
 
1960
      return recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource();
-
 
1961
    }
-
 
1962
 
-
 
1963
    public void send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source) throws org.apache.thrift.TException
-
 
1964
    {
-
 
1965
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_args args = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args();
-
 
1966
      args.setId(id);
-
 
1967
      args.setWarehouse_id(warehouse_id);
-
 
1968
      args.setSource(source);
-
 
1969
      sendBase("getHoldInventoryDetailForItemForWarehouseIdExceptSource", args);
-
 
1970
    }
-
 
1971
 
-
 
1972
    public long recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource() throws org.apache.thrift.TException
-
 
1973
    {
-
 
1974
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_result result = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_result();
-
 
1975
      receiveBase(result, "getHoldInventoryDetailForItemForWarehouseIdExceptSource");
-
 
1976
      if (result.isSetSuccess()) {
-
 
1977
        return result.success;
-
 
1978
      }
-
 
1979
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
-
 
1980
    }
-
 
1981
 
1953
  }
1982
  }
1954
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1983
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1955
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1984
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1956
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1985
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1957
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1986
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4041... Line 4070...
4041
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4070
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4042
        return (new Client(prot)).recv_getOursGoodWarehouseIdsForLocation();
4071
        return (new Client(prot)).recv_getOursGoodWarehouseIdsForLocation();
4043
      }
4072
      }
4044
    }
4073
    }
4045
 
4074
 
-
 
4075
    public void getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<getHoldInventoryDetailForItemForWarehouseIdExceptSource_call> resultHandler) throws org.apache.thrift.TException {
-
 
4076
      checkReady();
-
 
4077
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_call method_call = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_call(id, warehouse_id, source, resultHandler, this, ___protocolFactory, ___transport);
-
 
4078
      this.___currentMethod = method_call;
-
 
4079
      ___manager.call(method_call);
-
 
4080
    }
-
 
4081
 
-
 
4082
    public static class getHoldInventoryDetailForItemForWarehouseIdExceptSource_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4083
      private long id;
-
 
4084
      private long warehouse_id;
-
 
4085
      private long source;
-
 
4086
      public getHoldInventoryDetailForItemForWarehouseIdExceptSource_call(long id, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<getHoldInventoryDetailForItemForWarehouseIdExceptSource_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 {
-
 
4087
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4088
        this.id = id;
-
 
4089
        this.warehouse_id = warehouse_id;
-
 
4090
        this.source = source;
-
 
4091
      }
-
 
4092
 
-
 
4093
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4094
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHoldInventoryDetailForItemForWarehouseIdExceptSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4095
        getHoldInventoryDetailForItemForWarehouseIdExceptSource_args args = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args();
-
 
4096
        args.setId(id);
-
 
4097
        args.setWarehouse_id(warehouse_id);
-
 
4098
        args.setSource(source);
-
 
4099
        args.write(prot);
-
 
4100
        prot.writeMessageEnd();
-
 
4101
      }
-
 
4102
 
-
 
4103
      public long getResult() throws org.apache.thrift.TException {
-
 
4104
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4105
          throw new IllegalStateException("Method call not finished!");
-
 
4106
        }
-
 
4107
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4108
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4109
        return (new Client(prot)).recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource();
-
 
4110
      }
-
 
4111
    }
-
 
4112
 
4046
  }
4113
  }
4047
 
4114
 
4048
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4115
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4049
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4116
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4050
    public Processor(I iface) {
4117
    public Processor(I iface) {
Line 4115... Line 4182...
4115
      processMap.put("addOrUpdateAmazonFbaInventory", new addOrUpdateAmazonFbaInventory());
4182
      processMap.put("addOrUpdateAmazonFbaInventory", new addOrUpdateAmazonFbaInventory());
4116
      processMap.put("addUpdateHoldInventory", new addUpdateHoldInventory());
4183
      processMap.put("addUpdateHoldInventory", new addUpdateHoldInventory());
4117
      processMap.put("getAmazonFbaItemInventory", new getAmazonFbaItemInventory());
4184
      processMap.put("getAmazonFbaItemInventory", new getAmazonFbaItemInventory());
4118
      processMap.put("getAllAmazonFbaItemInventory", new getAllAmazonFbaItemInventory());
4185
      processMap.put("getAllAmazonFbaItemInventory", new getAllAmazonFbaItemInventory());
4119
      processMap.put("getOursGoodWarehouseIdsForLocation", new getOursGoodWarehouseIdsForLocation());
4186
      processMap.put("getOursGoodWarehouseIdsForLocation", new getOursGoodWarehouseIdsForLocation());
-
 
4187
      processMap.put("getHoldInventoryDetailForItemForWarehouseIdExceptSource", new getHoldInventoryDetailForItemForWarehouseIdExceptSource());
4120
      return processMap;
4188
      return processMap;
4121
    }
4189
    }
4122
 
4190
 
4123
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4191
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4124
      public addWarehouse() {
4192
      public addWarehouse() {
Line 5198... Line 5266...
5198
        result.success = iface.getOursGoodWarehouseIdsForLocation(args.state_id);
5266
        result.success = iface.getOursGoodWarehouseIdsForLocation(args.state_id);
5199
        return result;
5267
        return result;
5200
      }
5268
      }
5201
    }
5269
    }
5202
 
5270
 
-
 
5271
    private static class getHoldInventoryDetailForItemForWarehouseIdExceptSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHoldInventoryDetailForItemForWarehouseIdExceptSource_args> {
-
 
5272
      public getHoldInventoryDetailForItemForWarehouseIdExceptSource() {
-
 
5273
        super("getHoldInventoryDetailForItemForWarehouseIdExceptSource");
-
 
5274
      }
-
 
5275
 
-
 
5276
      protected getHoldInventoryDetailForItemForWarehouseIdExceptSource_args getEmptyArgsInstance() {
-
 
5277
        return new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args();
-
 
5278
      }
-
 
5279
 
-
 
5280
      protected getHoldInventoryDetailForItemForWarehouseIdExceptSource_result getResult(I iface, getHoldInventoryDetailForItemForWarehouseIdExceptSource_args args) throws org.apache.thrift.TException {
-
 
5281
        getHoldInventoryDetailForItemForWarehouseIdExceptSource_result result = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_result();
-
 
5282
        result.success = iface.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source);
-
 
5283
        result.setSuccessIsSet(true);
-
 
5284
        return result;
-
 
5285
      }
-
 
5286
    }
-
 
5287
 
5203
  }
5288
  }
5204
 
5289
 
5205
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
5290
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
5206
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
5291
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
5207
 
5292
 
Line 45861... Line 45946...
45861
      first = false;
45946
      first = false;
45862
      sb.append(")");
45947
      sb.append(")");
45863
      return sb.toString();
45948
      return sb.toString();
45864
    }
45949
    }
45865
 
45950
 
-
 
45951
    public void validate() throws org.apache.thrift.TException {
-
 
45952
      // check for required fields
-
 
45953
    }
-
 
45954
 
-
 
45955
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45956
      try {
-
 
45957
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45958
      } catch (org.apache.thrift.TException te) {
-
 
45959
        throw new java.io.IOException(te);
-
 
45960
      }
-
 
45961
    }
-
 
45962
 
-
 
45963
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45964
      try {
-
 
45965
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45966
      } catch (org.apache.thrift.TException te) {
-
 
45967
        throw new java.io.IOException(te);
-
 
45968
      }
-
 
45969
    }
-
 
45970
 
-
 
45971
  }
-
 
45972
 
-
 
45973
  public static class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args implements org.apache.thrift.TBase<getHoldInventoryDetailForItemForWarehouseIdExceptSource_args, getHoldInventoryDetailForItemForWarehouseIdExceptSource_args._Fields>, java.io.Serializable, Cloneable   {
-
 
45974
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetailForItemForWarehouseIdExceptSource_args");
-
 
45975
 
-
 
45976
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
45977
    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);
-
 
45978
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
45979
 
-
 
45980
    private long id; // required
-
 
45981
    private long warehouse_id; // required
-
 
45982
    private long source; // required
-
 
45983
 
-
 
45984
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45985
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45986
      ID((short)1, "id"),
-
 
45987
      WAREHOUSE_ID((short)2, "warehouse_id"),
-
 
45988
      SOURCE((short)3, "source");
-
 
45989
 
-
 
45990
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45991
 
-
 
45992
      static {
-
 
45993
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45994
          byName.put(field.getFieldName(), field);
-
 
45995
        }
-
 
45996
      }
-
 
45997
 
-
 
45998
      /**
-
 
45999
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
46000
       */
-
 
46001
      public static _Fields findByThriftId(int fieldId) {
-
 
46002
        switch(fieldId) {
-
 
46003
          case 1: // ID
-
 
46004
            return ID;
-
 
46005
          case 2: // WAREHOUSE_ID
-
 
46006
            return WAREHOUSE_ID;
-
 
46007
          case 3: // SOURCE
-
 
46008
            return SOURCE;
-
 
46009
          default:
-
 
46010
            return null;
-
 
46011
        }
-
 
46012
      }
-
 
46013
 
-
 
46014
      /**
-
 
46015
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
46016
       * if it is not found.
-
 
46017
       */
-
 
46018
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
46019
        _Fields fields = findByThriftId(fieldId);
-
 
46020
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
46021
        return fields;
-
 
46022
      }
-
 
46023
 
-
 
46024
      /**
-
 
46025
       * Find the _Fields constant that matches name, or null if its not found.
-
 
46026
       */
-
 
46027
      public static _Fields findByName(String name) {
-
 
46028
        return byName.get(name);
-
 
46029
      }
-
 
46030
 
-
 
46031
      private final short _thriftId;
-
 
46032
      private final String _fieldName;
-
 
46033
 
-
 
46034
      _Fields(short thriftId, String fieldName) {
-
 
46035
        _thriftId = thriftId;
-
 
46036
        _fieldName = fieldName;
-
 
46037
      }
-
 
46038
 
-
 
46039
      public short getThriftFieldId() {
-
 
46040
        return _thriftId;
-
 
46041
      }
-
 
46042
 
-
 
46043
      public String getFieldName() {
-
 
46044
        return _fieldName;
-
 
46045
      }
-
 
46046
    }
-
 
46047
 
-
 
46048
    // isset id assignments
-
 
46049
    private static final int __ID_ISSET_ID = 0;
-
 
46050
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
-
 
46051
    private static final int __SOURCE_ISSET_ID = 2;
-
 
46052
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
46053
 
-
 
46054
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
46055
    static {
-
 
46056
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
46057
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
46059
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46060
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
46061
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46062
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
46063
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
46064
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args.class, metaDataMap);
-
 
46065
    }
-
 
46066
 
-
 
46067
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args() {
-
 
46068
    }
-
 
46069
 
-
 
46070
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(
-
 
46071
      long id,
-
 
46072
      long warehouse_id,
-
 
46073
      long source)
-
 
46074
    {
-
 
46075
      this();
-
 
46076
      this.id = id;
-
 
46077
      setIdIsSet(true);
-
 
46078
      this.warehouse_id = warehouse_id;
-
 
46079
      setWarehouse_idIsSet(true);
-
 
46080
      this.source = source;
-
 
46081
      setSourceIsSet(true);
-
 
46082
    }
-
 
46083
 
-
 
46084
    /**
-
 
46085
     * Performs a deep copy on <i>other</i>.
-
 
46086
     */
-
 
46087
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args other) {
-
 
46088
      __isset_bit_vector.clear();
-
 
46089
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
46090
      this.id = other.id;
-
 
46091
      this.warehouse_id = other.warehouse_id;
-
 
46092
      this.source = other.source;
-
 
46093
    }
-
 
46094
 
-
 
46095
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args deepCopy() {
-
 
46096
      return new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(this);
-
 
46097
    }
-
 
46098
 
-
 
46099
    @Override
-
 
46100
    public void clear() {
-
 
46101
      setIdIsSet(false);
-
 
46102
      this.id = 0;
-
 
46103
      setWarehouse_idIsSet(false);
-
 
46104
      this.warehouse_id = 0;
-
 
46105
      setSourceIsSet(false);
-
 
46106
      this.source = 0;
-
 
46107
    }
-
 
46108
 
-
 
46109
    public long getId() {
-
 
46110
      return this.id;
-
 
46111
    }
-
 
46112
 
-
 
46113
    public void setId(long id) {
-
 
46114
      this.id = id;
-
 
46115
      setIdIsSet(true);
-
 
46116
    }
-
 
46117
 
-
 
46118
    public void unsetId() {
-
 
46119
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
46120
    }
-
 
46121
 
-
 
46122
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
46123
    public boolean isSetId() {
-
 
46124
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
46125
    }
-
 
46126
 
-
 
46127
    public void setIdIsSet(boolean value) {
-
 
46128
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
46129
    }
-
 
46130
 
-
 
46131
    public long getWarehouse_id() {
-
 
46132
      return this.warehouse_id;
-
 
46133
    }
-
 
46134
 
-
 
46135
    public void setWarehouse_id(long warehouse_id) {
-
 
46136
      this.warehouse_id = warehouse_id;
-
 
46137
      setWarehouse_idIsSet(true);
-
 
46138
    }
-
 
46139
 
-
 
46140
    public void unsetWarehouse_id() {
-
 
46141
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
46142
    }
-
 
46143
 
-
 
46144
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
-
 
46145
    public boolean isSetWarehouse_id() {
-
 
46146
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
46147
    }
-
 
46148
 
-
 
46149
    public void setWarehouse_idIsSet(boolean value) {
-
 
46150
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
46151
    }
-
 
46152
 
-
 
46153
    public long getSource() {
-
 
46154
      return this.source;
-
 
46155
    }
-
 
46156
 
-
 
46157
    public void setSource(long source) {
-
 
46158
      this.source = source;
-
 
46159
      setSourceIsSet(true);
-
 
46160
    }
-
 
46161
 
-
 
46162
    public void unsetSource() {
-
 
46163
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
46164
    }
-
 
46165
 
-
 
46166
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
46167
    public boolean isSetSource() {
-
 
46168
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
46169
    }
-
 
46170
 
-
 
46171
    public void setSourceIsSet(boolean value) {
-
 
46172
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
46173
    }
-
 
46174
 
-
 
46175
    public void setFieldValue(_Fields field, Object value) {
-
 
46176
      switch (field) {
-
 
46177
      case ID:
-
 
46178
        if (value == null) {
-
 
46179
          unsetId();
-
 
46180
        } else {
-
 
46181
          setId((Long)value);
-
 
46182
        }
-
 
46183
        break;
-
 
46184
 
-
 
46185
      case WAREHOUSE_ID:
-
 
46186
        if (value == null) {
-
 
46187
          unsetWarehouse_id();
-
 
46188
        } else {
-
 
46189
          setWarehouse_id((Long)value);
-
 
46190
        }
-
 
46191
        break;
-
 
46192
 
-
 
46193
      case SOURCE:
-
 
46194
        if (value == null) {
-
 
46195
          unsetSource();
-
 
46196
        } else {
-
 
46197
          setSource((Long)value);
-
 
46198
        }
-
 
46199
        break;
-
 
46200
 
-
 
46201
      }
-
 
46202
    }
-
 
46203
 
-
 
46204
    public Object getFieldValue(_Fields field) {
-
 
46205
      switch (field) {
-
 
46206
      case ID:
-
 
46207
        return Long.valueOf(getId());
-
 
46208
 
-
 
46209
      case WAREHOUSE_ID:
-
 
46210
        return Long.valueOf(getWarehouse_id());
-
 
46211
 
-
 
46212
      case SOURCE:
-
 
46213
        return Long.valueOf(getSource());
-
 
46214
 
-
 
46215
      }
-
 
46216
      throw new IllegalStateException();
-
 
46217
    }
-
 
46218
 
-
 
46219
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
46220
    public boolean isSet(_Fields field) {
-
 
46221
      if (field == null) {
-
 
46222
        throw new IllegalArgumentException();
-
 
46223
      }
-
 
46224
 
-
 
46225
      switch (field) {
-
 
46226
      case ID:
-
 
46227
        return isSetId();
-
 
46228
      case WAREHOUSE_ID:
-
 
46229
        return isSetWarehouse_id();
-
 
46230
      case SOURCE:
-
 
46231
        return isSetSource();
-
 
46232
      }
-
 
46233
      throw new IllegalStateException();
-
 
46234
    }
-
 
46235
 
-
 
46236
    @Override
-
 
46237
    public boolean equals(Object that) {
-
 
46238
      if (that == null)
-
 
46239
        return false;
-
 
46240
      if (that instanceof getHoldInventoryDetailForItemForWarehouseIdExceptSource_args)
-
 
46241
        return this.equals((getHoldInventoryDetailForItemForWarehouseIdExceptSource_args)that);
-
 
46242
      return false;
-
 
46243
    }
-
 
46244
 
-
 
46245
    public boolean equals(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args that) {
-
 
46246
      if (that == null)
-
 
46247
        return false;
-
 
46248
 
-
 
46249
      boolean this_present_id = true;
-
 
46250
      boolean that_present_id = true;
-
 
46251
      if (this_present_id || that_present_id) {
-
 
46252
        if (!(this_present_id && that_present_id))
-
 
46253
          return false;
-
 
46254
        if (this.id != that.id)
-
 
46255
          return false;
-
 
46256
      }
-
 
46257
 
-
 
46258
      boolean this_present_warehouse_id = true;
-
 
46259
      boolean that_present_warehouse_id = true;
-
 
46260
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
46261
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
46262
          return false;
-
 
46263
        if (this.warehouse_id != that.warehouse_id)
-
 
46264
          return false;
-
 
46265
      }
-
 
46266
 
-
 
46267
      boolean this_present_source = true;
-
 
46268
      boolean that_present_source = true;
-
 
46269
      if (this_present_source || that_present_source) {
-
 
46270
        if (!(this_present_source && that_present_source))
-
 
46271
          return false;
-
 
46272
        if (this.source != that.source)
-
 
46273
          return false;
-
 
46274
      }
-
 
46275
 
-
 
46276
      return true;
-
 
46277
    }
-
 
46278
 
-
 
46279
    @Override
-
 
46280
    public int hashCode() {
-
 
46281
      return 0;
-
 
46282
    }
-
 
46283
 
-
 
46284
    public int compareTo(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args other) {
-
 
46285
      if (!getClass().equals(other.getClass())) {
-
 
46286
        return getClass().getName().compareTo(other.getClass().getName());
-
 
46287
      }
-
 
46288
 
-
 
46289
      int lastComparison = 0;
-
 
46290
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_args typedOther = (getHoldInventoryDetailForItemForWarehouseIdExceptSource_args)other;
-
 
46291
 
-
 
46292
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
46293
      if (lastComparison != 0) {
-
 
46294
        return lastComparison;
-
 
46295
      }
-
 
46296
      if (isSetId()) {
-
 
46297
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
46298
        if (lastComparison != 0) {
-
 
46299
          return lastComparison;
-
 
46300
        }
-
 
46301
      }
-
 
46302
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
-
 
46303
      if (lastComparison != 0) {
-
 
46304
        return lastComparison;
-
 
46305
      }
-
 
46306
      if (isSetWarehouse_id()) {
-
 
46307
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
-
 
46308
        if (lastComparison != 0) {
-
 
46309
          return lastComparison;
-
 
46310
        }
-
 
46311
      }
-
 
46312
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
46313
      if (lastComparison != 0) {
-
 
46314
        return lastComparison;
-
 
46315
      }
-
 
46316
      if (isSetSource()) {
-
 
46317
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
46318
        if (lastComparison != 0) {
-
 
46319
          return lastComparison;
-
 
46320
        }
-
 
46321
      }
-
 
46322
      return 0;
-
 
46323
    }
-
 
46324
 
-
 
46325
    public _Fields fieldForId(int fieldId) {
-
 
46326
      return _Fields.findByThriftId(fieldId);
-
 
46327
    }
-
 
46328
 
-
 
46329
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46330
      org.apache.thrift.protocol.TField field;
-
 
46331
      iprot.readStructBegin();
-
 
46332
      while (true)
-
 
46333
      {
-
 
46334
        field = iprot.readFieldBegin();
-
 
46335
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46336
          break;
-
 
46337
        }
-
 
46338
        switch (field.id) {
-
 
46339
          case 1: // ID
-
 
46340
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
46341
              this.id = iprot.readI64();
-
 
46342
              setIdIsSet(true);
-
 
46343
            } else { 
-
 
46344
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46345
            }
-
 
46346
            break;
-
 
46347
          case 2: // WAREHOUSE_ID
-
 
46348
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
46349
              this.warehouse_id = iprot.readI64();
-
 
46350
              setWarehouse_idIsSet(true);
-
 
46351
            } else { 
-
 
46352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46353
            }
-
 
46354
            break;
-
 
46355
          case 3: // SOURCE
-
 
46356
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
46357
              this.source = iprot.readI64();
-
 
46358
              setSourceIsSet(true);
-
 
46359
            } else { 
-
 
46360
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46361
            }
-
 
46362
            break;
-
 
46363
          default:
-
 
46364
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46365
        }
-
 
46366
        iprot.readFieldEnd();
-
 
46367
      }
-
 
46368
      iprot.readStructEnd();
-
 
46369
      validate();
-
 
46370
    }
-
 
46371
 
-
 
46372
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46373
      validate();
-
 
46374
 
-
 
46375
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46376
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
46377
      oprot.writeI64(this.id);
-
 
46378
      oprot.writeFieldEnd();
-
 
46379
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
46380
      oprot.writeI64(this.warehouse_id);
-
 
46381
      oprot.writeFieldEnd();
-
 
46382
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
46383
      oprot.writeI64(this.source);
-
 
46384
      oprot.writeFieldEnd();
-
 
46385
      oprot.writeFieldStop();
-
 
46386
      oprot.writeStructEnd();
-
 
46387
    }
-
 
46388
 
-
 
46389
    @Override
-
 
46390
    public String toString() {
-
 
46391
      StringBuilder sb = new StringBuilder("getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(");
-
 
46392
      boolean first = true;
-
 
46393
 
-
 
46394
      sb.append("id:");
-
 
46395
      sb.append(this.id);
-
 
46396
      first = false;
-
 
46397
      if (!first) sb.append(", ");
-
 
46398
      sb.append("warehouse_id:");
-
 
46399
      sb.append(this.warehouse_id);
-
 
46400
      first = false;
-
 
46401
      if (!first) sb.append(", ");
-
 
46402
      sb.append("source:");
-
 
46403
      sb.append(this.source);
-
 
46404
      first = false;
-
 
46405
      sb.append(")");
-
 
46406
      return sb.toString();
-
 
46407
    }
-
 
46408
 
-
 
46409
    public void validate() throws org.apache.thrift.TException {
-
 
46410
      // check for required fields
-
 
46411
    }
-
 
46412
 
-
 
46413
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
46414
      try {
-
 
46415
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
46416
      } catch (org.apache.thrift.TException te) {
-
 
46417
        throw new java.io.IOException(te);
-
 
46418
      }
-
 
46419
    }
-
 
46420
 
-
 
46421
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
46422
      try {
-
 
46423
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
46424
        __isset_bit_vector = new BitSet(1);
-
 
46425
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
46426
      } catch (org.apache.thrift.TException te) {
-
 
46427
        throw new java.io.IOException(te);
-
 
46428
      }
-
 
46429
    }
-
 
46430
 
-
 
46431
  }
-
 
46432
 
-
 
46433
  public static class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result implements org.apache.thrift.TBase<getHoldInventoryDetailForItemForWarehouseIdExceptSource_result, getHoldInventoryDetailForItemForWarehouseIdExceptSource_result._Fields>, java.io.Serializable, Cloneable   {
-
 
46434
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetailForItemForWarehouseIdExceptSource_result");
-
 
46435
 
-
 
46436
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
46437
 
-
 
46438
    private long success; // required
-
 
46439
 
-
 
46440
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
46441
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
46442
      SUCCESS((short)0, "success");
-
 
46443
 
-
 
46444
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
46445
 
-
 
46446
      static {
-
 
46447
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
46448
          byName.put(field.getFieldName(), field);
-
 
46449
        }
-
 
46450
      }
-
 
46451
 
-
 
46452
      /**
-
 
46453
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
46454
       */
-
 
46455
      public static _Fields findByThriftId(int fieldId) {
-
 
46456
        switch(fieldId) {
-
 
46457
          case 0: // SUCCESS
-
 
46458
            return SUCCESS;
-
 
46459
          default:
-
 
46460
            return null;
-
 
46461
        }
-
 
46462
      }
-
 
46463
 
-
 
46464
      /**
-
 
46465
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
46466
       * if it is not found.
-
 
46467
       */
-
 
46468
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
46469
        _Fields fields = findByThriftId(fieldId);
-
 
46470
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
46471
        return fields;
-
 
46472
      }
-
 
46473
 
-
 
46474
      /**
-
 
46475
       * Find the _Fields constant that matches name, or null if its not found.
-
 
46476
       */
-
 
46477
      public static _Fields findByName(String name) {
-
 
46478
        return byName.get(name);
-
 
46479
      }
-
 
46480
 
-
 
46481
      private final short _thriftId;
-
 
46482
      private final String _fieldName;
-
 
46483
 
-
 
46484
      _Fields(short thriftId, String fieldName) {
-
 
46485
        _thriftId = thriftId;
-
 
46486
        _fieldName = fieldName;
-
 
46487
      }
-
 
46488
 
-
 
46489
      public short getThriftFieldId() {
-
 
46490
        return _thriftId;
-
 
46491
      }
-
 
46492
 
-
 
46493
      public String getFieldName() {
-
 
46494
        return _fieldName;
-
 
46495
      }
-
 
46496
    }
-
 
46497
 
-
 
46498
    // isset id assignments
-
 
46499
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
46500
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
46501
 
-
 
46502
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
46503
    static {
-
 
46504
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
46505
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46506
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
46507
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
46508
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result.class, metaDataMap);
-
 
46509
    }
-
 
46510
 
-
 
46511
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result() {
-
 
46512
    }
-
 
46513
 
-
 
46514
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(
-
 
46515
      long success)
-
 
46516
    {
-
 
46517
      this();
-
 
46518
      this.success = success;
-
 
46519
      setSuccessIsSet(true);
-
 
46520
    }
-
 
46521
 
-
 
46522
    /**
-
 
46523
     * Performs a deep copy on <i>other</i>.
-
 
46524
     */
-
 
46525
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result other) {
-
 
46526
      __isset_bit_vector.clear();
-
 
46527
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
46528
      this.success = other.success;
-
 
46529
    }
-
 
46530
 
-
 
46531
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result deepCopy() {
-
 
46532
      return new getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(this);
-
 
46533
    }
-
 
46534
 
-
 
46535
    @Override
-
 
46536
    public void clear() {
-
 
46537
      setSuccessIsSet(false);
-
 
46538
      this.success = 0;
-
 
46539
    }
-
 
46540
 
-
 
46541
    public long getSuccess() {
-
 
46542
      return this.success;
-
 
46543
    }
-
 
46544
 
-
 
46545
    public void setSuccess(long success) {
-
 
46546
      this.success = success;
-
 
46547
      setSuccessIsSet(true);
-
 
46548
    }
-
 
46549
 
-
 
46550
    public void unsetSuccess() {
-
 
46551
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
46552
    }
-
 
46553
 
-
 
46554
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
46555
    public boolean isSetSuccess() {
-
 
46556
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
46557
    }
-
 
46558
 
-
 
46559
    public void setSuccessIsSet(boolean value) {
-
 
46560
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
46561
    }
-
 
46562
 
-
 
46563
    public void setFieldValue(_Fields field, Object value) {
-
 
46564
      switch (field) {
-
 
46565
      case SUCCESS:
-
 
46566
        if (value == null) {
-
 
46567
          unsetSuccess();
-
 
46568
        } else {
-
 
46569
          setSuccess((Long)value);
-
 
46570
        }
-
 
46571
        break;
-
 
46572
 
-
 
46573
      }
-
 
46574
    }
-
 
46575
 
-
 
46576
    public Object getFieldValue(_Fields field) {
-
 
46577
      switch (field) {
-
 
46578
      case SUCCESS:
-
 
46579
        return Long.valueOf(getSuccess());
-
 
46580
 
-
 
46581
      }
-
 
46582
      throw new IllegalStateException();
-
 
46583
    }
-
 
46584
 
-
 
46585
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
46586
    public boolean isSet(_Fields field) {
-
 
46587
      if (field == null) {
-
 
46588
        throw new IllegalArgumentException();
-
 
46589
      }
-
 
46590
 
-
 
46591
      switch (field) {
-
 
46592
      case SUCCESS:
-
 
46593
        return isSetSuccess();
-
 
46594
      }
-
 
46595
      throw new IllegalStateException();
-
 
46596
    }
-
 
46597
 
-
 
46598
    @Override
-
 
46599
    public boolean equals(Object that) {
-
 
46600
      if (that == null)
-
 
46601
        return false;
-
 
46602
      if (that instanceof getHoldInventoryDetailForItemForWarehouseIdExceptSource_result)
-
 
46603
        return this.equals((getHoldInventoryDetailForItemForWarehouseIdExceptSource_result)that);
-
 
46604
      return false;
-
 
46605
    }
-
 
46606
 
-
 
46607
    public boolean equals(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result that) {
-
 
46608
      if (that == null)
-
 
46609
        return false;
-
 
46610
 
-
 
46611
      boolean this_present_success = true;
-
 
46612
      boolean that_present_success = true;
-
 
46613
      if (this_present_success || that_present_success) {
-
 
46614
        if (!(this_present_success && that_present_success))
-
 
46615
          return false;
-
 
46616
        if (this.success != that.success)
-
 
46617
          return false;
-
 
46618
      }
-
 
46619
 
-
 
46620
      return true;
-
 
46621
    }
-
 
46622
 
-
 
46623
    @Override
-
 
46624
    public int hashCode() {
-
 
46625
      return 0;
-
 
46626
    }
-
 
46627
 
-
 
46628
    public int compareTo(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result other) {
-
 
46629
      if (!getClass().equals(other.getClass())) {
-
 
46630
        return getClass().getName().compareTo(other.getClass().getName());
-
 
46631
      }
-
 
46632
 
-
 
46633
      int lastComparison = 0;
-
 
46634
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_result typedOther = (getHoldInventoryDetailForItemForWarehouseIdExceptSource_result)other;
-
 
46635
 
-
 
46636
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
46637
      if (lastComparison != 0) {
-
 
46638
        return lastComparison;
-
 
46639
      }
-
 
46640
      if (isSetSuccess()) {
-
 
46641
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
46642
        if (lastComparison != 0) {
-
 
46643
          return lastComparison;
-
 
46644
        }
-
 
46645
      }
-
 
46646
      return 0;
-
 
46647
    }
-
 
46648
 
-
 
46649
    public _Fields fieldForId(int fieldId) {
-
 
46650
      return _Fields.findByThriftId(fieldId);
-
 
46651
    }
-
 
46652
 
-
 
46653
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46654
      org.apache.thrift.protocol.TField field;
-
 
46655
      iprot.readStructBegin();
-
 
46656
      while (true)
-
 
46657
      {
-
 
46658
        field = iprot.readFieldBegin();
-
 
46659
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46660
          break;
-
 
46661
        }
-
 
46662
        switch (field.id) {
-
 
46663
          case 0: // SUCCESS
-
 
46664
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
46665
              this.success = iprot.readI64();
-
 
46666
              setSuccessIsSet(true);
-
 
46667
            } else { 
-
 
46668
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46669
            }
-
 
46670
            break;
-
 
46671
          default:
-
 
46672
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46673
        }
-
 
46674
        iprot.readFieldEnd();
-
 
46675
      }
-
 
46676
      iprot.readStructEnd();
-
 
46677
      validate();
-
 
46678
    }
-
 
46679
 
-
 
46680
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46681
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46682
 
-
 
46683
      if (this.isSetSuccess()) {
-
 
46684
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
46685
        oprot.writeI64(this.success);
-
 
46686
        oprot.writeFieldEnd();
-
 
46687
      }
-
 
46688
      oprot.writeFieldStop();
-
 
46689
      oprot.writeStructEnd();
-
 
46690
    }
-
 
46691
 
-
 
46692
    @Override
-
 
46693
    public String toString() {
-
 
46694
      StringBuilder sb = new StringBuilder("getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(");
-
 
46695
      boolean first = true;
-
 
46696
 
-
 
46697
      sb.append("success:");
-
 
46698
      sb.append(this.success);
-
 
46699
      first = false;
-
 
46700
      sb.append(")");
-
 
46701
      return sb.toString();
-
 
46702
    }
-
 
46703
 
45866
    public void validate() throws org.apache.thrift.TException {
46704
    public void validate() throws org.apache.thrift.TException {
45867
      // check for required fields
46705
      // check for required fields
45868
    }
46706
    }
45869
 
46707
 
45870
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46708
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {