Subversion Repositories SmartDukaan

Rev

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

Rev 6524 Rev 6643
Line 66... Line 66...
66
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
66
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
67
 
67
 
68
    /**
68
    /**
69
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
69
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
70
     * 
70
     * 
71
     * @param awb
71
     * @param awbNumber
72
     * @param providerId
72
     * @param providerId
73
     */
73
     */
74
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
74
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
-
 
75
 
-
 
76
    /**
-
 
77
     * Store the update for the given AWB number and provider id.
-
 
78
     * 
-
 
79
     * @param update
-
 
80
     */
-
 
81
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException;
75
 
82
 
76
    /**
83
    /**
77
     * Returns the short three letter code of a pincode for the given provider.
84
     * Returns the short three letter code of a pincode for the given provider.
78
     *    Raises an exception if the pin code is not serviced by the given provider.
85
     *    Raises an exception if the pin code is not serviced by the given provider.
79
     * 
86
     * 
Line 141... Line 148...
141
 
148
 
142
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
149
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
143
 
150
 
144
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
151
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
145
 
152
 
146
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
153
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
-
 
154
 
-
 
155
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
147
 
156
 
148
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
157
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
149
 
158
 
150
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
159
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
151
 
160
 
Line 320... Line 329...
320
        throw result.se;
329
        throw result.se;
321
      }
330
      }
322
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
331
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
323
    }
332
    }
324
 
333
 
325
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
334
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
326
    {
335
    {
327
      send_getShipmentInfo(awb, providerId);
336
      send_getShipmentInfo(awbNumber, providerId);
328
      return recv_getShipmentInfo();
337
      return recv_getShipmentInfo();
329
    }
338
    }
330
 
339
 
331
    public void send_getShipmentInfo(String awb, long providerId) throws org.apache.thrift.TException
340
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
332
    {
341
    {
333
      getShipmentInfo_args args = new getShipmentInfo_args();
342
      getShipmentInfo_args args = new getShipmentInfo_args();
334
      args.setAwb(awb);
343
      args.setAwbNumber(awbNumber);
335
      args.setProviderId(providerId);
344
      args.setProviderId(providerId);
336
      sendBase("getShipmentInfo", args);
345
      sendBase("getShipmentInfo", args);
337
    }
346
    }
338
 
347
 
339
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
348
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
Line 347... Line 356...
347
        throw result.se;
356
        throw result.se;
348
      }
357
      }
349
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
358
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
350
    }
359
    }
351
 
360
 
-
 
361
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
-
 
362
    {
-
 
363
      send_storeShipmentInfo(update);
-
 
364
      recv_storeShipmentInfo();
-
 
365
    }
-
 
366
 
-
 
367
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
-
 
368
    {
-
 
369
      storeShipmentInfo_args args = new storeShipmentInfo_args();
-
 
370
      args.setUpdate(update);
-
 
371
      sendBase("storeShipmentInfo", args);
-
 
372
    }
-
 
373
 
-
 
374
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
-
 
375
    {
-
 
376
      storeShipmentInfo_result result = new storeShipmentInfo_result();
-
 
377
      receiveBase(result, "storeShipmentInfo");
-
 
378
      if (result.se != null) {
-
 
379
        throw result.se;
-
 
380
      }
-
 
381
      return;
-
 
382
    }
-
 
383
 
352
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
384
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
353
    {
385
    {
354
      send_getDestinationCode(providerId, pinCode);
386
      send_getDestinationCode(providerId, pinCode);
355
      return recv_getDestinationCode();
387
      return recv_getDestinationCode();
356
    }
388
    }
Line 784... Line 816...
784
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
816
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
785
        return (new Client(prot)).recv_getEmptyAWB();
817
        return (new Client(prot)).recv_getEmptyAWB();
786
      }
818
      }
787
    }
819
    }
788
 
820
 
789
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
821
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
790
      checkReady();
822
      checkReady();
791
      getShipmentInfo_call method_call = new getShipmentInfo_call(awb, providerId, resultHandler, this, ___protocolFactory, ___transport);
823
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
792
      this.___currentMethod = method_call;
824
      this.___currentMethod = method_call;
793
      ___manager.call(method_call);
825
      ___manager.call(method_call);
794
    }
826
    }
795
 
827
 
796
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
828
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
797
      private String awb;
829
      private String awbNumber;
798
      private long providerId;
830
      private long providerId;
799
      public getShipmentInfo_call(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_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 {
831
      public getShipmentInfo_call(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_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 {
800
        super(client, protocolFactory, transport, resultHandler, false);
832
        super(client, protocolFactory, transport, resultHandler, false);
801
        this.awb = awb;
833
        this.awbNumber = awbNumber;
802
        this.providerId = providerId;
834
        this.providerId = providerId;
803
      }
835
      }
804
 
836
 
805
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
837
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
806
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
838
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
807
        getShipmentInfo_args args = new getShipmentInfo_args();
839
        getShipmentInfo_args args = new getShipmentInfo_args();
808
        args.setAwb(awb);
840
        args.setAwbNumber(awbNumber);
809
        args.setProviderId(providerId);
841
        args.setProviderId(providerId);
810
        args.write(prot);
842
        args.write(prot);
811
        prot.writeMessageEnd();
843
        prot.writeMessageEnd();
812
      }
844
      }
813
 
845
 
Line 819... Line 851...
819
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
851
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
820
        return (new Client(prot)).recv_getShipmentInfo();
852
        return (new Client(prot)).recv_getShipmentInfo();
821
      }
853
      }
822
    }
854
    }
823
 
855
 
-
 
856
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
-
 
857
      checkReady();
-
 
858
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
-
 
859
      this.___currentMethod = method_call;
-
 
860
      ___manager.call(method_call);
-
 
861
    }
-
 
862
 
-
 
863
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
864
      private AwbUpdate update;
-
 
865
      public storeShipmentInfo_call(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_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 {
-
 
866
        super(client, protocolFactory, transport, resultHandler, false);
-
 
867
        this.update = update;
-
 
868
      }
-
 
869
 
-
 
870
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
871
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
872
        storeShipmentInfo_args args = new storeShipmentInfo_args();
-
 
873
        args.setUpdate(update);
-
 
874
        args.write(prot);
-
 
875
        prot.writeMessageEnd();
-
 
876
      }
-
 
877
 
-
 
878
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
879
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
880
          throw new IllegalStateException("Method call not finished!");
-
 
881
        }
-
 
882
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
883
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
884
        (new Client(prot)).recv_storeShipmentInfo();
-
 
885
      }
-
 
886
    }
-
 
887
 
824
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
888
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
825
      checkReady();
889
      checkReady();
826
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
890
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
827
      this.___currentMethod = method_call;
891
      this.___currentMethod = method_call;
828
      ___manager.call(method_call);
892
      ___manager.call(method_call);
Line 1200... Line 1264...
1200
      processMap.put("getAllProviders", new getAllProviders());
1264
      processMap.put("getAllProviders", new getAllProviders());
1201
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
1265
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
1202
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1266
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1203
      processMap.put("getEmptyAWB", new getEmptyAWB());
1267
      processMap.put("getEmptyAWB", new getEmptyAWB());
1204
      processMap.put("getShipmentInfo", new getShipmentInfo());
1268
      processMap.put("getShipmentInfo", new getShipmentInfo());
-
 
1269
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
1205
      processMap.put("getDestinationCode", new getDestinationCode());
1270
      processMap.put("getDestinationCode", new getDestinationCode());
1206
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1271
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1207
      processMap.put("getHolidays", new getHolidays());
1272
      processMap.put("getHolidays", new getHolidays());
1208
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
1273
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
1209
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
1274
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
Line 1325... Line 1390...
1325
      }
1390
      }
1326
 
1391
 
1327
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
1392
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
1328
        getShipmentInfo_result result = new getShipmentInfo_result();
1393
        getShipmentInfo_result result = new getShipmentInfo_result();
1329
        try {
1394
        try {
1330
          result.success = iface.getShipmentInfo(args.awb, args.providerId);
1395
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
-
 
1396
        } catch (LogisticsServiceException se) {
-
 
1397
          result.se = se;
-
 
1398
        }
-
 
1399
        return result;
-
 
1400
      }
-
 
1401
    }
-
 
1402
 
-
 
1403
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
-
 
1404
      public storeShipmentInfo() {
-
 
1405
        super("storeShipmentInfo");
-
 
1406
      }
-
 
1407
 
-
 
1408
      protected storeShipmentInfo_args getEmptyArgsInstance() {
-
 
1409
        return new storeShipmentInfo_args();
-
 
1410
      }
-
 
1411
 
-
 
1412
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
-
 
1413
        storeShipmentInfo_result result = new storeShipmentInfo_result();
-
 
1414
        try {
-
 
1415
          iface.storeShipmentInfo(args.update);
1331
        } catch (LogisticsServiceException se) {
1416
        } catch (LogisticsServiceException se) {
1332
          result.se = se;
1417
          result.se = se;
1333
        }
1418
        }
1334
        return result;
1419
        return result;
1335
      }
1420
      }
Line 5400... Line 5485...
5400
  }
5485
  }
5401
 
5486
 
5402
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
5487
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
5403
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
5488
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
5404
 
5489
 
5405
    private static final org.apache.thrift.protocol.TField AWB_FIELD_DESC = new org.apache.thrift.protocol.TField("awb", org.apache.thrift.protocol.TType.STRING, (short)1);
5490
    private static final org.apache.thrift.protocol.TField AWB_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("awbNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
5406
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)2);
5491
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)2);
5407
 
5492
 
5408
    private String awb; // required
5493
    private String awbNumber; // required
5409
    private long providerId; // required
5494
    private long providerId; // required
5410
 
5495
 
5411
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5412
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5413
      AWB((short)1, "awb"),
5498
      AWB_NUMBER((short)1, "awbNumber"),
5414
      PROVIDER_ID((short)2, "providerId");
5499
      PROVIDER_ID((short)2, "providerId");
5415
 
5500
 
5416
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5417
 
5502
 
5418
      static {
5503
      static {
Line 5424... Line 5509...
5424
      /**
5509
      /**
5425
       * Find the _Fields constant that matches fieldId, or null if its not found.
5510
       * Find the _Fields constant that matches fieldId, or null if its not found.
5426
       */
