Subversion Repositories SmartDukaan

Rev

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

Rev 5711 Rev 6322
Line 135... Line 135...
135
    /**
135
    /**
136
     * Fetches the stock inventory age week-wise
136
     * Fetches the stock inventory age week-wise
137
     */
137
     */
138
    public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException;
138
    public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException;
139
 
139
 
-
 
140
    /**
-
 
141
     * Fetches the scanRecords for a given item for a given time interval
-
 
142
     * 
-
 
143
     * @param itemId
-
 
144
     * @param fromDate
-
 
145
     * @param toDate
-
 
146
     */
-
 
147
    public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException;
-
 
148
 
-
 
149
    /**
-
 
150
     * Fetches the scanRecords for a given serialNumber for a given time interval
-
 
151
     * 
-
 
152
     * @param serialNumber
-
 
153
     */
-
 
154
    public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException;
-
 
155
 
140
  }
156
  }
141
 
157
 
142
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
158
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
143
 
159
 
144
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
160
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 167... Line 183...
167
 
183
 
168
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
184
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
169
 
185
 
170
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
186
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
171
 
187
 
-
 
188
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
189
 
-
 
190
    public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
-
 
191
 
172
  }
192
  }
173
 
193
 
174
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
194
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
175
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
195
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
176
      public Factory() {}
196
      public Factory() {}
Line 545... Line 565...
545
        return result.success;
565
        return result.success;
546
      }
566
      }
547
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
567
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
548
    }
568
    }
549
 
569
 
-
 
570
    public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
-
 
571
    {
-
 
572
      send_getInventoryScansForItem(itemId, fromDate, toDate);
-
 
573
      return recv_getInventoryScansForItem();
-
 
574
    }
-
 
575
 
-
 
576
    public void send_getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
-
 
577
    {
-
 
578
      getInventoryScansForItem_args args = new getInventoryScansForItem_args();
-
 
579
      args.setItemId(itemId);
-
 
580
      args.setFromDate(fromDate);
-
 
581
      args.setToDate(toDate);
-
 
582
      sendBase("getInventoryScansForItem", args);
-
 
583
    }
-
 
584
 
-
 
585
    public List<Scan> recv_getInventoryScansForItem() throws org.apache.thrift.TException
-
 
586
    {
-
 
587
      getInventoryScansForItem_result result = new getInventoryScansForItem_result();
-
 
588
      receiveBase(result, "getInventoryScansForItem");
-
 
589
      if (result.isSetSuccess()) {
-
 
590
        return result.success;
-
 
591
      }
-
 
592
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
-
 
593
    }
-
 
594
 
-
 
595
    public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException
-
 
596
    {
-
 
597
      send_getScanRecordsForSerialNumber(serialNumber);
-
 
598
      return recv_getScanRecordsForSerialNumber();
-
 
599
    }
-
 
600
 
-
 
601
    public void send_getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException
-
 
602
    {
-
 
603
      getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
-
 
604
      args.setSerialNumber(serialNumber);
-
 
605
      sendBase("getScanRecordsForSerialNumber", args);
-
 
606
    }
-
 
607
 
-
 
608
    public List<Scan> recv_getScanRecordsForSerialNumber() throws org.apache.thrift.TException
-
 
609
    {
-
 
610
      getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
-
 
611
      receiveBase(result, "getScanRecordsForSerialNumber");
-
 
612
      if (result.isSetSuccess()) {
-
 
613
        return result.success;
-
 
614
      }
-
 
615
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
-
 
616
    }
-
 
617
 
550
  }
618
  }
551
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
619
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
552
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
620
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
553
      private org.apache.thrift.async.TAsyncClientManager clientManager;
621
      private org.apache.thrift.async.TAsyncClientManager clientManager;
554
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
622
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1059... Line 1127...
1059
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1127
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1060
        return (new Client(prot)).recv_getInventoryAge();
1128
        return (new Client(prot)).recv_getInventoryAge();
1061
      }
1129
      }
1062
    }
1130
    }
1063
 
1131
 
-
 
1132
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
1133
      checkReady();
-
 
1134
      getInventoryScansForItem_call method_call = new getInventoryScansForItem_call(itemId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
1135
      this.___currentMethod = method_call;
-
 
1136
      ___manager.call(method_call);
-
 
1137
    }
-
 
1138
 
-
 
1139
    public static class getInventoryScansForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1140
      private long itemId;
-
 
1141
      private long fromDate;
-
 
1142
      private long toDate;
-
 
1143
      public getInventoryScansForItem_call(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_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 {
-
 
1144
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1145
        this.itemId = itemId;
-
 
1146
        this.fromDate = fromDate;
-
 
1147
        this.toDate = toDate;
-
 
1148
      }
-
 
1149
 
-
 
1150
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1151
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryScansForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1152
        getInventoryScansForItem_args args = new getInventoryScansForItem_args();
-
 
1153
        args.setItemId(itemId);
-
 
1154
        args.setFromDate(fromDate);
-
 
1155
        args.setToDate(toDate);
-
 
1156
        args.write(prot);
-
 
1157
        prot.writeMessageEnd();
-
 
1158
      }
-
 
1159
 
-
 
1160
      public List<Scan> getResult() throws org.apache.thrift.TException {
-
 
1161
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1162
          throw new IllegalStateException("Method call not finished!");
-
 
1163
        }
-
 
1164
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1165
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1166
        return (new Client(prot)).recv_getInventoryScansForItem();
-
 
1167
      }
-
 
1168
    }
-
 
1169
 
-
 
1170
    public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException {
-
 
1171
      checkReady();
-
 
1172
      getScanRecordsForSerialNumber_call method_call = new getScanRecordsForSerialNumber_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
-
 
1173
      this.___currentMethod = method_call;
-
 
1174
      ___manager.call(method_call);
-
 
1175
    }
-
 
1176
 
-
 
1177
    public static class getScanRecordsForSerialNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1178
      private long serialNumber;
-
 
1179
      public getScanRecordsForSerialNumber_call(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_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 {
-
 
1180
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1181
        this.serialNumber = serialNumber;
-
 
1182
      }
-
 
1183
 
-
 
1184
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1185
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScanRecordsForSerialNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1186
        getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
-
 
1187
        args.setSerialNumber(serialNumber);
-
 
1188
        args.write(prot);
-
 
1189
        prot.writeMessageEnd();
-
 
1190
      }
-
 
1191
 
-
 
1192
      public List<Scan> getResult() throws org.apache.thrift.TException {
-
 
1193
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1194
          throw new IllegalStateException("Method call not finished!");
-
 
1195
        }
-
 
1196
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1197
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1198
        return (new Client(prot)).recv_getScanRecordsForSerialNumber();
-
 
1199
      }
-
 
1200
    }
-
 
1201
 
1064
  }
1202
  }
1065
 
1203
 
1066
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1204
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1067
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1205
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1068
    public Processor(I iface) {
1206
    public Processor(I iface) {
Line 1086... Line 1224...
1086
      processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
1224
      processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
1087
      processMap.put("getPurchaseScans", new getPurchaseScans());
1225
      processMap.put("getPurchaseScans", new getPurchaseScans());
1088
      processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
1226
      processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
1089
      processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
1227
      processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
1090
      processMap.put("getInventoryAge", new getInventoryAge());
1228
      processMap.put("getInventoryAge", new getInventoryAge());
-
 
1229
      processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
-
 
1230
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
1091
      return processMap;
1231
      return processMap;
1092
    }
1232
    }
1093
 
1233
 
