Subversion Repositories SmartDukaan

Rev

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

Rev 6096 Rev 6467
Line 277... Line 277...
277
 
277
 
278
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException;
278
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException;
279
 
279
 
280
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException;
280
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException;
281
 
281
 
-
 
282
    public long getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException;
-
 
283
 
282
  }
284
  }
283
 
285
 
284
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
286
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
285
 
287
 
286
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
288
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 353... Line 355...
353
 
355
 
354
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
356
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
355
 
357
 
356
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
358
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
357
 
359
 
-
 
360
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException;
-
 
361
 
358
  }
362
  }
359
 
363
 
360
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
364
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
361
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
365
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
362
      public Factory() {}
366
      public Factory() {}
Line 1259... Line 1263...
1259
      clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
1263
      clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
1260
      receiveBase(result, "clearItemAvailabilityCacheForItem");
1264
      receiveBase(result, "clearItemAvailabilityCacheForItem");
1261
      return;
1265
      return;
1262
    }
1266
    }
1263
 
1267
 
-
 
1268
    public long getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
-
 
1269
    {
-
 
1270
      send_getOurWarehouseIdForVendor(vendorId);
-
 
1271
      return recv_getOurWarehouseIdForVendor();
-
 
1272
    }
-
 
1273
 
-
 
1274
    public void send_getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
-
 
1275
    {
-
 
1276
      getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
-
 
1277
      args.setVendorId(vendorId);
-
 
1278
      sendBase("getOurWarehouseIdForVendor", args);
-
 
1279
    }
-
 
1280
 
-
 
1281
    public long recv_getOurWarehouseIdForVendor() throws org.apache.thrift.TException
-
 
1282
    {
-
 
1283
      getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
-
 
1284
      receiveBase(result, "getOurWarehouseIdForVendor");
-
 
1285
      if (result.isSetSuccess()) {
-
 
1286
        return result.success;
-
 
1287
      }
-
 
1288
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
-
 
1289
    }
-
 
1290
 
1264
  }
1291
  }
1265
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1292
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1266
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1293
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1267
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1294
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1268
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1295
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 2516... Line 2543...
2516
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2543
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2517
        (new Client(prot)).recv_clearItemAvailabilityCacheForItem();
2544
        (new Client(prot)).recv_clearItemAvailabilityCacheForItem();
2518
      }
2545
      }
2519
    }
2546
    }
2520
 
2547
 
-
 
2548
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException {
-
 
2549
      checkReady();
-
 
2550
      getOurWarehouseIdForVendor_call method_call = new getOurWarehouseIdForVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2551
      this.___currentMethod = method_call;
-
 
2552
      ___manager.call(method_call);
-
 
2553
    }
-
 
2554
 
-
 
2555
    public static class getOurWarehouseIdForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2556
      private long vendorId;
-
 
2557
      public getOurWarehouseIdForVendor_call(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_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 {
-
 
2558
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2559
        this.vendorId = vendorId;
-
 
2560
      }
-
 
2561
 
-
 
2562
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2563
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOurWarehouseIdForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2564
        getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
-
 
2565
        args.setVendorId(vendorId);
-
 
2566
        args.write(prot);
-
 
2567
        prot.writeMessageEnd();
-
 
2568
      }
-
 
2569
 
-
 
2570
      public long getResult() throws org.apache.thrift.TException {
-
 
2571
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2572
          throw new IllegalStateException("Method call not finished!");
-
 
2573
        }
-
 
2574
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2575
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2576
        return (new Client(prot)).recv_getOurWarehouseIdForVendor();
-
 
2577
      }
-
 
2578
    }
-
 
2579
 
2521
  }
2580
  }
2522
 
2581
 
2523
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2582
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2524
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2583
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2525
    public Processor(I iface) {
2584
    public Processor(I iface) {
Line 2565... Line 2624...
2565
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
2624
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
2566
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
2625
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
2567
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
2626
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
2568
      processMap.put("updateVendorString", new updateVendorString());
2627
      processMap.put("updateVendorString", new updateVendorString());
2569
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
2628
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
-
 
2629
      processMap.put("getOurWarehouseIdForVendor", new getOurWarehouseIdForVendor());
2570
      return processMap;
2630
      return processMap;
2571
    }
2631
    }