5511
       */
5427
      public static _Fields findByThriftId(int fieldId) {
5512
      public static _Fields findByThriftId(int fieldId) {
5428
        switch(fieldId) {
5513
        switch(fieldId) {
5429
          case 1: // AWB
5514
          case 1: // AWB_NUMBER
5430
            return AWB;
5515
            return AWB_NUMBER;
5431
          case 2: // PROVIDER_ID
5516
          case 2: // PROVIDER_ID
5432
            return PROVIDER_ID;
5517
            return PROVIDER_ID;
5433
          default:
5518
          default:
5434
            return null;
5519
            return null;
5435
        }
5520
        }
Line 5474... Line 5559...
5474
    private BitSet __isset_bit_vector = new BitSet(1);
5559
    private BitSet __isset_bit_vector = new BitSet(1);
5475
 
5560
 
5476
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5561
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5477
    static {
5562
    static {
5478
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5563
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5479
      tmpMap.put(_Fields.AWB, new org.apache.thrift.meta_data.FieldMetaData("awb", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5564
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5480
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5565
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5481
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5566
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5482
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5567
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5483
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5568
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5484
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
5569
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
Line 5486... Line 5571...
5486
 
5571
 
5487
    public getShipmentInfo_args() {
5572
    public getShipmentInfo_args() {
5488
    }
5573
    }
5489
 
5574
 
5490
    public getShipmentInfo_args(
5575
    public getShipmentInfo_args(
5491
      String awb,
5576
      String awbNumber,
5492
      long providerId)
5577
      long providerId)
5493
    {
5578
    {
5494
      this();
5579
      this();
5495
      this.awb = awb;
5580
      this.awbNumber = awbNumber;
5496
      this.providerId = providerId;
5581
      this.providerId = providerId;
5497
      setProviderIdIsSet(true);
5582
      setProviderIdIsSet(true);
5498
    }
5583
    }
5499
 
5584
 
5500
    /**
5585
    /**
5501
     * Performs a deep copy on <i>other</i>.
5586
     * Performs a deep copy on <i>other</i>.
5502
     */
5587
     */
5503
    public getShipmentInfo_args(getShipmentInfo_args other) {
5588
    public getShipmentInfo_args(getShipmentInfo_args other) {
5504
      __isset_bit_vector.clear();
5589
      __isset_bit_vector.clear();
5505
      __isset_bit_vector.or(other.__isset_bit_vector);
5590
      __isset_bit_vector.or(other.__isset_bit_vector);
5506
      if (other.isSetAwb()) {
5591
      if (other.isSetAwbNumber()) {
5507
        this.awb = other.awb;
5592
        this.awbNumber = other.awbNumber;
5508
      }
5593
      }
5509
      this.providerId = other.providerId;
5594
      this.providerId = other.providerId;
5510
    }
5595
    }
5511
 
5596
 
5512
    public getShipmentInfo_args deepCopy() {
5597
    public getShipmentInfo_args deepCopy() {
5513
      return new getShipmentInfo_args(this);
5598
      return new getShipmentInfo_args(this);
5514
    }
5599
    }
5515
 
5600
 
5516
    @Override
5601
    @Override
5517
    public void clear() {
5602
    public void clear() {
5518
      this.awb = null;
5603
      this.awbNumber = null;
5519
      setProviderIdIsSet(false);
5604
      setProviderIdIsSet(false);
5520
      this.providerId = 0;
5605
      this.providerId = 0;
5521
    }
5606
    }
5522
 
5607
 
5523
    public String getAwb() {
5608
    public String getAwbNumber() {
5524
      return this.awb;
5609
      return this.awbNumber;
5525
    }
5610
    }
5526
 
5611
 
5527
    public void setAwb(String awb) {
5612
    public void setAwbNumber(String awbNumber) {
5528
      this.awb = awb;
5613
      this.awbNumber = awbNumber;
5529
    }
5614
    }
5530
 
5615
 
5531
    public void unsetAwb() {
5616
    public void unsetAwbNumber() {
5532
      this.awb = null;
5617
      this.awbNumber = null;
5533
    }
5618
    }
5534
 
5619
 
5535
    /** Returns true if field awb is set (has been assigned a value) and false otherwise */
5620
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
5536
    public boolean isSetAwb() {
5621
    public boolean isSetAwbNumber() {
5537
      return this.awb != null;
5622
      return this.awbNumber != null;
5538
    }
5623
    }
5539
 
5624
 
5540
    public void setAwbIsSet(boolean value) {
5625
    public void setAwbNumberIsSet(boolean value) {
5541
      if (!value) {
5626
      if (!value) {
5542
        this.awb = null;
5627
        this.awbNumber = null;
5543
      }
5628
      }
5544
    }
5629
    }
5545
 
5630
 
5546
    public long getProviderId() {
5631
    public long getProviderId() {
5547
      return this.providerId;
5632
      return this.providerId;
Line 5565... Line 5650...
5565
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
5650
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
5566
    }
5651
    }
5567
 
5652
 
5568
    public void setFieldValue(_Fields field, Object value) {
5653
    public void setFieldValue(_Fields field, Object value) {
5569
      switch (field) {
5654
      switch (field) {
5570
      case AWB:
5655
      case AWB_NUMBER:
5571
        if (value == null) {
5656
        if (value == null) {
5572
          unsetAwb();
5657
          unsetAwbNumber();
5573
        } else {
5658
        } else {
5574
          setAwb((String)value);
5659
          setAwbNumber((String)value);
5575
        }
5660
        }
5576
        break;
5661
        break;
5577
 
5662
 
5578
      case PROVIDER_ID:
5663
      case PROVIDER_ID:
5579
        if (value == null) {
5664
        if (value == null) {
Line 5586... Line 5671...
5586
      }
5671
      }
5587
    }
5672
    }
5588
 
5673
 
5589
    public Object getFieldValue(_Fields field) {
5674
    public Object getFieldValue(_Fields field) {
5590
      switch (field) {
5675
      switch (field) {
5591
      case AWB:
5676
      case AWB_NUMBER:
5592
        return getAwb();
5677
        return getAwbNumber();
5593
 
5678
 
5594
      case PROVIDER_ID:
5679
      case PROVIDER_ID:
5595
        return Long.valueOf(getProviderId());
5680
        return Long.valueOf(getProviderId());
5596
 
5681
 
5597
      }
5682
      }
Line 5603... Line 5688...
5603
      if (field == null) {
5688
      if (field == null) {
5604
        throw new IllegalArgumentException();
5689
        throw new IllegalArgumentException();
5605
      }
5690
      }
5606
 
5691
 
5607
      switch (field) {
5692
      switch (field) {
5608
      case AWB:
5693
      case AWB_NUMBER:
5609
        return isSetAwb();
5694
        return isSetAwbNumber();
5610
      case PROVIDER_ID:
5695
      case PROVIDER_ID:
5611
        return isSetProviderId();
5696
        return isSetProviderId();
5612
      }
5697
      }
5613
      throw new IllegalStateException();
5698
      throw new IllegalStateException();
5614
    }
5699
    }
Line 5624... Line 5709...
5624
 
5709
 
5625
    public boolean equals(getShipmentInfo_args that) {
5710
    public boolean equals(getShipmentInfo_args that) {
5626
      if (that == null)
5711
      if (that == null)
5627
        return false;
5712
        return false;
5628
 
5713
 
5629
      boolean this_present_awb = true && this.isSetAwb();
5714
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
5630
      boolean that_present_awb = true && that.isSetAwb();
5715
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
5631
      if (this_present_awb || that_present_awb) {
5716
      if (this_present_awbNumber || that_present_awbNumber) {
5632
        if (!(this_present_awb && that_present_awb))
5717
        if (!(this_present_awbNumber && that_present_awbNumber))
5633
          return false;
5718
          return false;
5634
        if (!this.awb.equals(that.awb))
5719
        if (!this.awbNumber.equals(that.awbNumber))
5635
          return false;
5720
          return false;
5636
      }
5721
      }
5637
 
5722
 
5638
      boolean this_present_providerId = true;
5723
      boolean this_present_providerId = true;
5639
      boolean that_present_providerId = true;
5724
      boolean that_present_providerId = true;
Line 5658... Line 5743...
5658
      }
5743
      }
5659
 
5744
 
5660
      int lastComparison = 0;
5745
      int lastComparison = 0;
5661
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
5746
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
5662
 
5747
 
5663
      lastComparison = Boolean.valueOf(isSetAwb()).compareTo(typedOther.isSetAwb());
5748
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
5664
      if (lastComparison != 0) {
5749
      if (lastComparison != 0) {
5665
        return lastComparison;
5750
        return lastComparison;
5666
      }
5751
      }
5667
      if (isSetAwb()) {
5752
      if (isSetAwbNumber()) {
5668
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awb, typedOther.awb);
5753
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
5669
        if (lastComparison != 0) {
5754
        if (lastComparison != 0) {
5670
          return lastComparison;
5755
          return lastComparison;
5671
        }
5756
        }
5672
      }
5757
      }
5673
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
5758
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
Line 5695... Line 5780...
5695
        field = iprot.readFieldBegin();
5780
        field = iprot.readFieldBegin();
5696
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5781
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5697
          break;
5782
          break;
5698
        }
5783
        }
5699
        switch (field.id) {
5784
        switch (field.id) {
5700
          case 1: // AWB
5785
          case 1: // AWB_NUMBER
5701
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5786
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5702
              this.awb = iprot.readString();
5787
              this.awbNumber = iprot.readString();
5703
            } else { 
5788
            } else { 
5704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5789
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5705
            }
5790
            }
5706
            break;
5791
            break;
5707
          case 2: // PROVIDER_ID
5792
          case 2: // PROVIDER_ID
Line 5723... Line 5808...
5723
 
5808
 
5724
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5809
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5725
      validate();
5810
      validate();
5726
 
5811
 
5727
      oprot.writeStructBegin(STRUCT_DESC);
5812
      oprot.writeStructBegin(STRUCT_DESC);
5728
      if (this.awb != null) {
5813
      if (this.awbNumber != null) {
5729
        oprot.writeFieldBegin(AWB_FIELD_DESC);
5814
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
5730
        oprot.writeString(this.awb);
5815
        oprot.writeString(this.awbNumber);
5731
        oprot.writeFieldEnd();
5816
        oprot.writeFieldEnd();
5732
      }
5817
      }
5733
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
5818
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
5734
      oprot.writeI64(this.providerId);
5819
      oprot.writeI64(this.providerId);
5735
      oprot.writeFieldEnd();
5820
      oprot.writeFieldEnd();
Line 5740... Line 5825...
5740
    @Override
5825
    @Override
5741
    public String toString() {
5826
    public String toString() {
5742
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
5827
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
5743
      boolean first = true;
5828
      boolean first = true;
5744
 
5829
 
5745
      sb.append("awb:");
5830
      sb.append("awbNumber:");
5746
      if (this.awb == null) {
5831
      if (this.awbNumber == null) {
5747
        sb.append("null");
5832
        sb.append("null");
5748
      } else {
5833
      } else {
5749
        sb.append(this.awb);
5834
        sb.append(this.awbNumber);
5750
      }
5835
      }
5751
      first = false;
5836
      first = false;
5752
      if (!first) sb.append(", ");
5837
      if (!first) sb.append(", ");
5753
      sb.append("providerId:");
5838
      sb.append("providerId:");
5754
      sb.append(this.providerId);
5839
      sb.append(this.providerId);
Line 6196... Line 6281...
6196
      }
6281
      }
6197
    }
6282
    }
6198
 
6283
 
6199
  }
6284
  }
6200
 
6285
 
-
 
6286
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
-
 
6287
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
-
 
6288
 
-
 
6289
    private static final org.apache.thrift.protocol.TField UPDATE_FIELD_DESC = new org.apache.thrift.protocol.TField("update", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
6290
 
-
 
6291
    private AwbUpdate update; // required
-
 
6292
 
-
 
6293
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6294
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
6295
      UPDATE((short)1, "update");
-
 
6296
 
-
 
6297
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6298
 
-
 
6299
      static {
-
 
6300
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6301
          byName.put(field.getFieldName(), field);
-
 
6302
        }
-
 
6303
      }
-
 
6304
 
-
 
6305
      /**
-
 
6306
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6307
       */
-
 
6308
      public static _Fields findByThriftId(int fieldId) {
-
 
6309
        switch(fieldId) {
-
 
6310
          case 1: // UPDATE
-
 
6311
            return UPDATE;
-
 
6312
          default:
-
 
6313
            return null;
-
 
6314
        }
-
 
6315
      }
-
 
6316
 
-
 
6317
      /**
-
 
6318
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6319
       * if it is not found.
-
 
6320
       */
-
 
6321
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6322
        _Fields fields = findByThriftId(fieldId);
-
 
6323
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6324
        return fields;
-
 
6325
      }