1094
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
1234
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
1095
      public getInventoryItem() {
1235
      public getInventoryItem() {
Line 1345... Line 1485...
1345
        result.success = iface.getInventoryAge();
1485
        result.success = iface.getInventoryAge();
1346
        return result;
1486
        return result;
1347
      }
1487
      }
1348
    }
1488
    }
1349
 
1489
 
-
 
1490
    private static class getInventoryScansForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryScansForItem_args> {
-
 
1491
      public getInventoryScansForItem() {
-
 
1492
        super("getInventoryScansForItem");
-
 
1493
      }
-
 
1494
 
-
 
1495
      protected getInventoryScansForItem_args getEmptyArgsInstance() {
-
 
1496
        return new getInventoryScansForItem_args();
-
 
1497
      }
-
 
1498
 
-
 
1499
      protected getInventoryScansForItem_result getResult(I iface, getInventoryScansForItem_args args) throws org.apache.thrift.TException {
-
 
1500
        getInventoryScansForItem_result result = new getInventoryScansForItem_result();
-
 
1501
        result.success = iface.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate);
-
 
1502
        return result;
-
 
1503
      }
-
 
1504
    }
-
 
1505
 
-
 
1506
    private static class getScanRecordsForSerialNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScanRecordsForSerialNumber_args> {
-
 
1507
      public getScanRecordsForSerialNumber() {
-
 
1508
        super("getScanRecordsForSerialNumber");
-
 
1509
      }
-
 
1510
 
-
 
1511
      protected getScanRecordsForSerialNumber_args getEmptyArgsInstance() {
-
 
1512
        return new getScanRecordsForSerialNumber_args();
-
 
1513
      }
-
 
1514
 
-
 
1515
      protected getScanRecordsForSerialNumber_result getResult(I iface, getScanRecordsForSerialNumber_args args) throws org.apache.thrift.TException {
-
 
1516
        getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
-
 
1517
        result.success = iface.getScanRecordsForSerialNumber(args.serialNumber);
-
 
1518
        return result;
-
 
1519
      }
-
 
1520
    }
-
 
1521
 
1350
  }
1522
  }
1351
 
1523
 
1352
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
1524
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
1353
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
1525
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
1354
 
1526
 
Line 11695... Line 11867...
11695
      boolean first = true;
11867
      boolean first = true;
11696
 
11868
 
11697
      sb.append("success:");
11869
      sb.append("success:");
11698
      if (this.success == null) {
11870
      if (this.success == null) {
11699
        sb.append("null");
11871
        sb.append("null");
-
 
11872
      } else {
-
 
11873
        sb.append(this.success);
-
 
11874
      }
-
 
11875
      first = false;
-
 
11876
      sb.append(")");
-
 
11877
      return sb.toString();
-
 
11878
    }
-
 
11879
 
-
 
11880
    public void validate() throws org.apache.thrift.TException {
-
 
11881
      // check for required fields
-
 
11882
    }
-
 
11883
 
-
 
11884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11885
      try {
-
 
11886
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11887
      } catch (org.apache.thrift.TException te) {
-
 
11888
        throw new java.io.IOException(te);
-
 
11889
      }
-
 
11890
    }
-
 
11891
 
-
 
11892
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11893
      try {
-
 
11894
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11895
      } catch (org.apache.thrift.TException te) {
-
 
11896
        throw new java.io.IOException(te);
-
 
11897
      }
-
 
11898
    }
-
 
11899
 
-
 
11900
  }
-
 
11901
 
-
 
11902
  public static class getInventoryScansForItem_args implements org.apache.thrift.TBase<getInventoryScansForItem_args, getInventoryScansForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
11903
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_args");
-
 
11904
 
-
 
11905
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
11906
    private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
11907
    private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
11908
 
-
 
11909
    private long itemId; // required
-
 
11910
    private long fromDate; // required
-
 
11911
    private long toDate; // required
-
 
11912
 
-
 
11913
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11914
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11915
      ITEM_ID((short)1, "itemId"),
-
 
11916
      FROM_DATE((short)2, "fromDate"),
-
 
11917
      TO_DATE((short)3, "toDate");
-
 
11918
 
-
 
11919
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11920
 
-
 
11921
      static {
-
 
11922
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11923
          byName.put(field.getFieldName(), field);
-
 
11924
        }
-
 
11925
      }
-
 
11926
 
-
 
11927
      /**
-
 
11928
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11929
       */
-
 
11930
      public static _Fields findByThriftId(int fieldId) {
-
 
11931
        switch(fieldId) {
-
 
11932
          case 1: // ITEM_ID
-
 
11933
            return ITEM_ID;
-
 
11934
          case 2: // FROM_DATE
-
 
11935
            return FROM_DATE;
-
 
11936
          case 3: // TO_DATE
-
 
11937
            return TO_DATE;
-
 
11938
          default:
-
 
11939
            return null;
-
 
11940
        }
-
 
11941
      }
-
 
11942
 
-
 
11943
      /**
-
 
11944
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11945
       * if it is not found.
-
 
11946
       */
-
 
11947
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11948
        _Fields fields = findByThriftId(fieldId);
-
 
11949
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11950
        return fields;
-
 
11951
      }
-
 
11952
 
-
 
11953
      /**
-
 
11954
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11955
       */
-
 
11956
      public static _Fields findByName(String name) {
-
 
11957
        return byName.get(name);
-
 
11958
      }
-
 
11959
 
-
 
11960
      private final short _thriftId;
-
 
11961
      private final String _fieldName;
-
 
11962
 
-
 
11963
      _Fields(short thriftId, String fieldName) {
-
 
11964
        _thriftId = thriftId;
-
 
11965
        _fieldName = fieldName;
-
 
11966
      }
-
 
11967
 
-
 
11968
      public short getThriftFieldId() {
-
 
11969
        return _thriftId;
-
 
11970
      }
-
 
11971
 
-
 
11972
      public String getFieldName() {
-
 
11973
        return _fieldName;
-
 
11974
      }
-
 
11975
    }
-
 
11976
 
-
 
11977
    // isset id assignments
-
 
11978
    private static final int __ITEMID_ISSET_ID = 0;
-
 
11979
    private static final int __FROMDATE_ISSET_ID = 1;
-
 
11980
    private static final int __TODATE_ISSET_ID = 2;
-
 
11981
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
11982
 
-
 
11983
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11984
    static {
-
 
11985
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11986
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11987
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11988
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11989
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11990
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11991
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11992
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11993
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_args.class, metaDataMap);
-
 
11994
    }
-
 
11995
 
-
 
11996
    public getInventoryScansForItem_args() {
-
 
11997
    }
-
 
11998
 
-
 
11999
    public getInventoryScansForItem_args(
-
 
12000
      long itemId,
-
 
12001
      long fromDate,
-
 
12002
      long toDate)
-
 
12003
    {
-
 
12004
      this();
-
 
12005
      this.itemId = itemId;
-
 
12006
      setItemIdIsSet(true);
-
 
12007
      this.fromDate = fromDate;
-
 
12008
      setFromDateIsSet(true);
-
 
12009
      this.toDate = toDate;
-
 
12010
      setToDateIsSet(true);
-
 
12011
    }
-
 
12012
 
-
 
12013
    /**
-
 
12014
     * Performs a deep copy on <i>other</i>.
-
 
12015
     */
-
 
12016
    public getInventoryScansForItem_args(getInventoryScansForItem_args other) {
-
 
12017
      __isset_bit_vector.clear();
-
 
12018
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
12019
      this.itemId = other.itemId;
-
 
12020
      this.fromDate = other.fromDate;
-
 
12021
      this.toDate = other.toDate;
-
 
12022
    }
-
 
12023
 
-
 
12024
    public getInventoryScansForItem_args deepCopy() {
-
 
12025
      return new getInventoryScansForItem_args(this);
-
 
12026
    }
