Subversion Repositories SmartDukaan

Rev

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

Rev 6906 Rev 6985
Line 910... Line 910...
910
 
910
 
911
    public List<Order> getPhysicalOrders(long fromDate, long toDate) throws org.apache.thrift.TException;
911
    public List<Order> getPhysicalOrders(long fromDate, long toDate) throws org.apache.thrift.TException;
912
 
912
 
913
    public ByteBuffer getDocument(long docType, long docSource) throws org.apache.thrift.TException;
913
    public ByteBuffer getDocument(long docType, long docSource) throws org.apache.thrift.TException;
914
 
914
 
-
 
915
    public boolean changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin) throws org.apache.thrift.TException;
-
 
916
 
915
  }
917
  }
916
 
918
 
917
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
919
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
918
 
920
 
919
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
921
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1214... Line 1216...
1214
 
1216
 
1215
    public void getPhysicalOrders(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPhysicalOrders_call> resultHandler) throws org.apache.thrift.TException;
1217
    public void getPhysicalOrders(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPhysicalOrders_call> resultHandler) throws org.apache.thrift.TException;
1216
 
1218
 
1217
    public void getDocument(long docType, long docSource, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDocument_call> resultHandler) throws org.apache.thrift.TException;
1219
    public void getDocument(long docType, long docSource, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDocument_call> resultHandler) throws org.apache.thrift.TException;
1218
 
1220
 
-
 
1221
    public void changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeShippingAddress_call> resultHandler) throws org.apache.thrift.TException;
-
 
1222
 
1219
  }
1223
  }
1220
 
1224
 
1221
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1225
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1222
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1226
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1223
      public Factory() {}
1227
      public Factory() {}
Line 5015... Line 5019...
5015
        return result.success;
5019
        return result.success;
5016
      }
5020
      }
5017
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDocument failed: unknown result");
5021
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDocument failed: unknown result");
5018
    }
5022
    }
5019
 
5023
 
-
 
5024
    public boolean changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin) throws org.apache.thrift.TException
-
 
5025
    {
-
 
5026
      send_changeShippingAddress(orderId, line1, line2, city, state, pin);
-
 
5027
      return recv_changeShippingAddress();
-
 
5028
    }
-
 
5029
 
-
 
5030
    public void send_changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin) throws org.apache.thrift.TException
-
 
5031
    {
-
 
5032
      changeShippingAddress_args args = new changeShippingAddress_args();
-
 
5033
      args.setOrderId(orderId);
-
 
5034
      args.setLine1(line1);
-
 
5035
      args.setLine2(line2);
-
 
5036
      args.setCity(city);
-
 
5037
      args.setState(state);
-
 
5038
      args.setPin(pin);
-
 
5039
      sendBase("changeShippingAddress", args);
-
 
5040
    }
-
 
5041
 
-
 
5042
    public boolean recv_changeShippingAddress() throws org.apache.thrift.TException
-
 
5043
    {
-
 
5044
      changeShippingAddress_result result = new changeShippingAddress_result();
-
 
5045
      receiveBase(result, "changeShippingAddress");
-
 
5046
      if (result.isSetSuccess()) {
-
 
5047
        return result.success;
-
 
5048
      }
-
 
5049
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeShippingAddress failed: unknown result");
-
 
5050
    }
-
 
5051
 
5020
  }
5052
  }
5021
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5053
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5022
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5054
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5023
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5055
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5024
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5056
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10271... Line 10303...
10271
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10303
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10272
        return (new Client(prot)).recv_getDocument();
10304
        return (new Client(prot)).recv_getDocument();
10273
      }
10305
      }
10274
    }
10306
    }
10275
 
10307
 
-
 
10308
    public void changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin, org.apache.thrift.async.AsyncMethodCallback<changeShippingAddress_call> resultHandler) throws org.apache.thrift.TException {
-
 
10309
      checkReady();
-
 
10310
      changeShippingAddress_call method_call = new changeShippingAddress_call(orderId, line1, line2, city, state, pin, resultHandler, this, ___protocolFactory, ___transport);
-
 
10311
      this.___currentMethod = method_call;
-
 
10312
      ___manager.call(method_call);
-
 
10313
    }
-
 
10314
 
-
 
10315
    public static class changeShippingAddress_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10316
      private long orderId;
-
 
10317
      private String line1;
-
 
10318
      private String line2;
-
 
10319
      private String city;
-
 
10320
      private String state;
-
 
10321
      private String pin;
-
 
10322
      public changeShippingAddress_call(long orderId, String line1, String line2, String city, String state, String pin, org.apache.thrift.async.AsyncMethodCallback<changeShippingAddress_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 {
-
 
10323
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10324
        this.orderId = orderId;
-
 
10325
        this.line1 = line1;
-
 
10326
        this.line2 = line2;
-
 
10327
        this.city = city;
-
 
10328
        this.state = state;
-
 
10329
        this.pin = pin;
-
 
10330
      }
-
 
10331
 
-
 
10332
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10333
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeShippingAddress", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10334
        changeShippingAddress_args args = new changeShippingAddress_args();
-
 
10335
        args.setOrderId(orderId);
-
 
10336
        args.setLine1(line1);
-
 
10337
        args.setLine2(line2);
-
 
10338
        args.setCity(city);
-
 
10339
        args.setState(state);
-
 
10340
        args.setPin(pin);
-
 
10341
        args.write(prot);
-
 
10342
        prot.writeMessageEnd();
-
 
10343
      }
-
 
10344
 
-
 
10345
      public boolean getResult() throws org.apache.thrift.TException {
-
 
10346
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10347
          throw new IllegalStateException("Method call not finished!");
-
 
10348
        }
-
 
10349
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10350
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10351
        return (new Client(prot)).recv_changeShippingAddress();
-
 
10352
      }
-
 
10353
    }
-
 
10354
 
10276
  }
10355
  }
10277
 
10356
 