-
 
6326
 
-
 
6327
      /**
-
 
6328
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6329
       */
-
 
6330
      public static _Fields findByName(String name) {
-
 
6331
        return byName.get(name);
-
 
6332
      }
-
 
6333
 
-
 
6334
      private final short _thriftId;
-
 
6335
      private final String _fieldName;
-
 
6336
 
-
 
6337
      _Fields(short thriftId, String fieldName) {
-
 
6338
        _thriftId = thriftId;
-
 
6339
        _fieldName = fieldName;
-
 
6340
      }
-
 
6341
 
-
 
6342
      public short getThriftFieldId() {
-
 
6343
        return _thriftId;
-
 
6344
      }
-
 
6345
 
-
 
6346
      public String getFieldName() {
-
 
6347
        return _fieldName;
-
 
6348
      }
-
 
6349
    }
-
 
6350
 
-
 
6351
    // isset id assignments
-
 
6352
 
-
 
6353
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
6354
    static {
-
 
6355
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6356
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6357
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
-
 
6358
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
6359
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
-
 
6360
    }
-
 
6361
 
-
 
6362
    public storeShipmentInfo_args() {
-
 
6363
    }
-
 
6364
 
-
 
6365
    public storeShipmentInfo_args(
-
 
6366
      AwbUpdate update)