-
 
12027
 
-
 
12028
    @Override
-
 
12029
    public void clear() {
-
 
12030
      setItemIdIsSet(false);
-
 
12031
      this.itemId = 0;
-
 
12032
      setFromDateIsSet(false);
-
 
12033
      this.fromDate = 0;
-
 
12034
      setToDateIsSet(false);
-
 
12035
      this.toDate = 0;
-
 
12036
    }
-
 
12037
 
-
 
12038
    public long getItemId() {
-
 
12039
      return this.itemId;
-
 
12040
    }
-
 
12041
 
-
 
12042
    public void setItemId(long itemId) {
-
 
12043
      this.itemId = itemId;
-
 
12044
      setItemIdIsSet(true);
-
 
12045
    }
-
 
12046
 
-
 
12047
    public void unsetItemId() {
-
 
12048
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
12049
    }
-
 
12050
 
-
 
12051
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
12052
    public boolean isSetItemId() {
-
 
12053
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
12054
    }
-
 
12055
 
-
 
12056
    public void setItemIdIsSet(boolean value) {
-
 
12057
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
12058
    }
-
 
12059
 
-
 
12060
    public long getFromDate() {
-
 
12061
      return this.fromDate;
-
 
12062
    }
-
 
12063
 
-
 
12064
    public void setFromDate(long fromDate) {
-
 
12065
      this.fromDate = fromDate;
-
 
12066
      setFromDateIsSet(true);
-
 
12067
    }
-
 
12068
 
-
 
12069
    public void unsetFromDate() {
-
 
12070
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
-
 
12071
    }
-
 
12072
 
-
 
12073
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
-
 
12074
    public boolean isSetFromDate() {
-
 
12075
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
-
 
12076
    }
-
 
12077
 
-
 
12078
    public void setFromDateIsSet(boolean value) {
-
 
12079
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
-
 
12080
    }
-
 
12081
 
-
 
12082
    public long getToDate() {
-
 
12083
      return this.toDate;
-
 
12084
    }
-
 
12085
 
-
 
12086
    public void setToDate(long toDate) {
-
 
12087
      this.toDate = toDate;
-
 
12088
      setToDateIsSet(true);
-
 
12089
    }
-
 
12090
 
-
 
12091
    public void unsetToDate() {
-
 
12092
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
-
 
12093
    }
-
 
12094
 
-
 
12095
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
-
 
12096
    public boolean isSetToDate() {
-
 
12097
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
-
 
12098
    }
-
 
12099
 
-
 
12100
    public void setToDateIsSet(boolean value) {
-
 
12101
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
-
 
12102
    }
-
 
12103
 
-
 
12104
    public void setFieldValue(_Fields field, Object value) {
-
 
12105
      switch (field) {
-
 
12106
      case ITEM_ID:
-
 
12107
        if (value == null) {
-
 
12108
          unsetItemId();
-
 
12109
        } else {
-
 
12110
          setItemId((Long)value);
-
 
12111
        }
-
 
12112
        break;
-
 
12113
 
-
 
12114
      case FROM_DATE:
-
 
12115
        if (value == null) {
-
 
12116
          unsetFromDate();
-
 
12117
        } else {
-
 
12118
          setFromDate((Long)value);
-
 
12119
        }
-
 
12120
        break;
-
 
12121
 
-
 
12122
      case TO_DATE:
-
 
12123
        if (value == null) {
-
 
12124
          unsetToDate();
-
 
12125
        } else {
-
 
12126
          setToDate((Long)value);
-
 
12127
        }
-
 
12128
        break;
-
 
12129
 
-
 
12130
      }
-
 
12131
    }
-
 
12132
 
-
 
12133
    public Object getFieldValue(_Fields field) {
-
 
12134
      switch (field) {
-
 
12135
      case ITEM_ID:
-
 
12136
        return Long.valueOf(getItemId());
-
 
12137
 
-
 
12138
      case FROM_DATE:
-
 
12139
        return Long.valueOf(getFromDate());
-
 
12140
 
-
 
12141
      case TO_DATE:
-
 
12142
        return Long.valueOf(getToDate());
-
 
12143
 
-
 
12144
      }
-
 
12145
      throw new IllegalStateException();
-
 
12146
    }
-
 
12147
 
-
 
12148
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12149
    public boolean isSet(_Fields field) {
-
 
12150
      if (field == null) {
-
 
12151
        throw new IllegalArgumentException();
-
 
12152
      }
-
 
12153
 
-
 
12154
      switch (field) {
-
 
12155
      case ITEM_ID:
-
 
12156
        return isSetItemId();
-
 
12157
      case FROM_DATE:
-
 
12158
        return isSetFromDate();
-
 
12159
      case TO_DATE:
-
 
12160
        return isSetToDate();
-
 
12161
      }
-
 
12162
      throw new IllegalStateException();
-
 
12163
    }
-
 
12164
 
-
 
12165
    @Override
-
 
12166
    public boolean equals(Object that) {
-
 
12167
      if (that == null)
-
 
12168
        return false;
-
 
12169
      if (that instanceof getInventoryScansForItem_args)
-
 
12170
        return this.equals((getInventoryScansForItem_args)that);
-
 
12171
      return false;
-
 
12172
    }
-
 
12173
 
-
 
12174
    public boolean equals(getInventoryScansForItem_args that) {
-
 
12175
      if (that == null)
-
 
12176
        return false;
-
 
12177
 
-
 
12178
      boolean this_present_itemId = true;
-
 
12179
      boolean that_present_itemId = true;
-
 
12180
      if (this_present_itemId || that_present_itemId) {
-
 
12181
        if (!(this_present_itemId && that_present_itemId))
-
 
12182
          return false;
-
 
12183
        if (this.itemId != that.itemId)
-
 
12184
          return false;
-
 
12185
      }
-
 
12186
 
-
 
12187
      boolean this_present_fromDate = true;
-
 
12188
      boolean that_present_fromDate = true;
-
 
12189
      if (this_present_fromDate || that_present_fromDate) {
-
 
12190
        if (!(this_present_fromDate && that_present_fromDate))
-
 
12191
          return false;
-
 
12192
        if (this.fromDate != that.fromDate)
-
 
12193
          return false;
-
 
12194
      }
-
 
12195
 
-
 
12196
      boolean this_present_toDate = true;
-
 
12197
      boolean that_present_toDate = true;
-
 
12198
      if (this_present_toDate || that_present_toDate) {
-
 
12199
        if (!(this_present_toDate && that_present_toDate))
-
 
12200
          return false;
-
 
12201
        if (this.toDate != that.toDate)
-
 
12202
          return false;
-
 
12203
      }
-
 
12204
 
-
 
12205
      return true;
-
 
12206
    }
-
 
12207
 
-
 
12208
    @Override
-
 
12209
    public int hashCode() {
-
 
12210
      return 0;
-
 
12211
    }
-
 
12212
 
-
 
12213
    public int compareTo(getInventoryScansForItem_args other) {
-
 
12214
      if (!getClass().equals(other.getClass())) {
-
 
12215
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12216
      }
-
 
12217
 
-
 
12218
      int lastComparison = 0;
-
 
12219
      getInventoryScansForItem_args typedOther = (getInventoryScansForItem_args)other;
-
 
12220
 
-
 
12221
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
12222
      if (lastComparison != 0) {
-
 
12223
        return lastComparison;
-
 
12224
      }
-
 
12225
      if (isSetItemId()) {
-
 
12226
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
12227
        if (lastComparison != 0) {
-
 
12228
          return lastComparison;
-
 
12229
        }
-
 
12230
      }
-
 
12231
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
-
 
12232
      if (lastComparison != 0) {
-
 
12233
        return lastComparison;
-
 
12234
      }
-
 
12235
      if (isSetFromDate()) {
-
 
12236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
-
 
12237
        if (lastComparison != 0) {
-
 
12238
          return lastComparison;
-
 
12239
        }
-
 
12240
      }
-
 
12241
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
-
 
12242
      if (lastComparison != 0) {
-
 
12243
        return lastComparison;
-
 
12244
      }
-
 
12245
      if (isSetToDate()) {
-
 
12246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
-
 
12247
        if (lastComparison != 0) {
-
 
12248
          return lastComparison;
-
 
12249
        }
-
 
12250
      }
-
 
12251
      return 0;
-
 
12252
    }