10278
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10357
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10279
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10358
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10280
    public Processor(I iface) {
10359
    public Processor(I iface) {
Line 10434... Line 10513...
10434
      processMap.put("getAvailableEmiSchemes", new getAvailableEmiSchemes());
10513
      processMap.put("getAvailableEmiSchemes", new getAvailableEmiSchemes());
10435
      processMap.put("getMiscCharges", new getMiscCharges());
10514
      processMap.put("getMiscCharges", new getMiscCharges());
10436
      processMap.put("refundRechargeOrder", new refundRechargeOrder());
10515
      processMap.put("refundRechargeOrder", new refundRechargeOrder());
10437
      processMap.put("getPhysicalOrders", new getPhysicalOrders());
10516
      processMap.put("getPhysicalOrders", new getPhysicalOrders());
10438
      processMap.put("getDocument", new getDocument());
10517
      processMap.put("getDocument", new getDocument());
-
 
10518
      processMap.put("changeShippingAddress", new changeShippingAddress());
10439
      return processMap;
10519
      return processMap;
10440
    }
10520
    }
10441
 
10521
 
10442
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10522
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10443
      public createTransaction() {
10523
      public createTransaction() {
Line 13264... Line 13344...
13264
        result.success = iface.getDocument(args.docType, args.docSource);
13344
        result.success = iface.getDocument(args.docType, args.docSource);
13265
        return result;
13345
        return result;
13266
      }
13346
      }
13267
    }
13347
    }
13268
 
13348
 
-
 
13349
    private static class changeShippingAddress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeShippingAddress_args> {
-
 
13350
      public changeShippingAddress() {
-
 
13351
        super("changeShippingAddress");
-
 
13352
      }
-
 
13353
 
-
 
13354
      protected changeShippingAddress_args getEmptyArgsInstance() {
-
 
13355
        return new changeShippingAddress_args();
-
 
13356
      }
-
 
13357
 
-
 
13358
      protected changeShippingAddress_result getResult(I iface, changeShippingAddress_args args) throws org.apache.thrift.TException {
-
 
13359
        changeShippingAddress_result result = new changeShippingAddress_result();
-
 
13360
        result.success = iface.changeShippingAddress(args.orderId, args.line1, args.line2, args.city, args.state, args.pin);
-
 
13361
        result.setSuccessIsSet(true);
-
 
13362
        return result;
-
 
13363
      }
-
 
13364
    }
-
 
13365
 
13269
  }
13366
  }
13270
 
13367
 
13271
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13368
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13272
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13369
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13273
 
13370
 
Line 57370... Line 57467...
57370
      }
57467
      }
57371
    }
57468
    }
57372
 
57469
 
57373
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57470
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57374
      try {
57471
      try {
-
 
57472
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
57473
        __isset_bit_vector = new BitSet(1);
57375
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57474
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57376
      } catch (org.apache.thrift.TException te) {
57475
      } catch (org.apache.thrift.TException te) {
57377
        throw new java.io.IOException(te);
57476
        throw new java.io.IOException(te);
57378
      }
57477
      }
57379
    }
57478
    }
Line 62220... Line 62319...
62220
      }
62319
      }
62221
    }
62320
    }
62222
 
62321
 
62223
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62322
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62224
      try {
62323
      try {
-
 
62324
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
62325
        __isset_bit_vector = new BitSet(1);
62225
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62226
      } catch (org.apache.thrift.TException te) {
62327
      } catch (org.apache.thrift.TException te) {
62227
        throw new java.io.IOException(te);
62328
        throw new java.io.IOException(te);
62228
      }
62329
      }
62229
    }
62330
    }
Line 63651... Line 63752...
63651
      }
63752
      }
63652
    }
63753
    }
63653
 
63754
 
63654
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63755
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63655
      try {
63756
      try {
-
 
63757
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
63758
        __isset_bit_vector = new BitSet(1);
63656
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63759
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63657
      } catch (org.apache.thrift.TException te) {
63760
      } catch (org.apache.thrift.TException te) {
63658
        throw new java.io.IOException(te);
63761
        throw new java.io.IOException(te);
63659
      }
63762
      }
63660
    }
63763
    }
Line 122318... Line 122421...
122318
      first = false;
122421
      first = false;
122319
      sb.append(")");
122422
      sb.append(")");
122320
      return sb.toString();
122423
      return sb.toString();
122321
    }
122424
    }
122322
 
122425
 
-
 
122426
    public void validate() throws org.apache.thrift.TException {
-
 
122427
      // check for required fields
-
 
122428
    }
-
 
122429
 
-
 
122430
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
122431
      try {
-
 
122432
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
122433
      } catch (org.apache.thrift.TException te) {
-
 
122434
        throw new java.io.IOException(te);
-
 
122435
      }
-
 
122436
    }
-
 
122437
 
-
 
122438
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
122439
      try {
-
 
122440
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
122441
      } catch (org.apache.thrift.TException te) {
-
 
122442
        throw new java.io.IOException(te);
-
 
122443
      }
-
 
122444
    }
-
 
122445
 
-
 
122446
  }
-
 
122447
 
-
 