2572
 
2632
 
2573
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
2633
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
2574
      public addWarehouse() {
2634
      public addWarehouse() {
Line 3238... Line 3298...
3238
        iface.clearItemAvailabilityCacheForItem(args.item_id);
3298
        iface.clearItemAvailabilityCacheForItem(args.item_id);
3239
        return result;
3299
        return result;
3240
      }
3300
      }
3241
    }
3301
    }
3242
 
3302
 
-
 
3303
    private static class getOurWarehouseIdForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOurWarehouseIdForVendor_args> {
-
 
3304
      public getOurWarehouseIdForVendor() {
-
 
3305
        super("getOurWarehouseIdForVendor");
-
 
3306
      }
-
 
3307
 
-
 
3308
      protected getOurWarehouseIdForVendor_args getEmptyArgsInstance() {
-
 
3309
        return new getOurWarehouseIdForVendor_args();
-
 
3310
      }
-
 
3311
 
-
 
3312
      protected getOurWarehouseIdForVendor_result getResult(I iface, getOurWarehouseIdForVendor_args args) throws org.apache.thrift.TException {
-
 
3313
        getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
-
 
3314
        result.success = iface.getOurWarehouseIdForVendor(args.vendorId);
-
 
3315
        result.setSuccessIsSet(true);
-
 
3316
        return result;
-
 
3317
      }
-
 
3318
    }
-
 
3319
 
3243
  }
3320
  }
3244
 
3321
 
3245
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
3322
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
3246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
3323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
3247
 
3324
 
Line 5097... Line 5174...
5097
      }
5174
      }
5098
    }
5175
    }
5099
 
5176
 
5100
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5177
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5101
      try {
5178
      try {
5102
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
5103
        __isset_bit_vector = new BitSet(1);
-
 
5104
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5179
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5105
      } catch (org.apache.thrift.TException te) {
5180
      } catch (org.apache.thrift.TException te) {
5106
        throw new java.io.IOException(te);
5181
        throw new java.io.IOException(te);
5107
      }
5182
      }
5108
    }
5183
    }
Line 24720... Line 24795...
24720
      }
24795
      }
24721
    }
24796
    }
24722
 
24797
 
24723
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24798
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24724
      try {
24799
      try {
24725
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
24726
        __isset_bit_vector = new BitSet(1);
-
 
24727
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24800
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24728
      } catch (org.apache.thrift.TException te) {
24801
      } catch (org.apache.thrift.TException te) {
24729
        throw new java.io.IOException(te);
24802
        throw new java.io.IOException(te);
24730
      }
24803
      }
24731
    }
24804
    }
Line 28171... Line 28244...
28171
      sb.append(")");
28244
      sb.append(")");
28172
      return sb.toString();
28245
      return sb.toString();
28173
    }
28246
    }
28174
 
28247
 
28175
    public void validate() throws org.apache.thrift.TException {
28248
    public void validate() throws org.apache.thrift.TException {
-
 
28249
      // check for required fields
-
 
28250
    }
-
 
28251
 
-
 
28252
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
28253
      try {
-
 
28254
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
28255
      } catch (org.apache.thrift.TException te) {
-
 
28256
        throw new java.io.IOException(te);
-
 
28257
      }
-
 
28258
    }
-
 
28259
 
-
 
28260
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
28261
      try {
-
 
28262
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
28263
      } catch (org.apache.thrift.TException te) {
-
 
28264
        throw new java.io.IOException(te);
-
 
28265
      }
-
 
28266
    }
-
 
28267
 
-
 
28268
  }
-
 
28269
 
-
 