-
 
12253
 
-
 
12254
    public _Fields fieldForId(int fieldId) {
-
 
12255
      return _Fields.findByThriftId(fieldId);
-
 
12256
    }
-
 
12257
 
-
 
12258
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12259
      org.apache.thrift.protocol.TField field;
-
 
12260
      iprot.readStructBegin();
-
 
12261
      while (true)
-
 
12262
      {
-
 
12263
        field = iprot.readFieldBegin();
-
 
12264
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12265
          break;
-
 
12266
        }
-
 
12267
        switch (field.id) {
-
 
12268
          case 1: // ITEM_ID
-
 
12269
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12270
              this.itemId = iprot.readI64();
-
 
12271
              setItemIdIsSet(true);
-
 
12272
            } else { 
-
 
12273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12274
            }
-
 
12275
            break;
-
 
12276
          case 2: // FROM_DATE
-
 
12277
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12278
              this.fromDate = iprot.readI64();
-
 
12279
              setFromDateIsSet(true);
-
 
12280
            } else { 
-
 
12281
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12282
            }
-
 
12283
            break;
-
 
12284
          case 3: // TO_DATE
-
 
12285
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12286
              this.toDate = iprot.readI64();
-
 
12287
              setToDateIsSet(true);
-
 
12288
            } else { 
-
 
12289
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12290
            }
-
 
12291
            break;
-
 
12292
          default:
-
 
12293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12294
        }
-
 
12295
        iprot.readFieldEnd();
-
 
12296
      }
-
 
12297
      iprot.readStructEnd();
-
 
12298
      validate();
-
 
12299
    }
-
 
12300
 
-
 
12301
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12302
      validate();
-
 
12303
 
-
 
12304
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12305
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
12306
      oprot.writeI64(this.itemId);
-
 
12307
      oprot.writeFieldEnd();
-
 
12308
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
-
 
12309
      oprot.writeI64(this.fromDate);
-
 
12310
      oprot.writeFieldEnd();
-
 
12311
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
-
 
12312
      oprot.writeI64(this.toDate);
-
 
12313
      oprot.writeFieldEnd();
-
 
12314
      oprot.writeFieldStop();
-
 
12315
      oprot.writeStructEnd();
-
 
12316
    }
-
 
12317
 
-
 
12318
    @Override
-
 
12319
    public String toString() {
-
 
12320
      StringBuilder sb = new StringBuilder("getInventoryScansForItem_args(");
-
 
12321
      boolean first = true;
-
 
12322
 
-
 
12323
      sb.append("itemId:");
-
 
12324
      sb.append(this.itemId);
-
 
12325
      first = false;
-
 
12326
      if (!first) sb.append(", ");
-
 
12327
      sb.append("fromDate:");
-
 
12328
      sb.append(this.fromDate);
-
 
12329
      first = false;
-
 
12330
      if (!first) sb.append(", ");
-
 
12331
      sb.append("toDate:");
-
 
12332
      sb.append(this.toDate);
-
 
12333
      first = false;
-
 
12334
      sb.append(")");
-
 
12335
      return sb.toString();
-
 
12336
    }
-
 
12337
 
-
 
12338
    public void validate() throws org.apache.thrift.TException {
-
 
12339
      // check for required fields
-
 
12340
    }
-
 
12341
 
-
 
12342
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12343
      try {
-
 
12344
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12345
      } catch (org.apache.thrift.TException te) {
-
 
12346
        throw new java.io.IOException(te);
-
 
12347
      }
-
 
12348
    }
-
 
12349
 
-
 
12350
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12351
      try {
-
 
12352
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12353
      } catch (org.apache.thrift.TException te) {
-
 
12354
        throw new java.io.IOException(te);
-
 
12355
      }
-
 
12356
    }
-
 
12357
 
-
 
12358
  }
-
 
12359
 
-
 
12360
  public static class getInventoryScansForItem_result implements org.apache.thrift.TBase<getInventoryScansForItem_result, getInventoryScansForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
12361
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_result");
-
 
12362
 
-
 
12363
    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);
-
 
12364
 
-
 
12365
    private List<Scan> success; // required
-
 
12366
 
-
 
12367
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12368
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12369
      SUCCESS((short)0, "success");
-
 
12370
 
-
 
12371
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12372
 
-
 
12373
      static {
-
 
12374
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12375
          byName.put(field.getFieldName(), field);
-
 
12376
        }
-
 
12377
      }
-
 
12378
 
-
 
12379
      /**
-
 
12380
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12381
       */
-
 
12382
      public static _Fields findByThriftId(int fieldId) {
-
 
12383
        switch(fieldId) {
-
 
12384
          case 0: // SUCCESS
-
 
12385
            return SUCCESS;
-
 
12386
          default:
-
 
12387
            return null;
-
 
12388
        }
-
 
12389
      }
-
 
12390
 
-
 
12391
      /**
-
 
12392
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12393
       * if it is not found.
-
 
12394
       */
-
 
12395
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12396
        _Fields fields = findByThriftId(fieldId);
-
 
12397
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12398
        return fields;
-
 
12399
      }
-
 
12400
 
-
 
12401
      /**
-
 
12402
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12403
       */
-
 
12404
      public static _Fields findByName(String name) {
-
 
12405
        return byName.get(name);
-
 
12406
      }
-
 
12407
 
-
 
12408
      private final short _thriftId;
-
 
12409
      private final String _fieldName;
-
 
12410
 
-
 
12411
      _Fields(short thriftId, String fieldName) {
-
 
12412
        _thriftId = thriftId;
-
 
12413
        _fieldName = fieldName;
-
 
12414
      }
-
 
12415
 
-
 
12416
      public short getThriftFieldId() {
-
 
12417
        return _thriftId;
-
 
12418
      }
-
 
12419
 
-
 
12420
      public String getFieldName() {
-
 
12421
        return _fieldName;
-
 
12422
      }
-
 
12423
    }
-
 
12424
 
-
 
12425
    // isset id assignments
-
 
12426
 
-
 
12427
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
12428
    static {
-
 
12429
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12430
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12431
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
12432
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
-
 
12433
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
12434
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_result.class, metaDataMap);
-
 
12435
    }
-
 
12436
 
-
 
12437
    public getInventoryScansForItem_result() {
-
 
12438
    }
-
 
12439
 
-
 
12440
    public getInventoryScansForItem_result(
-
 
12441
      List<Scan> success)
-
 
12442
    {
-
 
12443
      this();
-
 
12444
      this.success = success;
-
 
12445
    }
-
 
12446
 
-
 
12447
    /**
-
 
12448
     * Performs a deep copy on <i>other</i>.
-
 
12449
     */
-
 
12450
    public getInventoryScansForItem_result(getInventoryScansForItem_result other) {
-
 
12451
      if (other.isSetSuccess()) {
-
 
12452
        List<Scan> __this__success = new ArrayList<Scan>();
-
 
12453
        for (Scan other_element : other.success) {
-
 
12454
          __this__success.add(new Scan(other_element));
-
 
12455
        }
-
 
12456
        this.success = __this__success;
-
 
12457
      }
-
 
12458
    }