122448
  public static class changeShippingAddress_args implements org.apache.thrift.TBase<changeShippingAddress_args, changeShippingAddress_args._Fields>, java.io.Serializable, Cloneable   {
-
 
122449
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeShippingAddress_args");
-
 
122450
 
-
 
122451
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
122452
    private static final org.apache.thrift.protocol.TField LINE1_FIELD_DESC = new org.apache.thrift.protocol.TField("line1", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
122453
    private static final org.apache.thrift.protocol.TField LINE2_FIELD_DESC = new org.apache.thrift.protocol.TField("line2", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
122454
    private static final org.apache.thrift.protocol.TField CITY_FIELD_DESC = new org.apache.thrift.protocol.TField("city", org.apache.thrift.protocol.TType.STRING, (short)4);
-
 
122455
    private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.STRING, (short)5);
-
 
122456
    private static final org.apache.thrift.protocol.TField PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("pin", org.apache.thrift.protocol.TType.STRING, (short)6);
-
 
122457
 
-
 
122458
    private long orderId; // required
-
 
122459
    private String line1; // required
-
 
122460
    private String line2; // required
-
 
122461
    private String city; // required
-
 
122462
    private String state; // required
-
 
122463
    private String pin; // required
-
 
122464
 
-
 
122465
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
122466
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
122467
      ORDER_ID((short)1, "orderId"),
-
 
122468
      LINE1((short)2, "line1"),
-
 
122469
      LINE2((short)3, "line2"),
-
 
122470
      CITY((short)4, "city"),
-
 
122471
      STATE((short)5, "state"),
-
 
122472
      PIN((short)6, "pin");
-
 
122473
 
-
 
122474
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
122475
 
-
 
122476
      static {
-
 
122477
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
122478
          byName.put(field.getFieldName(), field);
-
 
122479
        }
-
 
122480
      }
-
 
122481
 
-
 
122482
      /**
-
 
122483
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
122484
       */
-
 
122485
      public static _Fields findByThriftId(int fieldId) {
-
 
122486
        switch(fieldId) {
-
 
122487
          case 1: // ORDER_ID
-
 
122488
            return ORDER_ID;
-
 
122489
          case 2: // LINE1
-
 
122490
            return LINE1;
-
 
122491
          case 3: // LINE2
-
 
122492
            return LINE2;
-
 
122493
          case 4: // CITY
-
 
122494
            return CITY;
-
 
122495
          case 5: // STATE
-
 
122496
            return STATE;
-
 
122497
          case 6: // PIN
-
 
122498
            return PIN;
-
 
122499
          default:
-
 
122500
            return null;
-
 
122501
        }
-
 
122502
      }
-
 
122503
 
-
 
122504
      /**
-
 
122505
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
122506
       * if it is not found.
-
 
122507
       */
-
 
122508
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
122509
        _Fields fields = findByThriftId(fieldId);
-
 
122510
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
122511
        return fields;
-
 
122512
      }
-
 
122513
 
-
 
122514
      /**
-
 
122515
       * Find the _Fields constant that matches name, or null if its not found.
-
 
122516
       */
-
 
122517
      public static _Fields findByName(String name) {
-
 
122518
        return byName.get(name);
-
 
122519
      }
-
 
122520
 
-
 
122521
      private final short _thriftId;
-
 
122522
      private final String _fieldName;
-
 
122523
 
-
 
122524
      _Fields(short thriftId, String fieldName) {
-
 
122525
        _thriftId = thriftId;
-
 
122526
        _fieldName = fieldName;
-
 
122527
      }
-
 
122528
 
-
 
122529
      public short getThriftFieldId() {
-
 
122530
        return _thriftId;
-
 
122531
      }
-
 
122532
 
-
 
122533
      public String getFieldName() {
-
 
122534
        return _fieldName;
-
 
122535
      }
-
 
122536
    }
-
 
122537
 
-
 
122538
    // isset id assignments
-
 
122539
    private static final int __ORDERID_ISSET_ID = 0;
-
 
122540
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
122541
 
-
 