-
 
6367
    {
-
 
6368
      this();
-
 
6369
      this.update = update;
-
 
6370
    }
-
 
6371
 
-
 
6372
    /**
-
 
6373
     * Performs a deep copy on <i>other</i>.
-
 
6374
     */
-
 
6375
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
-
 
6376
      if (other.isSetUpdate()) {
-
 
6377
        this.update = new AwbUpdate(other.update);
-
 
6378
      }
-
 
6379
    }
-
 
6380
 
-
 
6381
    public storeShipmentInfo_args deepCopy() {
-
 
6382
      return new storeShipmentInfo_args(this);
-
 
6383
    }
-
 
6384
 
-
 
6385
    @Override
-
 
6386
    public void clear() {
-
 
6387
      this.update = null;
-
 
6388
    }
-
 
6389
 
-
 
6390
    public AwbUpdate getUpdate() {
-
 
6391
      return this.update;
-
 
6392
    }
-
 
6393
 
-
 
6394
    public void setUpdate(AwbUpdate update) {
-
 
6395
      this.update = update;
-
 
6396
    }
-
 
6397
 
-
 
6398
    public void unsetUpdate() {
-
 
6399
      this.update = null;
-
 
6400
    }
-
 
6401
 
-
 
6402
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
-
 
6403
    public boolean isSetUpdate() {
-
 
6404
      return this.update != null;
-
 
6405
    }