-
 
12459
 
-
 
12460
    public getInventoryScansForItem_result deepCopy() {
-
 
12461
      return new getInventoryScansForItem_result(this);
-
 
12462
    }
-
 
12463
 
-
 
12464
    @Override
-
 
12465
    public void clear() {
-
 
12466
      this.success = null;
-
 
12467
    }
-
 
12468
 
-
 
12469
    public int getSuccessSize() {
-
 
12470
      return (this.success == null) ? 0 : this.success.size();
-
 
12471
    }
-
 
12472
 
-
 
12473
    public java.util.Iterator<Scan> getSuccessIterator() {
-
 
12474
      return (this.success == null) ? null : this.success.iterator();
-
 
12475
    }
-
 
12476
 
-
 
12477
    public void addToSuccess(Scan elem) {
-
 
12478
      if (this.success == null) {
-
 
12479
        this.success = new ArrayList<Scan>();
-
 
12480
      }
-
 
12481
      this.success.add(elem);
-
 
12482
    }
-
 
12483
 
-
 
12484
    public List<Scan> getSuccess() {
-
 
12485
      return this.success;
-
 
12486
    }
-
 
12487
 
-
 
12488
    public void setSuccess(List<Scan> success) {
-
 
12489
      this.success = success;
-
 
12490
    }
-
 
12491
 
-
 
12492
    public void unsetSuccess() {
-
 
12493
      this.success = null;
-
 
12494
    }
-
 
12495
 
-
 
12496
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
12497
    public boolean isSetSuccess() {
-
 
12498
      return this.success != null;
-
 
12499
    }
-
 
12500
 
-
 
12501
    public void setSuccessIsSet(boolean value) {
-
 
12502
      if (!value) {
-
 
12503
        this.success = null;
-
 
12504
      }
-
 
12505
    }
-
 
12506
 
-
 
12507
    public void setFieldValue(_Fields field, Object value) {
-
 
12508
      switch (field) {
-
 
12509
      case SUCCESS:
-
 
12510
        if (value == null) {
-
 
12511
          unsetSuccess();
-
 
12512
        } else {
-
 
12513
          setSuccess((List<Scan>)value);
-
 
12514
        }
-
 
12515
        break;
-
 
12516
 
-
 
12517
      }
-
 
12518
    }
-
 
12519
 
-
 
12520
    public Object getFieldValue(_Fields field) {
-
 
12521
      switch (field) {
-
 
12522
      case SUCCESS:
-
 
12523
        return getSuccess();
-
 
12524
 
-
 
12525
      }
-
 
12526
      throw new IllegalStateException();
-
 
12527
    }
-
 
12528
 
-
 
12529
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12530
    public boolean isSet(_Fields field) {
-
 
12531
      if (field == null) {
-
 
12532
        throw new IllegalArgumentException();
-
 
12533
      }
-
 
12534
 
-
 
12535
      switch (field) {
-
 
12536
      case SUCCESS:
-
 
12537
        return isSetSuccess();
-
 
12538
      }
-
 
12539
      throw new IllegalStateException();
-
 
12540
    }
-
 
12541
 
-
 
12542
    @Override
-
 
12543
    public boolean equals(Object that) {
-
 
12544
      if (that == null)
-
 
12545
        return false;
-
 
12546
      if (that instanceof getInventoryScansForItem_result)
-
 
12547
        return this.equals((getInventoryScansForItem_result)that);
-
 
12548
      return false;
-
 
12549
    }
-
 
12550
 
-
 
12551
    public boolean equals(getInventoryScansForItem_result that) {
-
 
12552
      if (that == null)
-
 
12553
        return false;
-
 
12554
 
-
 
12555
      boolean this_present_success = true && this.isSetSuccess();
-
 
12556
      boolean that_present_success = true && that.isSetSuccess();
-
 
12557
      if (this_present_success || that_present_success) {
-
 
12558
        if (!(this_present_success && that_present_success))
-
 
12559
          return false;
-
 
12560
        if (!this.success.equals(that.success))
-
 
12561
          return false;
-
 
12562
      }
-
 
12563
 
-
 
12564
      return true;
-
 
12565
    }
-
 
12566
 
-
 
12567
    @Override
-
 
12568
    public int hashCode() {
-
 
12569
      return 0;
-
 
12570
    }
-
 
12571
 
-
 
12572
    public int compareTo(getInventoryScansForItem_result other) {
-
 
12573
      if (!getClass().equals(other.getClass())) {
-
 
12574
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12575
      }
-
 
12576
 
-
 
12577
      int lastComparison = 0;
-
 
12578
      getInventoryScansForItem_result typedOther = (getInventoryScansForItem_result)other;
-
 
12579
 
-
 
12580
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
12581
      if (lastComparison != 0) {
-
 
12582
        return lastComparison;
-
 
12583
      }
-
 
12584
      if (isSetSuccess()) {
-
 
12585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
12586
        if (lastComparison != 0) {
-
 
12587
          return lastComparison;
-
 
12588
        }
-
 
12589
      }
-
 
12590
      return 0;
-
 
12591
    }
-
 
12592
 
-
 
12593
    public _Fields fieldForId(int fieldId) {
-
 
12594
      return _Fields.findByThriftId(fieldId);
-
 
12595
    }
-
 
12596
 
-
 
12597
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12598
      org.apache.thrift.protocol.TField field;
-
 
12599
      iprot.readStructBegin();
-
 
12600
      while (true)
-
 
12601
      {
-
 
12602
        field = iprot.readFieldBegin();
-
 
12603
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12604
          break;
-
 
12605
        }
-
 
12606
        switch (field.id) {
-
 
12607
          case 0: // SUCCESS
-
 
12608
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
12609
              {
-
 
12610
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
-
 
12611
                this.success = new ArrayList<Scan>(_list24.size);
-
 
12612
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
12613
                {
-
 
12614
                  Scan _elem26; // required
-
 
12615
                  _elem26 = new Scan();
-
 
12616
                  _elem26.read(iprot);
-
 
12617
                  this.success.add(_elem26);
-
 
12618
                }
-
 
12619
                iprot.readListEnd();
-
 
12620
              }
-
 
12621
            } else { 
-
 
12622
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12623
            }
-
 
12624
            break;
-
 
12625
          default:
-
 
12626
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12627
        }
-
 
12628
        iprot.readFieldEnd();
-
 
12629
      }
-
 
12630
      iprot.readStructEnd();
-
 
12631
      validate();
-
 
12632
    }
-
 
12633
 
-
 
12634
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12635
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12636
 
-
 
12637
      if (this.isSetSuccess()) {
-
 
12638
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
12639
        {
-
 
12640
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
12641
          for (Scan _iter27 : this.success)
-
 
12642
          {
-
 
12643
            _iter27.write(oprot);
-
 
12644
          }
-
 
12645
          oprot.writeListEnd();
-
 
12646
        }
-
 
12647
        oprot.writeFieldEnd();
-
 
12648
      }
-
 
12649
      oprot.writeFieldStop();
-
 
12650
      oprot.writeStructEnd();
-
 
12651
    }
-
 
12652
 
-
 
12653
    @Override
-
 
12654
    public String toString() {
-
 
12655
      StringBuilder sb = new StringBuilder("getInventoryScansForItem_result(");
-
 
12656
      boolean first = true;
-
 
12657
 
-
 
12658
      sb.append("success:");
-
 
12659
      if (this.success == null) {
-
 
12660
        sb.append("null");
-
 
12661
      } else {
-
 
12662
        sb.append(this.success);
-
 
12663
      }
-
 
12664
      first = false;
-
 
12665
      sb.append(")");
-
 
12666
      return sb.toString();
-
 
12667
    }