122542
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
122543
    static {
-
 
122544
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
122545
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
122546
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
122547
      tmpMap.put(_Fields.LINE1, new org.apache.thrift.meta_data.FieldMetaData("line1", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
122548
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
122549
      tmpMap.put(_Fields.LINE2, new org.apache.thrift.meta_data.FieldMetaData("line2", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
122550
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
122551
      tmpMap.put(_Fields.CITY, new org.apache.thrift.meta_data.FieldMetaData("city", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
122552
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
122553
      tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
122554
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
122555
      tmpMap.put(_Fields.PIN, new org.apache.thrift.meta_data.FieldMetaData("pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
122556
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
122557
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
122558
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeShippingAddress_args.class, metaDataMap);
-
 
122559
    }
-
 
122560
 
-
 
122561
    public changeShippingAddress_args() {
-
 
122562
    }
-
 
122563
 
-
 
122564
    public changeShippingAddress_args(
-
 
122565
      long orderId,
-
 
122566
      String line1,
-
 
122567
      String line2,
-
 
122568
      String city,
-
 
122569
      String state,
-
 
122570
      String pin)
-
 
122571
    {
-
 
122572
      this();
-
 
122573
      this.orderId = orderId;
-
 
122574
      setOrderIdIsSet(true);
-
 
122575
      this.line1 = line1;
-
 
122576
      this.line2 = line2;
-
 
122577
      this.city = city;
-
 
122578
      this.state = state;
-
 
122579
      this.pin = pin;
-
 
122580
    }
-
 
122581
 
-
 
122582
    /**
-
 
122583
     * Performs a deep copy on <i>other</i>.
-
 
122584
     */
-
 
122585
    public changeShippingAddress_args(changeShippingAddress_args other) {
-
 
122586
      __isset_bit_vector.clear();
-
 
122587
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
122588
      this.orderId = other.orderId;
-
 
122589
      if (other.isSetLine1()) {
-
 
122590
        this.line1 = other.line1;
-
 
122591
      }
-
 
122592
      if (other.isSetLine2()) {
-
 
122593
        this.line2 = other.line2;
-
 
122594
      }
-
 
122595
      if (other.isSetCity()) {
-
 
122596
        this.city = other.city;
-
 
122597
      }
-
 
122598
      if (other.isSetState()) {
-
 
122599
        this.state = other.state;
-
 
122600
      }
-
 
122601
      if (other.isSetPin()) {
-
 
122602
        this.pin = other.pin;
-
 
122603
      }
-
 
122604
    }
-
 
122605
 
-
 
122606
    public changeShippingAddress_args deepCopy() {
-
 
122607
      return new changeShippingAddress_args(this);
-
 
122608
    }
-
 
122609
 
-
 
122610
    @Override
-
 
122611
    public void clear() {
-
 
122612
      setOrderIdIsSet(false);
-
 
122613
      this.orderId = 0;
-
 
122614
      this.line1 = null;
-
 
122615
      this.line2 = null;
-
 
122616
      this.city = null;
-
 
122617
      this.state = null;
-
 
122618
      this.pin = null;
-
 
122619
    }
-
 
122620
 
-
 
122621
    public long getOrderId() {
-
 
122622
      return this.orderId;
-
 
122623
    }
-
 
122624
 
-
 
122625
    public void setOrderId(long orderId) {
-
 
122626
      this.orderId = orderId;
-
 
122627
      setOrderIdIsSet(true);
-
 
122628
    }
-
 
122629
 
-
 
122630
    public void unsetOrderId() {
-
 
122631
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
122632
    }
-
 
122633
 
-
 
122634
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
122635
    public boolean isSetOrderId() {
-
 
122636
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
122637
    }
-
 
122638
 
-
 
122639
    public void setOrderIdIsSet(boolean value) {
-
 
122640
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
122641
    }
-
 
122642
 
-
 
122643
    public String getLine1() {
-
 
122644
      return this.line1;
-
 
122645
    }
-
 
122646
 
-
 
122647
    public void setLine1(String line1) {
-
 
122648
      this.line1 = line1;
-
 
122649
    }
-
 
122650
 
-
 
122651
    public void unsetLine1() {
-
 
122652
      this.line1 = null;
-
 
122653
    }
-
 
122654
 
-
 
122655
    /** Returns true if field line1 is set (has been assigned a value) and false otherwise */
-
 
122656
    public boolean isSetLine1() {
-
 
122657
      return this.line1 != null;
-
 
122658
    }
-
 
122659
 
-
 
122660
    public void setLine1IsSet(boolean value) {
-
 
122661
      if (!value) {
-
 
122662
        this.line1 = null;
-
 
122663
      }
-
 
122664
    }
-
 
122665
 
-
 
122666
    public String getLine2() {
-
 
122667
      return this.line2;
-
 
122668
    }
-
 
122669
 
-
 
122670
    public void setLine2(String line2) {
-
 
122671
      this.line2 = line2;
-
 
122672
    }
-
 
122673
 
-
 
122674
    public void unsetLine2() {
-
 
122675
      this.line2 = null;
-
 
122676
    }
-
 
122677
 
-
 
122678
    /** Returns true if field line2 is set (has been assigned a value) and false otherwise */
-
 
122679
    public boolean isSetLine2() {
-
 
122680
      return this.line2 != null;
-
 
122681
    }
-
 
122682
 
-
 
122683
    public void setLine2IsSet(boolean value) {
-
 
122684
      if (!value) {
-
 
122685
        this.line2 = null;
-
 
122686
      }
-
 
122687
    }
-
 
122688
 
-
 
122689
    public String getCity() {
-
 
122690
      return this.city;
-
 
122691
    }
-
 
122692
 
-
 
122693
    public void setCity(String city) {
-
 
122694
      this.city = city;
-
 
122695
    }
-
 
122696
 
-
 
122697
    public void unsetCity() {
-
 
122698
      this.city = null;
-
 
122699
    }
-
 
122700
 
-
 
122701
    /** Returns true if field city is set (has been assigned a value) and false otherwise */
-
 
122702
    public boolean isSetCity() {
-
 
122703
      return this.city != null;
-
 
122704
    }
-
 
122705
 
-
 
122706
    public void setCityIsSet(boolean value) {
-
 
122707
      if (!value) {
-
 
122708
        this.city = null;
-
 
122709
      }
-
 
122710
    }
-
 
122711
 
-
 
122712
    public String getState() {
-
 
122713
      return this.state;
-
 
122714
    }
-
 
122715
 
-
 
122716
    public void setState(String state) {
-
 
122717
      this.state = state;
-
 
122718
    }
-
 
122719
 
-
 
122720
    public void unsetState() {
-
 
122721
      this.state = null;
-
 
122722
    }
-
 
122723
 
-
 
122724
    /** Returns true if field state is set (has been assigned a value) and false otherwise */
-
 
122725
    public boolean isSetState() {
-
 
122726
      return this.state != null;
-
 
122727
    }
-
 
122728
 
-
 
122729
    public void setStateIsSet(boolean value) {
-
 
122730
      if (!value) {
-
 
122731
        this.state = null;
-
 
122732
      }
-
 
122733
    }
-
 
122734
 
-
 
122735
    public String getPin() {
-
 
122736
      return this.pin;
-
 
122737
    }
-
 
122738
 
-
 
122739
    public void setPin(String pin) {
-
 
122740
      this.pin = pin;
-
 
122741
    }
-
 
122742
 
-
 
122743
    public void unsetPin() {
-
 
122744
      this.pin = null;
-
 
122745
    }
-
 
122746
 
-
 
122747
    /** Returns true if field pin is set (has been assigned a value) and false otherwise */
-
 
122748
    public boolean isSetPin() {
-
 
122749
      return this.pin != null;
-
 
122750
    }
-
 
122751
 
-
 
122752
    public void setPinIsSet(boolean value) {
-
 
122753
      if (!value) {
-
 
122754
        this.pin = null;
-
 
122755
      }
-
 
122756
    }
-
 
122757
 
-
 
122758
    public void setFieldValue(_Fields field, Object value) {
-
 
122759
      switch (field) {
-
 
122760
      case ORDER_ID:
-
 
122761
        if (value == null) {
-
 
122762
          unsetOrderId();
-
 
122763
        } else {
-
 
122764
          setOrderId((Long)value);
-
 
122765
        }
-
 
122766
        break;
-
 
122767
 
-
 
122768
      case LINE1:
-
 
122769
        if (value == null) {
-
 
122770
          unsetLine1();
-
 
122771
        } else {
-
 
122772
          setLine1((String)value);
-
 
122773
        }
-
 
122774
        break;
-
 
122775
 
-
 
122776
      case LINE2:
-
 
122777
        if (value == null) {
-
 
122778
          unsetLine2();
-
 
122779
        } else {
-
 
122780
          setLine2((String)value);
-
 
122781
        }
-
 
122782
        break;
-
 
122783
 
-
 
122784
      case CITY:
-
 
122785
        if (value == null) {
-
 
122786
          unsetCity();
-
 
122787
        } else {
-
 
122788
          setCity((String)value);
-
 
122789
        }
-
 
122790
        break;
-
 
122791
 
-
 
122792
      case STATE:
-
 
122793
        if (value == null) {
-
 
122794
          unsetState();
-
 
122795
        } else {
-
 
122796
          setState((String)value);
-
 
122797
        }
-
 
122798
        break;
-
 
122799
 
-
 
122800
      case PIN:
-
 
122801
        if (value == null) {
-
 
122802
          unsetPin();
-
 
122803
        } else {
-
 
122804
          setPin((String)value);
-
 
122805
        }
-
 
122806
        break;
-
 
122807
 
-
 
122808
      }
-
 
122809
    }
-
 
122810
 
-
 
122811
    public Object getFieldValue(_Fields field) {
-
 
122812
      switch (field) {
-
 
122813
      case ORDER_ID:
-
 
122814
        return Long.valueOf(getOrderId());
-
 
122815
 
-
 
122816
      case LINE1:
-
 
122817
        return getLine1();
-
 
122818
 
-
 
122819
      case LINE2:
-
 
122820
        return getLine2();
-
 
122821
 
-
 
122822
      case CITY:
-
 
122823
        return getCity();
-
 
122824
 
-
 
122825
      case STATE:
-
 
122826
        return getState();
-
 
122827
 
-
 
122828
      case PIN:
-
 
122829
        return getPin();
-
 
122830
 
-
 
122831
      }
-
 
122832
      throw new IllegalStateException();
-
 
122833
    }
-
 
122834
 
-
 
122835
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
122836
    public boolean isSet(_Fields field) {
-
 
122837
      if (field == null) {
-
 
122838
        throw new IllegalArgumentException();
-
 
122839
      }
-
 
122840
 
-
 
122841
      switch (field) {
-
 
122842
      case ORDER_ID:
-
 
122843
        return isSetOrderId();
-
 
122844
      case LINE1:
-
 
122845
        return isSetLine1();
-
 
122846
      case LINE2:
-
 
122847
        return isSetLine2();
-
 
122848
      case CITY:
-
 
122849
        return isSetCity();
-
 
122850
      case STATE:
-
 
122851
        return isSetState();
-
 
122852
      case PIN:
-
 
122853
        return isSetPin();
-
 
122854
      }
-
 
122855
      throw new IllegalStateException();
-
 
122856
    }
-
 
122857
 
-
 
122858
    @Override
-
 
122859
    public boolean equals(Object that) {
-
 
122860
      if (that == null)
-
 
122861
        return false;
-
 
122862
      if (that instanceof changeShippingAddress_args)
-
 
122863
        return this.equals((changeShippingAddress_args)that);
-
 
122864
      return false;
-
 
122865
    }
-
 
122866
 
-
 
122867
    public boolean equals(changeShippingAddress_args that) {
-
 
122868
      if (that == null)
-
 
122869
        return false;
-
 
122870
 
-
 
122871
      boolean this_present_orderId = true;
-
 
122872
      boolean that_present_orderId = true;
-
 
122873
      if (this_present_orderId || that_present_orderId) {
-
 
122874
        if (!(this_present_orderId && that_present_orderId))
-
 
122875
          return false;
-
 
122876
        if (this.orderId != that.orderId)
-
 
122877
          return false;
-
 
122878
      }
-
 
122879
 
-
 
122880
      boolean this_present_line1 = true && this.isSetLine1();
-
 
122881
      boolean that_present_line1 = true && that.isSetLine1();
-
 
122882
      if (this_present_line1 || that_present_line1) {
-
 
122883
        if (!(this_present_line1 && that_present_line1))
-
 
122884
          return false;
-
 
122885
        if (!this.line1.equals(that.line1))
-
 
122886
          return false;
-
 
122887
      }
-
 
122888
 
-
 
122889
      boolean this_present_line2 = true && this.isSetLine2();
-
 
122890
      boolean that_present_line2 = true && that.isSetLine2();
-
 
122891
      if (this_present_line2 || that_present_line2) {
-
 
122892
        if (!(this_present_line2 && that_present_line2))
-
 
122893
          return false;
-
 
122894
        if (!this.line2.equals(that.line2))
-
 
122895
          return false;
-
 
122896
      }
-
 
122897
 
-
 
122898
      boolean this_present_city = true && this.isSetCity();
-
 
122899
      boolean that_present_city = true && that.isSetCity();
-
 
122900
      if (this_present_city || that_present_city) {
-
 
122901
        if (!(this_present_city && that_present_city))
-
 
122902
          return false;
-
 
122903
        if (!this.city.equals(that.city))
-
 
122904
          return false;
-
 
122905
      }
-
 
122906
 
-
 
122907
      boolean this_present_state = true && this.isSetState();
-
 
122908
      boolean that_present_state = true && that.isSetState();
-
 
122909
      if (this_present_state || that_present_state) {
-
 
122910
        if (!(this_present_state && that_present_state))
-
 
122911
          return false;
-
 
122912
        if (!this.state.equals(that.state))
-
 
122913
          return false;
-
 
122914
      }
-
 
122915
 
-
 
122916
      boolean this_present_pin = true && this.isSetPin();
-
 
122917
      boolean that_present_pin = true && that.isSetPin();
-
 
122918
      if (this_present_pin || that_present_pin) {
-
 
122919
        if (!(this_present_pin && that_present_pin))
-
 
122920
          return false;
-
 
122921
        if (!this.pin.equals(that.pin))
-
 
122922
          return false;
-
 
122923
      }
-
 
122924
 
-
 
122925
      return true;
-
 
122926
    }
-
 
122927
 
-
 
122928
    @Override
-
 
122929
    public int hashCode() {
-
 
122930
      return 0;
-
 
122931
    }
-
 
122932
 
-
 
122933
    public int compareTo(changeShippingAddress_args other) {
-
 
122934
      if (!getClass().equals(other.getClass())) {
-
 
122935
        return getClass().getName().compareTo(other.getClass().getName());
-
 
122936
      }
-
 
122937
 
-
 
122938
      int lastComparison = 0;
-
 
122939
      changeShippingAddress_args typedOther = (changeShippingAddress_args)other;
-
 
122940
 
-
 
122941
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
122942
      if (lastComparison != 0) {
-
 
122943
        return lastComparison;
-
 
122944
      }
-
 
122945
      if (isSetOrderId()) {
-
 
122946
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
122947
        if (lastComparison != 0) {
-
 
122948
          return lastComparison;
-
 
122949
        }
-
 
122950
      }
-
 
122951
      lastComparison = Boolean.valueOf(isSetLine1()).compareTo(typedOther.isSetLine1());
-
 
122952
      if (lastComparison != 0) {
-
 
122953
        return lastComparison;
-
 
122954
      }
-
 
122955
      if (isSetLine1()) {
-
 
122956
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.line1, typedOther.line1);
-
 
122957
        if (lastComparison != 0) {
-
 
122958
          return lastComparison;
-
 
122959
        }
-
 
122960
      }
-
 
122961
      lastComparison = Boolean.valueOf(isSetLine2()).compareTo(typedOther.isSetLine2());
-
 
122962
      if (lastComparison != 0) {
-
 
122963
        return lastComparison;
-
 
122964
      }
-
 
122965
      if (isSetLine2()) {
-
 
122966
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.line2, typedOther.line2);
-
 
122967
        if (lastComparison != 0) {
-
 
122968
          return lastComparison;
-
 
122969
        }
-
 
122970
      }
-
 
122971
      lastComparison = Boolean.valueOf(isSetCity()).compareTo(typedOther.isSetCity());
-
 
122972
      if (lastComparison != 0) {
-
 
122973
        return lastComparison;
-
 
122974
      }
-
 
122975
      if (isSetCity()) {
-
 
122976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.city, typedOther.city);
-
 
122977
        if (lastComparison != 0) {
-
 
122978
          return lastComparison;
-
 
122979
        }
-
 
122980
      }
-
 
122981
      lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState());
-
 
122982
      if (lastComparison != 0) {
-
 
122983
        return lastComparison;
-
 
122984
      }
-
 
122985
      if (isSetState()) {
-
 
122986
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state);
-
 
122987
        if (lastComparison != 0) {
-
 
122988
          return lastComparison;
-
 
122989
        }
-
 
122990
      }
-
 
122991
      lastComparison = Boolean.valueOf(isSetPin()).compareTo(typedOther.isSetPin());
-
 
122992
      if (lastComparison != 0) {
-
 
122993
        return lastComparison;
-
 
122994
      }
-
 
122995
      if (isSetPin()) {
-
 
122996
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pin, typedOther.pin);
-
 
122997
        if (lastComparison != 0) {
-
 
122998
          return lastComparison;
-
 
122999
        }
-
 
123000
      }
-
 
123001
      return 0;
-
 
123002
    }
-
 
123003
 
-
 
123004
    public _Fields fieldForId(int fieldId) {
-
 
123005
      return _Fields.findByThriftId(fieldId);
-
 
123006
    }
-
 
123007
 
-
 
123008
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
123009
      org.apache.thrift.protocol.TField field;
-
 
123010
      iprot.readStructBegin();
-
 
123011
      while (true)
-
 
123012
      {
-
 
123013
        field = iprot.readFieldBegin();
-
 
123014
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
123015
          break;
-
 
123016
        }
-
 
123017
        switch (field.id) {
-
 
123018
          case 1: // ORDER_ID
-
 
123019
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
123020
              this.orderId = iprot.readI64();
-
 
123021
              setOrderIdIsSet(true);
-
 
123022
            } else { 
-
 
123023
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123024
            }
-
 
123025
            break;
-
 
123026
          case 2: // LINE1
-
 
123027
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
123028
              this.line1 = iprot.readString();
-
 
123029
            } else { 
-
 
123030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123031
            }