-
 
6406
 
-
 
6407
    public void setUpdateIsSet(boolean value) {
-
 
6408
      if (!value) {
-
 
6409
        this.update = null;
-
 
6410
      }
-
 
6411
    }
-
 
6412
 
-
 
6413
    public void setFieldValue(_Fields field, Object value) {
-
 
6414
      switch (field) {
-
 
6415
      case UPDATE:
-
 
6416
        if (value == null) {
-
 
6417
          unsetUpdate();
-
 
6418
        } else {
-
 
6419
          setUpdate((AwbUpdate)value);
-
 
6420
        }
-
 
6421
        break;
-
 
6422
 
-
 
6423
      }
-
 
6424
    }
-
 
6425
 
-
 
6426
    public Object getFieldValue(_Fields field) {
-
 
6427
      switch (field) {
-
 
6428
      case UPDATE:
-
 
6429
        return getUpdate();
-
 
6430
 
-
 
6431
      }
-
 
6432
      throw new IllegalStateException();
-
 
6433
    }
-
 
6434
 
-
 
6435
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
6436
    public boolean isSet(_Fields field) {
-
 
6437
      if (field == null) {
-
 
6438
        throw new IllegalArgumentException();
-
 
6439
      }
-
 
6440
 
-
 
6441
      switch (field) {
-
 
6442
      case UPDATE:
-
 
6443
        return isSetUpdate();
-
 
6444
      }
-
 
6445
      throw new IllegalStateException();
-
 
6446
    }