28270
  public static class getOurWarehouseIdForVendor_args implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_args, getOurWarehouseIdForVendor_args._Fields>, java.io.Serializable, Cloneable   {
-
 
28271
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_args");
-
 
28272
 
-
 
28273
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
28274
 
-
 
28275
    private long vendorId; // required
-
 
28276
 
-
 
28277
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28278
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
28279
      VENDOR_ID((short)1, "vendorId");
-
 
28280
 
-
 
28281
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28282
 
-
 
28283
      static {
-
 
28284
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28285
          byName.put(field.getFieldName(), field);
-
 
28286
        }
-
 
28287
      }
-
 
28288
 
-
 
28289
      /**
-
 
28290
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28291
       */
-
 
28292
      public static _Fields findByThriftId(int fieldId) {
-
 
28293
        switch(fieldId) {
-
 
28294
          case 1: // VENDOR_ID
-
 
28295
            return VENDOR_ID;
-
 
28296
          default:
-
 
28297
            return null;
-
 
28298
        }
-
 
28299
      }
-
 
28300
 
-
 
28301
      /**
-
 
28302
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28303
       * if it is not found.
-
 
28304
       */
-
 
28305
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28306
        _Fields fields = findByThriftId(fieldId);
-
 
28307
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28308
        return fields;
-
 
28309
      }
-
 
28310
 
-
 
28311
      /**
-
 
28312
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28313
       */
-
 
28314
      public static _Fields findByName(String name) {
-
 
28315
        return byName.get(name);
-
 
28316
      }
-
 
28317
 
-
 
28318
      private final short _thriftId;
-
 
28319
      private final String _fieldName;
-
 
28320
 
-
 
28321
      _Fields(short thriftId, String fieldName) {
-
 
28322
        _thriftId = thriftId;
-
 
28323
        _fieldName = fieldName;
-
 
28324
      }
-
 
28325
 
-
 
28326
      public short getThriftFieldId() {
-
 
28327
        return _thriftId;
-
 
28328
      }
-
 
28329
 
-
 
28330
      public String getFieldName() {
-
 
28331
        return _fieldName;
-
 
28332
      }
-
 
28333
    }
-
 
28334
 
-
 
28335
    // isset id assignments
-
 
28336
    private static final int __VENDORID_ISSET_ID = 0;
-
 
28337
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
28338
 
-
 
28339
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
28340
    static {
-
 
28341
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
28342
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
28343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
28344
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
28345
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_args.class, metaDataMap);
-
 
28346
    }
-
 
28347
 
-
 
28348
    public getOurWarehouseIdForVendor_args() {
-
 
28349
    }
-
 
28350
 
-
 
28351
    public getOurWarehouseIdForVendor_args(
-
 
28352
      long vendorId)
-
 
28353
    {
-
 
28354
      this();
-
 
28355
      this.vendorId = vendorId;
-
 
28356
      setVendorIdIsSet(true);
-
 
28357
    }
-
 
28358
 
-
 
28359
    /**
-
 
28360
     * Performs a deep copy on <i>other</i>.
-
 
28361
     */
-
 
28362
    public getOurWarehouseIdForVendor_args(getOurWarehouseIdForVendor_args other) {
-
 
28363
      __isset_bit_vector.clear();
-
 
28364
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
28365
      this.vendorId = other.vendorId;
-
 
28366
    }
-
 
28367
 
-
 
28368
    public getOurWarehouseIdForVendor_args deepCopy() {
-
 
28369
      return new getOurWarehouseIdForVendor_args(this);
-
 
28370
    }
-
 
28371
 
-
 
28372
    @Override
-
 
28373
    public void clear() {
-
 
28374
      setVendorIdIsSet(false);
-
 
28375
      this.vendorId = 0;
-
 
28376
    }
-
 
28377
 
-
 
28378
    public long getVendorId() {
-
 
28379
      return this.vendorId;
-
 
28380
    }
-
 
28381
 
-
 
28382
    public void setVendorId(long vendorId) {
-
 
28383
      this.vendorId = vendorId;
-
 
28384
      setVendorIdIsSet(true);
-
 
28385
    }
-
 
28386
 
-
 
28387
    public void unsetVendorId() {
-
 
28388
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
-
 
28389
    }