-
 
123032
            break;
-
 
123033
          case 3: // LINE2
-
 
123034
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
123035
              this.line2 = iprot.readString();
-
 
123036
            } else { 
-
 
123037
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123038
            }
-
 
123039
            break;
-
 
123040
          case 4: // CITY
-
 
123041
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
123042
              this.city = iprot.readString();
-
 
123043
            } else { 
-
 
123044
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123045
            }
-
 
123046
            break;
-
 
123047
          case 5: // STATE
-
 
123048
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
123049
              this.state = iprot.readString();
-
 
123050
            } else { 
-
 
123051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123052
            }
-
 
123053
            break;
-
 
123054
          case 6: // PIN
-
 
123055
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
123056
              this.pin = iprot.readString();
-
 
123057
            } else { 
-
 
123058
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123059
            }
-
 
123060
            break;
-
 
123061
          default:
-
 
123062
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123063
        }
-
 
123064
        iprot.readFieldEnd();
-
 
123065
      }
-
 
123066
      iprot.readStructEnd();
-
 
123067
      validate();
-
 
123068
    }
-
 
123069
 
-
 
123070
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
123071
      validate();
-
 
123072
 
-
 
123073
      oprot.writeStructBegin(STRUCT_DESC);
-
 
123074
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
123075
      oprot.writeI64(this.orderId);