-
 
6447
 
-
 
6448
    @Override
-
 
6449
    public boolean equals(Object that) {
-
 
6450
      if (that == null)
-
 
6451
        return false;
-
 
6452
      if (that instanceof storeShipmentInfo_args)
-
 
6453
        return this.equals((storeShipmentInfo_args)that);
-
 
6454
      return false;
-
 
6455
    }
-
 
6456
 
-
 
6457
    public boolean equals(storeShipmentInfo_args that) {
-
 
6458
      if (that == null)
-
 
6459
        return false;
-
 
6460
 
-
 
6461
      boolean this_present_update = true && this.isSetUpdate();
-
 
6462
      boolean that_present_update = true && that.isSetUpdate();
-
 
6463
      if (this_present_update || that_present_update) {
-
 
6464
        if (!(this_present_update && that_present_update))
-
 
6465
          return false;
-
 
6466
        if (!this.update.equals(that.update))
-
 
6467
          return false;
-
 
6468
      }
-
 
6469
 
-
 
6470
      return true;
-
 
6471
    }
-
 
6472
 
-
 
6473
    @Override
-
 
6474
    public int hashCode() {
-
 
6475
      return 0;
-
 
6476
    }
-
 
6477
 
-
 
6478
    public int compareTo(storeShipmentInfo_args other) {
-
 
6479
      if (!getClass().equals(other.getClass())) {
-
 
6480
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6481
      }
-
 
6482
 
-
 
6483
      int lastComparison = 0;
-
 
6484
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
-
 
6485
 
-
 
6486
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
-
 
6487
      if (lastComparison != 0) {
-
 
6488
        return lastComparison;
-
 
6489
      }
-
 
6490
      if (isSetUpdate()) {
-
 
6491
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
-
 
6492
        if (lastComparison != 0) {
-
 
6493
          return lastComparison;
-
 
6494
        }
-
 
6495
      }
-
 
6496
      return 0;
-
 
6497
    }
-
 
6498
 
-
 
6499
    public _Fields fieldForId(int fieldId) {
-
 
6500
      return _Fields.findByThriftId(fieldId);
-
 
6501
    }
-
 
6502
 
-
 
6503
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
6504
      org.apache.thrift.protocol.TField field;
-
 
6505
      iprot.readStructBegin();
-
 
6506
      while (true)
-
 
6507
      {
-
 
6508
        field = iprot.readFieldBegin();
-
 
6509
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
6510
          break;
-
 
6511
        }
-
 
6512
        switch (field.id) {
-
 
6513
          case 1: // UPDATE
-
 
6514
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
6515
              this.update = new AwbUpdate();
-
 
6516
              this.update.read(iprot);
-
 
6517
            } else { 
-
 
6518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6519
            }
-
 
6520
            break;
-
 
6521
          default:
-
 
6522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6523
        }
-
 
6524
        iprot.readFieldEnd();
-
 
6525
      }
-
 
6526
      iprot.readStructEnd();
-
 
6527
      validate();
-
 
6528
    }
-
 
6529
 
-
 
6530
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
6531
      validate();
-
 
6532
 
-
 
6533
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6534
      if (this.update != null) {
-
 
6535
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
-
 
6536
        this.update.write(oprot);
-
 
6537
        oprot.writeFieldEnd();
-
 
6538
      }
-
 
6539
      oprot.writeFieldStop();
-
 
6540
      oprot.writeStructEnd();
-
 
6541
    }
-
 
6542
 
-
 
6543
    @Override
-
 
6544
    public String toString() {
-
 
6545
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
-
 
6546
      boolean first = true;
-
 
6547
 
-
 
6548
      sb.append("update:");
-
 
6549
      if (this.update == null) {
-
 
6550
        sb.append("null");
-
 
6551
      } else {
-
 
6552
        sb.append(this.update);
-
 
6553
      }
-
 
6554
      first = false;
-
 
6555
      sb.append(")");
-
 
6556
      return sb.toString();
-
 
6557
    }
-
 
6558
 
-
 
6559
    public void validate() throws org.apache.thrift.TException {
-
 
6560
      // check for required fields
-
 
6561
    }
-
 
6562
 
-
 
6563
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6564
      try {
-
 
6565
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6566
      } catch (org.apache.thrift.TException te) {
-
 
6567
        throw new java.io.IOException(te);
-
 
6568
      }
-
 
6569
    }
-
 
6570
 
-
 
6571
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6572
      try {
-
 
6573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6574
      } catch (org.apache.thrift.TException te) {
-
 
6575
        throw new java.io.IOException(te);
-
 
6576
      }
-
 
6577
    }
-
 
6578
 
-
 