-
 
12668
 
-
 
12669
    public void validate() throws org.apache.thrift.TException {
-
 
12670
      // check for required fields
-
 
12671
    }
-
 
12672
 
-
 
12673
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12674
      try {
-
 
12675
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12676
      } catch (org.apache.thrift.TException te) {
-
 
12677
        throw new java.io.IOException(te);
-
 
12678
      }
-
 
12679
    }
-
 
12680
 
-
 
12681
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12682
      try {
-
 
12683
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12684
      } catch (org.apache.thrift.TException te) {
-
 
12685
        throw new java.io.IOException(te);
-
 
12686
      }
-
 
12687
    }
-
 
12688
 
-
 
12689
  }
-
 
12690
 
-
 
12691
  public static class getScanRecordsForSerialNumber_args implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_args, getScanRecordsForSerialNumber_args._Fields>, java.io.Serializable, Cloneable   {
-
 
12692
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_args");
-
 
12693
 
-
 
12694
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
12695
 
-
 
12696
    private long serialNumber; // required
-
 
12697
 
-
 
12698
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12699
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12700
      SERIAL_NUMBER((short)1, "serialNumber");
-
 
12701
 
-
 
12702
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12703
 
-
 
12704
      static {
-
 
12705
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12706
          byName.put(field.getFieldName(), field);
-
 
12707
        }
-
 
12708
      }
-
 
12709
 
-
 
12710
      /**
-
 
12711
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12712
       */
-
 
12713
      public static _Fields findByThriftId(int fieldId) {
-
 
12714
        switch(fieldId) {
-
 
12715
          case 1: // SERIAL_NUMBER
-
 
12716
            return SERIAL_NUMBER;
-
 
12717
          default:
-
 
12718
            return null;
-
 
12719
        }
-
 
12720
      }
-
 
12721
 
-
 
12722
      /**
-
 
12723
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12724
       * if it is not found.
-
 
12725
       */
-
 
12726
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12727
        _Fields fields = findByThriftId(fieldId);
-
 
12728
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12729
        return fields;
-
 
12730
      }
-
 
12731
 
-
 
12732
      /**
-
 
12733
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12734
       */
-
 
12735
      public static _Fields findByName(String name) {
-
 
12736
        return byName.get(name);
-
 
12737
      }
-
 
12738
 
-
 
12739
      private final short _thriftId;
-
 
12740
      private final String _fieldName;
-
 
12741
 
-
 
12742
      _Fields(short thriftId, String fieldName) {
-
 
12743
        _thriftId = thriftId;
-
 
12744
        _fieldName = fieldName;
-
 
12745
      }
-
 
12746
 
-
 
12747
      public short getThriftFieldId() {
-
 
12748
        return _thriftId;
-
 
12749
      }
-
 
12750
 
-
 
12751
      public String getFieldName() {
-
 
12752
        return _fieldName;
-
 
12753
      }
-
 
12754
    }
-
 
12755
 
-
 
12756
    // isset id assignments
-
 
12757
    private static final int __SERIALNUMBER_ISSET_ID = 0;
-
 
12758
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
12759
 
-
 
12760
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
12761
    static {
-
 
12762
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12763
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12764
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
12765
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
12766
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_args.class, metaDataMap);
-
 
12767
    }
-
 
12768
 
-
 
12769
    public getScanRecordsForSerialNumber_args() {
-
 
12770
    }
-
 
12771
 
-
 
12772
    public getScanRecordsForSerialNumber_args(
-
 
12773
      long serialNumber)
-
 
12774
    {
-
 
12775
      this();
-
 
12776
      this.serialNumber = serialNumber;
-
 
12777
      setSerialNumberIsSet(true);
-
 
12778
    }
-
 
12779
 
-
 
12780
    /**
-
 
12781
     * Performs a deep copy on <i>other</i>.
-
 
12782
     */
-
 
12783
    public getScanRecordsForSerialNumber_args(getScanRecordsForSerialNumber_args other) {
-
 
12784
      __isset_bit_vector.clear();
-
 
12785
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
12786
      this.serialNumber = other.serialNumber;
-
 
12787
    }
-
 
12788
 
-
 
12789
    public getScanRecordsForSerialNumber_args deepCopy() {
-
 
12790
      return new getScanRecordsForSerialNumber_args(this);
-
 
12791
    }
-
 
12792
 
-
 
12793
    @Override
-
 
12794
    public void clear() {
-
 
12795
      setSerialNumberIsSet(false);
-
 
12796
      this.serialNumber = 0;
-
 
12797
    }
-
 
12798
 
-
 
12799
    public long getSerialNumber() {
-
 
12800
      return this.serialNumber;
-
 
12801
    }
-
 
12802
 
-
 
12803
    public void setSerialNumber(long serialNumber) {
-
 
12804
      this.serialNumber = serialNumber;
-
 
12805
      setSerialNumberIsSet(true);
-
 
12806
    }
-
 
12807
 
-
 
12808
    public void unsetSerialNumber() {
-
 
12809
      __isset_bit_vector.clear(__SERIALNUMBER_ISSET_ID);
-
 
12810
    }
-
 
12811
 
-
 
12812
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
-
 
12813
    public boolean isSetSerialNumber() {
-
 
12814
      return __isset_bit_vector.get(__SERIALNUMBER_ISSET_ID);
-
 
12815
    }
-
 
12816
 
-
 
12817
    public void setSerialNumberIsSet(boolean value) {
-
 
12818
      __isset_bit_vector.set(__SERIALNUMBER_ISSET_ID, value);
-
 
12819
    }
-
 
12820
 
-
 
12821
    public void setFieldValue(_Fields field, Object value) {
-
 
12822
      switch (field) {
-
 
12823
      case SERIAL_NUMBER:
-
 
12824
        if (value == null) {
-
 
12825
          unsetSerialNumber();
-
 
12826
        } else {
-
 
12827
          setSerialNumber((Long)value);
-
 
12828
        }
-
 
12829
        break;
-
 
12830
 
-
 
12831
      }
-
 
12832
    }
-
 
12833
 
-
 
12834
    public Object getFieldValue(_Fields field) {
-
 
12835
      switch (field) {
-
 
12836
      case SERIAL_NUMBER:
-
 
12837
        return Long.valueOf(getSerialNumber());
-
 
12838
 
-
 
12839
      }
-
 
12840
      throw new IllegalStateException();
-
 
12841
    }
-
 
12842
 
-
 
12843
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12844
    public boolean isSet(_Fields field) {
-
 
12845
      if (field == null) {
-
 
12846
        throw new IllegalArgumentException();
-
 
12847
      }
-
 
12848
 
-
 
12849
      switch (field) {
-
 
12850
      case SERIAL_NUMBER:
-
 
12851
        return isSetSerialNumber();
-
 
12852
      }
-
 
12853
      throw new IllegalStateException();
-
 
12854
    }
-
 
12855
 
-
 
12856
    @Override
-
 
12857
    public boolean equals(Object that) {
-
 
12858
      if (that == null)
-
 
12859
        return false;
-
 
12860
      if (that instanceof getScanRecordsForSerialNumber_args)
-
 
12861
        return this.equals((getScanRecordsForSerialNumber_args)that);
-
 
12862
      return false;
-
 
12863
    }
-
 
12864
 
-
 