-
 
123076
      oprot.writeFieldEnd();
-
 
123077
      if (this.line1 != null) {
-
 
123078
        oprot.writeFieldBegin(LINE1_FIELD_DESC);
-
 
123079
        oprot.writeString(this.line1);
-
 
123080
        oprot.writeFieldEnd();
-
 
123081
      }
-
 
123082
      if (this.line2 != null) {
-
 
123083
        oprot.writeFieldBegin(LINE2_FIELD_DESC);
-
 
123084
        oprot.writeString(this.line2);
-
 
123085
        oprot.writeFieldEnd();
-
 
123086
      }
-
 
123087
      if (this.city != null) {
-
 
123088
        oprot.writeFieldBegin(CITY_FIELD_DESC);
-
 
123089
        oprot.writeString(this.city);
-
 
123090
        oprot.writeFieldEnd();
-
 
123091
      }
-
 
123092
      if (this.state != null) {
-
 
123093
        oprot.writeFieldBegin(STATE_FIELD_DESC);
-
 
123094
        oprot.writeString(this.state);
-
 
123095
        oprot.writeFieldEnd();
-
 
123096
      }
-
 
123097
      if (this.pin != null) {
-
 
123098
        oprot.writeFieldBegin(PIN_FIELD_DESC);
-
 
123099
        oprot.writeString(this.pin);
-
 
123100
        oprot.writeFieldEnd();
-
 
123101
      }
-
 
123102
      oprot.writeFieldStop();
-
 
123103
      oprot.writeStructEnd();
-
 
123104
    }
-
 
123105
 
-
 
123106
    @Override
-
 