-
 
28390
 
-
 
28391
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
-
 
28392
    public boolean isSetVendorId() {
-
 
28393
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
-
 
28394
    }
-
 
28395
 
-
 
28396
    public void setVendorIdIsSet(boolean value) {
-
 
28397
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
-
 
28398
    }
-
 
28399
 
-
 
28400
    public void setFieldValue(_Fields field, Object value) {
-
 
28401
      switch (field) {
-
 
28402
      case VENDOR_ID:
-
 
28403
        if (value == null) {
-
 
28404
          unsetVendorId();
-
 
28405
        } else {
-
 
28406
          setVendorId((Long)value);
-
 
28407
        }
-
 
28408
        break;
-
 
28409
 
-
 
28410
      }
-
 
28411
    }
-
 
28412
 
-
 
28413
    public Object getFieldValue(_Fields field) {
-
 
28414
      switch (field) {
-
 
28415
      case VENDOR_ID:
-
 
28416
        return Long.valueOf(getVendorId());
-
 
28417
 
-
 
28418
      }
-
 
28419
      throw new IllegalStateException();
-
 
28420
    }
-
 
28421
 
-
 
28422
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
28423
    public boolean isSet(_Fields field) {
-
 
28424
      if (field == null) {
-
 
28425
        throw new IllegalArgumentException();
-
 
28426
      }
-
 
28427
 
-
 
28428
      switch (field) {
-
 
28429
      case VENDOR_ID:
-
 
28430
        return isSetVendorId();
-
 
28431
      }
-
 
28432
      throw new IllegalStateException();
-
 
28433
    }
-
 
28434
 
-
 
28435
    @Override
-
 
28436
    public boolean equals(Object that) {
-
 
28437
      if (that == null)
-
 
28438
        return false;
-
 
28439
      if (that instanceof getOurWarehouseIdForVendor_args)
-
 
28440
        return this.equals((getOurWarehouseIdForVendor_args)that);
-
 
28441
      return false;
-
 
28442
    }
-
 
28443
 
-
 
28444
    public boolean equals(getOurWarehouseIdForVendor_args that) {
-
 
28445
      if (that == null)
-
 
28446
        return false;
-
 
28447
 
-
 
28448
      boolean this_present_vendorId = true;
-
 
28449
      boolean that_present_vendorId = true;
-
 
28450
      if (this_present_vendorId || that_present_vendorId) {
-
 
28451
        if (!(this_present_vendorId && that_present_vendorId))
-
 
28452
          return false;
-
 
28453
        if (this.vendorId != that.vendorId)
-
 
28454
          return false;
-
 
28455
      }
-
 
28456
 
-
 
28457
      return true;
-
 
28458
    }
-
 
28459
 
-
 
28460
    @Override
-
 
28461
    public int hashCode() {
-
 
28462
      return 0;
-
 
28463
    }
-
 
28464
 
-
 
28465
    public int compareTo(getOurWarehouseIdForVendor_args other) {
-
 
28466
      if (!getClass().equals(other.getClass())) {
-
 
28467
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28468
      }
-
 
28469
 
-
 
28470
      int lastComparison = 0;
-
 
28471
      getOurWarehouseIdForVendor_args typedOther = (getOurWarehouseIdForVendor_args)other;
-
 
28472
 
-
 
28473
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
-
 
28474
      if (lastComparison != 0) {
-
 
28475
        return lastComparison;
-
 
28476
      }
-
 
28477
      if (isSetVendorId()) {
-
 
28478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
-
 
28479
        if (lastComparison != 0) {
-
 
28480
          return lastComparison;
-
 
28481
        }
-
 
28482
      }
-
 
28483
      return 0;
-
 
28484
    }
-
 
28485
 
-
 
28486
    public _Fields fieldForId(int fieldId) {
-
 
28487
      return _Fields.findByThriftId(fieldId);
-
 
28488
    }
-
 
28489
 
-
 
28490
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
28491
      org.apache.thrift.protocol.TField field;
-
 
28492
      iprot.readStructBegin();
-
 
28493
      while (true)
-
 
28494
      {
-
 
28495
        field = iprot.readFieldBegin();
-
 
28496
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
28497
          break;
-
 
28498
        }
-
 
28499
        switch (field.id) {
-
 
28500
          case 1: // VENDOR_ID
-
 
28501
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
28502
              this.vendorId = iprot.readI64();
-
 
28503
              setVendorIdIsSet(true);
-
 
28504
            } else { 
-
 
28505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28506
            }
-
 
28507
            break;
-
 
28508
          default:
-
 
28509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28510
        }
-
 
28511
        iprot.readFieldEnd();
-
 
28512
      }
-
 
28513
      iprot.readStructEnd();
-
 
28514
      validate();
-
 
28515
    }
-
 
28516
 
-
 
28517
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
28518
      validate();
-
 
28519
 
-
 
28520
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28521
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
-
 
28522
      oprot.writeI64(this.vendorId);
-
 
28523
      oprot.writeFieldEnd();
-
 
28524
      oprot.writeFieldStop();
-
 
28525
      oprot.writeStructEnd();
-
 
28526
    }
-
 
28527
 
-
 
28528
    @Override
-
 
28529
    public String toString() {
-
 
28530
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_args(");
-
 
28531
      boolean first = true;
-
 
28532
 
-
 
28533
      sb.append("vendorId:");
-
 
28534
      sb.append(this.vendorId);
-
 
28535
      first = false;
-
 
28536
      sb.append(")");
-
 
28537
      return sb.toString();
-
 
28538
    }
-
 
28539
 
-
 
28540
    public void validate() throws org.apache.thrift.TException {
-
 
28541
      // check for required fields
-
 
28542
    }
-
 
28543
 
-
 
28544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
28545
      try {
-
 
28546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
28547
      } catch (org.apache.thrift.TException te) {
-
 
28548
        throw new java.io.IOException(te);
-
 
28549
      }
-
 
28550
    }
-
 
28551
 
-
 
28552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
28553
      try {
-
 
28554
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
28555
        __isset_bit_vector = new BitSet(1);
-
 
28556
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
28557
      } catch (org.apache.thrift.TException te) {
-
 
28558
        throw new java.io.IOException(te);
-
 
28559
      }
-
 
28560
    }
-
 
28561
 
-
 
28562
  }
-
 
28563
 
-
 
28564
  public static class getOurWarehouseIdForVendor_result implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_result, getOurWarehouseIdForVendor_result._Fields>, java.io.Serializable, Cloneable   {
-
 
28565
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_result");
-
 
28566
 
-
 
28567
    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);
-
 
28568
 
-
 
28569
    private long success; // required
-
 
28570
 
-
 
28571
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28572
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
28573
      SUCCESS((short)0, "success");
-
 
28574
 
-
 
28575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28576
 
-
 
28577
      static {
-
 
28578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28579
          byName.put(field.getFieldName(), field);
-
 
28580
        }
-
 
28581
      }
-
 
28582
 
-
 
28583
      /**
-
 
28584
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28585
       */
-
 
28586
      public static _Fields findByThriftId(int fieldId) {
-
 
28587
        switch(fieldId) {
-
 
28588
          case 0: // SUCCESS
-
 
28589
            return SUCCESS;
-
 
28590
          default:
-
 
28591
            return null;
-
 
28592
        }
-
 
28593
      }
-
 
28594
 
-
 
28595
      /**
-
 
28596
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28597
       * if it is not found.
-
 
28598
       */
-
 
28599
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28600
        _Fields fields = findByThriftId(fieldId);
-
 
28601
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28602
        return fields;
-
 
28603
      }
-
 
28604
 
-
 
28605
      /**
-
 
28606
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28607
       */
-
 
28608
      public static _Fields findByName(String name) {
-
 
28609
        return byName.get(name);
-
 
28610
      }
-
 
28611
 
-
 
28612
      private final short _thriftId;
-
 
28613
      private final String _fieldName;
-
 
28614
 
-
 
28615
      _Fields(short thriftId, String fieldName) {
-
 
28616
        _thriftId = thriftId;
-
 
28617
        _fieldName = fieldName;
-
 
28618
      }
-
 
28619
 
-
 
28620
      public short getThriftFieldId() {
-
 
28621
        return _thriftId;
-
 
28622
      }
-
 
28623
 
-
 
28624
      public String getFieldName() {
-
 
28625
        return _fieldName;
-
 
28626
      }
-
 
28627
    }
-
 
28628
 
-
 
28629
    // isset id assignments
-
 
28630
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
28631
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
28632
 
-
 
28633
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
28634
    static {
-
 
28635
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
28636
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
28637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
28638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
28639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_result.class, metaDataMap);
-
 
28640
    }
-
 
28641
 
-
 
28642
    public getOurWarehouseIdForVendor_result() {
-
 
28643
    }
-
 
28644
 
-
 
28645
    public getOurWarehouseIdForVendor_result(
-
 
28646
      long success)
-
 
28647
    {
-
 
28648
      this();
-
 
28649
      this.success = success;
-
 
28650
      setSuccessIsSet(true);
-
 
28651
    }
-
 
28652
 
-
 
28653
    /**
-
 
28654
     * Performs a deep copy on <i>other</i>.
-
 
28655
     */
-
 
28656
    public getOurWarehouseIdForVendor_result(getOurWarehouseIdForVendor_result other) {
-
 
28657
      __isset_bit_vector.clear();
-
 
28658
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
28659
      this.success = other.success;
-
 
28660
    }
-
 
28661
 
-
 
28662
    public getOurWarehouseIdForVendor_result deepCopy() {
-
 
28663
      return new getOurWarehouseIdForVendor_result(this);
-
 
28664
    }
-
 
28665
 
-
 
28666
    @Override
-
 
28667
    public void clear() {
-
 
28668
      setSuccessIsSet(false);
-
 
28669
      this.success = 0;
-
 
28670
    }
-
 
28671
 
-
 
28672
    public long getSuccess() {
-
 
28673
      return this.success;
-
 
28674
    }
-
 
28675
 
-
 
28676
    public void setSuccess(long success) {
-
 
28677
      this.success = success;
-
 
28678
      setSuccessIsSet(true);
-
 
28679
    }
-
 
28680
 
-
 
28681
    public void unsetSuccess() {
-
 
28682
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
28683
    }
-
 
28684
 
-
 
28685
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
28686
    public boolean isSetSuccess() {
-
 
28687
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
28688
    }
-
 
28689
 
-
 
28690
    public void setSuccessIsSet(boolean value) {
-
 
28691
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
28692
    }
-
 
28693
 
-
 
28694
    public void setFieldValue(_Fields field, Object value) {
-
 
28695
      switch (field) {
-
 
28696
      case SUCCESS:
-
 
28697
        if (value == null) {
-
 
28698
          unsetSuccess();
-
 
28699
        } else {
-
 
28700
          setSuccess((Long)value);
-
 
28701
        }
-
 
28702
        break;
-
 
28703
 
-
 
28704
      }
-
 
28705
    }
-
 
28706
 
-
 
28707
    public Object getFieldValue(_Fields field) {
-
 
28708
      switch (field) {
-
 
28709
      case SUCCESS:
-
 
28710
        return Long.valueOf(getSuccess());
-
 
28711
 
-
 
28712
      }
-
 
28713
      throw new IllegalStateException();
-
 
28714
    }
-
 
28715
 
-
 
28716
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
28717
    public boolean isSet(_Fields field) {
-
 
28718
      if (field == null) {
-
 
28719
        throw new IllegalArgumentException();
-
 
28720
      }
-
 
28721
 
-
 
28722
      switch (field) {
-
 
28723
      case SUCCESS:
-
 
28724
        return isSetSuccess();
-
 
28725
      }
-
 
28726
      throw new IllegalStateException();
-
 
28727
    }
-
 
28728
 
-
 
28729
    @Override
-
 
28730
    public boolean equals(Object that) {
-
 
28731
      if (that == null)
-
 
28732
        return false;
-
 
28733
      if (that instanceof getOurWarehouseIdForVendor_result)
-
 
28734
        return this.equals((getOurWarehouseIdForVendor_result)that);
-
 
28735
      return false;
-
 
28736
    }
-
 
28737
 
-
 
28738
    public boolean equals(getOurWarehouseIdForVendor_result that) {
-
 
28739
      if (that == null)
-
 
28740
        return false;
-
 
28741
 
-
 
28742
      boolean this_present_success = true;
-
 
28743
      boolean that_present_success = true;
-
 
28744
      if (this_present_success || that_present_success) {
-
 
28745
        if (!(this_present_success && that_present_success))
-
 
28746
          return false;
-
 
28747
        if (this.success != that.success)
-
 
28748
          return false;
-
 
28749
      }
-
 
28750
 
-
 
28751
      return true;
-
 
28752
    }
-
 
28753
 
-
 
28754
    @Override
-
 
28755
    public int hashCode() {
-
 
28756
      return 0;
-
 
28757
    }
-
 
28758
 
-
 
28759
    public int compareTo(getOurWarehouseIdForVendor_result other) {
-
 
28760
      if (!getClass().equals(other.getClass())) {
-
 
28761
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28762
      }
-
 
28763
 
-
 
28764
      int lastComparison = 0;
-
 
28765
      getOurWarehouseIdForVendor_result typedOther = (getOurWarehouseIdForVendor_result)other;
-
 
28766
 
-
 
28767
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
28768
      if (lastComparison != 0) {
-
 
28769
        return lastComparison;
-
 
28770
      }
-
 
28771
      if (isSetSuccess()) {
-
 
28772
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
28773
        if (lastComparison != 0) {
-
 
28774
          return lastComparison;
-
 
28775
        }
-
 
28776
      }
-
 
28777
      return 0;
-
 
28778
    }
-
 
28779
 
-
 
28780
    public _Fields fieldForId(int fieldId) {
-
 
28781
      return _Fields.findByThriftId(fieldId);
-
 
28782
    }
-
 
28783
 
-
 
28784
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
28785
      org.apache.thrift.protocol.TField field;
-
 
28786
      iprot.readStructBegin();
-
 
28787
      while (true)
-
 
28788
      {
-
 
28789
        field = iprot.readFieldBegin();
-
 
28790
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
28791
          break;
-
 
28792
        }
-
 
28793
        switch (field.id) {
-
 
28794
          case 0: // SUCCESS
-
 
28795
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
28796
              this.success = iprot.readI64();
-
 
28797
              setSuccessIsSet(true);
-
 
28798
            } else { 
-
 
28799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28800
            }
-
 
28801
            break;
-
 
28802
          default:
-
 
28803
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28804
        }
-
 
28805
        iprot.readFieldEnd();
-
 
28806
      }
-
 
28807
      iprot.readStructEnd();
-
 
28808
      validate();
-
 
28809
    }
-
 
28810
 
-
 
28811
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
28812
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28813
 
-
 
28814
      if (this.isSetSuccess()) {
-
 
28815
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
28816
        oprot.writeI64(this.success);
-
 
28817
        oprot.writeFieldEnd();
-
 
28818
      }
-
 
28819
      oprot.writeFieldStop();
-
 
28820
      oprot.writeStructEnd();
-
 
28821
    }
-
 
28822
 
-
 
28823
    @Override
-
 
28824
    public String toString() {
-
 
28825
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_result(");
-
 
28826
      boolean first = true;
-
 
28827
 
-
 
28828
      sb.append("success:");
-
 
28829
      sb.append(this.success);
-
 
28830
      first = false;
-
 
28831
      sb.append(")");
-
 
28832
      return sb.toString();
-
 
28833
    }
-
 
28834
 
-
 
28835
    public void validate() throws org.apache.thrift.TException {
28176
      // check for required fields
28836
      // check for required fields
28177
    }
28837
    }
28178
 
28838
 
28179
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28839
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28180
      try {
28840
      try {