6579
  }
-
 
6580
 
-
 
6581
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
-
 
6582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
-
 
6583
 
-
 
6584
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
6585
 
-
 
6586
    private LogisticsServiceException se; // required
-
 
6587
 
-
 
6588
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6589
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
6590
      SE((short)1, "se");
-
 
6591
 
-
 
6592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6593
 
-
 
6594
      static {
-
 
6595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6596
          byName.put(field.getFieldName(), field);
-
 
6597
        }
-
 
6598
      }
-
 
6599
 
-
 
6600
      /**
-
 
6601
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6602
       */
-
 
6603
      public static _Fields findByThriftId(int fieldId) {
-
 
6604
        switch(fieldId) {
-
 
6605
          case 1: // SE
-
 
6606
            return SE;
-
 
6607
          default:
-
 
6608
            return null;
-
 
6609
        }
-
 
6610
      }
-
 
6611
 
-
 
6612
      /**
-
 
6613
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6614
       * if it is not found.
-
 
6615
       */
-
 
6616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6617
        _Fields fields = findByThriftId(fieldId);
-
 
6618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6619
        return fields;
-
 
6620
      }
-
 
6621
 
-
 
6622
      /**
-
 
6623
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6624
       */
-
 
6625
      public static _Fields findByName(String name) {
-
 
6626
        return byName.get(name);
-
 
6627
      }
-
 
6628
 
-
 
6629
      private final short _thriftId;
-
 
6630
      private final String _fieldName;
-
 
6631
 
-
 
6632
      _Fields(short thriftId, String fieldName) {
-
 
6633
        _thriftId = thriftId;
-
 
6634
        _fieldName = fieldName;
-
 
6635
      }
-
 
6636
 
-
 
6637
      public short getThriftFieldId() {
-
 
6638
        return _thriftId;
-
 
6639
      }
-
 
6640
 
-
 
6641
      public String getFieldName() {
-
 
6642
        return _fieldName;
-
 
6643
      }
-
 
6644
    }
-
 
6645
 
-
 
6646
    // isset id assignments
-
 
6647
 
-
 
6648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
6649
    static {
-
 
6650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6651
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
6653
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
6654
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
-
 
6655
    }
-
 
6656
 
-
 
6657
    public storeShipmentInfo_result() {
-
 
6658
    }
-
 
6659
 
-
 
6660
    public storeShipmentInfo_result(
-
 
6661
      LogisticsServiceException se)
-
 
6662
    {
-
 
6663
      this();
-
 
6664
      this.se = se;
-
 
6665
    }
-
 
6666
 
-
 
6667
    /**
-
 
6668
     * Performs a deep copy on <i>other</i>.
-
 
6669
     */
-
 
6670
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
-
 
6671
      if (other.isSetSe()) {
-
 
6672
        this.se = new LogisticsServiceException(other.se);
-
 
6673
      }
-
 
6674
    }
-
 
6675
 
-
 
6676
    public storeShipmentInfo_result deepCopy() {
-
 
6677
      return new storeShipmentInfo_result(this);
-
 
6678
    }
-
 
6679
 
-
 
6680
    @Override
-
 
6681
    public void clear() {
-
 
6682
      this.se = null;
-
 
6683
    }
-
 
6684
 
-
 
6685
    public LogisticsServiceException getSe() {
-
 
6686
      return this.se;
-
 
6687
    }
-
 
6688
 
-
 
6689
    public void setSe(LogisticsServiceException se) {
-
 
6690
      this.se = se;
-
 
6691
    }
-
 
6692
 
-
 
6693
    public void unsetSe() {
-
 
6694
      this.se = null;
-
 
6695
    }
-
 
6696
 
-
 
6697
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
-
 
6698
    public boolean isSetSe() {
-
 
6699
      return this.se != null;
-
 
6700
    }
-
 
6701
 
-
 
6702
    public void setSeIsSet(boolean value) {
-
 
6703
      if (!value) {
-
 
6704
        this.se = null;
-
 
6705
      }
-
 
6706
    }
-
 
6707
 
-
 
6708
    public void setFieldValue(_Fields field, Object value) {
-
 
6709
      switch (field) {
-
 
6710
      case SE:
-
 
6711
        if (value == null) {
-
 
6712
          unsetSe();
-
 
6713
        } else {
-
 
6714
          setSe((LogisticsServiceException)value);
-
 
6715
        }
-
 
6716
        break;
-
 
6717
 
-
 
6718
      }
-
 
6719
    }
-
 
6720
 
-
 
6721
    public Object getFieldValue(_Fields field) {
-
 
6722
      switch (field) {
-
 
6723
      case SE:
-
 
6724
        return getSe();
-
 
6725
 
-
 
6726
      }
-
 
6727
      throw new IllegalStateException();
-
 
6728
    }
-
 
6729
 
-
 
6730
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
6731
    public boolean isSet(_Fields field) {
-
 
6732
      if (field == null) {
-
 
6733
        throw new IllegalArgumentException();
-
 
6734
      }
-
 
6735
 
-
 
6736
      switch (field) {
-
 
6737
      case SE:
-
 
6738
        return isSetSe();
-
 
6739
      }
-
 
6740
      throw new IllegalStateException();
-
 
6741
    }
-
 
6742
 
-
 
6743
    @Override
-
 