123107
    public String toString() {
-
 
123108
      StringBuilder sb = new StringBuilder("changeShippingAddress_args(");
-
 
123109
      boolean first = true;
-
 
123110
 
-
 
123111
      sb.append("orderId:");
-
 
123112
      sb.append(this.orderId);
-
 
123113
      first = false;
-
 
123114
      if (!first) sb.append(", ");
-
 
123115
      sb.append("line1:");
-
 
123116
      if (this.line1 == null) {
-
 
123117
        sb.append("null");
-
 
123118
      } else {
-
 
123119
        sb.append(this.line1);
-
 
123120
      }
-
 
123121
      first = false;
-
 
123122
      if (!first) sb.append(", ");
-
 
123123
      sb.append("line2:");
-
 
123124
      if (this.line2 == null) {
-
 
123125
        sb.append("null");
-
 
123126
      } else {
-
 
123127
        sb.append(this.line2);
-
 
123128
      }
-
 
123129
      first = false;
-
 
123130
      if (!first) sb.append(", ");
-
 
123131
      sb.append("city:");
-
 
123132
      if (this.city == null) {
-
 
123133
        sb.append("null");
-
 
123134
      } else {
-
 
123135
        sb.append(this.city);
-
 
123136
      }
-
 
123137
      first = false;
-
 
123138
      if (!first) sb.append(", ");
-
 
123139
      sb.append("state:");
-
 
123140
      if (this.state == null) {
-
 
123141
        sb.append("null");
-
 
123142
      } else {
-
 
123143
        sb.append(this.state);
-
 
123144
      }
-
 
123145
      first = false;
-
 
123146
      if (!first) sb.append(", ");
-
 
123147
      sb.append("pin:");
-
 
123148
      if (this.pin == null) {
-
 
123149
        sb.append("null");
-
 
123150
      } else {
-
 
123151
        sb.append(this.pin);
-
 
123152
      }
-
 
123153
      first = false;
-
 
123154
      sb.append(")");
-
 
123155
      return sb.toString();
-
 
123156
    }
-
 
123157
 
-
 
123158
    public void validate() throws org.apache.thrift.TException {
-
 
123159
      // check for required fields
-
 
123160
    }
-
 
123161
 
-
 
123162
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
123163
      try {
-
 
123164
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
123165
      } catch (org.apache.thrift.TException te) {
-
 
123166
        throw new java.io.IOException(te);
-
 
123167
      }
-
 
123168
    }
-
 
123169
 
-
 
123170
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
123171
      try {
-
 
123172
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
123173
        __isset_bit_vector = new BitSet(1);
-
 
123174
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
123175
      } catch (org.apache.thrift.TException te) {
-
 
123176
        throw new java.io.IOException(te);
-
 
123177
      }
-
 
123178
    }
-
 
123179
 
-
 
123180
  }
-
 
123181
 
-
 
123182
  public static class changeShippingAddress_result implements org.apache.thrift.TBase<changeShippingAddress_result, changeShippingAddress_result._Fields>, java.io.Serializable, Cloneable   {
-
 
123183
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeShippingAddress_result");
-
 
123184
 
-
 
123185
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
123186
 
-
 
123187
    private boolean success; // required
-
 
123188
 
-
 
123189
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
123190
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
123191
      SUCCESS((short)0, "success");
-
 
123192
 
-
 
123193
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
123194
 
-
 
123195
      static {
-
 
123196
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
123197
          byName.put(field.getFieldName(), field);
-
 
123198
        }
-
 
123199
      }
-
 
123200
 
-
 
123201
      /**
-
 
123202
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
123203
       */
-
 
123204
      public static _Fields findByThriftId(int fieldId) {
-
 
123205
        switch(fieldId) {
-
 
123206
          case 0: // SUCCESS
-
 
123207
            return SUCCESS;
-
 
123208
          default:
-
 
123209
            return null;
-
 
123210
        }
-
 
123211
      }
-
 
123212
 
-
 
123213
      /**
-
 
123214
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
123215
       * if it is not found.
-
 
123216
       */
-
 
123217
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
123218
        _Fields fields = findByThriftId(fieldId);
-
 
123219
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
123220
        return fields;
-
 
123221
      }
-
 
123222
 
-
 
123223
      /**
-
 
123224
       * Find the _Fields constant that matches name, or null if its not found.
-
 
123225
       */
-
 
123226
      public static _Fields findByName(String name) {
-
 
123227
        return byName.get(name);
-
 
123228
      }
-
 
123229
 
-
 
123230
      private final short _thriftId;
-
 
123231
      private final String _fieldName;
-
 
123232
 
-
 
123233
      _Fields(short thriftId, String fieldName) {
-
 
123234
        _thriftId = thriftId;
-
 
123235
        _fieldName = fieldName;
-
 
123236
      }
-
 
123237
 
-
 
123238
      public short getThriftFieldId() {
-
 
123239
        return _thriftId;
-
 
123240
      }
-
 
123241
 
-
 
123242
      public String getFieldName() {
-
 
123243
        return _fieldName;
-
 
123244
      }
-
 
123245
    }
-
 
123246
 
-
 
123247
    // isset id assignments
-
 
123248
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
123249
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
123250
 
-
 
123251
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
123252
    static {
-
 
123253
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
123254
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
123255
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
123256
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
123257
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeShippingAddress_result.class, metaDataMap);
-
 
123258
    }
-
 
123259
 
-
 
123260
    public changeShippingAddress_result() {
-
 
123261
    }
-
 
123262
 
-
 
123263
    public changeShippingAddress_result(
-
 
123264
      boolean success)
-
 
123265
    {
-
 
123266
      this();
-
 
123267
      this.success = success;
-
 
123268
      setSuccessIsSet(true);
-
 
123269
    }
-
 
123270
 
-
 
123271
    /**
-
 
123272
     * Performs a deep copy on <i>other</i>.
-
 
123273
     */
-
 
123274
    public changeShippingAddress_result(changeShippingAddress_result other) {
-
 
123275
      __isset_bit_vector.clear();
-
 
123276
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
123277
      this.success = other.success;
-
 
123278
    }
-
 
123279
 
-
 
123280
    public changeShippingAddress_result deepCopy() {
-
 
123281
      return new changeShippingAddress_result(this);
-
 
123282
    }
-
 
123283
 
-
 
123284
    @Override
-
 
123285
    public void clear() {
-
 
123286
      setSuccessIsSet(false);
-
 
123287
      this.success = false;
-
 
123288
    }
-
 
123289
 
-
 