12865
    public boolean equals(getScanRecordsForSerialNumber_args that) {
-
 
12866
      if (that == null)
-
 
12867
        return false;
-
 
12868
 
-
 
12869
      boolean this_present_serialNumber = true;
-
 
12870
      boolean that_present_serialNumber = true;
-
 
12871
      if (this_present_serialNumber || that_present_serialNumber) {
-
 
12872
        if (!(this_present_serialNumber && that_present_serialNumber))
-
 
12873
          return false;
-
 
12874
        if (this.serialNumber != that.serialNumber)
-
 
12875
          return false;
-
 
12876
      }
-
 
12877
 
-
 
12878
      return true;
-
 
12879
    }
-
 
12880
 
-
 
12881
    @Override
-
 
12882
    public int hashCode() {
-
 
12883
      return 0;
-
 
12884
    }
-
 
12885
 
-
 
12886
    public int compareTo(getScanRecordsForSerialNumber_args other) {
-
 
12887
      if (!getClass().equals(other.getClass())) {
-
 
12888
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12889
      }
-
 
12890
 
-
 
12891
      int lastComparison = 0;
-
 
12892
      getScanRecordsForSerialNumber_args typedOther = (getScanRecordsForSerialNumber_args)other;
-
 
12893
 
-
 
12894
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
-
 
12895
      if (lastComparison != 0) {
-
 
12896
        return lastComparison;
-
 
12897
      }
-
 
12898
      if (isSetSerialNumber()) {
-
 
12899
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
-
 
12900
        if (lastComparison != 0) {
-
 
12901
          return lastComparison;
-
 
12902
        }
-
 
12903
      }
-
 
12904
      return 0;
-
 
12905
    }
-
 
12906
 
-
 
12907
    public _Fields fieldForId(int fieldId) {
-
 
12908
      return _Fields.findByThriftId(fieldId);
-
 
12909
    }
-
 
12910
 
-
 
12911
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12912
      org.apache.thrift.protocol.TField field;
-
 
12913
      iprot.readStructBegin();
-
 
12914
      while (true)
-
 
12915
      {
-
 
12916
        field = iprot.readFieldBegin();
-
 
12917
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12918
          break;
-
 
12919
        }
-
 
12920
        switch (field.id) {
-
 
12921
          case 1: // SERIAL_NUMBER
-
 
12922
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12923
              this.serialNumber = iprot.readI64();
-
 
12924
              setSerialNumberIsSet(true);
-
 
12925
            } else { 
-
 
12926
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12927
            }
-
 
12928
            break;
-
 
12929
          default:
-
 
12930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12931
        }
-
 
12932
        iprot.readFieldEnd();
-
 
12933
      }
-
 
12934
      iprot.readStructEnd();
-
 
12935
      validate();
-
 
12936
    }
-
 
12937
 
-
 
12938
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12939
      validate();
-
 
12940
 
-
 
12941
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12942
      oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
-
 
12943
      oprot.writeI64(this.serialNumber);
-
 
12944
      oprot.writeFieldEnd();
-
 
12945
      oprot.writeFieldStop();
-
 
12946
      oprot.writeStructEnd();
-
 
12947
    }
-
 
12948
 
-
 
12949
    @Override
-
 
12950
    public String toString() {
-
 
12951
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_args(");
-
 
12952
      boolean first = true;
-
 
12953
 
-
 
12954
      sb.append("serialNumber:");
-
 
12955
      sb.append(this.serialNumber);
-
 
12956
      first = false;
-
 
12957
      sb.append(")");
-
 
12958
      return sb.toString();
-
 
12959
    }
-
 
12960
 
-
 
12961
    public void validate() throws org.apache.thrift.TException {
-
 
12962
      // check for required fields
-
 
12963
    }
-
 
12964
 
-
 
12965
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12966
      try {
-
 
12967
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12968
      } catch (org.apache.thrift.TException te) {
-
 
12969
        throw new java.io.IOException(te);
-
 
12970
      }
-
 
12971
    }
-
 
12972
 
-
 
12973
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12974
      try {
-
 
12975
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
12976
        __isset_bit_vector = new BitSet(1);
-
 
12977
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12978
      } catch (org.apache.thrift.TException te) {
-
 
12979
        throw new java.io.IOException(te);
-
 
12980
      }
-
 
12981
    }
-
 
12982
 
-
 
12983
  }
-
 
12984
 
-
 
12985
  public static class getScanRecordsForSerialNumber_result implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_result, getScanRecordsForSerialNumber_result._Fields>, java.io.Serializable, Cloneable   {
-
 
12986
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_result");
-
 
12987
 
-
 
12988
    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);
-
 
12989
 
-
 
12990
    private List<Scan> success; // required
-
 
12991
 
-
 
12992
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12993
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12994
      SUCCESS((short)0, "success");
-
 
12995
 
-
 
12996
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12997
 
-
 
12998
      static {
-
 
12999
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
13000
          byName.put(field.getFieldName(), field);
-
 
13001
        }
-
 
13002
      }
-
 
13003
 
-
 
13004
      /**
-
 
13005
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
13006
       */
-
 
13007
      public static _Fields findByThriftId(int fieldId) {
-
 
13008
        switch(fieldId) {
-
 
13009
          case 0: // SUCCESS
-
 
13010
            return SUCCESS;
-
 
13011
          default:
-
 
13012
            return null;
-
 
13013
        }
-
 
13014
      }
-
 
13015
 
-
 
13016
      /**
-
 
13017
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
13018
       * if it is not found.
-
 
13019
       */
-
 
13020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
13021
        _Fields fields = findByThriftId(fieldId);
-
 
13022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
13023
        return fields;
-
 
13024
      }
-
 
13025
 
-
 
13026
      /**
-
 
13027
       * Find the _Fields constant that matches name, or null if its not found.
-
 
13028
       */
-
 
13029
      public static _Fields findByName(String name) {
-
 
13030
        return byName.get(name);
-
 
13031
      }
-
 
13032
 
-
 
13033
      private final short _thriftId;
-
 
13034
      private final String _fieldName;
-
 
13035
 
-
 
13036
      _Fields(short thriftId, String fieldName) {
-
 
13037
        _thriftId = thriftId;
-
 
13038
        _fieldName = fieldName;
-
 
13039
      }
-
 
13040
 
-
 
13041
      public short getThriftFieldId() {
-
 
13042
        return _thriftId;
-
 
13043
      }
-
 
13044
 
-
 
13045
      public String getFieldName() {
-
 
13046
        return _fieldName;
-
 
13047
      }
-
 
13048
    }
-
 
13049
 
-
 
13050
    // isset id assignments
-
 
13051
 
-
 
13052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
13053
    static {
-
 
13054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
13055
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13056
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
13057
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
-
 
13058
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
13059
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_result.class, metaDataMap);
-
 
13060
    }
-
 
13061
 
-
 
13062
    public getScanRecordsForSerialNumber_result() {
-
 
13063
    }
-
 
13064
 
-
 
13065
    public getScanRecordsForSerialNumber_result(
-
 
13066
      List<Scan> success)
-
 
13067
    {
-
 
13068
      this();
-
 
13069
      this.success = success;
-
 
13070
    }
-
 
13071
 
-
 
13072
    /**
-
 
13073
     * Performs a deep copy on <i>other</i>.
-
 
13074
     */
-
 
13075
    public getScanRecordsForSerialNumber_result(getScanRecordsForSerialNumber_result other) {
-
 
13076
      if (other.isSetSuccess()) {
-
 
13077
        List<Scan> __this__success = new ArrayList<Scan>();
-
 
13078
        for (Scan other_element : other.success) {
-
 
13079
          __this__success.add(new Scan(other_element));
-
 
13080
        }
-
 
13081
        this.success = __this__success;
-
 
13082
      }
-
 
13083
    }
-
 
13084
 
-
 
13085
    public getScanRecordsForSerialNumber_result deepCopy() {
-
 
13086
      return new getScanRecordsForSerialNumber_result(this);
-
 
13087
    }
-
 
13088
 
-
 
13089
    @Override
-
 
13090
    public void clear() {
-
 
13091
      this.success = null;
-
 
13092
    }
-
 
13093
 
-
 
13094
    public int getSuccessSize() {
-
 
13095
      return (this.success == null) ? 0 : this.success.size();
-
 
13096
    }
-
 
13097
 
-
 
13098
    public java.util.Iterator<Scan> getSuccessIterator() {
-
 
13099
      return (this.success == null) ? null : this.success.iterator();
-
 
13100
    }
-
 
13101
 
-
 
13102
    public void addToSuccess(Scan elem) {
-
 
13103
      if (this.success == null) {
-
 
13104
        this.success = new ArrayList<Scan>();
-
 
13105
      }
-
 
13106
      this.success.add(elem);
-
 
13107
    }
-
 
13108
 
-
 
13109
    public List<Scan> getSuccess() {
-
 
13110
      return this.success;
-
 
13111
    }
-
 
13112
 
-
 
13113
    public void setSuccess(List<Scan> success) {
-
 
13114
      this.success = success;
-
 
13115
    }
-
 
13116
 
-
 
13117
    public void unsetSuccess() {
-
 
13118
      this.success = null;
-
 
13119
    }
-
 
13120
 
-
 
13121
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
13122
    public boolean isSetSuccess() {
-
 
13123
      return this.success != null;
-
 
13124
    }
-
 
13125
 
-
 
13126
    public void setSuccessIsSet(boolean value) {
-
 
13127
      if (!value) {
-
 
13128
        this.success = null;
-
 
13129
      }
-
 
13130
    }
-
 
13131
 
-
 
13132
    public void setFieldValue(_Fields field, Object value) {
-
 
13133
      switch (field) {
-
 
13134
      case SUCCESS:
-
 
13135
        if (value == null) {
-
 
13136
          unsetSuccess();
-
 
13137
        } else {
-
 
13138
          setSuccess((List<Scan>)value);
-
 
13139
        }
-
 
13140
        break;
-
 
13141
 
-
 
13142
      }
-
 
13143
    }
-
 
13144
 
-
 
13145
    public Object getFieldValue(_Fields field) {
-
 
13146
      switch (field) {
-
 
13147
      case SUCCESS:
-
 
13148
        return getSuccess();
-
 
13149
 
-
 
13150
      }
-
 
13151
      throw new IllegalStateException();
-
 
13152
    }
-
 
13153
 
-
 
13154
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
13155
    public boolean isSet(_Fields field) {
-
 
13156
      if (field == null) {
-
 
13157
        throw new IllegalArgumentException();
-
 
13158
      }
-
 
13159
 
-
 
13160
      switch (field) {
-
 
13161
      case SUCCESS:
-
 
13162
        return isSetSuccess();
-
 
13163
      }
-
 
13164
      throw new IllegalStateException();
-
 
13165
    }
-
 
13166
 
-
 
13167
    @Override
-
 
13168
    public boolean equals(Object that) {
-
 
13169
      if (that == null)
-
 
13170
        return false;
-
 
13171
      if (that instanceof getScanRecordsForSerialNumber_result)
-
 
13172
        return this.equals((getScanRecordsForSerialNumber_result)that);
-
 
13173
      return false;
-
 
13174
    }
-
 
13175
 
-
 
13176
    public boolean equals(getScanRecordsForSerialNumber_result that) {
-
 
13177
      if (that == null)
-
 
13178
        return false;
-
 
13179
 
-
 
13180
      boolean this_present_success = true && this.isSetSuccess();
-
 
13181
      boolean that_present_success = true && that.isSetSuccess();
-
 
13182
      if (this_present_success || that_present_success) {
-
 
13183
        if (!(this_present_success && that_present_success))
-
 
13184
          return false;
-
 
13185
        if (!this.success.equals(that.success))
-
 
13186
          return false;
-
 
13187
      }
-
 
13188
 
-
 
13189
      return true;
-
 
13190
    }
-
 
13191
 
-
 
13192
    @Override
-
 
13193
    public int hashCode() {
-
 
13194
      return 0;
-
 
13195
    }
-
 
13196
 
-
 
13197
    public int compareTo(getScanRecordsForSerialNumber_result other) {
-
 
13198
      if (!getClass().equals(other.getClass())) {
-
 
13199
        return getClass().getName().compareTo(other.getClass().getName());
-
 
13200
      }
-
 
13201
 
-
 
13202
      int lastComparison = 0;
-
 
13203
      getScanRecordsForSerialNumber_result typedOther = (getScanRecordsForSerialNumber_result)other;
-
 
13204
 
-
 
13205
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
13206
      if (lastComparison != 0) {
-
 
13207
        return lastComparison;
-
 
13208
      }
-
 
13209
      if (isSetSuccess()) {
-
 
13210
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
13211
        if (lastComparison != 0) {
-
 
13212
          return lastComparison;
-
 
13213
        }
-
 
13214
      }
-
 
13215
      return 0;
-
 
13216
    }
-
 
13217
 
-
 
13218
    public _Fields fieldForId(int fieldId) {
-
 
13219
      return _Fields.findByThriftId(fieldId);
-
 
13220
    }
-
 
13221
 
-
 
13222
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
13223
      org.apache.thrift.protocol.TField field;
-
 
13224
      iprot.readStructBegin();
-
 
13225
      while (true)
-
 
13226
      {
-
 
13227
        field = iprot.readFieldBegin();
-
 
13228
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
13229
          break;
-
 
13230
        }
-
 
13231
        switch (field.id) {
-
 
13232
          case 0: // SUCCESS
-
 
13233
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
13234
              {
-
 
13235
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
-
 
13236
                this.success = new ArrayList<Scan>(_list28.size);
-
 
13237
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
13238
                {
-
 
13239
                  Scan _elem30; // required
-
 
13240
                  _elem30 = new Scan();
-
 
13241
                  _elem30.read(iprot);
-
 
13242
                  this.success.add(_elem30);
-
 
13243
                }
-
 
13244
                iprot.readListEnd();
-
 
13245
              }
-
 
13246
            } else { 
-
 
13247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13248
            }
-
 
13249
            break;
-
 
13250
          default:
-
 
13251
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13252
        }
-
 
13253
        iprot.readFieldEnd();
-
 
13254
      }
-
 
13255
      iprot.readStructEnd();
-
 
13256
      validate();
-
 
13257
    }
-
 
13258
 
-
 
13259
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
13260
      oprot.writeStructBegin(STRUCT_DESC);
-
 
13261
 
-
 
13262
      if (this.isSetSuccess()) {
-
 
13263
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
13264
        {
-
 
13265
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
13266
          for (Scan _iter31 : this.success)
-
 
13267
          {
-
 
13268
            _iter31.write(oprot);
-
 
13269
          }
-
 
13270
          oprot.writeListEnd();
-
 
13271
        }
-
 
13272
        oprot.writeFieldEnd();
-
 
13273
      }
-
 
13274
      oprot.writeFieldStop();
-
 
13275
      oprot.writeStructEnd();
-
 
13276
    }
-
 
13277
 
-
 
13278
    @Override
-
 
13279
    public String toString() {
-
 
13280
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_result(");
-
 
13281
      boolean first = true;
-
 
13282
 
-
 
13283
      sb.append("success:");
-
 
13284
      if (this.success == null) {
-
 
13285
        sb.append("null");
11700
      } else {
13286
      } else {
11701
        sb.append(this.success);
13287
        sb.append(this.success);
11702
      }
13288
      }
11703
      first = false;
13289
      first = false;
11704
      sb.append(")");
13290
      sb.append(")");