6744
    public boolean equals(Object that) {
-
 
6745
      if (that == null)
-
 
6746
        return false;
-
 
6747
      if (that instanceof storeShipmentInfo_result)
-
 
6748
        return this.equals((storeShipmentInfo_result)that);
-
 
6749
      return false;
-
 
6750
    }
-
 
6751
 
-
 
6752
    public boolean equals(storeShipmentInfo_result that) {
-
 
6753
      if (that == null)
-
 
6754
        return false;
-
 
6755
 
-
 
6756
      boolean this_present_se = true && this.isSetSe();
-
 
6757
      boolean that_present_se = true && that.isSetSe();
-
 
6758
      if (this_present_se || that_present_se) {
-
 
6759
        if (!(this_present_se && that_present_se))
-
 
6760
          return false;
-
 
6761
        if (!this.se.equals(that.se))
-
 
6762
          return false;
-
 
6763
      }
-
 
6764
 
-
 
6765
      return true;
-
 
6766
    }
-
 
6767
 
-
 
6768
    @Override
-
 
6769
    public int hashCode() {
-
 
6770
      return 0;
-
 
6771
    }
-
 
6772
 
-
 
6773
    public int compareTo(storeShipmentInfo_result other) {
-
 
6774
      if (!getClass().equals(other.getClass())) {
-
 
6775
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6776
      }
-
 
6777
 
-
 
6778
      int lastComparison = 0;
-
 
6779
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
-
 
6780
 
-
 
6781
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
-
 
6782
      if (lastComparison != 0) {
-
 
6783
        return lastComparison;
-
 
6784
      }
-
 
6785
      if (isSetSe()) {
-
 
6786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
-
 
6787
        if (lastComparison != 0) {
-
 
6788
          return lastComparison;
-
 
6789
        }
-
 
6790
      }
-
 
6791
      return 0;
-
 
6792
    }
-
 
6793
 
-
 
6794
    public _Fields fieldForId(int fieldId) {
-
 
6795
      return _Fields.findByThriftId(fieldId);
-
 
6796
    }
-
 
6797
 
-
 
6798
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
6799
      org.apache.thrift.protocol.TField field;
-
 
6800
      iprot.readStructBegin();
-
 
6801
      while (true)
-
 
6802
      {
-
 
6803
        field = iprot.readFieldBegin();
-
 
6804
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
6805
          break;
-
 
6806
        }
-
 
6807
        switch (field.id) {
-
 
6808
          case 1: // SE
-
 
6809
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
6810
              this.se = new LogisticsServiceException();
-
 
6811
              this.se.read(iprot);
-
 
6812
            } else { 
-
 
6813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6814
            }
-
 
6815
            break;
-
 
6816
          default:
-
 
6817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6818
        }
-
 
6819
        iprot.readFieldEnd();
-
 
6820
      }
-
 
6821
      iprot.readStructEnd();
-
 
6822
      validate();
-
 
6823
    }
-
 
6824
 
-
 
6825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
6826
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6827
 
-
 
6828
      if (this.isSetSe()) {
-
 
6829
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
6830
        this.se.write(oprot);
-
 
6831
        oprot.writeFieldEnd();
-
 
6832
      }
-
 
6833
      oprot.writeFieldStop();
-
 
6834
      oprot.writeStructEnd();
-
 
6835
    }
-
 
6836
 
-
 
6837
    @Override
-
 
6838
    public String toString() {
-
 
6839
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
-
 
6840
      boolean first = true;
-
 
6841
 
-
 
6842
      sb.append("se:");
-
 
6843
      if (this.se == null) {
-
 
6844
        sb.append("null");
-
 
6845
      } else {
-
 
6846
        sb.append(this.se);
-
 
6847
      }
-
 
6848
      first = false;
-
 
6849
      sb.append(")");
-
 
6850
      return sb.toString();
-
 
6851
    }
-
 
6852
 
-
 
6853
    public void validate() throws org.apache.thrift.TException {
-
 
6854
      // check for required fields
-
 
6855
    }
-
 
6856
 
-
 
6857
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6858
      try {
-
 
6859
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6860
      } catch (org.apache.thrift.TException te) {
-
 
6861
        throw new java.io.IOException(te);
-
 
6862
      }
-
 
6863
    }
-
 
6864
 
-
 
6865
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6866
      try {
-
 
6867
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6868
      } catch (org.apache.thrift.TException te) {
-
 
6869
        throw new java.io.IOException(te);
-
 
6870
      }
-
 
6871
    }
-
 
6872
 
-
 
6873
  }
-
 
6874
 
6201
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
6875
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
6202
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
6876
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
6203
 
6877
 
6204
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
6878
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
6205
    private static final org.apache.thrift.protocol.TField PIN_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pinCode", org.apache.thrift.protocol.TType.STRING, (short)2);
6879
    private static final org.apache.thrift.protocol.TField PIN_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pinCode", org.apache.thrift.protocol.TType.STRING, (short)2);
Line 7997... Line 8671...
7997
      }
8671
      }
7998
    }
8672
    }
7999
 
8673
 
8000
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8674
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8001
      try {
8675
      try {
8002
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
8003
        __isset_bit_vector = new BitSet(1);
-
 
8004
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8676
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8005
      } catch (org.apache.thrift.TException te) {
8677
      } catch (org.apache.thrift.TException te) {
8006
        throw new java.io.IOException(te);
8678
        throw new java.io.IOException(te);
8007
      }
8679
      }
8008
    }
8680
    }