123290
    public boolean isSuccess() {
-
 
123291
      return this.success;
-
 
123292
    }
-
 
123293
 
-
 
123294
    public void setSuccess(boolean success) {
-
 
123295
      this.success = success;
-
 
123296
      setSuccessIsSet(true);
-
 
123297
    }
-
 
123298
 
-
 
123299
    public void unsetSuccess() {
-
 
123300
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
123301
    }
-
 
123302
 
-
 
123303
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
123304
    public boolean isSetSuccess() {
-
 
123305
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
123306
    }
-
 
123307
 
-
 
123308
    public void setSuccessIsSet(boolean value) {
-
 
123309
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
123310
    }
-
 
123311
 
-
 
123312
    public void setFieldValue(_Fields field, Object value) {
-
 
123313
      switch (field) {
-
 
123314
      case SUCCESS:
-
 
123315
        if (value == null) {
-
 
123316
          unsetSuccess();
-
 
123317
        } else {
-
 
123318
          setSuccess((Boolean)value);
-
 
123319
        }
-
 
123320
        break;
-
 
123321
 
-
 
123322
      }
-
 
123323
    }
-
 
123324
 
-
 
123325
    public Object getFieldValue(_Fields field) {
-
 
123326
      switch (field) {
-
 
123327
      case SUCCESS:
-
 
123328
        return Boolean.valueOf(isSuccess());
-
 
123329
 
-
 
123330
      }
-
 
123331
      throw new IllegalStateException();
-
 
123332
    }
-
 
123333
 
-
 
123334
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
123335
    public boolean isSet(_Fields field) {
-
 
123336
      if (field == null) {
-
 
123337
        throw new IllegalArgumentException();
-
 
123338
      }
-
 
123339
 
-
 
123340
      switch (field) {
-
 
123341
      case SUCCESS:
-
 
123342
        return isSetSuccess();
-
 
123343
      }
-
 
123344
      throw new IllegalStateException();
-
 
123345
    }
-
 
123346
 
-
 
123347
    @Override
-
 
123348
    public boolean equals(Object that) {
-
 
123349
      if (that == null)
-
 
123350
        return false;
-
 
123351
      if (that instanceof changeShippingAddress_result)
-
 
123352
        return this.equals((changeShippingAddress_result)that);
-
 
123353
      return false;
-
 
123354
    }
-
 
123355
 
-
 
123356
    public boolean equals(changeShippingAddress_result that) {
-
 
123357
      if (that == null)
-
 
123358
        return false;
-
 
123359
 
-
 
123360
      boolean this_present_success = true;
-
 
123361
      boolean that_present_success = true;
-
 
123362
      if (this_present_success || that_present_success) {
-
 
123363
        if (!(this_present_success && that_present_success))
-
 
123364
          return false;
-
 
123365
        if (this.success != that.success)
-
 
123366
          return false;
-
 
123367
      }
-
 
123368
 
-
 
123369
      return true;
-
 
123370
    }
-
 
123371
 
-
 
123372
    @Override
-
 
123373
    public int hashCode() {
-
 
123374
      return 0;
-
 
123375
    }
-
 
123376
 
-
 
123377
    public int compareTo(changeShippingAddress_result other) {
-
 
123378
      if (!getClass().equals(other.getClass())) {
-
 
123379
        return getClass().getName().compareTo(other.getClass().getName());
-
 
123380
      }
-
 
123381
 
-
 
123382
      int lastComparison = 0;
-
 
123383
      changeShippingAddress_result typedOther = (changeShippingAddress_result)other;
-
 
123384
 
-
 
123385
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
123386
      if (lastComparison != 0) {
-
 
123387
        return lastComparison;
-
 
123388
      }
-
 
123389
      if (isSetSuccess()) {
-
 
123390
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
123391
        if (lastComparison != 0) {
-
 
123392
          return lastComparison;
-
 
123393
        }
-
 
123394
      }
-
 
123395
      return 0;
-
 
123396
    }
-
 
123397
 
-
 
123398
    public _Fields fieldForId(int fieldId) {
-
 
123399
      return _Fields.findByThriftId(fieldId);
-
 
123400
    }
-
 
123401
 
-
 
123402
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
123403
      org.apache.thrift.protocol.TField field;
-
 
123404
      iprot.readStructBegin();
-
 
123405
      while (true)
-
 
123406
      {
-
 
123407
        field = iprot.readFieldBegin();
-
 
123408
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
123409
          break;
-
 
123410
        }
-
 
123411
        switch (field.id) {
-
 
123412
          case 0: // SUCCESS
-
 
123413
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
123414
              this.success = iprot.readBool();
-
 
123415
              setSuccessIsSet(true);
-
 
123416
            } else { 
-
 
123417
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123418
            }
-
 
123419
            break;
-
 
123420
          default:
-
 
123421
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123422
        }
-
 
123423
        iprot.readFieldEnd();
-
 
123424
      }
-
 
123425
      iprot.readStructEnd();
-
 
123426
      validate();
-
 
123427
    }
-
 
123428
 
-
 
123429
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
123430
      oprot.writeStructBegin(STRUCT_DESC);
-
 
123431
 
-
 
123432
      if (this.isSetSuccess()) {
-
 
123433
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
123434
        oprot.writeBool(this.success);
-
 
123435
        oprot.writeFieldEnd();
-
 
123436
      }
-
 
123437
      oprot.writeFieldStop();
-
 
123438
      oprot.writeStructEnd();
-
 
123439
    }
-
 
123440
 
-
 
123441
    @Override
-
 
123442
    public String toString() {
-
 
123443
      StringBuilder sb = new StringBuilder("changeShippingAddress_result(");
-
 
123444
      boolean first = true;
-
 
123445
 
-
 
123446
      sb.append("success:");
-
 
123447
      sb.append(this.success);
-
 
123448
      first = false;
-
 
123449
      sb.append(")");
-
 
123450
      return sb.toString();
-
 
123451
    }
-
 
123452
 
122323
    public void validate() throws org.apache.thrift.TException {
123453
    public void validate() throws org.apache.thrift.TException {
122324
      // check for required fields
123454
      // check for required fields
122325
    }
123455
    }
122326
 
123456
 
122327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
123457
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {